Commit Graph

15 Commits

Author SHA1 Message Date
Johannes Kirschbauer
b71e5378d6 Refactor(inventory/modules): add support for local clan.modules and migrate all checks 2025-05-08 17:17:46 +02:00
Jörg Thalheim
4ef664a496 test vars permissions in dummy-test 2025-05-04 14:59:22 +02:00
Johannes Kirschbauer
75932b7b7a fixup: update commen in inventory example test 2025-04-16 10:02:20 +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
RTUnreal
3e6518b0fc checks: fix shellcheck errors 2025-04-09 19:44:00 +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
DavHau
ba69a8a860 inventory tests: generate vars for dummy test 2025-04-08 21:06:23 +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
DavHau
a8e73f0260 inventory tests: generalize update-vars.py
... and move to pkgs/scripts/
2025-04-08 07:45:30 +00:00
DavHau
11cd91e882 inventory tests: improve framework to set better defaults 2025-04-07 19:58:53 +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