Jörg Thalheim
0d6e2539e3
Revert "clan-cli: deprecate nix_shell() in favor of run_cmd()"
...
This reverts commit 37e6ca7a30 .
2024-07-17 14:04:49 +02:00
DavHau
37e6ca7a30
clan-cli: deprecate nix_shell() in favor of run_cmd()
2024-07-16 14:03:17 +07:00
DavHau
0367fc1e90
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
8ab9d20342
clan-vm-manager: Working pytest skeleton. clan-cli: Fixing devshell depending on itself
2024-03-24 23:36:00 +01:00
Qubasa
3351f87a7f
Removed duplicate logging messages
2024-01-11 22:46:29 +01:00
Qubasa
7dc2c21517
Deleted everything webui
2023-12-14 18:47:14 +01:00
Jörg Thalheim
1496f45fe2
prefix nixpkgs# explicitly in nix_shell
...
This makes the function usage less confusing (you can now tell from the call side what are flags and what is passed to nix-shell) and allows to use different flakes to download packages.
2023-12-08 15:14:14 +01:00
DavHau
ceb6bdd474
clan join: test create vm for clan join
...
This adds a vm create test for the `clan join` scenario where:
- there is no local clan to write changes to
- a machine from a remote flake needs to be built and run
- no users and no secrets need to be or can be managed (no flake to write files to)
2023-10-06 19:15:25 +02:00
DavHau
6a359c0a2f
clan-cli: add git.commit_file() to auto commit files if inside a git
...
- commit only if inside a git repo
- commit only the specified file and nothing else
- auto-generate commit message if not specified
2023-09-21 14:07:54 +02:00
Jörg Thalheim
87f0b090ef
cli: rename clan_flake to test_flake
2023-09-15 12:36:16 +02:00
Jörg Thalheim
02f421546c
rename machine_flake back to clan_flake
2023-09-14 17:06:07 +02:00
Jörg Thalheim
2048ffccb0
drop clan_flake fixture
2023-09-14 16:57:48 +02:00
Jörg Thalheim
4905e0cecd
move machine_flake fixture to its own file
2023-09-14 16:49:02 +02:00
Jörg Thalheim
3bdd3af248
cli: fix nixpkgs unfree import
2023-09-06 17:37:41 +02:00
Jörg Thalheim
4ac91ccdcb
drop clan flake monkeypatch
2023-09-06 16:04:00 +02:00
Jörg Thalheim
fb7c77690a
replace environment variable with nixpkgs directory
...
In this directory we generate all the files that we need to load nixpkgs.
This seems more robust than all those environment variables that may or not may be set.
2023-08-26 11:45:09 +02:00
DavHau
518bf4197f
webui: tests for machine config endpoints
2023-08-26 08:46:53 +02:00
Jörg Thalheim
33b43ae146
add tests for machines api
2023-08-24 19:16:44 +02:00
Jörg Thalheim
2a31b1d65b
add host_group fixture
2023-08-11 16:10:12 +02:00
Jörg Thalheim
a17baa4861
add test for remote ssh commands
2023-08-10 11:05:05 +02:00
Jörg Thalheim
d977499ffe
rename cli tests to have a common suffix
...
rename test_import_sops -> test_import_sops
2023-08-09 15:54:27 +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
d8c2df2e72
add test for import-sops command
2023-08-08 16:28:38 +02:00
Jörg Thalheim
29c711db30
add clan_flake fixture to setup a temporary clan
2023-07-28 12:54:49 +02:00
Jörg Thalheim
5e5fbfcf06
write test for get_clan_flake_toplevel
2023-07-28 10:22:25 +00:00
Jörg Thalheim
df6e94b20e
move environment to helpers module
...
This fixes registering pytest plugins
2023-07-28 10:22:25 +00:00