Commit Graph

19 Commits

Author SHA1 Message Date
DavHau
cc8f99d06c 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