mirror of https://github.com/apache/jclouds.git
Issue 158: changed Product Package test to iterate through active packages in Account
This commit is contained in:
parent
e62834c624
commit
8bb614bf72
|
@ -43,17 +43,20 @@ public class ProductPackageClientLiveTest extends BaseSoftLayerClientLiveTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testGetProductPackage() {
|
public void testGetProductPackage() {
|
||||||
ProductPackage response = client.getProductPackage(46);
|
for (ProductPackage productPackage : context.getApi().getAccountClient().getActivePackages()) {
|
||||||
assert null != response;
|
ProductPackage response = client.getProductPackage(productPackage.getId());
|
||||||
assert response.getId() > 0 : response;
|
|
||||||
assert response.getName() != null : response;
|
|
||||||
assert response.getDescription() != null : response;
|
|
||||||
|
|
||||||
assertTrue(response.getItems().size() >= 0);
|
assert null != response;
|
||||||
for (ProductItem item : response.getItems()) {
|
assert response.getId() > 0 : response;
|
||||||
// ProductItem newDetails = client.getProductItem(item.getId());
|
assert response.getName() != null : response;
|
||||||
// assertEquals(item.getId(), newDetails.getId());
|
assert response.getDescription() != null : response;
|
||||||
checkProductItem(item);
|
|
||||||
|
assertTrue(response.getItems().size() >= 0);
|
||||||
|
for (ProductItem item : response.getItems()) {
|
||||||
|
// ProductItem newDetails = client.getProductItem(item.getId());
|
||||||
|
// assertEquals(item.getId(), newDetails.getId());
|
||||||
|
checkProductItem(item);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue