JCLOUDS-930: Regression in a File System test.

Fix a regression in the file system blob store, where a test does not
expect the trailing delimiter character.
This commit is contained in:
Timur Alperovich 2015-06-29 21:41:33 -07:00
parent 1dcd4500ea
commit 8c9344b501
1 changed files with 2 additions and 3 deletions

View File

@ -525,8 +525,7 @@ public class FilesystemBlobStoreTest {
checkForContainerContent(CONTAINER_NAME, dirs);
}
// TODO: disable test due to unexpected trailing slash
@Test(dataProvider = "ignoreOnMacOSX", enabled = false)
@Test(dataProvider = "ignoreOnMacOSX")
public void testListDirectoryBlobsS3FS() {
blobStore.createContainerInLocation(null, CONTAINER_NAME);
checkForContainerContent(CONTAINER_NAME, null);
@ -540,7 +539,7 @@ public class FilesystemBlobStoreTest {
.inDirectory("");
PageSet<? extends StorageMetadata> res = blobStore.list(CONTAINER_NAME, options);
assertTrue(res.size() == 1);
assertEquals(res.iterator().next().getName(), d);
assertEquals(res.iterator().next().getName(), d + '/');
}