jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Gaul <notificati...@github.com>
Subject Re: [jclouds/jclouds] JClouds 1281- DLO Swift Implementation (#1090)
Date Sun, 30 Apr 2017 01:23:23 GMT
andrewgaul commented on this pull request.



> +      assertEquals(object1s.getPayload().getContentMetadata().getContentLength(), Long.valueOf(1024
* 1024));
+   }
+
+   protected void deleteAllObjectsInContainerDLO(String regionId, final String containerName)
{
+      Uninterruptibles.sleepUninterruptibly(10, TimeUnit.SECONDS);
+
+      ObjectList objects = getApi().getObjectApi(regionId, containerName).list(new ListContainerOptions());
+      if (objects == null) {
+         return;
+      }
+      List<String> pathsToDelete = Lists.transform(objects, new Function<SwiftObject,
String>() {
+         public String apply(SwiftObject input) {
+            return containerName + "/" + input.getName();
+         }
+      });
+      if (!pathsToDelete.isEmpty()) {

Unneeded conditional.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/1090#pullrequestreview-35507370
Mime
View raw message