Commit Graph

411 Commits

Author SHA1 Message Date
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
Jörg Thalheim
fbac7439bd tests: fix warning about invalid nix registry 2025-03-18 13:29:28 +01:00
Jörg Thalheim
59cca52f55 actually hide test-fixture from user
if we actually want to avoid the dependency on this facter json, we
cannot expose this as a flake input because nix flake archive will have
to download this on each deployment step.
2025-03-11 12:23:59 +00:00
Jörg Thalheim
fc0429ab0c checks/morph: after flake update, increase memory size to 2048 2025-03-11 09:46:54 +00:00
Michael Hoang
685effd22b checks: use facter.json from external test-fixtures repo 2025-03-10 12:30:03 +09:00
Michael Hoang
7608bab20a checks: don't expose systems that can't be evaluated 2025-03-10 11:58:32 +09:00
Michael Hoang
2388654325 checks: test installation on system-less systems 2025-03-10 11:58:32 +09:00
Michael Hoang
0ec2797441 checks/installation: use test-flake instead of self 2025-03-10 11:58:32 +09:00
Johannes Kirschbauer
fb883e54a6 Inventory: rename internal inventory toplevel attribute to 'inventoryClass' 2025-03-07 12:30:29 +00: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
35455afeb8 nixos/clan: rename setDefaults to enableRecommendedDefaults 2025-03-05 03:37:41 +00:00
Johannes Kirschbauer
8a04ee6d20 Tests: migrate backup tests to use inventory 2025-03-03 02:28:03 +00:00
lassulus
300aaa48e7 clan-cli: use new flake caching for machines 2025-02-23 15:58:03 +01: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
Johannes Kirschbauer
6f41118be4 Add missing test dependency 2025-02-08 10:48:57 +07:00
Johannes Kirschbauer
2178ebecc5 checks: fix source of backups vm test 2025-02-05 10:25:45 +07:00
Michael Hoang
9458fdf7bc clan-cli: fix clan-cli accidentally dependending on all packages 2025-02-04 04:52:47 +00:00
Jörg Thalheim
f579e62f2e container test: with writeable nix store 2025-01-31 11:51:00 +00:00
Michael Hoang
f0a07bbfae flash: don't allow partitioning time secrets 2025-01-21 11:13:51 +00:00
lassulus
292a488cce extend installation-test to check partitioning secrets 2025-01-21 11:13:51 +00:00
lassulus
b12abb208f checks.flash: add missing grub-install deps 2025-01-17 11:37:03 +00:00
DavHau
5ce72dd261 tests: reduce unnecessary rebuilds of several tests
Some test were referring to the whole source code via ${self} which amde them rebuild on every single commit.

This is not mitigated by introduceing `self.filter { include = [...]; }` allowin to a content addressed subset of the source code in tests.
2025-01-17 17:00:18 +07:00
clan-bot
4c284bb86b Merge pull request 'Migrate borgbackup module to vars' (#2741) from pinpox/clan-core:migrate-borgbackup-vars into main 2025-01-16 12:16:37 +00:00
Pablo Ovelleiro Corral
038083bece Migrate borgbackup module to vars 2025-01-16 13:14:24 +01:00
Jörg Thalheim
cb8ca601e2 switch to nixos-facter for hardware-config 2025-01-15 13:59:49 +00:00
Jörg Thalheim
3bcbc8fa3d reformat after update 2025-01-14 15:30:29 +01:00
Jörg Thalheim
9b885f54af matrix-synapse: migrate to vars 2025-01-14 14:16:19 +00:00
Jörg Thalheim
9b48efcd6d container-driver: also include journal/systemd status 2025-01-10 12:45:00 +01:00
Johannes Kirschbauer
d46ffe9f4a Chore:_migrate 'machineName' to 'settings.machine.name' 2024-12-31 14:55:50 +01:00
Johannes Kirschbauer
315be52e34 Chore: init settings submdule, move clanDir into settings submodule 2024-12-31 14:18:09 +01:00