Qubasa
d69b8920d1
Fixing test_vms_api test
2023-10-27 19:26:03 +02:00
Qubasa
750b4b6b7e
Fixing test_vms_api test
2023-10-27 19:26:03 +02:00
Qubasa
3aed7b834f
Commit only for debugging Container
2023-10-27 19:26:03 +02:00
Qubasa
5bd2345bc1
Commit only for debugging Container
2023-10-27 19:26:03 +02:00
Qubasa
ddf502b229
nix fmt
2023-10-27 19:26:03 +02:00
Qubasa
768b567f21
nix fmt
2023-10-27 19:26:03 +02:00
Qubasa
916fa8e570
All tests passing babyyy !!
2023-10-27 19:26:03 +02:00
Qubasa
0be3dac289
nix fmt
2023-10-27 19:21:50 +02:00
Qubasa
8ff80b025c
Fixing a multitude of tests
2023-10-27 19:21:50 +02:00
Qubasa
adffdc14f6
Added repro_env_break debugging command. This spawn a terminal inside the temp home folder with the same environment as the python test
2023-10-27 19:20:17 +02:00
Qubasa
950808498f
Working test_create_flake
2023-10-27 19:20:17 +02:00
Qubasa
3dc7d12e9c
Added ref to Qubasa-main in template/new-clan/flake.nix
2023-10-27 19:20:17 +02:00
Qubasa
8e9034ad02
Added clanName argument to clan-core.lib.builClan
2023-10-27 19:20:17 +02: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
0ab2b853f2
Improved logging messages. Added ClanError if flake create or machine create already exist
2023-10-27 19:18: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
Qubasa
ecdd4949b7
Added new type FlakeName
2023-10-27 19:18:45 +02:00
Qubasa
f976121fa6
Added flake_name:str argument everywhere, nix fmt doesn't complain anymore
2023-10-27 19:15:40 +02:00
Qubasa
b09448ab6b
Updated to main
2023-10-27 19:15:11 +02:00
Qubasa
2ad87785c0
Added state directory.
2023-10-27 19:11:27 +02:00
Qubasa
58b54bb9df
API: Added Path validators. api/flake/create inits git repo. Fixed vscode interpreter problem
2023-10-27 19:11:27 +02:00
Jörg Thalheim
8daf0607c3
fix updating multiple machines
2023-10-27 17:40:20 +02:00
Jörg Thalheim
1b98be4fb7
move breakpoint checks out of default build
...
this allows to debug builds with breakpoints
2023-10-27 17:40:20 +02:00
Jörg Thalheim
3af136b8ab
cli/vms/create: fix trailing newlines in log output
2023-10-27 14:27:52 +02:00
DavHau
e6b13fd970
api/machines: split off config validation into separate endpoint
...
- This speeds up PUT /machines{name}/config as it doesn't do the expensive check anymore
- instead use PUT /machines/{name}/verify which allows a dry-run evaluation of a config which is passed without writing it to disk
2023-10-25 17:48:37 +01:00
DavHau
5eda240cb2
/api/clan_modules: init
...
- add GET /api/clan_modules entry point returning a list of modules available for import
2023-10-25 17:22:35 +01:00
DavHau
cf0953146d
api/machines: allow importing extra modules
...
- add top-level option `clanImports` to clanCore
- clanImports can be set and checked as any other option
- buildClan resolves the clanImports from the settings.json before calling evalModules to prevent infinite recursions
- new endpoint PUT machines/{name}/schema to allow getting the schema for a specific list of imports
- to retrieve the currently imported modules, cimply do a GET or PU on machines/{name}/config which will return `clanImports` as part of the config
Still missing: get list of available modules
2023-10-25 16:36:30 +01:00
DavHau
607c52149f
PUT /machines/{name}/config; ensure is idempotent
2023-10-24 18:48:14 +01:00
DavHau
177be69eda
PUT api/machines/{name}/config: ensure only valid config is ever written
...
- add CLAN_MACHINE_SETTINGS_FILE variable to temporarily override the machine settings file
- do a dry-run evaluation first with the new config before persisting it.
2023-10-24 18:40:48 +01:00
DavHau
f1e7495806
machines: add endpoint machines/{name}/ verify
2023-10-24 16:31:37 +01:00
DavHau
6b36fc743c
clan config: refactor - reorder functions
2023-10-24 15:27:19 +01:00
DavHau
ca8dcf8a7b
clan-cli/shell.nix: rename repo_root -> source
2023-10-23 16:15:46 +01:00
clan-bot
dfe16652ac
Merge pull request 'machines/install: call correct upload function' ( #426 ) from Mic92-main into main
2023-10-14 14:06:59 +00:00
Jörg Thalheim
0840eb5490
machines/install: call correct upload function
2023-10-14 15:56:04 +02:00
lassulus
b9208134f5
vms.create: don't generate secrets if clan is remote
2023-10-11 12:01:42 +02:00
Qubasa
942aa10a31
API: Added /api/flake/create. Fixed vscode search settings. Moved clan create to clan flake create
2023-10-09 14:01:34 +02:00
Qubasa
df32081b60
CLI: Fixed bug in firefox opening addon page because of new profile
2023-10-08 14:39:31 +02:00
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
4f9fa94e46
clan-cli: improve debug logging
2023-10-05 17:37:33 +02:00
DavHau
9e4c5cadf1
zerotier: fix: find free port without collissions
2023-10-05 17:03:01 +02:00
lassulus
cc7f96961e
tests: add fixtures to test_vms_cli
2023-10-05 15:56:15 +02:00
DavHau
b8da1a8e08
clan-cli: unset LD_LIBRARY_PATH
...
This prevents problems with mixed glibc versions that might occur when the cli is called through a browser built against another glibc
2023-10-05 13:44:08 +02:00
lassulus
ee76a78aed
machines update: add --target-host
2023-10-04 23:28:15 +02:00
lassulus
528d0ee45a
secrets upload: skip on exit 23, cleanup
2023-10-04 21:29:19 +02:00
clan-bot
718deb9c70
Merge pull request 'test_secrets_password_store: create gpghome with save permissions' ( #407 ) from Mic92-main into main
2023-10-04 17:59:18 +00:00
Jörg Thalheim
5180b6655e
test_secrets_password_store: create gpghome with save permissions
2023-10-04 19:56:18 +02:00
DavHau
e6f1ba9291
clan join: init
2023-10-04 18:53:59 +02:00