test: add remote runner vagrant scenario

This commit is contained in:
2026-04-30 07:13:20 +00:00
parent 0ca0d367d3
commit fc29bc9f7e
10 changed files with 387 additions and 1 deletions
+22
View File
@@ -12,6 +12,10 @@ flows.
target HTTP service, runs `uptimerunner` once, verifies the runner fetches
assigned checks, executes them from the local machine, and reports results
back.
- `uptimerunner-vagrant`: starts controller and runner VMs with Vagrant,
installs `uptimerunner` as a systemd service in the runner VM, and verifies
that the remote runner executes a runner-local HTTP check and submits the
result to the controller VM.
## Run
@@ -19,3 +23,21 @@ flows.
pnpm bootstrap:components
pnpm test
```
Run the remote-runner VM scenario with:
```bash
pnpm scenario:uptimerunner-vagrant
```
The VM scenario defaults to the `libvirt` Vagrant provider. Override it with
`UPTIMELINK_VAGRANT_PROVIDER=virtualbox` if needed.
If the current shell has not picked up newly added `libvirt` group membership,
run it without restarting the machine using:
```bash
sg libvirt -c 'pnpm scenario:uptimerunner-vagrant'
```
Stop or remove the VMs with `pnpm vagrant:halt` or `pnpm vagrant:destroy`.