diff options
Diffstat (limited to 'tests/data/pgp.lisp')
-rw-r--r-- | tests/data/pgp.lisp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/data/pgp.lisp b/tests/data/pgp.lisp new file mode 100644 index 0000000..21ba60c --- /dev/null +++ b/tests/data/pgp.lisp @@ -0,0 +1,21 @@ +(in-package :consfigurator/tests) +(named-readtables:in-readtable :consfigurator) +(in-consfig "consfigurator/tests") + +(defun populate-data-pgp () + "Invoked by test runner before data source is registered." + (data.pgp:set-data *test-pgp-file* "_secrets" "test" "this is a sekrit") + (data.pgp:set-data *test-pgp-file* "host.example.com" "/etc/foo.conf" + "secret file content")) + +(deftest data.pgp.1 + (data.pgp:get-data *test-pgp-file* "_secrets" "test") + "this is a sekrit") + +(deftest data.pgp.2 + (get-data-string "_secrets" "test") + "this is a sekrit") + +(deftest data.pgp.3 + (get-data-string "host.example.com" "/etc/foo.conf") + "secret file content") |