]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/workunits: add auth caps allow command case
authorGu Zhongyan <guzhongyan@360.cn>
Tue, 6 Mar 2018 07:40:21 +0000 (15:40 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 25 Jun 2019 07:10:07 +0000 (15:10 +0800)
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>
qa/workunits/cephtool/test.sh

index ad6aa6c1bcdbddab56328bea9d4f113ab5200c7f..f03391362e67d9dc9d7659c1615eef49f74d8948 100755 (executable)
@@ -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