mirror of https://github.com/apache/jclouds.git
fixed vfs snapshot repo and added test
This commit is contained in:
parent
6fa99d92a7
commit
9837bfd3ba
|
@ -53,11 +53,17 @@ public class BaseContainerIntegrationTest extends BaseBlobStoreIntegrationTest {
|
|||
}
|
||||
|
||||
@Test(groups = { "integration", "live" })
|
||||
public void testPutTwiceIsOk() throws InterruptedException {
|
||||
public void testPutTwiceIsOkAndDoesntOverwrite() throws InterruptedException {
|
||||
String containerName = getContainerName();
|
||||
try {
|
||||
context.getBlobStore().createContainerInLocation("default", containerName);
|
||||
|
||||
Blob blob = context.getBlobStore().newBlob("hello");
|
||||
blob.setPayload(TEST_STRING);
|
||||
context.getBlobStore().putBlob(containerName, blob);
|
||||
|
||||
context.getBlobStore().createContainerInLocation("default", containerName);
|
||||
assertEquals(context.getBlobStore().countBlobs(containerName), 1);
|
||||
} finally {
|
||||
returnContainer(containerName);
|
||||
}
|
||||
|
|
|
@ -105,6 +105,18 @@
|
|||
<version>1.2.14</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<repositories>
|
||||
<repository>
|
||||
<id>apache.snapshots.https</id>
|
||||
<name>Apache Snapshot Repository</name>
|
||||
<url>https://repository.apache.org/content/repositories/snapshots</url>
|
||||
<releases>
|
||||
<enabled>false</enabled>
|
||||
</releases>
|
||||
</repository>
|
||||
</repositories>
|
||||
|
||||
<build>
|
||||
<finalName>${project.artifactId}</finalName>
|
||||
|
||||
|
|
|
@ -73,7 +73,7 @@ public class BlobStoreFileNameParser extends URLFileNameParser {
|
|||
FileType fileType = UriParser.normalisePath(name);
|
||||
String path = name.toString();
|
||||
|
||||
return new BlobStoreFileName(auth.getHostName(), creds.account, creds.key, path, fileType,
|
||||
return new BlobStoreFileName(auth.hostName, creds.account, creds.key, path, fileType,
|
||||
container);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue