Fix some bugs when testing opensds ansible
[stor4nfv.git] / src / ceph / src / test / cli / ceph-authtool / cap-overwrite.t
1   $ ceph-authtool kring --create-keyring --gen-key
2   creating kring
3
4   $ ceph-authtool --cap osd 'allow rx pool=swimming' kring
5   $ ceph-authtool kring --list|grep -E '^[[:space:]]caps '
6   \tcaps osd = "allow rx pool=swimming" (esc)
7
8 # TODO it seems --cap overwrites all previous caps; is this wanted?
9   $ ceph-authtool --cap mds 'allow' kring
10   $ ceph-authtool kring --list|grep -E '^[[:space:]]caps '
11   \tcaps mds = "allow" (esc)