From 2bf9d7ab6e2f7df54aa540e05c2040ae7c4c8e88 Mon Sep 17 00:00:00 2001 From: lew Date: Thu, 20 Nov 2025 14:41:27 +0000 Subject: [PATCH] test(get): ERR on missing key --- testdata/get__missing__err.ct | 14 +++ testdata/get__missing__err__with__any.ct | 104 +++++++++++++++++++++++ 2 files changed, 118 insertions(+) create mode 100644 testdata/get__missing__err.ct create mode 100644 testdata/get__missing__err__with__any.ct diff --git a/testdata/get__missing__err.ct b/testdata/get__missing__err.ct new file mode 100644 index 0000000..92ac16e --- /dev/null +++ b/testdata/get__missing__err.ct @@ -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 diff --git a/testdata/get__missing__err__with__any.ct b/testdata/get__missing__err__with__any.ct new file mode 100644 index 0000000..e178f4c --- /dev/null +++ b/testdata/get__missing__err__with__any.ct @@ -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