DavHau
18493f869b
container-tests: add multi-container network
2025-04-22 13:26:37 +02:00
Johannes Kirschbauer
8ae0f5ddcb
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
5e03a44937
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
762cc5e7cb
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
6f7d7e8d98
chore(checks/inventory): regenerate test vars
2025-04-09 17:32:29 +02:00
Johannes Kirschbauer
a6a79e83a0
treewide(clanLib): rename all occurences of {clan-core,self}.lib to 'clanLib'
2025-04-09 11:32:46 +02:00
DavHau
968fe4b64e
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
f008da9472
inventory: don't loose string context of directory
2025-04-08 13:50:27 +02:00
DavHau
b9e1b109a8
inventory tests: improve framework to set better defaults
2025-04-07 19:58:53 +07:00
DavHau
ccaf67e477
inventory tests: set machine.name automatically
2025-04-03 17:29:07 +07:00
DavHau
73d14e078e
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
d53b62170a
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
eb375f3d81
tests: fix warning about invalid nix registry
2025-03-18 13:29:28 +01:00
DavHau
2a4d2c9cb5
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
160bbfcb37
cli: add morph command
2025-02-16 21:31:28 +07:00
Jörg Thalheim
d3bd120a04
fix system.stateVersion
2025-02-14 12:22:26 +07:00
Jörg Thalheim
5d2e3b2b21
container test: with writeable nix store
2025-01-31 11:51:00 +00:00
Jörg Thalheim
e2aa66d86f
reformat after update
2025-01-14 15:30:29 +01:00
Jörg Thalheim
fe80e3c630
container-driver: also include journal/systemd status
2025-01-10 12:45:00 +01:00
Jörg Thalheim
3730960078
tests: set stateVersion
2024-11-19 09:46:14 +00:00
DavHau
0aa63e2e35
tests: minify test machines to decrease runtime
2024-11-13 20:40:01 +07:00
Jörg Thalheim
76c83ef89a
container-driver: ignore lint warning
2024-10-22 12:48:09 +02:00
Jörg Thalheim
419da827ae
container driver: add wait_until_succeeds
2024-09-24 12:52:53 +02:00
Jörg Thalheim
4936db0187
fix container test after systemd update
2024-09-24 12:52:53 +02:00
a-kenji
f1b857f4ae
Revert "Merge pull request 'machine_id_v2' ( #2052 ) from Qubasa/clan-core:machine_id_v2 into main"
...
This reverts commit 68a72a4156 , reversing
changes made to 7af3e80249 .
2024-09-10 14:01:12 +02:00
Qubasa
a0b3275ed1
clanCore: init machineId and diskId v2
2024-09-09 15:51:31 +02:00
Qubasa
323010bb04
revert machine_id pull request
2024-09-06 21:38:50 +02:00
Qubasa
b16a53f510
clanCore: init machine_id.nix with clan.core.machine.{id,diskId}
2024-09-06 18:05:40 +02:00
Jörg Thalheim
8c29c9ad4d
container-driver: use own Exception
2024-09-03 18:13:18 +02:00
DavHau
2621a961e7
vars: make simplify vars store abstraction
2024-09-02 18:44:00 +02:00
Jörg Thalheim
078cab47bf
add FA, ICN, ISC, LOG, PIE and PYI linting
2024-09-02 15:41:56 +02:00
Jörg Thalheim
3d6dbdd97f
move all ruff settings in one place
2024-09-02 14:07:06 +02:00
Jörg Thalheim
15ff74f7c2
enable ASYNC, DTZ, YTT and EM lints
2024-09-02 14:07:06 +02:00
Jörg Thalheim
d5440594be
sync up linter rules in all files
2024-09-02 13:40:15 +02:00
Jörg Thalheim
ec49d1f844
container-driver: source nixos environment variables in test commands
2024-06-14 11:27:06 +02:00
Jörg Thalheim
750c8df003
upgrade nix in development to latest
...
Better error messages!!
2024-05-31 16:37:07 +02:00
Jörg Thalheim
e296a3019d
re-format with nixfmt
2024-03-17 19:48:49 +01:00
Jörg Thalheim
3cc97ebc56
fix container tests
2024-03-07 14:13:11 +01:00
lassulus
ed653fa8b9
fix pyproject syntax, ignore E731
2024-03-03 06:20:08 +01:00
Jörg Thalheim
3271e4b6b6
don't garbage collect in nix vm tests
...
Otherwise we loose our build inputs
2024-01-19 15:02:25 +01:00
lassulus
ae6f3fa7d7
checks: move ssh_keys to lib/ssh
2023-12-16 22:52:18 +01:00
Jörg Thalheim
4fd84d1c48
disallow variable shadowing
2023-11-30 14:31:37 +01:00
Jörg Thalheim
780ffb9c8f
make type checking more strict
2023-11-30 14:31:37 +01:00
Jörg Thalheim
f1b223d0a1
modernisation for python 3.11
2023-11-29 13:29:45 +00:00
Jörg Thalheim
26e3e3872c
enable more linting
2023-11-29 13:29:45 +00:00
Jörg Thalheim
b92052dbfb
container-driver: fix eval
2023-11-03 14:01:43 +01:00
Jörg Thalheim
5cb4019942
switch from black to ruff for formatting
2023-11-03 13:38:13 +01:00
Jörg Thalheim
5753f32930
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