Commit Graph

305 Commits

Author SHA1 Message Date
2dcdf738ce api/machines: add test ensuring empty config is valid
All checks were successful
checks-impure / test (pull_request) Successful in 1m31s
checks / test (pull_request) Successful in 2m47s
2023-11-13 21:56:02 +07:00
6a52c5f15b api/machines: allow config verification on imaginary machines
All checks were successful
checks-impure / test (pull_request) Successful in 1m37s
checks / test (pull_request) Successful in 2m39s
Machines do not need to exist in order to verify their configuration.

This allows verifying a config before creating an actual machine with it.
2023-11-13 21:24:05 +07:00
55a1df7868 api/machines: verify config by evaluating the .vm output
All checks were successful
checks-impure / test (pull_request) Successful in 1m33s
checks / test (pull_request) Successful in 2m34s
This fixes the problem where fileSystems were missing, or boot.loader was not set.

SInce we want VMs anyways for now, this strategy aligns well
2023-11-13 20:50:11 +07:00
1652b5c27b api/machines: init put_machine replacing create_machine and set_machine_config
All checks were successful
checks-impure / test (pull_request) Successful in 1m36s
checks / test (pull_request) Successful in 1m59s
This allows creating and configuring a machine in one single step.
2023-11-13 20:25:52 +07:00
236ca4f98c api/machines: ensure name is valid hostname 2023-11-12 07:57:48 +07:00
54ede8a0ff vms/create: drop extra flake argument and make it work with local flakes
All checks were successful
checks-impure / test (pull_request) Successful in 1m54s
checks / test (pull_request) Successful in 2m59s
2023-11-10 13:43:14 +01:00
657cdd6e67 drop unused clan_data_dir 2023-11-10 12:55:46 +01:00
df1acebd87 move flake configuration to .config/clan/flakes rather than $XDG_DATA_DIRS
All checks were successful
checks-impure / test (pull_request) Successful in 1m34s
checks / test (pull_request) Successful in 2m31s
2023-11-10 12:50:51 +01:00
b518d92678 Merge pull request 'zerotier: allow to persist zerotier identities/ips/meshnames for non-controller' (#482) from zerotier into main
All checks were successful
assets1 / test (push) Successful in 22s
checks-impure / test (push) Successful in 1m33s
checks / test (push) Successful in 2m35s
2023-11-10 10:59:48 +00:00
c28089d4b2 allow to persist zerotier identities/ips/meshnames for non-controller
All checks were successful
checks-impure / test (pull_request) Successful in 1m32s
checks / test (pull_request) Successful in 2m19s
2023-11-10 11:56:54 +01:00
39607a0925 api/schema: return list of missing modules
All checks were successful
checks-impure / test (pull_request) Successful in 1m58s
checks / test (pull_request) Successful in 2m48s
2023-11-10 15:07:15 +07:00
97ea9312ac api/schema: don't crash on eval error
All checks were successful
checks-impure / test (pull_request) Successful in 1m32s
checks / test (pull_request) Successful in 2m25s
2023-11-10 14:27:03 +07:00
b8ed607658 also override XDG_DATA_HOME in tests
otherwise tests will fail if XDG_DATA_HOME is set by a user
2023-11-09 17:45:24 +01:00
af0714132d clan: use .local/share as default for XDG_DATA_HOME 2023-11-09 17:45:24 +01:00
2a6e329e40 api/schema: get schema without having a machine
All checks were successful
checks-impure / test (pull_request) Successful in 1m32s
checks / test (pull_request) Successful in 2m22s
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
10e52699be Fixed wrong examples
All checks were successful
checks-impure / test (pull_request) Successful in 1m52s
checks / test (pull_request) Successful in 2m42s
2023-11-08 21:40:17 +01:00
7240727b26 Added deal contract framework and testing documentation
Some checks failed
checks-impure / test (pull_request) Successful in 1m32s
checks / test (pull_request) Failing after 2m11s
2023-11-08 19:56:07 +01:00
7e99454462 api/machines: better input/output validation
All checks were successful
checks-impure / test (pull_request) Successful in 1m28s
checks / test (pull_request) Successful in 2m11s
Also move contents tof 'config' to the top-level
2023-11-06 17:56:27 +07:00
7b3d3e20b4 clan-cli secrets: flake_name -> flake_dir
All checks were successful
checks / test (pull_request) Successful in 46s
checks-impure / test (pull_request) Successful in 1m26s
2023-11-05 16:58:48 +01:00
b09bb155c1 nix fmt
Some checks failed
checks-impure / test (pull_request) Successful in 1m42s
checks / test (pull_request) Failing after 1m51s
2023-11-03 22:22:16 +01:00
2d4a20457b Fixing failing test
Some checks reported warnings
checks-impure / test (pull_request) Has been cancelled
checks / test (pull_request) Has been cancelled
2023-11-03 22:21:22 +01:00
efa48052cf API: Added /api/flake/list. Added API grouping and description for better visibility
Some checks failed
checks-impure / test (pull_request) Successful in 1m52s
checks / test (pull_request) Failing after 2m43s
2023-11-03 22:05:33 +01:00
7a8eef0648 Fixed test_webui only failing in nix_sandbox also fixed test_create_flake
All checks were successful
checks-impure / test (pull_request) Successful in 1m18s
checks / test (pull_request) Successful in 1m57s
2023-10-29 19:51:35 +01:00
4209da96e9 Fixed test_webui only failing in nix_sandbox
Some checks failed
checks-impure / test (pull_request) Failing after 1m20s
checks / test (pull_request) Failing after 1m55s
2023-10-29 19:35:29 +01:00
e6675cb4d9
format pytest
Some checks failed
checks / test (pull_request) Failing after 1m18s
checks-impure / test (pull_request) Successful in 1m20s
2023-10-28 18:38:14 +02:00
032cdd731a Fixing test_clan_modules test
Some checks failed
checks / test (pull_request) Failing after 54s
checks-impure / test (pull_request) Successful in 1m17s
2023-10-27 23:39:02 +02:00
00ef406713 Updated to main branch. Removed cluttering asyncio and httpx log messages 2023-10-27 23:36:45 +02:00
eafc55f2e7 Fixing deadlock 2023-10-27 19:26:03 +02:00
f9b1a8fa89 Removing find_git_repo 2023-10-27 19:26:03 +02:00
0378e01cbb Fixing test_vms_api test 2023-10-27 19:26:03 +02:00
674d84a43a Fixing test_vms_api test 2023-10-27 19:26:03 +02:00
b1d0129fc0 Commit only for debugging Container 2023-10-27 19:26:03 +02:00
a28f910e35 nix fmt 2023-10-27 19:26:03 +02:00
3f87ec851f All tests passing babyyy !! 2023-10-27 19:26:03 +02:00
c1b4fa6d55 nix fmt 2023-10-27 19:21:50 +02:00
3581e0c9a8 Fixing a multitude of tests 2023-10-27 19:21:50 +02:00
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
59393bb35e Working test_create_flake 2023-10-27 19:20:17 +02:00
26bfb793b1 Added ref to Qubasa-main in template/new-clan/flake.nix 2023-10-27 19:20:17 +02:00
a71584d9d2 Added clanName argument to clan-core.lib.builClan 2023-10-27 19:20:17 +02:00
d02acbe04b nix fmt 2023-10-27 19:19:45 +02:00
9f464dd14e Added ipdb as breakpoint console. Improved logging. 2023-10-27 19:19:45 +02:00
af3f04736b Improved logging messages. Added ClanError if flake create or machine create already exist 2023-10-27 19:18:45 +02:00
8482bc79f6 Secrets tests passing. nix fmt doesn't complain 2023-10-27 19:18:45 +02:00
03cabda2d4 Improved test logging with frame inspection 2023-10-27 19:18:45 +02:00
8cc1c2c4bd Fixed cyclic dependencie AND swapped pytest-parallel for pytest-xdist to fix deadlock in tests 2023-10-27 19:18:45 +02:00
2ca54afe7f Added new type FlakeName 2023-10-27 19:18:45 +02:00
32e60f5adc Added flake_name:str argument everywhere, nix fmt doesn't complain anymore 2023-10-27 19:15:40 +02:00
711c70d1f0 Added state directory. 2023-10-27 19:11:27 +02:00
fa5f39f226 API: Added Path validators. api/flake/create inits git repo. Fixed vscode interpreter problem 2023-10-27 19:11:27 +02:00
0e5c7d2d13 api/machines: split off config validation into separate endpoint
All checks were successful
checks-impure / test (pull_request) Successful in 1m1s
checks / test (pull_request) Successful in 1m36s
- 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
25708d1a1a /api/clan_modules: init
All checks were successful
checks-impure / test (pull_request) Successful in 39s
checks / test (pull_request) Successful in 2m6s
- add GET /api/clan_modules entry point returning a list of modules available for import
2023-10-25 17:22:35 +01:00
bf176ad277 api/machines: allow importing extra modules
All checks were successful
checks-impure / test (pull_request) Successful in 36s
checks / test (pull_request) Successful in 2m6s
- 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
9f6e01671f PUT /machines/{name}/config; ensure is idempotent
All checks were successful
checks-impure / test (pull_request) Successful in 1m4s
checks / test (pull_request) Successful in 2m18s
2023-10-24 18:48:14 +01:00
588bde069f PUT api/machines/{name}/config: ensure only valid config is ever written
All checks were successful
checks-impure / test (pull_request) Successful in 1m0s
checks / test (pull_request) Successful in 2m24s
- 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
a539fb6dc6 machines: add endpoint machines/{name}/ verify
All checks were successful
checks-impure / test (pull_request) Successful in 58s
checks / test (pull_request) Successful in 8m48s
2023-10-24 16:31:37 +01:00
b49433958b API: Added /api/flake/create. Fixed vscode search settings. Moved clan create to clan flake create
All checks were successful
checks-impure / test (pull_request) Successful in 57s
checks / test (pull_request) Successful in 2m3s
2023-10-09 14:01:34 +02:00
ceb6bdd474 clan join: test create vm for clan join
All checks were successful
checks-impure / test (pull_request) Successful in 34s
checks / test (pull_request) Successful in 1m33s
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
bdb0a6484a tests: add fixtures to test_vms_cli
All checks were successful
checks-impure / test (pull_request) Successful in 59s
checks / test (pull_request) Successful in 1m57s
2023-10-05 15:56:15 +02:00
41106a67e2 test_secrets_password_store: create gpghome with save permissions
All checks were successful
checks-impure / test (pull_request) Successful in 20s
checks / test (pull_request) Successful in 31s
2023-10-04 19:56:18 +02:00
99433ac290 test_vms_api: supply age key for secret creation
All checks were successful
checks-impure / test (pull_request) Successful in 21s
checks / test (pull_request) Successful in 1m29s
2023-10-04 18:13:25 +02:00
e8c9f27515 tests test_flake: disable dhcp
All checks were successful
checks-impure / test (pull_request) Successful in 18s
checks / test (pull_request) Successful in 1m27s
2023-10-04 17:52:06 +02:00
544322ee6e webui: open browser in new window
All checks were successful
checks-impure / test (pull_request) Successful in 21s
checks / test (pull_request) Successful in 1m30s
This gets closer to an app like feeling
2023-10-04 17:26:55 +02:00
04ba80f614 improve task manager to report exceptions better
All checks were successful
checks-impure / test (pull_request) Successful in 19s
checks / test (pull_request) Successful in 31s
2023-10-04 16:49:58 +02:00
1575e4a391 rename test_basic to test_create_flake
All checks were successful
checks-impure / test (pull_request) Successful in 19s
checks / test (pull_request) Successful in 30s
2023-10-04 11:01:12 +02:00
4abb7d7bf0 make vm test also work in ci
All checks were successful
checks / test (pull_request) Successful in 30s
checks-impure / test (pull_request) Successful in 20s
2023-10-03 18:50:14 +02:00
b2ef8bf1a3 also test that updating a group works 2023-10-03 16:15:36 +00:00
2502422bc1 add test for vm cli
All checks were successful
checks-impure / test (pull_request) Successful in 12s
checks / test (pull_request) Successful in 1m23s
2023-10-03 17:24:08 +02:00
361ad990ab clan-cli/tests: skip tests if has no /dev/kvm 2023-10-03 17:24:08 +02:00
cb2815c4d0 nix fmt
Some checks failed
checks-impure / test (pull_request) Failing after 12s
checks / test (pull_request) Successful in 1m23s
2023-10-03 14:39:29 +02:00
8e98c50ccd Merge branch 'Qubasa-main' of git.clan.lol:clan/clan-core
Some checks failed
checks-impure / test (pull_request) Failing after 12s
checks / test (pull_request) Failing after 1m23s
2023-10-03 13:24:31 +02:00
da72ec18ad API: Added test for inspect_flake 2023-10-03 13:19:20 +02:00
c1c68ee1d8 Fixed failing tests 2023-10-03 13:15:01 +02:00
167533d9ee API: Added test for inspect_flake
Some checks failed
checks-impure / test (pull_request) Failing after 12s
checks / test (pull_request) Failing after 1m23s
2023-10-03 12:50:47 +02:00
653ad99b22 Fixed failing tests
Some checks failed
checks-impure / test (pull_request) Failing after 12s
checks / test (pull_request) Successful in 1m21s
2023-10-03 11:51:31 +02:00
16f44900a3
Beyoncé rule
Some checks failed
checks-impure / test (pull_request) Successful in 13s
checks / test (pull_request) Failing after 1m23s
2023-10-03 11:21:34 +02:00
ce7ae81a35 API: Added endpoint & test for /api/flake/attrs
All checks were successful
checks-impure / test (pull_request) Successful in 13s
checks / test (pull_request) Successful in 1m43s
2023-10-01 12:50:54 +02:00
f224deace9 API: Improved vm_status and added some tests. Skip vm tests in VM
All checks were successful
checks-impure / test (pull_request) Successful in 13s
checks / test (pull_request) Successful in 1m22s
2023-09-30 11:08:42 +02:00
6e3f2b1ce2 tests: add test_secrets_password_store 2023-09-29 20:05:35 +02:00
89b7ffce6c clan-cli secrets upload: secrets are populated into tmpdir 2023-09-29 20:05:35 +02:00
739d3b3578 zerotier: document mdns ports; drop duplicate udp firewall rules
All checks were successful
checks-impure / test (pull_request) Successful in 8s
checks / test (pull_request) Successful in 27s
the nixos module already opens the zerotier port
2023-09-28 17:58:42 +02:00
be6592c82c also generate zerotier secret for vm 2023-09-28 17:57:44 +02:00
2375bafbae pregenerate ssh_host keys for tests
Then we are free to choose where to put the ssh config
2023-09-28 16:31:59 +02:00
85f7e2f2cd clanInternals.machines: expose information as json
All checks were successful
checks-impure / test (pull_request) Successful in 8s
checks / test (pull_request) Successful in 24s
2023-09-27 18:42:49 +02:00
59f0a912ea fix clan-pytest build
All checks were successful
checks / test (pull_request) Successful in 1m17s
checks-impure / test (pull_request) Successful in 8s
2023-09-27 16:20:05 +02:00
e970dcb658 move temporary directory to .direnv
All checks were successful
checks-impure / test (pull_request) Successful in 8s
checks / test (pull_request) Successful in 30s
2023-09-27 16:13:04 +02:00
2f73e6b472 drop requirement for importing qemu-vm.nix
All checks were successful
checks-impure / test (pull_request) Successful in 13s
checks / test (pull_request) Successful in 22s
2023-09-27 14:54:01 +02:00
4317e681cf cli: fix remaining typing errors 2023-09-27 09:47:50 +00:00
b343650771 make vm terminate after boot 2023-09-27 09:47:50 +00:00
08eab785c6 Completely working log streaming 2023-09-27 09:47:50 +00:00
8d390af122 Working log streaming 2023-09-27 09:47:50 +00:00
98028d121f Working log streaming 2023-09-27 09:47:50 +00:00
c2fb42e953 Extracted threadpool to task_manager.py 2023-09-27 09:47:50 +00:00
04f3547be0 Added test 2023-09-27 09:47:50 +00:00
7479fca82b Started working on vm_create 2023-09-27 09:47:50 +00:00
74a3c85c29 move zerotier secret generation into nixos module
Some checks failed
checks-impure / test (pull_request) Failing after 7s
checks / test (pull_request) Successful in 23s
2023-09-26 17:57:43 +02:00
87aa063e86 create test_flake unique per test
All checks were successful
checks-impure / test (pull_request) Successful in 8s
checks / test (pull_request) Successful in 25s
otherwise we will have race conditions
2023-09-26 15:46:40 +02:00
3783359f08 clan config: support new types nullOr and passwdEntry
All checks were successful
checks-impure / test (pull_request) Successful in 8s
checks / test (pull_request) Successful in 23s
2023-09-24 14:24:48 +01:00
ec70b34470 clan config: match dynamic options containing <name>
All checks were successful
checks-impure / test (pull_request) Successful in 8s
checks / test (pull_request) Successful in 23s
2023-09-24 13:04:37 +01:00
e08c0b338d test_basics: add cli fixture
All checks were successful
checks-impure / test (pull_request) Successful in 8s
checks / test (pull_request) Successful in 22s
2023-09-22 19:23:23 +02:00
9825c179a8 impure-tests: migrate bash to pytest and fix stuff
All checks were successful
checks-impure / test (pull_request) Successful in 7s
checks / test (pull_request) Successful in 23s
2023-09-22 18:32:28 +02:00
b482dcd466 make git idempotent
All checks were successful
checks-impure / test (pull_request) Successful in 8s
checks / test (pull_request) Successful in 21s
2023-09-22 16:38:46 +02:00
e3b2424d9d make git optional again 2023-09-22 16:07:39 +02:00
5125ebe1eb Merge pull request 'get rid of impure test' (#323) from Mic92-docs into main
All checks were successful
checks / test (push) Successful in 58s
assets1 / test (push) Successful in 6s
checks-impure / test (push) Successful in 9s
2023-09-22 12:34:51 +00:00
51e8da2a74 config: get rid of impure eval
All checks were successful
checks-impure / test (pull_request) Successful in 8s
checks / test (pull_request) Successful in 23s
2023-09-22 14:32:38 +02:00
0196fd72c3 git.commit_file: fix file path & repo path finding
All checks were successful
checks-impure / test (pull_request) Successful in 11s
checks / test (pull_request) Successful in 1m3s
2023-09-22 13:42:04 +02:00
17520e2553 fix impure tests 2023-09-21 18:29:18 +02:00
0314132a1a rewrite sops backend for secret generation and add tests 2023-09-21 17:22:20 +02:00
6a359c0a2f clan-cli: add git.commit_file() to auto commit files if inside a git
All checks were successful
checks-impure / test (pull_request) Successful in 10s
checks / test (pull_request) Successful in 34s
- 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
0ee6de86af checks: run impure pytest tests in CI pipeline
All checks were successful
checks-impure / test (pull_request) Successful in 10s
checks / test (pull_request) Successful in 34s
2023-09-19 16:46:46 +02:00
c11f73c4d0 clan config: fix settings file location
All checks were successful
checks-impure / test (pull_request) Successful in 12s
checks / test (pull_request) Successful in 1m10s
2023-09-19 15:12:29 +02:00
90718da5b4 Merge pull request 'use experimental flags everywhere' (#298) from Mic92-vm-api into main
Some checks reported warnings
checks / test (push) Has been cancelled
checks-impure / test (push) Has been cancelled
2023-09-19 11:16:30 +00:00
f6a7e42e38 cli: rename admin create to create 2023-09-19 13:12:10 +02:00
d41cca2e28 add clan_core path helper function 2023-09-19 13:12:10 +02:00
a65413c98e use experimental flags everywhere 2023-09-19 13:12:10 +02:00
1bcff16b66 add join clan page
Some checks failed
checks-impure / test (pull_request) Successful in 8s
checks / test (pull_request) Failing after 1m39s
2023-09-16 16:21:33 +02:00
a29f301f84 add vms 2023-09-15 14:02:40 +00:00
87f0b090ef cli: rename clan_flake to test_flake
All checks were successful
checks-impure / test (pull_request) Successful in 9s
checks / test (pull_request) Successful in 1m24s
2023-09-15 12:36:16 +02:00
2697ad54b7 drop useless test_update test
All checks were successful
checks-impure / test (pull_request) Successful in 6s
checks / test (pull_request) Successful in 32s
This test was not finished by me?
Now it's going to be broken by lassulus.
2023-09-14 17:25:48 +02:00
02f421546c rename machine_flake back to clan_flake
All checks were successful
checks-impure / test (pull_request) Successful in 8s
checks / test (pull_request) Successful in 1m22s
2023-09-14 17:06:07 +02:00
2048ffccb0 drop clan_flake fixture
All checks were successful
checks-impure / test (pull_request) Successful in 6s
checks / test (pull_request) Successful in 32s
2023-09-14 16:57:48 +02:00
4905e0cecd move machine_flake fixture to its own file
All checks were successful
checks-impure / test (pull_request) Successful in 8s
checks / test (pull_request) Successful in 1m25s
2023-09-14 16:49:02 +02:00
451ecbb691 rename test_api_machines test to be consistent with the rest
All checks were successful
checks-impure / test (pull_request) Successful in 8s
checks / test (pull_request) Successful in 1m23s
2023-09-14 13:02:58 +02:00
17af763ad1 add edit flag to secret cli
All checks were successful
checks-impure / test (pull_request) Successful in 6s
checks / test (pull_request) Successful in 51s
2023-09-13 10:52:03 +02:00
c3ccf68007 only list valid secrets/users/machines
All checks were successful
checks-impure / test (pull_request) Successful in 6s
checks / test (pull_request) Successful in 58s
Git often leaves empty directories behind
2023-09-07 12:48:34 +02:00
e6762d8b3f sops: add explicit commands to generate secrets
All checks were successful
checks-impure / test (pull_request) Successful in 6s
checks / test (pull_request) Successful in 49s
2023-09-07 11:41:20 +02:00
3bdd3af248 cli: fix nixpkgs unfree import
All checks were successful
checks-impure / test (pull_request) Successful in 12s
checks / test (pull_request) Successful in 1m55s
2023-09-06 17:37:41 +02:00
4ac91ccdcb drop clan flake monkeypatch 2023-09-06 16:04:00 +02:00
0108d84fe3 speed up machine_flake eval 2023-09-06 16:03:40 +02:00
cd8cd62894 Merge pull request 'clan-cli: use dependency flake instead of registry' (#250) from DavHau-deps into main
All checks were successful
checks-impure / test (push) Successful in 12s
checks / test (push) Successful in 1m54s
2023-09-06 12:50:16 +00:00
fcbc3ec899 clan-cli: use dependency flake instead of registry
All checks were successful
checks / test (pull_request) Successful in 1m53s
checks-impure / test (pull_request) Successful in 25s
2023-09-06 14:47:28 +02:00
949b72bd0b actual implement secret rename function
All checks were successful
checks-impure / test (pull_request) Successful in 13s
checks / test (pull_request) Successful in 24s
2023-09-03 11:03:14 +02:00
a1d825d0a0 clan-config: fix: read options from nixosConfigurations instead of nixosModules
All checks were successful
checks-impure / test (pull_request) Successful in 10s
checks / test (pull_request) Successful in 21s
2023-09-02 16:35:59 +02:00
8ca0a2aee4 clan-config: introduce --machine + add tests
All checks were successful
checks / test (pull_request) Successful in 1m16s
checks-impure / test (pull_request) Successful in 4s
2023-08-30 20:59:26 +02:00
af38408a3e secret cli: add get command that returns the key of users/machines
All checks were successful
checks-impure / test (pull_request) Successful in 3s
checks / test (pull_request) Successful in 3s
2023-08-30 11:30:57 +02:00
5e2e95e9c7 clan-cli: add zerotier subcommand 2023-08-29 16:16:11 +02:00
81d02bb218 tests: rewrite port allocation function 2023-08-27 09:34:36 +02:00
b55ceec40c clan-config: use pinned nixpkgs + fix test flake
All checks were successful
build / test (pull_request) Successful in 19s
2023-08-26 23:33:32 +02:00
8c7ee25dc9 webui: fixes for machines endpoint
All checks were successful
build / test (pull_request) Successful in 1m8s
- fix machines settings file location
- raise 404 if machine doesn't exist
- improve machine api test
2023-08-26 14:17:25 +02:00
672e760e2a replace mock_env with monkeypatch
All checks were successful
build / test (pull_request) Successful in 1m5s
2023-08-26 11:45:09 +02:00
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
518bf4197f webui: tests for machine config endpoints
All checks were successful
build / test (pull_request) Successful in 1m4s
2023-08-26 08:46:53 +02:00
fb76ad45e8 webui: implement /api/machines/{name}/schema
All checks were successful
build / test (pull_request) Successful in 18s
2023-08-25 21:26:30 +02:00
33b43ae146 add tests for machines api
All checks were successful
build / test (pull_request) Successful in 15s
2023-08-24 19:16:44 +02:00
58adf91af8 test machine subcommand
All checks were successful
build / test (pull_request) Successful in 27s
2023-08-24 18:28:33 +02:00
6adfadd8b9 re-enable config subcommand if CLAN_OPTIONS_FILE is set 2023-08-24 18:28:33 +02:00
dcbf1613fb delete test_cli test
we already cover this in integration tests
2023-08-24 18:28:33 +02:00
d600a927ea tests: generalize secret cli parser to work for all cli commands 2023-08-24 18:28:33 +02:00
3b099ccb89 clan-cli: move arg parsing to extra method 2023-08-24 18:28:33 +02:00
56542ca5ef mv update command to machines update command 2023-08-24 16:25:06 +02:00