DavHau
629861d404
tests: improve testing framework for impure vm tests
...
Also fix computet sops secret paths for vars
2024-08-04 13:40:12 +07:00
DavHau
e22ec9ea5a
clan-cli/tests: improve test helpers for VMs
2024-08-03 15:26:53 +07:00
DavHau
4898706480
clan-cli: simplify cli helper
2024-07-10 18:14:06 +07:00
DavHau
336e99b2a7
clan-cli tests: remove dynamic inclusion of helpers module
...
Dynamically extending the python path at runtime is bad for developer experience, as this is not understood by the text editor and therefore jump to definition etc. does not work.
-> Better to remove the dynamic inclusion and force developers to specify the import correctly.
2024-07-05 16:38:22 +07:00
Qubasa
642b60cd98
clan-cli: Acutally test SecretStore for age and password-store.
2024-06-24 21:41:16 +02:00
Qubasa
f087f527cc
Removed duplicate logging messages
2024-01-11 22:46:29 +01:00
Qubasa
a98463e3b9
Enabled logging DEBUG in pytest
2024-01-11 22:14:55 +01:00
Jörg Thalheim
7d755beca6
enable more linting
2023-11-29 13:29:45 +00:00
lassulus
082d628497
clan_cli: flake_name -> flake_dir
2023-11-15 16:23:28 +01:00
lassulus
efafe6f0e3
clan-cli secrets: flake_name -> flake_dir
2023-11-05 16:58:48 +01:00
Qubasa
9c8829c32f
nix fmt
2023-10-27 19:19:45 +02:00
Qubasa
6d0deefa6b
Added ipdb as breakpoint console. Improved logging.
2023-10-27 19:19:45 +02:00
Qubasa
d96ea61243
Secrets tests passing. nix fmt doesn't complain
2023-10-27 19:18:45 +02:00
Qubasa
1631dc631b
Improved test logging with frame inspection
2023-10-27 19:18:45 +02:00
Qubasa
7bbadaa60f
Fixed cyclic dependencie AND swapped pytest-parallel for pytest-xdist to fix deadlock in tests
2023-10-27 19:18:45 +02:00
Jörg Thalheim
672e760e2a
replace mock_env with monkeypatch
2023-08-26 11:45:09 +02:00
Jörg Thalheim
d600a927ea
tests: generalize secret cli parser to work for all cli commands
2023-08-24 18:28:33 +02:00
Jörg Thalheim
68905fc233
don't add user to a secret if they already can access the secret
...
If the user is part of a group we don't need to add them explicitly
2023-08-09 10:17:30 +02:00
Jörg Thalheim
df6e94b20e
move environment to helpers module
...
This fixes registering pytest plugins
2023-07-28 10:22:25 +00:00