summaryrefslogtreecommitdiffstats
path: root/src/test/cli/ceph-authtool/cap.t
blob: b9748d9af111fc09b3a4bb7918bea42fa30dc6ea (plain)
1
2
3
4
5
6
7
8
9
10
11
  $ ceph-authtool kring --create-keyring --gen-key --mode 0644
  creating kring

  $ ceph-authtool --cap osd 'allow rx pool=swimming' kring
  $ ceph-authtool kring --list|grep -E '^[[:space:]]caps '
  \tcaps osd = "allow rx pool=swimming" (esc)

  $ cat kring
  [client.admin]
  \\tkey = [a-zA-Z0-9+/]+=* \(esc\) (re)
  \tcaps osd = "allow rx pool=swimming" (esc)