mirror of
https://github.com/ceph/ceph
synced 2025-02-21 18:17:42 +00:00
tests/ceph-authtool: add reproducer for "with 0 caps" issue
Signed-off-by: Nathan Cutler <ncutler@suse.com>
This commit is contained in:
parent
b8c78bd44e
commit
aef4fc8786
@ -2,7 +2,7 @@
|
||||
creating kring
|
||||
|
||||
$ ceph-authtool kring --add-key 'AQAK7yxNeF+nHBAA0SgSdbs8IkJrxroDeJ6SwQ== 18446744073709551615'
|
||||
added entity client.admin auth auth(key=AQAK7yxNeF+nHBAA0SgSdbs8IkJrxroDeJ6SwQ== with 0 caps)
|
||||
added entity client.admin auth(key=AQAK7yxNeF+nHBAA0SgSdbs8IkJrxroDeJ6SwQ==)
|
||||
|
||||
# cram makes matching escape-containing lines with regexps a bit ugly
|
||||
$ ceph-authtool kring --list
|
||||
@ -18,3 +18,10 @@ Test --add-key with empty argument
|
||||
$ ceph-authtool kring -C --name=mon.* --add-key= --cap mon 'allow *'
|
||||
Option --add-key requires an argument
|
||||
[1]
|
||||
|
||||
$ ceph-authtool test.keyring --create-keyring --mode 0644
|
||||
creating test.keyring
|
||||
|
||||
$ ceph-authtool test.keyring --name client.test --cap osd 'allow rwx' --cap mon 'allow r' --add-key 'AQAK7yxNeF+nHBAA0SgSdbs8IkJrxroDeJ6SwQ== 18446744073709551615'
|
||||
added entity client.test auth(key=AQAK7yxNeF+nHBAA0SgSdbs8IkJrxroDeJ6SwQ==)
|
||||
added 2 caps to entity client.test
|
||||
|
Loading…
Reference in New Issue
Block a user