update to ensure metadata cannot have multiple values

git-svn-id: http://jclouds.googlecode.com/svn/trunk@1974 3d8758e0-26b5-11de-8745-db77d3ebf521
This commit is contained in:
adrian.f.cole 2009-10-12 14:39:22 +00:00
parent 33d11fe07f
commit 79a3e40d14
1 changed files with 8 additions and 0 deletions

View File

@ -389,6 +389,14 @@ public class BaseBlobIntegrationTest<S, C extends ContainerMetadata, M extends B
validateMetadata(metadata);
validateMetadata(context.getBlobStore().blobMetadata(containerName, key));
// write 2 items with the same key to ensure that provider doesn't accept dupes
object.getMetadata().getUserMetadata().put("Adrian", "wonderpuff");
object.getMetadata().getUserMetadata().put("Adrian", "powderpuff");
addBlobToContainer(containerName, object);
validateMetadata(context.getBlobStore().blobMetadata(containerName, key));
} finally {
returnContainer(containerName);
}