[sheepdog] [PATCH v2 1/2] tests/func/030: refine test to reflect default format parameter
Liu Yuan
namei.unix at gmail.com
Tue May 6 08:49:21 CEST 2014
Now we can restore 100% for 'cluster snapshot' so add test for it.
Signed-off-by: Liu Yuan <namei.unix at gmail.com>
---
tests/functional/030 | 5 +++++
tests/functional/030.out | 16 ++++++++++++++++
2 files changed, 21 insertions(+)
diff --git a/tests/functional/030 b/tests/functional/030
index 2f3d4dc..8b83c3a 100755
--- a/tests/functional/030
+++ b/tests/functional/030
@@ -83,3 +83,8 @@ $DOG vdi read -s 1 test1 | md5sum > $STORE/csum.11.new
$DOG vdi read -s 1 test2 | md5sum > $STORE/csum.21.new
diff -u $STORE/csum.11.org $STORE/csum.11.new
diff -u $STORE/csum.21.org $STORE/csum.21.new
+
+$DOG cluster info -s | _filter_cluster_info
+$DOG vdi create test3 -c 4:1 100M
+$DOG vdi create test4 -c 4 100M
+_vdi_list
diff --git a/tests/functional/030.out b/tests/functional/030.out
index c47ffaa..704497a 100644
--- a/tests/functional/030.out
+++ b/tests/functional/030.out
@@ -35,3 +35,19 @@ s test1 2 10 MB 12 MB 0.0 MB DATE fd32fd 6
s test2 1 10 MB 12 MB 0.0 MB DATE fd3815 6
s test2 2 10 MB 12 MB 0.0 MB DATE fd3816 6
test2 0 10 MB 0.0 MB 12 MB DATE fd3817 6
+Cluster status: running, auto-recovery enabled
+Cluster store: plain with 6 redundancy policy
+
+Cluster created at DATE
+
+Epoch Time Version
+DATE 1 [127.0.0.1:7000, 127.0.0.1:7001, 127.0.0.1:7002, 127.0.0.1:7003, 127.0.0.1:7004, 127.0.0.1:7005]
+ Name Id Size Used Shared Creation time VDI id Copies Tag
+ test4 0 100 MB 0.0 MB 0.0 MB DATE fd2de3 4
+s test1 1 10 MB 12 MB 0.0 MB DATE fd32fc 6
+s test1 2 10 MB 12 MB 0.0 MB DATE fd32fd 6
+ test1 0 10 MB 0.0 MB 12 MB DATE fd32fe 6
+ test3 0 100 MB 0.0 MB 0.0 MB DATE fd3662 4:1
+s test2 1 10 MB 12 MB 0.0 MB DATE fd3815 6
+s test2 2 10 MB 12 MB 0.0 MB DATE fd3816 6
+ test2 0 10 MB 0.0 MB 12 MB DATE fd3817 6
--
1.8.1.2
More information about the sheepdog
mailing list