DavHau
8b00edad4a
inventory tests: use containers by default
2025-04-23 19:49:02 +07:00
DavHau
1ca79610e0
container-tests: add multi-container network
2025-04-22 13:26:37 +02:00
Johannes Kirschbauer
75c8541a8d
tests(clan): move test-inventory.nix to clanLib. And name it 'makeTestClan'
...
Exposing the function via clanLib makes it more accessible to clan modules
This allows each module to define its own test without needing to depend on any fileSystem path assumptions in the clan-core repo
2025-04-15 18:17:40 +02:00
Johannes Kirschbauer
65e1cf5b54
fixup(checks/inventory): remove 'self' from clan settings; doesn't work in the nixos tests yet.
...
We need to reasearch why that is the case.
Removing the option for now to prevent weird bugs
2025-04-12 12:41:11 +02:00
Johannes Kirschbauer
1aa543da67
chore(checks/inventory): doogfood 'clan' flake-parts module into the test, instead of custom inventory logic
2025-04-11 13:52:23 +02:00
Johannes Kirschbauer
24137336f1
chore(checks/inventory): regenerate test vars
2025-04-09 17:32:29 +02:00
Johannes Kirschbauer
e37f16f47a
treewide(clanLib): rename all occurences of {clan-core,self}.lib to 'clanLib'
2025-04-09 11:32:46 +02:00
DavHau
26e97c066c
inventory tests: add vars support
...
- Add support for leading vars
- Extend test to test for vars support
- Improve update-vars.py to take test name as argument
2025-04-08 20:54:11 +07:00
Jörg Thalheim
681d28430b
inventory: don't loose string context of directory
2025-04-08 13:50:27 +02:00
DavHau
11cd91e882
inventory tests: improve framework to set better defaults
2025-04-07 19:58:53 +07:00
DavHau
89bfe4c95f
inventory tests: set machine.name automatically
2025-04-03 17:29:07 +07:00
DavHau
e540b82dc6
remove default for clan.core.settings.machine.name and make readOnly
...
There is not reason that there needs to be a default. Machines are usually defined as an attrset, so there is no reason to have a default.
Also make this readOnly as we never want to override it.
2025-04-03 17:29:07 +07:00
DavHau
8479e6c5c3
inventory test framework: init
...
Add nixos test module checks/lib/test-inventory-nix
accepts new option `inventory` and creates machines accordingly with correct imports
2025-03-31 13:39:23 +07:00
Jörg Thalheim
fbac7439bd
tests: fix warning about invalid nix registry
2025-03-18 13:29:28 +01:00
DavHau
74b30cca9f
switch to nixpkgs hosteded by cache.nixos.org
...
take 2 on https://git.clan.lol/clan/clan-core/pulls/2921
2025-03-07 07:20:07 +00:00
Michael Hoang
4e2ae0f9f6
cli: add morph command
2025-02-16 21:31:28 +07:00
Jörg Thalheim
e27605d3a0
fix system.stateVersion
2025-02-14 12:22:26 +07:00
Jörg Thalheim
f579e62f2e
container test: with writeable nix store
2025-01-31 11:51:00 +00:00
Jörg Thalheim
3bcbc8fa3d
reformat after update
2025-01-14 15:30:29 +01:00
Jörg Thalheim
9b48efcd6d
container-driver: also include journal/systemd status
2025-01-10 12:45:00 +01:00
Jörg Thalheim
03fcf8715b
tests: set stateVersion
2024-11-19 09:46:14 +00:00
DavHau
c2a60dcbb6
tests: minify test machines to decrease runtime
2024-11-13 20:40:01 +07:00
Jörg Thalheim
56cbee45cd
container-driver: ignore lint warning
2024-10-22 12:48:09 +02:00
Jörg Thalheim
31144c88e8
container driver: add wait_until_succeeds
2024-09-24 12:52:53 +02:00
Jörg Thalheim
6fef7c9aa7
fix container test after systemd update
2024-09-24 12:52:53 +02:00
a-kenji
b13ed922b1
Revert "Merge pull request 'machine_id_v2' ( #2052 ) from Qubasa/clan-core:machine_id_v2 into main"
...
This reverts commit 22a11abfe5 , reversing
changes made to 208b71ac0e .
2024-09-10 14:01:12 +02:00
Qubasa
5c975a5eef
clanCore: init machineId and diskId v2
2024-09-09 15:51:31 +02:00
Qubasa
2efa096d29
revert machine_id pull request
2024-09-06 21:38:50 +02:00
Qubasa
4171d5ea4e
clanCore: init machine_id.nix with clan.core.machine.{id,diskId}
2024-09-06 18:05:40 +02:00
Jörg Thalheim
d3afda4d6c
container-driver: use own Exception
2024-09-03 18:13:18 +02:00
DavHau
6e16e54968
vars: make simplify vars store abstraction
2024-09-02 18:44:00 +02:00
Jörg Thalheim
8fbc76ecac
add FA, ICN, ISC, LOG, PIE and PYI linting
2024-09-02 15:41:56 +02:00
Jörg Thalheim
ddaf44a91b
move all ruff settings in one place
2024-09-02 14:07:06 +02:00
Jörg Thalheim
e150b37fb8
enable ASYNC, DTZ, YTT and EM lints
2024-09-02 14:07:06 +02:00
Jörg Thalheim
d4d7085397
sync up linter rules in all files
2024-09-02 13:40:15 +02:00
Jörg Thalheim
c47bd20f29
container-driver: source nixos environment variables in test commands
2024-06-14 11:27:06 +02:00
Jörg Thalheim
e4a7f27b7c
upgrade nix in development to latest
...
Better error messages!!
2024-05-31 16:37:07 +02:00
Jörg Thalheim
ede4d3f6e5
re-format with nixfmt
2024-03-17 19:48:49 +01:00
Jörg Thalheim
d3c09b342d
fix container tests
2024-03-07 14:13:11 +01:00
lassulus
cfdba84d9d
fix pyproject syntax, ignore E731
2024-03-03 06:20:08 +01:00
Jörg Thalheim
e93dff98f6
don't garbage collect in nix vm tests
...
Otherwise we loose our build inputs
2024-01-19 15:02:25 +01:00
lassulus
dc08be2879
checks: move ssh_keys to lib/ssh
2023-12-16 22:52:18 +01:00
Jörg Thalheim
59d1829f4d
disallow variable shadowing
2023-11-30 14:31:37 +01:00
Jörg Thalheim
01dbcec6a1
make type checking more strict
2023-11-30 14:31:37 +01:00
Jörg Thalheim
6f0722c692
modernisation for python 3.11
2023-11-29 13:29:45 +00:00
Jörg Thalheim
7d755beca6
enable more linting
2023-11-29 13:29:45 +00:00
Jörg Thalheim
527db2dbf0
container-driver: fix eval
2023-11-03 14:01:43 +01:00
Jörg Thalheim
d08fe82864
switch from black to ruff for formatting
2023-11-03 13:38:13 +01:00
Jörg Thalheim
1d336ed863
add container test driver
2023-10-25 13:16:13 +00:00
Jörg Thalheim
63bb9395fd
automatically import secrets into nixos
2023-08-23 13:59:43 +02:00