lockbox

password manager
Log | Files | Refs | README | LICENSE

commit 62e65efb17e5f0f0b70cef5c31124676b197cc90
parent b2855b0fefaca3c53e1cf74559ebbeef5675c6f3
Author: Sean Enck <sean@ttypty.com>
Date:   Sun,  8 Dec 2024 11:26:10 -0500

test vars

Diffstat:
Mtests/expected.log | 13+++++++++++++
Mtests/main.go | 3+++
2 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/tests/expected.log b/tests/expected.log @@ -167,3 +167,16 @@ no store set keys/k/one2 Abc bb +'] +LOCKBOX_CLIP_COPY_COMMAND=[touch testdata/datadir/clip.copy] +LOCKBOX_CLIP_PASTE_COMMAND=[touch testdata/datadir/clip.paste] +LOCKBOX_CLIP_TIMEOUT=3 +LOCKBOX_INTERACTIVE=false +LOCKBOX_JSON_HASH_LENGTH=3 +LOCKBOX_JSON_MODE=hash +LOCKBOX_PWGEN_CHARACTERS=b +LOCKBOX_PWGEN_TEMPLATE={{range $idx, $val := .}}{{if lt $val.Position.End 5}}{{ $val.Text }}{{end}}{{end}} +LOCKBOX_PWGEN_TITLE=false +LOCKBOX_PWGEN_WORDS_COMMAND=[/bin/sh -c echo abc abc | tr ' ' ' +LOCKBOX_PWGEN_WORD_COUNT=2 +LOCKBOX_STORE=testdata/datadir/pass.kdbx diff --git a/tests/main.go b/tests/main.go @@ -330,6 +330,9 @@ func test(profile string) error { r.writeConfig(c) r.run("", "pwgen") + // what is env + r.run("", fmt.Sprintf("var | sed 's#/%s#/datadir#g' | grep -v CREDENTIALS | sort", profile)) + // cleanup and diff results tmpFile := fmt.Sprintf("%s.tmp", r.log) for _, item := range []string{"'s/\"modtime\": \"[0-9].*$/\"modtime\": \"XXXX-XX-XX\",/g'", "'s/^[0-9][0-9][0-9][0-9][0-9][0-9]$/XXXXXX/g'"} {