[sheepdog] [PATCH 4/4] test/func: add test case for cluster snapshot load with specified vdi

Ruoyu liangry at ucweb.com
Wed Sep 10 09:51:58 CEST 2014


Signed-off-by: Ruoyu <liangry at ucweb.com>
---
 tests/functional/030     | 2 ++
 tests/functional/030.out | 8 ++++++++
 2 files changed, 10 insertions(+)

diff --git a/tests/functional/030 b/tests/functional/030
index 06058e0..18ef17f 100755
--- a/tests/functional/030
+++ b/tests/functional/030
@@ -155,3 +155,5 @@ $DOG vdi snapshot -s vs2 test
 $DOG cluster snapshot save s5 $TMPDIR
 echo "yes" | $DOG cluster snapshot load s5 $TMPDIR
 _vdi_list
+echo "yes" | $DOG cluster snapshot load s5 $TMPDIR test
+_vdi_list
diff --git a/tests/functional/030.out b/tests/functional/030.out
index a0460bf..5b386ab 100644
--- a/tests/functional/030.out
+++ b/tests/functional/030.out
@@ -116,3 +116,11 @@ Fail to save snapshot to path: /tmp/sheepdog/030/tmp.
   Name        Id    Size    Used  Shared    Creation time   VDI id  Copies  Tag
 s test         2   10 MB  0.0 MB   12 MB DATE   7c2b26      3           vs2
   test         0   10 MB  0.0 MB   12 MB DATE   7c2b27      3              
+    __
+   ()'`;
+   /\|`
+  /  |   Caution! The cluster is not empty.
+(/_)_|_  Are you sure you want to continue? [yes/no]: using backend plain store
+  Name        Id    Size    Used  Shared    Creation time   VDI id  Copies  Tag
+s test         2   10 MB  0.0 MB   12 MB DATE   7c2b26      3           vs2
+  test         0   10 MB  0.0 MB   12 MB DATE   7c2b27      3              
-- 
1.8.3.2





More information about the sheepdog mailing list