441 Commits

Author SHA1 Message Date
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
9253a7502b chore(checks): rename data-mesher test attributes 2025-04-11 13:53:04 +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
RTUnreal
3e6518b0fc checks: fix shellcheck errors 2025-04-09 19:44:00 +02:00
Johannes Kirschbauer
61d1cf32ab chore(clan/pytest): discover all test files in the tree 2025-04-09 18:54:57 +02:00
Johannes Kirschbauer
b0fb0752e9 fix(checks/data-mesher): format, dont pass a duplicate data-mesher module 2025-04-09 18:03:04 +02:00
Johannes Kirschbauer
24137336f1 chore(checks/inventory): regenerate test vars 2025-04-09 17:32:29 +02:00
Johannes Kirschbauer
c67481c474 fix(checks/inventory): use buildClan instead of buildInventory 2025-04-09 17:31:35 +02:00
Mic92
5705200406 Merge pull request 'speedup morph test' (#3266) from morph-test into main
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3266
2025-04-09 15:28:20 +00:00
hsjobeki
963248ccff Merge pull request 'treewide(clanLib): rename all occurences of {clan-core,self}.lib to 'clanLib'' (#3263) from hsjobeki/clan-core:lib-cleanup into main
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3263
2025-04-09 15:10:42 +00:00
Jörg Thalheim
92ac257999 speedup morph test 2025-04-09 17:06:34 +02:00
Jörg Thalheim
7b0e845d5d checks/morph: strip test prefix
this is making it consistent with otther tests.
2025-04-09 16:58:48 +02:00
Mic92
afbae04aa6 Merge pull request 'checks/installation: restore the install without system aspect' (#3261) from flakiness into main
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3261
2025-04-09 11:39:17 +00:00
Jörg Thalheim
2c83211c1d checks/installation: restore the install without system aspect 2025-04-09 11:32:28 +00:00
Mic92
b8e33babec Merge pull request 'installation: speed up by installing to localhost' (#3255) from flakiness into main
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3255
2025-04-09 09:58:43 +00:00
Jörg Thalheim
e25cd73e99 installation: use clan-cli-full so that nix doesn't try to evaluate deps 2025-04-09 09:52:56 +00:00
Jörg Thalheim
4e9c214c68 checks/installation: move updating hardware configuration to it's own test
for some reason those are very slow. Moving them to their own test
breaks down the critical path.
2025-04-09 09:52:56 +00:00
Jörg Thalheim
164b1a6c68 installation: speed up by installing to localhost
we test other types of installation already in nixos-anywhere so we can
speed up this test quite a bit by not having a seperate machine to
install to.
2025-04-09 09:36:46 +00:00
Johannes Kirschbauer
e37f16f47a treewide(clanLib): rename all occurences of {clan-core,self}.lib to 'clanLib' 2025-04-09 11:32:46 +02:00
hsjobeki
1eb5423b6b Merge pull request 'pkgs/cli: Move the test folder inside the python module' (#2973) from kenji/clan-core:split-testing-up into main
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/2973
2025-04-08 20:06:59 +00:00
Jörg Thalheim
1ba872f75f installation: use ip addresses to decrease flakiness 2025-04-08 21:19:47 +02:00
Jörg Thalheim
d45deff922 replace original installation test with installation-without-system 2025-04-08 20:41:31 +02:00
Jörg Thalheim
a4781e218c flash: test existing mount with spaces 2025-04-08 20:16:23 +02:00
Johannes Kirschbauer
69c717ae1f Tests: reconfigure pytest test folder after moving it into clan_cli 2025-04-08 20:13:13 +02:00
DavHau
ba69a8a860 inventory tests: generate vars for dummy test 2025-04-08 21:06:23 +07:00
DavHau
7abaee1398 data-mesher: generate vars for test vis update-vars.py 2025-04-08 20:54:11 +07:00
DavHau
607a7fedd4 data-mesher: use inventory test framework for vars 2025-04-08 20:54:11 +07: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
Jörg Thalheim
99bcd3f797 installation: use networkd everywhere 2025-04-08 10:33:48 +02:00
DavHau
a8e73f0260 inventory tests: generalize update-vars.py
... and move to pkgs/scripts/
2025-04-08 07:45:30 +00:00
DavHau
99f8bcc13c data-mesher: use new test framework 2025-04-07 20:43:19 +07: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
c411e8bddc remove definitions of clan.core.settings.machine.name on tests 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
Johannes Kirschbauer
a3b636aab3 fix(tests): include 'lib' always as a whole 2025-03-30 15:29:05 +02:00
brianmcgee
ed69e04bd9 Merge pull request 'data-mesher-module' (#3086) from data-mesher-module into main
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3086
2025-03-29 14:07:42 +00:00
Pablo Ovelleiro Corral
8ed186ce55 data-mesher: init module
Co-authored-by: Brian McGee <brian@bmcgee.ie>
2025-03-29 13:49:41 +00:00
Qubasa
0afbf9dd45 checks/installation-without-system: modify to install through normal user instead of root 2025-03-26 18:37:31 +01:00
Michael Hoang
b15d3f783a checks/flash: support aarch64-linux 2025-03-24 19:13:20 +09:00
Michael Hoang
711ccc4d8a checks/installation-without-system: add aarch64-linux facter.json
This doesn't fix the test on `aarch64-linux` but brings it inline with
where `test-installation` fails.
2025-03-24 18:37:46 +09:00
Michael Hoang
82509e9d17 checks: don't build test machines as they may be system-less now 2025-03-24 17:27:36 +09:00
Michael Hoang
bd9078e14e checks/backups: don't hardcode system 2025-03-24 17:26:48 +09:00
Michael Hoang
199bac0201 checks: disable all failing aarch64-linux checks 2025-03-24 12:50:57 +09:00
Jörg Thalheim
a4ded2fd70 tests/installer/client: increase RAM 2025-03-22 17:07:52 +01:00
Michael Hoang
62d9a325a2 checks: use pkgs.nixVersions.latest until pkgs.nix is 2.26+ 2025-03-20 15:52:13 +09:00
Michael Hoang
75aecf66db checks: ensure updating hardware config doesn't require system 2025-03-19 15:28:52 +09:00
Jörg Thalheim
88a516855a work around in installation test by using newer nix version 2025-03-18 13:29:28 +01:00