DavHau
39607a0925
api/schema: return list of missing modules
2023-11-10 15:07:15 +07:00
DavHau
97ea9312ac
api/schema: don't crash on eval error
2023-11-10 14:27:03 +07:00
DavHau
2a6e329e40
api/schema: get schema without having a machine
...
Also done:
- add @pytest.mark.with_core indicating that a test depends on clan-core and cannot be cached
- separate unit tests into two derivations, ones that can be cached and ones that cannot.
- fix frontend typescript code
2023-11-09 15:30:25 +07:00
Qubasa
7240727b26
Added deal contract framework and testing documentation
2023-11-08 19:56:07 +01:00
DavHau
7e99454462
api/machines: better input/output validation
...
Also move contents tof 'config' to the top-level
2023-11-06 17:56:27 +07:00
lassulus
7b3d3e20b4
clan-cli secrets: flake_name -> flake_dir
2023-11-05 16:58:48 +01:00
Johannes Kirschbauer
6188957b65
format
2023-11-04 09:16:37 +01:00
Johannes Kirschbauer
fec748fbfd
merge main
2023-11-04 09:15:15 +01:00
Qubasa
efa48052cf
API: Added /api/flake/list. Added API grouping and description for better visibility
2023-11-03 22:05:33 +01:00
Jörg Thalheim
c5007ce7e3
fix clan_error_handler type
2023-11-03 14:48:14 +01:00
Jörg Thalheim
5cb4019942
switch from black to ruff for formatting
2023-11-03 13:38:13 +01:00
Jörg Thalheim
15dc4fd497
cli: merge nix options correctly
2023-11-03 13:31:36 +01:00
Jörg Thalheim
e1efaedc38
add nix option flag that is passed to underlying nix commands
2023-11-03 12:28:26 +01:00
Johannes Kirschbauer
8677c14aaa
add create/join switch
2023-10-31 19:05:37 +01:00
Jörg Thalheim
d562c6ac5f
vms/create: try virtio for vga
...
seems to suck less than std.
2023-10-31 15:34:53 +01:00
lassulus
370485403d
switch flake to main branch again
2023-10-31 15:34:47 +01:00
lassulus
c9d7a96844
cli machines update: find flake dir automatic if not provided, support flake as path
2023-10-31 15:34:47 +01:00
Jörg Thalheim
06aaa35119
vms/create: use tmpdir again
2023-10-31 13:53:54 +01:00
Jörg Thalheim
60721e442d
vms/create: allow xchg/secrets dir to exist
2023-10-31 13:53:54 +01:00
Jörg Thalheim
cb87ccbfc4
improve error message if flake_dir does not exists
2023-10-31 13:53:54 +01:00
Qubasa
7a8eef0648
Fixed test_webui only failing in nix_sandbox also fixed test_create_flake
2023-10-29 19:51:35 +01:00
Qubasa
4209da96e9
Fixed test_webui only failing in nix_sandbox
2023-10-29 19:35:29 +01:00
Qubasa
032cdd731a
Fixing test_clan_modules test
2023-10-27 23:39:02 +02:00
Qubasa
00ef406713
Updated to main branch. Removed cluttering asyncio and httpx log messages
2023-10-27 23:36:45 +02:00
Qubasa
40f4227413
Fixed missing FlakeName argument
2023-10-27 19:26:03 +02:00
Qubasa
f9b1a8fa89
Removing find_git_repo
2023-10-27 19:26:03 +02:00
Qubasa
674d84a43a
Fixing test_vms_api test
2023-10-27 19:26:03 +02:00
Qubasa
b1d0129fc0
Commit only for debugging Container
2023-10-27 19:26:03 +02:00
Qubasa
efd201c7c5
nix fmt
2023-10-27 19:26:03 +02:00
Qubasa
a28f910e35
nix fmt
2023-10-27 19:26:03 +02:00
Qubasa
3f87ec851f
All tests passing babyyy !!
2023-10-27 19:26:03 +02:00
Qubasa
c1b4fa6d55
nix fmt
2023-10-27 19:21:50 +02:00
Qubasa
3581e0c9a8
Fixing a multitude of tests
2023-10-27 19:21:50 +02:00
Qubasa
d1c35301e3
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
59393bb35e
Working test_create_flake
2023-10-27 19:20:17 +02:00
Qubasa
26bfb793b1
Added ref to Qubasa-main in template/new-clan/flake.nix
2023-10-27 19:20:17 +02:00
Qubasa
a71584d9d2
Added clanName argument to clan-core.lib.builClan
2023-10-27 19:20:17 +02:00
Qubasa
d02acbe04b
nix fmt
2023-10-27 19:19:45 +02:00
Qubasa
9f464dd14e
Added ipdb as breakpoint console. Improved logging.
2023-10-27 19:19:45 +02:00
Qubasa
af3f04736b
Improved logging messages. Added ClanError if flake create or machine create already exist
2023-10-27 19:18:45 +02:00
Qubasa
8482bc79f6
Secrets tests passing. nix fmt doesn't complain
2023-10-27 19:18:45 +02:00
Qubasa
8cc1c2c4bd
Fixed cyclic dependencie AND swapped pytest-parallel for pytest-xdist to fix deadlock in tests
2023-10-27 19:18:45 +02:00
Qubasa
2ca54afe7f
Added new type FlakeName
2023-10-27 19:18:45 +02:00
Qubasa
32e60f5adc
Added flake_name:str argument everywhere, nix fmt doesn't complain anymore
2023-10-27 19:15:40 +02:00
Qubasa
fdcd7ad1d9
Updated to main
2023-10-27 19:15:11 +02:00
Qubasa
711c70d1f0
Added state directory.
2023-10-27 19:11:27 +02:00
Qubasa
fa5f39f226
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
79e707b044
fix updating multiple machines
2023-10-27 17:40:20 +02:00
Jörg Thalheim
3e4ad8ae1b
cli/vms/create: fix trailing newlines in log output
2023-10-27 14:27:52 +02:00
DavHau
0e5c7d2d13
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