Commit Graph

409 Commits

Author SHA1 Message Date
lassulus
73f4b0f4c6 fix borgbackup check
we need to switch to the classical test environment again, because borg
was complaining otherwise
2024-02-12 12:59:32 +01:00
lassulus
a94201c1d0 allow passing of extra_config into machines 2024-02-11 08:40:41 +01:00
Qubasa
d1a1bcf1eb Added --debug flag clan command in nix tests 2024-02-05 13:37:35 +07:00
Jörg Thalheim
584299e199 rename deployment address to target address
This is a prepares having a build server for deployment
2024-02-02 16:39:29 +07:00
lassulus
b6e67aac60 clan-cli install: use new Machine interface, fix mypy error 2024-01-24 15:49:24 +01:00
lassulus
f67e750bbf clan-cli backups: use new machine class for eval 2024-01-24 15:49:12 +01:00
Jörg Thalheim
e93dff98f6 don't garbage collect in nix vm tests
Otherwise we loose our build inputs
2024-01-19 15:02:25 +01:00
Jörg Thalheim
08085d81dd zt-tcp-relay: add clan module + test 2024-01-12 14:25:31 +01:00
Jörg Thalheim
31fcd44351 drop qemu-rutabaga patches 2024-01-12 12:20:29 +01:00
Qubasa
6647c38417 Working test_secrets_generate 2024-01-11 21:48:39 +01:00
Jörg Thalheim
656d94ed4d schema-check: set clanName dummy 2024-01-11 18:02:50 +01:00
Jörg Thalheim
bb26c85573 drop deadcode 2024-01-11 18:00:42 +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
lassulus
71469d4c8c checks: add test-installation 2023-12-18 23:41:31 +01:00
lassulus
0490cbb52c checks backups: remove debug output 2023-12-18 23:41:31 +01:00
lassulus
f932dab29c flake: define option for clanInternals
We need this to define test machines in different flake modules
2023-12-18 23:41:31 +01:00
lassulus
dc08be2879 checks: move ssh_keys to lib/ssh 2023-12-16 22:52:18 +01:00
lassulus
be33de4ddd checks backup: limit to linux systems 2023-12-16 22:02:36 +01:00
lassulus
e1094742d3 checks: add backup test 2023-12-16 21:46:19 +01:00
Jörg Thalheim
f81a9ffb69 add wayland-proxy-virtwl module 2023-12-15 14:14:20 +01:00
a-kenji
9d2476111f init: syncthing module
Assumes one `introducer` peer, which can AutoShare configured folders,
with peers that know the `deviceID` of the introducer.
2023-12-07 14:10:15 +01:00
clan-bot
1338282c62 Merge pull request 'backups: add clanCore backup & clan borgbackup module' (#605) from lassulus-backups into main 2023-12-04 16:51:33 +00:00
lassulus
83dd430d03 implement backup cli for borgbackup 2023-12-04 17:47:23 +01:00
Jörg Thalheim
59d1829f4d disallow variable shadowing 2023-11-30 14:31:37 +01:00
Jörg Thalheim
01dbcec6a1 make type checking more strict 2023-11-30 14:31:37 +01:00
Jörg Thalheim
6f0722c692 modernisation for python 3.11 2023-11-29 13:29:45 +00:00
Jörg Thalheim
7d755beca6 enable more linting 2023-11-29 13:29:45 +00:00
lassulus
c9d10437e5 backups: add clanCore backup & clan borgbackup module 2023-11-23 18:12:49 +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
Jörg Thalheim
189451d3d2 integrated meshnamed with systemd-resolved 2023-11-15 07:21:26 +01:00
Jörg Thalheim
7fd0f1fbb7 add module for meshnamed 2023-11-14 12:58:15 +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
Jörg Thalheim
89ca442eb3 deltachat: import module from clanModules 2023-11-03 14:02:07 +01:00
Jörg Thalheim
527db2dbf0 container-driver: fix eval 2023-11-03 14:01:43 +01:00
Jörg Thalheim
d08fe82864 switch from black to ruff for formatting 2023-11-03 13:38:13 +01:00
Jörg Thalheim
3a60ec4d98 add deltachat module 2023-11-03 10:39:51 +00:00
Jörg Thalheim
1d336ed863 add container test driver 2023-10-25 13:16:13 +00:00
lassulus
0db337d57e clan-cli secrets upload: secrets are populated into tmpdir 2023-09-29 20:05:35 +02:00
Jörg Thalheim
cc68aac21f also evaluate for aarch64-darwin 2023-09-28 16:01:42 +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
Jörg Thalheim
89cdbdd62a also auto-import group secrets 2023-09-03 14:58:07 +02:00
DavHau
a0d1b09b1d clanCore module: add clanSchema top level option 2023-09-02 18:28:31 +02:00