3 tmp
=/tmp
/cephtest-mon-caps-madness
7 [[ ! -z $TEST_EXIT_ON_ERROR ]] && exit_on_error
=$TEST_EXIT_ON_ERROR
18 if [[ $ret -ne $expected_ret ]]; then
19 echo "Error: Expected return $expected_ret, got $ret"
20 [[ $exit_on_error -eq 1 ]] && exit 1
27 expect
"ceph auth get-or-create client.bazar > $tmp.bazar.keyring" 0
28 expect
"ceph -k $tmp.bazar.keyring --user bazar mon_status" 13
29 ceph auth del client.bazar
31 c
="'allow command \"auth ls\", allow command mon_status'"
32 expect
"ceph auth get-or-create client.foo mon $c > $tmp.foo.keyring" 0
33 expect
"ceph -k $tmp.foo.keyring --user foo mon_status" 0
34 expect
"ceph -k $tmp.foo.keyring --user foo auth ls" 0
35 expect
"ceph -k $tmp.foo.keyring --user foo auth export" 13
36 expect
"ceph -k $tmp.foo.keyring --user foo auth del client.bazar" 13
37 expect
"ceph -k $tmp.foo.keyring --user foo osd dump" 13
38 expect
"ceph -k $tmp.foo.keyring --user foo pg dump" 13
39 expect
"ceph -k $tmp.foo.keyring --user foo quorum_status" 13
40 ceph auth del client.foo
42 c
="'allow command service with prefix=list, allow command mon_status'"
43 expect
"ceph auth get-or-create client.bar mon $c > $tmp.bar.keyring" 0
44 expect
"ceph -k $tmp.bar.keyring --user bar mon_status" 0
45 expect
"ceph -k $tmp.bar.keyring --user bar auth ls" 13
46 expect
"ceph -k $tmp.bar.keyring --user bar auth export" 13
47 expect
"ceph -k $tmp.bar.keyring --user bar auth del client.foo" 13
48 expect
"ceph -k $tmp.bar.keyring --user bar osd dump" 13
49 expect
"ceph -k $tmp.bar.keyring --user bar pg dump" 13
50 expect
"ceph -k $tmp.bar.keyring --user bar quorum_status" 13
51 ceph auth del client.bar
53 rm $tmp.bazar.keyring
$tmp.foo.keyring
$tmp.bar.keyring