qa/workunits/mon/caps.sh: fix test

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>
This commit is contained in:
Sage Weil 2019-10-21 21:34:12 -05:00
parent a3578c6899
commit 19984d729f

View File

@ -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