[sheepdog] [PATCH stable-0.6 18/22] tests/functional: test join to the clean cluster

Hitoshi Mitake mitake.hitoshi at gmail.com
Mon Aug 12 16:55:22 CEST 2013


From: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>

This test can be passed with the next patch.

Signed-off-by: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>
Signed-off-by: Liu Yuan <namei.unix at gmail.com>
---
 tests/functional/070     | 44 ++++++++++++++++++++++++++++++++++++++++++++
 tests/functional/070.out | 44 ++++++++++++++++++++++++++++++++++++++++++++
 tests/functional/group   |  1 +
 3 files changed, 89 insertions(+)
 create mode 100755 tests/functional/070
 create mode 100644 tests/functional/070.out

diff --git a/tests/functional/070 b/tests/functional/070
new file mode 100755
index 0000000..d38e462
--- /dev/null
+++ b/tests/functional/070
@@ -0,0 +1,44 @@
+#!/bin/bash
+
+# Test join to the clean cluster
+
+seq=`basename $0`
+echo "QA output created by $seq"
+
+here=`pwd`
+tmp=/tmp/$$
+status=1        # failure is the default!
+
+# get standard environment, filters and checks
+. ./common.rc
+. ./common.filter
+
+_cleanup
+
+for i in 0 1 2; do
+    _start_sheep $i
+done
+
+_wait_for_sheep 3
+
+# start Sheepdog with 3 nodes
+_cluster_format
+
+$COLLIE cluster shutdown -p 7000
+_wait_for_sheep_stop
+
+for i in 3 4 5; do
+    _start_sheep $i
+done
+
+_wait_for_sheep 3 3
+
+for i in 0 1 2; do
+    _start_sheep $i
+done
+
+_wait_for_sheep 6
+
+for i in `seq 0 5`; do
+    $COLLIE cluster info -p 700$i | _filter_cluster_info
+done
diff --git a/tests/functional/070.out b/tests/functional/070.out
new file mode 100644
index 0000000..5793c11
--- /dev/null
+++ b/tests/functional/070.out
@@ -0,0 +1,44 @@
+QA output created by 070
+using backend plain store
+Cluster status: running, auto-recovery enabled
+
+Cluster created at DATE
+
+Epoch Time           Version
+DATE      2 [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]
+DATE      1 [127.0.0.1:7000, 127.0.0.1:7001, 127.0.0.1:7002]
+Cluster status: running, auto-recovery enabled
+
+Cluster created at DATE
+
+Epoch Time           Version
+DATE      2 [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]
+DATE      1 [127.0.0.1:7000, 127.0.0.1:7001, 127.0.0.1:7002]
+Cluster status: running, auto-recovery enabled
+
+Cluster created at DATE
+
+Epoch Time           Version
+DATE      2 [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]
+DATE      1 [127.0.0.1:7000, 127.0.0.1:7001, 127.0.0.1:7002]
+Cluster status: running, auto-recovery enabled
+
+Cluster created at DATE
+
+Epoch Time           Version
+DATE      2 [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]
+DATE      1 [127.0.0.1:7000, 127.0.0.1:7001, 127.0.0.1:7002]
+Cluster status: running, auto-recovery enabled
+
+Cluster created at DATE
+
+Epoch Time           Version
+DATE      2 [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]
+DATE      1 [127.0.0.1:7000, 127.0.0.1:7001, 127.0.0.1:7002]
+Cluster status: running, auto-recovery enabled
+
+Cluster created at DATE
+
+Epoch Time           Version
+DATE      2 [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]
+DATE      1 [127.0.0.1:7000, 127.0.0.1:7001, 127.0.0.1:7002]
diff --git a/tests/functional/group b/tests/functional/group
index 362f777..c16acc7 100644
--- a/tests/functional/group
+++ b/tests/functional/group
@@ -83,3 +83,4 @@
 067 auto quick cluster
 068 auto quick cluster
 069 auto quick cluster md
+070 auto quick cluster md
-- 
1.8.1.2




More information about the sheepdog mailing list