pinpox
3ac8ec31c7
fix: use custom git config in impure-checks to avoid system dependency
2025-06-20 10:40:32 +02:00
Jörg Thalheim
ec738fac30
impure-checks: limit number of workers to number of tests
2025-04-16 15:05:59 +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
69c717ae1f
Tests: reconfigure pytest test folder after moving it into clan_cli
2025-04-08 20:13:13 +02:00
Jörg Thalheim
f31864368c
run tests less verbose in CI
2024-11-26 14:38:59 +01:00
DavHau
e7d5a6f854
impure-checks: improve performance by disabling dynamic deps
2024-07-16 12:42:45 +07:00
a-kenji
ecb74a5b39
impure-checks: unset CLAN_DIR
...
Unset `CLAN_DIR` in the impure checks, so that it won't reference the
users configuration.
Fixes #1419
2024-05-24 12:03:11 +02:00
Jörg Thalheim
ede4d3f6e5
re-format with nixfmt
2024-03-17 19:48:49 +01:00
Qubasa
6647c38417
Working test_secrets_generate
2024-01-11 21:48:39 +01:00
Jörg Thalheim
ca0749c76f
drop runSchemaTests/runMockApi from checks
2024-01-11 17:53:06 +01:00
DavHau
5cdd9a1817
VMs: port vm_persistence test to python
2024-01-09 14:47:33 +07:00
DavHau
4bdf769075
VMs: persist state folders on host
...
Done:
- move vm inspect attrs from system.clan.vm.config to clanCore.vm.inspect. This gives us proper name and type checking. everything in `system` is basically freeform, so the previous option definitions were never enforced
- when running VMs, mount state directory from ~/.config/clan/vmstate/{...} from the host to /var/vmstate inside the vm
- create bind mount inside the VM from /var/vmstate/{folder} to / for all folders defined in clanCore.state.<name>.folders
TODOs:
- make sure directories in ~/.config/clan/vmstate never collide (include hash of clan-url, etc.)
- port impure test to python
2024-01-08 18:38:07 +07:00
Qubasa
c6188c17fb
pytest: Removed -s flag for CI
2023-12-26 18:20:41 +01:00
Qubasa
ad4032e214
schemathesis: Add as runnable application instead of library to resolve httpx dependency collision issue
2023-11-20 17:14:12 +01:00
DavHau
fc1591a0a8
api/schema: get schema without having a machine
...
Also done:
- add @pytest.mark.with_core indicating that a test depends on clan-core and cannot be cached
- separate unit tests into two derivations, ones that can be cached and ones that cannot.
- fix frontend typescript code
2023-11-09 15:30:25 +07:00
Qubasa
93c6270386
Added deal contract framework and testing documentation
2023-11-08 19:56:07 +01:00
lassulus
0db337d57e
clan-cli secrets upload: secrets are populated into tmpdir
2023-09-29 20:05:35 +02:00
DavHau
9825c179a8
impure-tests: migrate bash to pytest and fix stuff
2023-09-22 18:32:28 +02:00
lassulus
17520e2553
fix impure tests
2023-09-21 18:29:18 +02:00
Jörg Thalheim
18c360f729
make all pytest dependencies also available to impure tests
2023-09-21 17:25:32 +02:00
DavHau
0ee6de86af
checks: run impure pytest tests in CI pipeline
2023-09-19 16:46:46 +02:00
Jörg Thalheim
618fb4b8a7
impureTest: add clan to $PATH for debugging
2023-09-03 15:17:28 +02:00
DavHau
a0d1b09b1d
clanCore module: add clanSchema top level option
2023-09-02 18:28:31 +02:00
DavHau
414033392e
new-clan: update template and add test
2023-09-02 16:12:37 +02:00
Jörg Thalheim
c9adf12e72
reduce impure tests to just instantiate the template
2023-08-27 10:11:45 +02:00