test(get): ERR on missing key
This commit is contained in:
parent
63f68259bb
commit
2bf9d7ab6e
2 changed files with 118 additions and 0 deletions
14
testdata/get__missing__err.ct
vendored
Normal file
14
testdata/get__missing__err.ct
vendored
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
$ pda get foobar --> FAIL
|
||||||
|
Error: Key not found
|
||||||
|
Usage:
|
||||||
|
pda get KEY[@DB] [flags]
|
||||||
|
|
||||||
|
Aliases:
|
||||||
|
get, g
|
||||||
|
|
||||||
|
Flags:
|
||||||
|
-h, --help help for get
|
||||||
|
-b, --include-binary include binary data in text output
|
||||||
|
--no-template directly output template syntax
|
||||||
|
-c, --run execute the result as a shell command
|
||||||
|
--secret display values marked as secret
|
||||||
104
testdata/get__missing__err__with__any.ct
vendored
Normal file
104
testdata/get__missing__err__with__any.ct
vendored
Normal file
|
|
@ -0,0 +1,104 @@
|
||||||
|
$ pda get foobar --> FAIL
|
||||||
|
$ pda get foobar --include-binary --> FAIL
|
||||||
|
$ pda get foobar --include-binary --run --> FAIL
|
||||||
|
$ 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: Key not found
|
||||||
|
Usage:
|
||||||
|
pda get KEY[@DB] [flags]
|
||||||
|
|
||||||
|
Aliases:
|
||||||
|
get, g
|
||||||
|
|
||||||
|
Flags:
|
||||||
|
-h, --help help for get
|
||||||
|
-b, --include-binary include binary data in text output
|
||||||
|
--no-template directly output template syntax
|
||||||
|
-c, --run execute the result as a shell command
|
||||||
|
--secret display values marked as secret
|
||||||
|
|
||||||
|
Error: Key not found
|
||||||
|
Usage:
|
||||||
|
pda get KEY[@DB] [flags]
|
||||||
|
|
||||||
|
Aliases:
|
||||||
|
get, g
|
||||||
|
|
||||||
|
Flags:
|
||||||
|
-h, --help help for get
|
||||||
|
-b, --include-binary include binary data in text output
|
||||||
|
--no-template directly output template syntax
|
||||||
|
-c, --run execute the result as a shell command
|
||||||
|
--secret display values marked as secret
|
||||||
|
|
||||||
|
Error: Key not found
|
||||||
|
Usage:
|
||||||
|
pda get KEY[@DB] [flags]
|
||||||
|
|
||||||
|
Aliases:
|
||||||
|
get, g
|
||||||
|
|
||||||
|
Flags:
|
||||||
|
-h, --help help for get
|
||||||
|
-b, --include-binary include binary data in text output
|
||||||
|
--no-template directly output template syntax
|
||||||
|
-c, --run execute the result as a shell command
|
||||||
|
--secret display values marked as secret
|
||||||
|
|
||||||
|
Error: Key not found
|
||||||
|
Usage:
|
||||||
|
pda get KEY[@DB] [flags]
|
||||||
|
|
||||||
|
Aliases:
|
||||||
|
get, g
|
||||||
|
|
||||||
|
Flags:
|
||||||
|
-h, --help help for get
|
||||||
|
-b, --include-binary include binary data in text output
|
||||||
|
--no-template directly output template syntax
|
||||||
|
-c, --run execute the result as a shell command
|
||||||
|
--secret display values marked as secret
|
||||||
|
|
||||||
|
Error: Key not found
|
||||||
|
Usage:
|
||||||
|
pda get KEY[@DB] [flags]
|
||||||
|
|
||||||
|
Aliases:
|
||||||
|
get, g
|
||||||
|
|
||||||
|
Flags:
|
||||||
|
-h, --help help for get
|
||||||
|
-b, --include-binary include binary data in text output
|
||||||
|
--no-template directly output template syntax
|
||||||
|
-c, --run execute the result as a shell command
|
||||||
|
--secret display values marked as secret
|
||||||
|
|
||||||
|
Error: Key not found
|
||||||
|
Usage:
|
||||||
|
pda get KEY[@DB] [flags]
|
||||||
|
|
||||||
|
Aliases:
|
||||||
|
get, g
|
||||||
|
|
||||||
|
Flags:
|
||||||
|
-h, --help help for get
|
||||||
|
-b, --include-binary include binary data in text output
|
||||||
|
--no-template directly output template syntax
|
||||||
|
-c, --run execute the result as a shell command
|
||||||
|
--secret display values marked as secret
|
||||||
|
|
||||||
|
Error: Key not found
|
||||||
|
Usage:
|
||||||
|
pda get KEY[@DB] [flags]
|
||||||
|
|
||||||
|
Aliases:
|
||||||
|
get, g
|
||||||
|
|
||||||
|
Flags:
|
||||||
|
-h, --help help for get
|
||||||
|
-b, --include-binary include binary data in text output
|
||||||
|
--no-template directly output template syntax
|
||||||
|
-c, --run execute the result as a shell command
|
||||||
|
--secret display values marked as secret
|
||||||
Loading…
Add table
Add a link
Reference in a new issue