lassulus
17520e2553
fix impure tests
2023-09-21 18:29:18 +02:00
Jörg Thalheim
0314132a1a
rewrite sops backend for secret generation and add tests
2023-09-21 17:22:20 +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
DavHau
0ee6de86af
checks: run impure pytest tests in CI pipeline
2023-09-19 16:46:46 +02:00
DavHau
c11f73c4d0
clan config: fix settings file location
2023-09-19 15:12:29 +02:00
clan-bot
90718da5b4
Merge pull request 'use experimental flags everywhere' ( #298 ) from Mic92-vm-api into main
2023-09-19 11:16:30 +00:00
Jörg Thalheim
f6a7e42e38
cli: rename admin create to create
2023-09-19 13:12:10 +02:00
Jörg Thalheim
d41cca2e28
add clan_core path helper function
2023-09-19 13:12:10 +02:00
Jörg Thalheim
a65413c98e
use experimental flags everywhere
2023-09-19 13:12:10 +02:00
Johannes Kirschbauer
1bcff16b66
add join clan page
2023-09-16 16:21:33 +02:00
Jörg Thalheim
a29f301f84
add vms
2023-09-15 14:02:40 +00:00
Jörg Thalheim
87f0b090ef
cli: rename clan_flake to test_flake
2023-09-15 12:36:16 +02:00
Jörg Thalheim
2697ad54b7
drop useless test_update test
...
This test was not finished by me?
Now it's going to be broken by lassulus.
2023-09-14 17:25:48 +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
451ecbb691
rename test_api_machines test to be consistent with the rest
2023-09-14 13:02:58 +02:00
Jörg Thalheim
17af763ad1
add edit flag to secret cli
2023-09-13 10:52:03 +02:00
Jörg Thalheim
c3ccf68007
only list valid secrets/users/machines
...
Git often leaves empty directories behind
2023-09-07 12:48:34 +02:00
Jörg Thalheim
e6762d8b3f
sops: add explicit commands to generate secrets
2023-09-07 11:41:20 +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
0108d84fe3
speed up machine_flake eval
2023-09-06 16:03:40 +02:00
clan-bot
cd8cd62894
Merge pull request 'clan-cli: use dependency flake instead of registry' ( #250 ) from DavHau-deps into main
2023-09-06 12:50:16 +00:00
DavHau
fcbc3ec899
clan-cli: use dependency flake instead of registry
2023-09-06 14:47:28 +02:00
Jörg Thalheim
949b72bd0b
actual implement secret rename function
2023-09-03 11:03:14 +02:00
DavHau
a1d825d0a0
clan-config: fix: read options from nixosConfigurations instead of nixosModules
2023-09-02 16:35:59 +02:00
DavHau
8ca0a2aee4
clan-config: introduce --machine + add tests
2023-08-30 20:59:26 +02:00
Jörg Thalheim
af38408a3e
secret cli: add get command that returns the key of users/machines
2023-08-30 11:30:57 +02:00
lassulus
5e2e95e9c7
clan-cli: add zerotier subcommand
2023-08-29 16:16:11 +02:00
Jörg Thalheim
81d02bb218
tests: rewrite port allocation function
2023-08-27 09:34:36 +02:00
DavHau
b55ceec40c
clan-config: use pinned nixpkgs + fix test flake
2023-08-26 23:33:32 +02:00
DavHau
8c7ee25dc9
webui: fixes for machines endpoint
...
- fix machines settings file location
- raise 404 if machine doesn't exist
- improve machine api test
2023-08-26 14:17:25 +02:00
Jörg Thalheim
672e760e2a
replace mock_env with monkeypatch
2023-08-26 11:45:09 +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
DavHau
fb76ad45e8
webui: implement /api/machines/{name}/schema
2023-08-25 21:26:30 +02:00
Jörg Thalheim
33b43ae146
add tests for machines api
2023-08-24 19:16:44 +02:00
Jörg Thalheim
58adf91af8
test machine subcommand
2023-08-24 18:28:33 +02:00
Jörg Thalheim
6adfadd8b9
re-enable config subcommand if CLAN_OPTIONS_FILE is set
2023-08-24 18:28:33 +02:00
Jörg Thalheim
dcbf1613fb
delete test_cli test
...
we already cover this in integration tests
2023-08-24 18:28:33 +02:00
Jörg Thalheim
d600a927ea
tests: generalize secret cli parser to work for all cli commands
2023-08-24 18:28:33 +02:00
Jörg Thalheim
3b099ccb89
clan-cli: move arg parsing to extra method
2023-08-24 18:28:33 +02:00
Jörg Thalheim
56542ca5ef
mv update command to machines update command
2023-08-24 16:25:06 +02:00
Jörg Thalheim
13a6386004
add integration test for webui
2023-08-24 14:09:19 +02:00
DavHau
b16f314c80
clan-config: add option --quiet
2023-08-23 12:25:02 +02:00
DavHau
999fbe0d89
clan-config: add readme
...
Also add capability of reading an option value
2023-08-23 01:01:07 +02:00
DavHau
780fd881c3
clan-config: fix tests
2023-08-22 21:17:47 +00:00
DavHau
48686591d8
clan-config: improve and add flake-parts module for clan-config
2023-08-22 21:17:47 +00:00
DavHau
52d6798315
clan-config: stop using jsonschema at all for CLI
...
- instead use options.json coming from nixosOptionsDoc
2023-08-15 15:48:17 +02:00