You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jclouds.apache.org by ga...@apache.org on 2015/09/09 00:35:20 UTC
[05/10] jclouds git commit: JCLOUDS-217: Filesystem: avoid trailing
spaces.
JCLOUDS-217: Filesystem: avoid trailing spaces.
On Windows, we need to avoid trailing spaces, as the test fails to
create the required blob. Specifically, we should not test blobs named
" " and "%20 ".
Project: http://git-wip-us.apache.org/repos/asf/jclouds/repo
Commit: http://git-wip-us.apache.org/repos/asf/jclouds/commit/85357cf9
Tree: http://git-wip-us.apache.org/repos/asf/jclouds/tree/85357cf9
Diff: http://git-wip-us.apache.org/repos/asf/jclouds/diff/85357cf9
Branch: refs/heads/master
Commit: 85357cf92a347cd9a24e28779bd3353be00696e3
Parents: cbea1b6
Author: Timur Alperovich <ti...@gmail.com>
Authored: Tue Sep 1 13:14:55 2015 -0700
Committer: Timur Alperovich <ti...@gmail.com>
Committed: Tue Sep 8 15:19:03 2015 -0700
----------------------------------------------------------------------
.../integration/FilesystemContainerIntegrationTest.java | 12 ++++++++++++
1 file changed, 12 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/jclouds/blob/85357cf9/apis/filesystem/src/test/java/org/jclouds/filesystem/integration/FilesystemContainerIntegrationTest.java
----------------------------------------------------------------------
diff --git a/apis/filesystem/src/test/java/org/jclouds/filesystem/integration/FilesystemContainerIntegrationTest.java b/apis/filesystem/src/test/java/org/jclouds/filesystem/integration/FilesystemContainerIntegrationTest.java
index bf6c4ab..6a89d5e 100644
--- a/apis/filesystem/src/test/java/org/jclouds/filesystem/integration/FilesystemContainerIntegrationTest.java
+++ b/apis/filesystem/src/test/java/org/jclouds/filesystem/integration/FilesystemContainerIntegrationTest.java
@@ -26,6 +26,7 @@ import java.util.concurrent.TimeoutException;
import javax.ws.rs.core.MediaType;
+import com.google.common.collect.ImmutableSet;
import org.jclouds.blobstore.domain.Blob;
import org.jclouds.blobstore.domain.BlobMetadata;
import org.jclouds.blobstore.domain.PageSet;
@@ -172,4 +173,15 @@ public class FilesystemContainerIntegrationTest extends BaseContainerIntegration
return TestUtils.isWindowsOs() ? TestUtils.NO_INVOCATIONS
: TestUtils.SINGLE_NO_ARG_INVOCATION;
}
+
+ @Override
+ @DataProvider
+ public Object[][] getBlobsToEscape() {
+ if (TestUtils.isWindowsOs()) {
+ Object[][] result = new Object[1][1];
+ result[0][0] = ImmutableSet.of("%20", " %20");
+ return result;
+ }
+ return super.getBlobsToEscape();
+ }
}