aboutsummaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* rigs: the guest's names, rig.* and rig-*tv18 hours1-2/+2
| | | | | | | | | | | | The project is called rigs now, as it runs its VMs in Cloud Hypervisor, too, not only Firecracker. So the guest's options (rig.secrets, rig.home.required, rig.nix, ...), its kernel command line (rig.vmm, rig.home, rig.xchg, rig.registration, rig.9pPORT), its units (rig-secrets, rig-home, rig-xchg, rig-vmm-exit, rig-drop-caches, rig-rw-store-unshadow), the drives' labels (rig-layer-K, rig-store, rig-home; the run script relabels existing store and home images), and the images (rig-layer-K.img) lose the fc and firecracker. Firecracker itself, the VMM, keeps its name.
* tests/vm-host.nix: the HTTPS proxytv20 hours1-7/+89
| | | | | | | | | | | | | | The proxy was only ever tested by hand, in network namespaces, with its configuration taken out of the module. Now the VM test covers it with the module for real: an upstream (openssl s_server) serving allowed.test & co. with a certificate from a test CA the host trusts, and untrusted.test with a self-signed one, and a dnsmasq on the host's lo as nginx's resolver. Checked: whole domains passed through (with the upstream's certificate, subdomains too), path rules decrypted (with the proxy's), other paths, `..`, `%2e%2e` and a Host other than the server name refused, names without a rule and other guests' rules refused, an upstream certificate that doesn't verify a 502, POST /check for https://, the log lines, and rules changing without a reload.
* tests: the run script in qemu, and a NixOS VM test of modules/hosttv20 hours4-0/+188
Both were only in the sandbox the project was developed in so far. tests/qemu builds the run script with a qemu stand-in for Firecracker (same kernel, initrd, drives, vsock via vhost-device-vsock; network via qemu's user networking, the guest's port 22 on 127.0.0.1:2222) and a test layer running a script at the end of boot, its output on the console. The run script still takes a tap, so it needs modules/host where it runs. tests/vm-host.nix is a NixOS VM test of modules/host, with network namespaces on veths in place of taps as guests: a VM's static address by name, tcp:// rules over IPv4 and IPv6 and by name, DNS, anti-spoofing, POST /check, the path units and the timer.