]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
qa/workunits/mon/auth_caps.sh: remove tests for blank cap
authorKefu Chai <kchai@redhat.com>
Mon, 19 Jun 2017 03:19:01 +0000 (11:19 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 19 Jun 2017 04:58:17 +0000 (12:58 +0800)
* remove tests for blank cap: this feature is not supported/implemented by AuthMonitor.
* remove cap for client.baz after done with it. so we don't have error
  like: "entity client.baz exists but caps do not match" when trying to
  re-set the cap of it.

Signed-off-by: Kefu Chai <kchai@redhat.com>
qa/workunits/mon/auth_caps.sh

index 43d5747ce2df6d4d90cf49f3e692dcc627d627e0..6c282c4b762c49511d71dc42a63a8490dfe13653 100755 (executable)
@@ -13,7 +13,6 @@ for i in ${combinations}; do
 done
 
 # add special caps
-keymap["blank"]=`ceph auth get-or-create-key client.blank mon 'allow'` || exit 1
 keymap["all"]=`ceph auth get-or-create-key client.all mon 'allow *'` || exit 1
 
 tmp=`mktemp`
@@ -101,10 +100,10 @@ write_ops() {
   expect $ret ceph auth add client.foo $args
   expect $ret "ceph auth caps client.foo mon 'allow *' $args"
   expect $ret ceph auth get-or-create client.admin $args
-  expect $ret "ceph auth get-or-create client.bar mon 'allow' $args"
   expect $ret ceph auth get-or-create-key client.admin $args
   expect $ret ceph auth get-or-create-key client.baz $args
   expect $ret ceph auth del client.foo $args
+  expect $ret ceph auth del client.baz $args
   expect $ret ceph auth import -i $tmp $args
 }
 
@@ -124,7 +123,7 @@ for i in ${!keymap[@]}; do
 done
 
 # cleanup
-for i in ${combinations} blank all; do
+for i in ${combinations} all; do
   ceph auth del client.$i || exit 1
 done