From 5ef0d044483d4ea3f6d110777d5171e6cb6e2c60 Mon Sep 17 00:00:00 2001 From: Alasdair Hodge Date: Wed, 21 Dec 2011 14:41:23 +0000 Subject: [PATCH] update resource-based drive <-> map tests --- .../cloudsigma/binders/BindDriveDataToPlainTextStringTest.java | 1 + .../org/jclouds/cloudsigma/functions/MapToDriveInfoTest.java | 1 + apis/cloudsigma/src/test/resources/drive.txt | 1 + apis/cloudsigma/src/test/resources/drive_data.txt | 1 + 4 files changed, 4 insertions(+) diff --git a/apis/cloudsigma/src/test/java/org/jclouds/cloudsigma/binders/BindDriveDataToPlainTextStringTest.java b/apis/cloudsigma/src/test/java/org/jclouds/cloudsigma/binders/BindDriveDataToPlainTextStringTest.java index e09eed7d35..d5027053c0 100644 --- a/apis/cloudsigma/src/test/java/org/jclouds/cloudsigma/binders/BindDriveDataToPlainTextStringTest.java +++ b/apis/cloudsigma/src/test/java/org/jclouds/cloudsigma/binders/BindDriveDataToPlainTextStringTest.java @@ -72,6 +72,7 @@ public class BindDriveDataToPlainTextStringTest { // .size(8589934592l)// .claimType(ClaimType.SHARED)// + .tags(ImmutableSet.of("foo", "bar", "baz"))// .readers(ImmutableSet.of("ffffffff-ffff-ffff-ffff-ffffffffffff"))// .use(ImmutableSet.of("tag1", "tag2"))// .build(); diff --git a/apis/cloudsigma/src/test/java/org/jclouds/cloudsigma/functions/MapToDriveInfoTest.java b/apis/cloudsigma/src/test/java/org/jclouds/cloudsigma/functions/MapToDriveInfoTest.java index cfb3337580..a2bde54ee6 100644 --- a/apis/cloudsigma/src/test/java/org/jclouds/cloudsigma/functions/MapToDriveInfoTest.java +++ b/apis/cloudsigma/src/test/java/org/jclouds/cloudsigma/functions/MapToDriveInfoTest.java @@ -54,6 +54,7 @@ public class MapToDriveInfoTest { .encryptionCipher("aes-xts-plain") .encryptionKey("ba6c2a4897072e9f25920ed73bd522e9c10d89f30a215158cccf8d0f654ac643") .description("The Ubuntu Linux distribution brings the spirit of Ubuntu to the software world.") + .tags(ImmutableSet.of("foo", "bar", "baz")) .uuid("b8171d28-755a-4271-b891-7998871a160e") .installNotes("first line\n\n") .os("linux") diff --git a/apis/cloudsigma/src/test/resources/drive.txt b/apis/cloudsigma/src/test/resources/drive.txt index 63abfc8f14..149c823e86 100644 --- a/apis/cloudsigma/src/test/resources/drive.txt +++ b/apis/cloudsigma/src/test/resources/drive.txt @@ -16,6 +16,7 @@ claim:type shared claimed 00109617-2c6b-424b-9cfa-5b572c17bafe:guest:692cd1c7-a863-4a22-8170-fc6e6feb68af:ide:0:0 00031836-a624-4b22-bc7d-41ff8977087b:guest:a1414360-7c24-4730-8c97-180bf7775a71:ide:0:0 0002c6df-a1d2-4d1d-96f0-f95405a28183:guest:386f1cc7-affc-49c1-82a5-2f8e412170e4:ide:0:0 00031836-a624-4b22-bc7d-41ff8977087b:guest:17b076be-430d-4a76-9df3-b9896fec82a5:ide:0:0 000663ee-9fb6-4461-90f6-01327a4aff07:guest:f83b519f-feab-42cf-859c-f61495681ada:ide:0:1 drive_type installcd,livecd autoexpanding false +tags foo bar baz readers ffffffff-ffff-ffff-ffff-ffffffffffff read:requests 1 free true diff --git a/apis/cloudsigma/src/test/resources/drive_data.txt b/apis/cloudsigma/src/test/resources/drive_data.txt index 44ce187567..74d7679ce6 100644 --- a/apis/cloudsigma/src/test/resources/drive_data.txt +++ b/apis/cloudsigma/src/test/resources/drive_data.txt @@ -1,5 +1,6 @@ name Ubuntu 10.10 Server Edition Linux 64bit Preinstalled System size 8589934592 claim:type shared +tags foo bar baz readers ffffffff-ffff-ffff-ffff-ffffffffffff use tag1 tag2 \ No newline at end of file