[sheepdog] [PATCH 1/6] tests: check message order between vdi creation and object recovery

MORITA Kazutaka morita.kazutaka at lab.ntt.co.jp
Tue Sep 4 07:03:43 CEST 2012


Signed-off-by: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>
---
 tests/040     |   33 +++++++++++++++++++++++++++++++++
 tests/040.out |    6 ++++++
 tests/group   |    1 +
 3 files changed, 40 insertions(+), 0 deletions(-)
 create mode 100755 tests/040
 create mode 100644 tests/040.out

diff --git a/tests/040 b/tests/040
new file mode 100755
index 0000000..7dd235e
--- /dev/null
+++ b/tests/040
@@ -0,0 +1,33 @@
+#!/bin/bash
+
+# Test vdi object recovery just after vdi creation
+
+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
+
+_start_sheep 0
+_wait_for_sheep 1
+
+$COLLIE cluster format -c 1
+
+# create vdi in background
+$COLLIE vdi create test 4G &
+
+# the created vdi object will be move from sheep 0 to sheep 1
+_start_sheep 1
+
+# wait for background process
+wait $!
+
+$COLLIE vdi list -p 7000 | _filter_short_date
+$COLLIE vdi list -p 7001 | _filter_short_date
diff --git a/tests/040.out b/tests/040.out
new file mode 100644
index 0000000..489d90e
--- /dev/null
+++ b/tests/040.out
@@ -0,0 +1,6 @@
+QA output created by 040
+using backend farm store
+  Name        Id    Size    Used  Shared    Creation time   VDI id  Copies  Tag
+  test         1  4.0 GB  0.0 MB  0.0 MB DATE   7c2b25     1              
+  Name        Id    Size    Used  Shared    Creation time   VDI id  Copies  Tag
+  test         1  4.0 GB  0.0 MB  0.0 MB DATE   7c2b25     1              
diff --git a/tests/group b/tests/group
index 3b61aca..6f9df67 100644
--- a/tests/group
+++ b/tests/group
@@ -51,3 +51,4 @@
 037 auto quick cluster
 038 auto quick cluster
 039 auto quick vdi
+040 auto quick cluster
-- 
1.7.2.5




More information about the sheepdog mailing list