]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/workunits/mon/caps.sh: fix test
authorSage Weil <sage@redhat.com>
Tue, 22 Oct 2019 02:34:12 +0000 (21:34 -0500)
committerSage Weil <sage@redhat.com>
Tue, 22 Oct 2019 02:43:43 +0000 (21:43 -0500)
I'm not really sure why this test expected EPERM before when it expects 0
a bit earlier, but it should certainly expect EPERM after the user is
deleted.

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

index 5ccbcf036bec632b69d74500f57aa03bae1b64bd..eae5d866534f59c96ebd959140d62f4eb0004550 100755 (executable)
@@ -54,8 +54,8 @@ export CEPH_ARGS='--rados-mon-op-timeout=300'
 expect "ceph -k $tmp.foo.keyring --user foo pg dump" $ETIMEDOUT
 export CEPH_ARGS=''
 
-expect "ceph -k $tmp.foo.keyring --user foo quorum_status" 13
 ceph auth del client.foo
+expect "ceph -k $tmp.foo.keyring --user foo quorum_status" 13
 
 c="'allow command service with prefix=list, allow command quorum_status'"
 expect "ceph auth get-or-create client.bar mon $c > $tmp.bar.keyring" 0
@@ -70,8 +70,8 @@ export CEPH_ARGS='--rados-mon-op-timeout=300'
 expect "ceph -k $tmp.bar.keyring --user bar pg dump" $ETIMEDOUT
 export CEPH_ARGS=''
 
-expect "ceph -k $tmp.bar.keyring --user bar quorum_status" 13
 ceph auth del client.bar
+expect "ceph -k $tmp.bar.keyring --user bar quorum_status" 13
 
 rm $tmp.bazar.keyring $tmp.foo.keyring $tmp.bar.keyring