]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: simple tests for 'ceph osd create|rm' commands
authorSage Weil <sage@inktank.com>
Fri, 20 Jul 2012 05:04:29 +0000 (22:04 -0700)
committerSage Weil <sage@inktank.com>
Fri, 27 Jul 2012 17:43:26 +0000 (10:43 -0700)
Signed-off-by: Sage Weil <sage@inktank.com>
qa/workunits/mon/osd.sh [new file with mode: 0755]

diff --git a/qa/workunits/mon/osd.sh b/qa/workunits/mon/osd.sh
new file mode 100755 (executable)
index 0000000..d5878b3
--- /dev/null
@@ -0,0 +1,24 @@
+#!/bin/sh -x
+
+set -e
+
+ua=`uuidgen`
+ub=`uuidgen`
+
+# shoudl get same id with same uuid
+na=`ceph osd create $ua`
+test $na -eq `ceph osd create $ua`
+
+nb=`ceph osd create $ub`
+test $nb -eq `ceph osd create $ub`
+test $nb -ne $na
+
+ceph osd rm $na
+ceph osd rm $na
+ceph osd rm $nb
+ceph osd rm 123123
+
+na2=`ceph osd create $ua`
+
+echo OK
+