Commit Graph

17 Commits

Author SHA1 Message Date
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