X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fceph%2Fqa%2Fworkunits%2Frados%2Ftest_pool_access.sh;fp=src%2Fceph%2Fqa%2Fworkunits%2Frados%2Ftest_pool_access.sh;h=0000000000000000000000000000000000000000;hb=7da45d65be36d36b880cc55c5036e96c24b53f00;hp=8597b7147c88da8efc5395a17ed0e9ce3f295ade;hpb=691462d09d0987b47e112d6ee8740375df3c51b2;p=stor4nfv.git diff --git a/src/ceph/qa/workunits/rados/test_pool_access.sh b/src/ceph/qa/workunits/rados/test_pool_access.sh deleted file mode 100755 index 8597b71..0000000 --- a/src/ceph/qa/workunits/rados/test_pool_access.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/bash -x - -set -e - -expect_1() -{ - set -x - set +e - "$@" - if [ $? == 1 ]; then return 0; else return 1; fi -} - - -key=`ceph auth get-or-create-key client.poolaccess1 mon 'allow r' osd 'allow *'` -rados --id poolaccess1 --key $key -p rbd ls - -key=`ceph auth get-or-create-key client.poolaccess2 mon 'allow r' osd 'allow * pool=nopool'` -expect_1 rados --id poolaccess2 --key $key -p rbd ls - -key=`ceph auth get-or-create-key client.poolaccess3 mon 'allow r' osd 'allow rw pool=nopool'` -expect_1 rados --id poolaccess3 --key $key -p rbd ls - -echo OK