secret cli: accept a pattern in secrets list

This commit is contained in:
Jörg Thalheim
2024-02-22 14:21:17 +01:00
parent 92ca61760e
commit dd98cac94e
2 changed files with 31 additions and 3 deletions

View File

@@ -275,6 +275,14 @@ def test_secrets(
cli.run(["--flake", str(test_flake.path), "secrets", "list"])
assert capsys.readouterr().out == "key\n"
capsys.readouterr() # empty the buffer
cli.run(["--flake", str(test_flake.path), "secrets", "list", "nonexisting"])
assert capsys.readouterr().out == ""
capsys.readouterr() # empty the buffer
cli.run(["--flake", str(test_flake.path), "secrets", "list", "key"])
assert capsys.readouterr().out == "key\n"
cli.run(
[
"--flake",