mirror of https://github.com/apache/jclouds.git
fixed regression
This commit is contained in:
parent
7c4307ba56
commit
d45dfff1ec
|
@ -142,7 +142,7 @@ public class BaseContainerIntegrationTest extends BaseBlobStoreIntegrationTest {
|
||||||
UnsupportedEncodingException {
|
UnsupportedEncodingException {
|
||||||
String containerName = getContainerName();
|
String containerName = getContainerName();
|
||||||
try {
|
try {
|
||||||
String prefix = "apps";
|
String prefix = "rootdelimeter";
|
||||||
addTenObjectsUnderPrefix(containerName, prefix);
|
addTenObjectsUnderPrefix(containerName, prefix);
|
||||||
add15UnderRoot(containerName);
|
add15UnderRoot(containerName);
|
||||||
PageSet<? extends StorageMetadata> container = context.getBlobStore().list(containerName);
|
PageSet<? extends StorageMetadata> container = context.getBlobStore().list(containerName);
|
||||||
|
@ -158,7 +158,7 @@ public class BaseContainerIntegrationTest extends BaseBlobStoreIntegrationTest {
|
||||||
public void testDirectory() throws InterruptedException, UnsupportedEncodingException {
|
public void testDirectory() throws InterruptedException, UnsupportedEncodingException {
|
||||||
String containerName = getContainerName();
|
String containerName = getContainerName();
|
||||||
try {
|
try {
|
||||||
String directory = "apps";
|
String directory = "directory";
|
||||||
|
|
||||||
assert !context.getBlobStore().directoryExists(containerName, directory);
|
assert !context.getBlobStore().directoryExists(containerName, directory);
|
||||||
|
|
||||||
|
@ -229,7 +229,7 @@ public class BaseContainerIntegrationTest extends BaseBlobStoreIntegrationTest {
|
||||||
public void testListContainerPrefix() throws InterruptedException, UnsupportedEncodingException {
|
public void testListContainerPrefix() throws InterruptedException, UnsupportedEncodingException {
|
||||||
String containerName = getContainerName();
|
String containerName = getContainerName();
|
||||||
try {
|
try {
|
||||||
String prefix = "apps";
|
String prefix = "containerprefix";
|
||||||
addTenObjectsUnderPrefix(containerName, prefix);
|
addTenObjectsUnderPrefix(containerName, prefix);
|
||||||
add15UnderRoot(containerName);
|
add15UnderRoot(containerName);
|
||||||
|
|
||||||
|
|
|
@ -57,6 +57,8 @@ public class ParseObjectInfoFromHeadersTest {
|
||||||
public void testEtagCaseIssue() {
|
public void testEtagCaseIssue() {
|
||||||
ParseObjectInfoFromHeaders parser = i.getInstance(ParseObjectInfoFromHeaders.class);
|
ParseObjectInfoFromHeaders parser = i.getInstance(ParseObjectInfoFromHeaders.class);
|
||||||
GeneratedHttpRequest<?> request = createMock(GeneratedHttpRequest.class);
|
GeneratedHttpRequest<?> request = createMock(GeneratedHttpRequest.class);
|
||||||
|
expect(request.getArgs()).andReturn(new String[] { "container", "key" }).atLeastOnce();
|
||||||
|
|
||||||
expect(request.getEndpoint()).andReturn(URI.create("http://localhost/test")).atLeastOnce();
|
expect(request.getEndpoint()).andReturn(URI.create("http://localhost/test")).atLeastOnce();
|
||||||
replay(request);
|
replay(request);
|
||||||
parser.setContext(request);
|
parser.setContext(request);
|
||||||
|
|
Loading…
Reference in New Issue