Fediversity/deployment/check/basic
Nicolas “Niols” Jeannerod f5db62e053 Add a basic integration test (#323)
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>
2025-04-30 15:03:36 +02:00
..
deployer.pub Add a basic integration test (#323) 2025-04-30 15:03:36 +02:00
deployment.nix Add a basic integration test (#323) 2025-04-30 15:03:36 +02:00
flake-part.nix Add a basic integration test (#323) 2025-04-30 15:03:36 +02:00
minimalTarget.nix Add a basic integration test (#323) 2025-04-30 15:03:36 +02:00
nixosTest.nix Add a basic integration test (#323) 2025-04-30 15:03:36 +02:00
README.md Add a basic integration test (#323) 2025-04-30 15:03:36 +02:00
target-network.json Add a basic integration test (#323) 2025-04-30 15:03:36 +02:00
target_host_key.pub Add a basic integration test (#323) 2025-04-30 15:03:36 +02:00

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