test: update golden files for ndjson migration
This commit is contained in:
parent
ddb75f1aeb
commit
32e7a79c71
14 changed files with 29 additions and 25 deletions
2
testdata/dump__glob__ok.ct
vendored
2
testdata/dump__glob__ok.ct
vendored
|
|
@ -5,4 +5,4 @@ $ pda dump --glob a*
|
|||
{"key":"a1","value":"1","encoding":"text"}
|
||||
{"key":"a2","value":"2","encoding":"text"}
|
||||
$ pda dump --glob c* --> FAIL
|
||||
Error: No matches for pattern 'c*'
|
||||
Error: cannot ls '@default': No matches for pattern 'c*'
|
||||
|
|
|
|||
2
testdata/get__missing__err.ct
vendored
2
testdata/get__missing__err.ct
vendored
|
|
@ -1,2 +1,2 @@
|
|||
$ pda get foobar --> FAIL
|
||||
Error: cannot get 'foobar': Key not found
|
||||
Error: cannot get 'foobar': No such key
|
||||
|
|
|
|||
8
testdata/get__missing__err__with__any.ct
vendored
8
testdata/get__missing__err__with__any.ct
vendored
|
|
@ -5,10 +5,10 @@ $ pda get foobar --include-binary --run --secret --> FAIL
|
|||
$ pda get foobar --run --> FAIL
|
||||
$ pda get foobar --run --secret --> FAIL
|
||||
$ pda get foobar --secret --> FAIL
|
||||
Error: cannot get 'foobar': Key not found
|
||||
Error: cannot get 'foobar': Key not found
|
||||
Error: cannot get 'foobar': Key not found
|
||||
Error: cannot get 'foobar': No such key
|
||||
Error: cannot get 'foobar': No such key
|
||||
Error: cannot get 'foobar': No such key
|
||||
Error: unknown flag: --secret
|
||||
Error: cannot get 'foobar': Key not found
|
||||
Error: cannot get 'foobar': No such key
|
||||
Error: unknown flag: --secret
|
||||
Error: unknown flag: --secret
|
||||
|
|
|
|||
4
testdata/help__dump__ok.ct
vendored
4
testdata/help__dump__ok.ct
vendored
|
|
@ -1,6 +1,6 @@
|
|||
$ pda help dump
|
||||
$ pda dump --help
|
||||
Dump all key/value pairs as NDJSON
|
||||
Export store as NDJSON (alias for list --format ndjson)
|
||||
|
||||
Usage:
|
||||
pda export [STORE] [flags]
|
||||
|
|
@ -13,7 +13,7 @@ Flags:
|
|||
-g, --glob strings Filter keys with glob pattern (repeatable)
|
||||
--glob-sep string Characters treated as separators for globbing (default "/-_.@: ")
|
||||
-h, --help help for export
|
||||
Dump all key/value pairs as NDJSON
|
||||
Export store as NDJSON (alias for list --format ndjson)
|
||||
|
||||
Usage:
|
||||
pda export [STORE] [flags]
|
||||
|
|
|
|||
6
testdata/help__list__ok.ct
vendored
6
testdata/help__list__ok.ct
vendored
|
|
@ -10,7 +10,8 @@ Aliases:
|
|||
|
||||
Flags:
|
||||
-b, --binary include binary data in text output
|
||||
-o, --format format output format (table|tsv|csv|markdown|html) (default table)
|
||||
-e, --encoding string value encoding for ndjson format: auto, base64, or text (default "auto")
|
||||
-o, --format format output format (table|tsv|csv|markdown|html|ndjson) (default table)
|
||||
-g, --glob strings Filter keys with glob pattern (repeatable)
|
||||
--glob-sep string Characters treated as separators for globbing (default "/-_.@: ")
|
||||
--header include header row
|
||||
|
|
@ -28,7 +29,8 @@ Aliases:
|
|||
|
||||
Flags:
|
||||
-b, --binary include binary data in text output
|
||||
-o, --format format output format (table|tsv|csv|markdown|html) (default table)
|
||||
-e, --encoding string value encoding for ndjson format: auto, base64, or text (default "auto")
|
||||
-o, --format format output format (table|tsv|csv|markdown|html|ndjson) (default table)
|
||||
-g, --glob strings Filter keys with glob pattern (repeatable)
|
||||
--glob-sep string Characters treated as separators for globbing (default "/-_.@: ")
|
||||
--header include header row
|
||||
|
|
|
|||
4
testdata/help__ok.ct
vendored
4
testdata/help__ok.ct
vendored
|
|
@ -22,7 +22,7 @@ Key commands:
|
|||
set Set a key to a given value
|
||||
|
||||
Store commands:
|
||||
export Dump all key/value pairs as NDJSON
|
||||
export Export store as NDJSON (alias for list --format ndjson)
|
||||
import Restore key/value pairs from an NDJSON dump
|
||||
list-stores List all stores
|
||||
remove-store Delete a store
|
||||
|
|
@ -63,7 +63,7 @@ Key commands:
|
|||
set Set a key to a given value
|
||||
|
||||
Store commands:
|
||||
export Dump all key/value pairs as NDJSON
|
||||
export Export store as NDJSON (alias for list --format ndjson)
|
||||
import Restore key/value pairs from an NDJSON dump
|
||||
list-stores List all stores
|
||||
remove-store Delete a store
|
||||
|
|
|
|||
2
testdata/help__restore__ok.ct
vendored
2
testdata/help__restore__ok.ct
vendored
|
|
@ -9,6 +9,7 @@ Aliases:
|
|||
import, restore
|
||||
|
||||
Flags:
|
||||
--drop Drop existing entries before restoring (full replace)
|
||||
-f, --file string Path to an NDJSON dump (defaults to stdin)
|
||||
-g, --glob strings Restore keys matching glob pattern (repeatable)
|
||||
--glob-sep string Characters treated as separators for globbing (default "/-_.@: ")
|
||||
|
|
@ -23,6 +24,7 @@ Aliases:
|
|||
import, restore
|
||||
|
||||
Flags:
|
||||
--drop Drop existing entries before restoring (full replace)
|
||||
-f, --file string Path to an NDJSON dump (defaults to stdin)
|
||||
-g, --glob strings Restore keys matching glob pattern (repeatable)
|
||||
--glob-sep string Characters treated as separators for globbing (default "/-_.@: ")
|
||||
|
|
|
|||
4
testdata/remove__dedupe__ok.ct
vendored
4
testdata/remove__dedupe__ok.ct
vendored
|
|
@ -10,6 +10,6 @@ $ pda ls
|
|||
foo 1
|
||||
$ pda rm foo --glob "*"
|
||||
$ pda get bar --> FAIL
|
||||
Error: cannot get 'bar': Key not found
|
||||
Error: cannot get 'bar': No such key
|
||||
$ pda get foo --> FAIL
|
||||
Error: cannot get 'foo': Key not found
|
||||
Error: cannot get 'foo': No such key
|
||||
|
|
|
|||
6
testdata/remove__glob__mixed__ok.ct
vendored
6
testdata/remove__glob__mixed__ok.ct
vendored
|
|
@ -3,8 +3,8 @@ $ pda set bar1 2
|
|||
$ pda set bar2 3
|
||||
$ pda rm foo --glob bar*
|
||||
$ pda get foo --> FAIL
|
||||
Error: cannot get 'foo': Key not found
|
||||
Error: cannot get 'foo': No such key
|
||||
$ pda get bar1 --> FAIL
|
||||
Error: cannot get 'bar1': Key not found
|
||||
Error: cannot get 'bar1': No such key
|
||||
$ pda get bar2 --> FAIL
|
||||
Error: cannot get 'bar2': Key not found
|
||||
Error: cannot get 'bar2': No such key
|
||||
|
|
|
|||
4
testdata/remove__glob__ok.ct
vendored
4
testdata/remove__glob__ok.ct
vendored
|
|
@ -3,8 +3,8 @@ $ pda set a2 2
|
|||
$ pda set b1 3
|
||||
$ pda rm --glob a*
|
||||
$ pda get a1 --> FAIL
|
||||
Error: cannot get 'a1': Key not found
|
||||
Error: cannot get 'a1': No such key. Did you mean 'b1'?
|
||||
$ pda get a2 --> FAIL
|
||||
Error: cannot get 'a2': Key not found
|
||||
Error: cannot get 'a2': No such key
|
||||
$ pda get b1
|
||||
3
|
||||
|
|
|
|||
4
testdata/remove__multiple__ok.ct
vendored
4
testdata/remove__multiple__ok.ct
vendored
|
|
@ -2,6 +2,6 @@ $ pda set a 1
|
|||
$ pda set b 2
|
||||
$ pda rm a b
|
||||
$ pda get a --> FAIL
|
||||
Error: cannot get 'a': Key not found
|
||||
Error: cannot get 'a': No such key
|
||||
$ pda get b --> FAIL
|
||||
Error: cannot get 'b': Key not found
|
||||
Error: cannot get 'b': No such key. Did you mean 'b1'?
|
||||
|
|
|
|||
2
testdata/restore__glob__ok.ct
vendored
2
testdata/restore__glob__ok.ct
vendored
|
|
@ -10,6 +10,6 @@ $ pda get a1
|
|||
$ pda get a2
|
||||
2
|
||||
$ pda get b1 --> FAIL
|
||||
Error: cannot get 'b1': Key not found
|
||||
Error: cannot get 'b1': No such key. Did you mean 'a1'?
|
||||
$ pda restore --glob c* --file dumpfile --> FAIL
|
||||
Error: cannot restore '@default': No matches for pattern 'c*'
|
||||
|
|
|
|||
2
testdata/root__ok.ct
vendored
2
testdata/root__ok.ct
vendored
|
|
@ -21,7 +21,7 @@ Key commands:
|
|||
set Set a key to a given value
|
||||
|
||||
Store commands:
|
||||
export Dump all key/value pairs as NDJSON
|
||||
export Export store as NDJSON (alias for list --format ndjson)
|
||||
import Restore key/value pairs from an NDJSON dump
|
||||
list-stores List all stores
|
||||
remove-store Delete a store
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue