Qubasa
b09bb155c1
nix fmt
2023-11-03 22:22:16 +01:00
Qubasa
2d4a20457b
Fixing failing test
2023-11-03 22:21:22 +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
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
Johannes Kirschbauer
e6675cb4d9
format pytest
2023-10-28 18:38:14 +02: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
eafc55f2e7
Fixing deadlock
2023-10-27 19:26:03 +02:00
Qubasa
f9b1a8fa89
Removing find_git_repo
2023-10-27 19:26:03 +02:00
Qubasa
0378e01cbb
Fixing test_vms_api test
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
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
03cabda2d4
Improved test logging with frame inspection
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
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
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
DavHau
25708d1a1a
/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
bf176ad277
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
9f6e01671f
PUT /machines/{name}/config; ensure is idempotent
2023-10-24 18:48:14 +01:00
DavHau
588bde069f
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
a539fb6dc6
machines: add endpoint machines/{name}/ verify
2023-10-24 16:31:37 +01:00
Qubasa
b49433958b
API: Added /api/flake/create. Fixed vscode search settings. Moved clan create to clan flake create
2023-10-09 14:01:34 +02: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
lassulus
bdb0a6484a
tests: add fixtures to test_vms_cli
2023-10-05 15:56:15 +02:00
Jörg Thalheim
41106a67e2
test_secrets_password_store: create gpghome with save permissions
2023-10-04 19:56:18 +02:00
lassulus
99433ac290
test_vms_api: supply age key for secret creation
2023-10-04 18:13:25 +02:00
lassulus
e8c9f27515
tests test_flake: disable dhcp
2023-10-04 17:52:06 +02:00
DavHau
544322ee6e
webui: open browser in new window
...
This gets closer to an app like feeling
2023-10-04 17:26:55 +02:00
Jörg Thalheim
04ba80f614
improve task manager to report exceptions better
2023-10-04 16:49:58 +02:00
Jörg Thalheim
1575e4a391
rename test_basic to test_create_flake
2023-10-04 11:01:12 +02:00
Jörg Thalheim
4abb7d7bf0
make vm test also work in ci
2023-10-03 18:50:14 +02:00
Jörg Thalheim
b2ef8bf1a3
also test that updating a group works
2023-10-03 16:15:36 +00:00
Jörg Thalheim
2502422bc1
add test for vm cli
2023-10-03 17:24:08 +02:00
Jörg Thalheim
361ad990ab
clan-cli/tests: skip tests if has no /dev/kvm
2023-10-03 17:24:08 +02:00