summaryrefslogtreecommitdiffstats
path: root/qa
diff options
context:
space:
mode:
Diffstat (limited to 'qa')
-rwxr-xr-xqa/workunits/mon/osd.sh24
-rwxr-xr-xqa/workunits/mon/pool_ops.sh20
2 files changed, 44 insertions, 0 deletions
diff --git a/qa/workunits/mon/osd.sh b/qa/workunits/mon/osd.sh
new file mode 100755
index 00000000000..d5878b3fef7
--- /dev/null
+++ b/qa/workunits/mon/osd.sh
@@ -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
+
diff --git a/qa/workunits/mon/pool_ops.sh b/qa/workunits/mon/pool_ops.sh
new file mode 100755
index 00000000000..e85c0f65bdc
--- /dev/null
+++ b/qa/workunits/mon/pool_ops.sh
@@ -0,0 +1,20 @@
+#!/bin/sh -x
+
+set -e
+
+ceph osd pool create foo 123 123
+ceph osd pool create fooo 123
+ceph osd pool create foooo
+
+ceph osd pool create foo # idempotent
+
+ceph osd pool delete foo
+ceph osd pool delete foo
+ceph osd pool delete fuggg
+
+ceph osd pool delete fooo
+ceph osd pool delete foooo
+
+echo OK
+
+