]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/workunits/mon/pool_ops.sh: fix test 1546/head
authorSage Weil <sage@inktank.com>
Thu, 27 Mar 2014 19:57:40 +0000 (12:57 -0700)
committerSage Weil <sage@inktank.com>
Thu, 27 Mar 2014 19:57:40 +0000 (12:57 -0700)
The pool create command doesn't take k/v pairs any more.

Signed-off-by: Sage Weil <sage@inktank.com>
qa/workunits/mon/pool_ops.sh

index f6f364f9aa5fc503c1b93bfc0497e17eba4a49a2..b19dbd167cc3574ec66c864cdd81509a32d498ef 100755 (executable)
@@ -8,9 +8,14 @@ function expect_false()
        if "$@"; then return 1; else return 0; fi
 }
 
-expect_false ceph osd pool create foo 123 123 key1=+++
-ceph osd pool create foo 123 123 key1=value1 key2 key3=value3
-ceph osd pool create fooo 123
+# note: we need to pass the other args or ceph_argparse.py will take
+# 'invalid' that is not replicated|erasure and assume it is the next
+# argument, which is a string.
+expect_false ceph osd pool create foo 123 123 invalid foo-profile foo-ruleset
+
+ceph osd pool create foo 123 123 replicated
+ceph osd pool create fooo 123 123 erasure default
+ceph osd pool create foooo 123
 
 ceph osd pool create foo 123 # idempotent
 
@@ -27,6 +32,7 @@ expect_false ceph osd pool delete foo foo --force
 expect_false ceph osd pool delete foo fooo --yes-i-really-mean-it
 expect_false ceph osd pool delete foo --yes-i-really-mean-it foo
 
+ceph osd pool delete foooo foooo --yes-i-really-really-mean-it
 ceph osd pool delete fooo fooo --yes-i-really-really-mean-it
 ceph osd pool delete foo foo --yes-i-really-really-mean-it