mirror of https://github.com/apache/jclouds.git
catalog test wasn't blocking on task complete
This commit is contained in:
parent
cb0a105171
commit
15a297d200
|
@ -260,7 +260,7 @@ public class CatalogClientLiveTest extends BaseVCloudDirectorClientLiveTest {
|
|||
private void deleteAllCatalogItemMetadata(URI catalogItemURI) {
|
||||
Metadata currentMetadata = catalogClient.getMetadataClient().getMetadata(catalogItemURI);
|
||||
for (MetadataEntry currentMetadataEntry : currentMetadata.getMetadataEntries()) {
|
||||
catalogClient.getMetadataClient().deleteMetadataEntry(catalogItemURI, currentMetadataEntry.getKey());
|
||||
retryTaskSuccess.apply(catalogClient.getMetadataClient().deleteMetadataEntry(catalogItemURI, currentMetadataEntry.getKey()));
|
||||
}
|
||||
Metadata emptyMetadata = catalogClient.getMetadataClient().getMetadata(catalogItemURI);
|
||||
assertTrue(emptyMetadata.getMetadataEntries().isEmpty(), "The catalogItem Metadata should be empty");
|
||||
|
|
Loading…
Reference in New Issue