mirror of
https://github.com/ceph/ceph
synced 2025-02-23 02:57:21 +00:00
qa/workunits: add auth caps allow command case
this case introduces multiple quotes in caps line it will trigger the bug like http://tracker.ceph.com/issues/22227 Signed-off-by: Gu Zhongyan <guzhongyan@360.cn>
This commit is contained in:
parent
1f9e54ea00
commit
73e88f7b72
@ -603,9 +603,12 @@ function test_auth()
|
||||
ceph auth caps client.xx osd "allow rw"
|
||||
expect_false sh <<< "ceph auth get client.xx | grep caps | grep mon"
|
||||
ceph auth get client.xx | grep osd | grep "allow rw"
|
||||
ceph auth caps client.xx mon 'allow command "osd tree"'
|
||||
ceph auth export | grep client.xx
|
||||
ceph auth export -o authfile
|
||||
ceph auth import -i authfile
|
||||
ceph auth import -i authfile 2>$TMPFILE
|
||||
check_response "imported keyring"
|
||||
|
||||
ceph auth export -o authfile2
|
||||
diff authfile authfile2
|
||||
rm authfile authfile2
|
||||
|
Loading…
Reference in New Issue
Block a user