Fix some bugs when testing opensds ansible
[stor4nfv.git] / src / ceph / src / test / cli / ceph-authtool / cap.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   $ cat kring
9   [client.admin]
10   \\tkey = [a-zA-Z0-9+/]+=* \(esc\) (re)
11   \tcaps osd = "allow rx pool=swimming" (esc)