Plaintext keyring format is supposed to be user-friendly, so test it.

This commit is contained in:
Tommi Virtanen 2011-01-14 15:01:11 -08:00
parent 0d0e03e02c
commit 1d7460a96a
3 changed files with 16 additions and 0 deletions

View File

@ -9,3 +9,8 @@
[client.admin]
\tkey = AQAK7yxNeF+nHBAA0SgSdbs8IkJrxroDeJ6SwQ== (esc)
\tauid = 18446744073709551615 (esc)
$ cat kring
[client.admin]
\tkey = AQAK7yxNeF+nHBAA0SgSdbs8IkJrxroDeJ6SwQ== (esc)
\tauid = 18446744073709551615 (esc)

View File

@ -4,3 +4,9 @@
$ cauthtool --cap osd 'allow rx pool=swimming' kring
$ cauthtool kring --list|grep -P '^\tcaps '
\tcaps osd = "allow rx pool=swimming" (esc)
$ cat kring
[client.admin]
\\tkey = [a-zA-Z0-9+/]+=* \(esc\) (re)
\\tauid = [0-9]{20} \(esc\) (re)
\tcaps osd = "allow rx pool=swimming" (esc)

View File

@ -16,3 +16,8 @@
[client.admin]
\\tkey = [a-zA-Z0-9+/]+=* \(esc\) (re)
\\tauid = [0-9]{20} \(esc\) (re)
$ cat kring
[client.admin]
\\tkey = [a-zA-Z0-9+/]+=* \(esc\) (re)
\\tauid = [0-9]{20} \(esc\) (re)