From: Gu Zhongyan Date: Tue, 6 Mar 2018 07:40:21 +0000 (+0800) Subject: qa/workunits: add auth caps allow command case X-Git-Tag: v15.1.0~2366^2~1 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=73e88f7b72c45c98f4133e95e6439733efade4f0;p=ceph.git 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 --- diff --git a/qa/workunits/cephtool/test.sh b/qa/workunits/cephtool/test.sh index ad6aa6c1bcdbd..f03391362e67d 100755 --- a/qa/workunits/cephtool/test.sh +++ b/qa/workunits/cephtool/test.sh @@ -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