forked from fediversity/fediversity
This PR adds a basic deployment test to the repository. This test will, in a NixOS test, run a deployer VM and a target VM, and check that we manage to run `nixops4 apply` on the deployer VM to change things on the target VM. The ideas are all @roberth's and this test has been extremely heavily inspired by https://github.com/nixops4/nixops4-nixos/blob/main/test/default/nixosTest.nix. Reviewed-on: Fediversity/Fediversity#323 Reviewed-by: Valentin Gagarin <valentin.gagarin@tweag.io> Co-authored-by: Nicolas “Niols” Jeannerod <nicolas.jeannerod@moduscreate.com> Co-committed-by: Nicolas “Niols” Jeannerod <nicolas.jeannerod@moduscreate.com> |
||
|---|---|---|
| .. | ||
| deployer.pub | ||
| deployment.nix | ||
| flake-part.nix | ||
| minimalTarget.nix | ||
| nixosTest.nix | ||
| README.md | ||
| target-network.json | ||
| target_host_key.pub | ||
Basic deployment test
Basic deployment test with one deployer machine, one target machine, and a simple target application, namely cowsay. The goal is to check that basic functionalities are here.
It is heavily inspired by a similar test in nixops4-nixos:
https://github.com/nixops4/nixops4-nixos/blob/main/test/default/nixosTest.nix