summaryrefslogtreecommitdiffstats
path: root/src/test/cli/ceph-authtool/cap-overwrite.t
blob: 9bc5b07ea882452e70f25230060193d38578e063 (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)

# TODO it seems --cap overwrites all previous caps; is this wanted?
  $ ceph-authtool --cap mds 'allow' kring
  $ ceph-authtool kring --list|grep -E '^[[:space:]]caps '
  \tcaps mds = "allow" (esc)