]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Adjust clitests after cauthtool changes.
authorTommi Virtanen <tv@hq.newdream.net>
Wed, 12 Jan 2011 19:10:24 +0000 (11:10 -0800)
committerTommi Virtanen <tv@hq.newdream.net>
Wed, 12 Jan 2011 19:10:24 +0000 (11:10 -0800)
src/test/cli/cauthtool/add-key.t
src/test/cli/cauthtool/cap-invalid.t
src/test/cli/cauthtool/cap-overwrite.t
src/test/cli/cauthtool/cap.t
src/test/cli/cauthtool/create-gen-list.t
src/test/cli/cauthtool/list-empty.t
src/test/cli/cauthtool/manpage.t

index 19cf81ce28ce51a9fa243b6316b56cd7cfd6e767..e38326936f1f1e3e4d93d77c0bf21688e8d189f4 100644 (file)
@@ -6,6 +6,6 @@
 
 # cram makes matching escape-containing lines with regexps a bit ugly
   $ cauthtool kring --list
-  client.admin
-  \\t key: AQAK7yxNeF\+nHBAA0SgSdbs8IkJrxroDeJ6SwQ== \(esc\) (re)
-  \\tauid: 18446744073709551615 \(esc\) (re)
+  [client.admin]
+  \tkey = AQAK7yxNeF+nHBAA0SgSdbs8IkJrxroDeJ6SwQ== (esc)
+  \tauid = 18446744073709551615 (esc)
index 3776e3ca522215fed4acdad20f847940a9feab67..e655c205bfe2086fe6c11b6f26672846203988b1 100644 (file)
@@ -3,10 +3,10 @@
 
 # TODO is this nice?
   $ cauthtool --cap osd 'broken' kring
-  $ cauthtool kring --list|grep caps:
-  \tcaps: [osd] broken (esc)
+  $ cauthtool kring --list|grep -P '^\tcaps '
+  \tcaps osd = "broken" (esc)
 
 # TODO is this nice?
   $ cauthtool --cap xyzzy 'broken' kring
-  $ cauthtool kring --list|grep caps:
-  \tcaps: [xyzzy] broken (esc)
+  $ cauthtool kring --list|grep -P '^\tcaps '
+  \tcaps xyzzy = "broken" (esc)
index 7a88298fc70c6ccff35dcba1b26722d5146125a6..f6b46753c2c31fa992d8e19a2a2d2eaa60cca85c 100644 (file)
@@ -2,10 +2,10 @@
   creating kring
 
   $ cauthtool --cap osd 'allow rx pool=swimming' kring
-  $ cauthtool kring --list|grep caps:
-  \tcaps: [osd] allow rx pool=swimming (esc)
+  $ cauthtool kring --list|grep -P '^\tcaps '
+  \tcaps osd = "allow rx pool=swimming" (esc)
 
 # TODO it seems --cap overwrites all previous caps; is this wanted?
   $ cauthtool --cap mds 'allow' kring
-  $ cauthtool kring --list|grep caps:
-  \tcaps: [mds] allow (esc)
+  $ cauthtool kring --list|grep -P '^\tcaps '
+  \tcaps mds = "allow" (esc)
index 0c2d5d3cb85572931b6bea963f2fdcad6f6755dd..7c437c9209f7580207498ce31b916afa519abf96 100644 (file)
@@ -2,5 +2,5 @@
   creating kring
 
   $ cauthtool --cap osd 'allow rx pool=swimming' kring
-  $ cauthtool kring --list|grep caps:
-  \tcaps: [osd] allow rx pool=swimming (esc)
+  $ cauthtool kring --list|grep -P '^\tcaps '
+  \tcaps osd = "allow rx pool=swimming" (esc)
index 67fe0d2021cb98b009f4621743c72b856c6ba588..57ad5befde67bc629a9d80cebb08623d6840b0f3 100644 (file)
@@ -7,12 +7,12 @@
 
 # cram makes matching escape-containing lines with regexps a bit ugly
   $ cauthtool kring --list
-  client.admin
-  \\t key: [a-zA-Z0-9+/]+=* \(esc\) (re)
-  \\tauid: [0-9]{20} \(esc\) (re)
+  [client.admin]
+  \\tkey = [a-zA-Z0-9+/]+=* \(esc\) (re)
+  \\tauid = [0-9]{20} \(esc\) (re)
 
 # synonym
   $ cauthtool kring -l
-  client.admin
-  \\t key: [a-zA-Z0-9+/]+=* \(esc\) (re)
-  \\tauid: [0-9]{20} \(esc\) (re)
+  [client.admin]
+  \\tkey = [a-zA-Z0-9+/]+=* \(esc\) (re)
+  \\tauid = [0-9]{20} \(esc\) (re)
index cbb848c384d9661c1005203816a9a8a5ddef4a90..16fbefa4018e0f87ee4229178e995aafd0dc1870 100644 (file)
@@ -1,13 +1,5 @@
   $ touch empty
 
   $ cauthtool --list empty
-  \d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}\.\d+ [0-9a-f]{12} auth: parse error at line 2: (re)
-  \d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}\.\d+ [0-9a-f]{12} auth:[ ] (re)
-  error reading file empty
-  [1]
 
   $ cauthtool -l empty
-  \d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}\.\d+ [0-9a-f]{12} auth: parse error at line 2: (re)
-  \d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}\.\d+ [0-9a-f]{12} auth:[ ] (re)
-  error reading file empty
-  [1]
index 3417755b1df5b64f1e10528862daa327263764d4..e00a8b127e745fae4aaed955c602f0f41852cd30 100644 (file)
@@ -24,9 +24,9 @@ To associate some capabilities with the key (namely, the ability to mount a Ceph
 To display the contents of the keyring:
 
   $ cauthtool -l keyring.bin
-  client.foo
-  \\t key: [a-zA-Z0-9+/]+=* \(esc\) (re)
-  \\tauid: [0-9]{20} \(esc\) (re)
-  \tcaps: [mds] allow (esc)
-  \tcaps: [mon] allow r (esc)
-  \tcaps: [osd] allow rw pool=data (esc)
+  [client.foo]
+  \\tkey = [a-zA-Z0-9+/]+=* \(esc\) (re)
+  \\tauid = [0-9]{20} \(esc\) (re)
+  \tcaps mds = "allow" (esc)
+  \tcaps mon = "allow r" (esc)
+  \tcaps osd = "allow rw pool=data" (esc)