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:
Gu Zhongyan 2018-03-06 15:40:21 +08:00 committed by Kefu Chai
parent 1f9e54ea00
commit 73e88f7b72

View File

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