2024-04-28 15:25:40 +00:00
|
|
|
{
|
|
|
|
self,
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
config,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
{
|
|
|
|
name = "website";
|
|
|
|
|
2024-08-23 20:50:22 +00:00
|
|
|
hostPkgs = pkgs;
|
2024-04-28 15:25:40 +00:00
|
|
|
|
2024-08-23 20:50:22 +00:00
|
|
|
node.pkgs = pkgs;
|
2024-04-28 15:25:40 +00:00
|
|
|
node.specialArgs = self.outputs.nixosConfigurations.nachtigall._module.specialArgs;
|
2024-08-23 20:50:22 +00:00
|
|
|
|
2024-08-24 14:21:48 +00:00
|
|
|
nodes.nachtigall_test = {
|
2024-08-23 20:50:22 +00:00
|
|
|
imports = [
|
|
|
|
self.nixosModules.home-manager
|
|
|
|
self.nixosModules.core
|
|
|
|
self.nixosModules.nginx
|
2024-08-24 14:21:48 +00:00
|
|
|
self.nixosModules.keycloak
|
2024-08-23 20:50:22 +00:00
|
|
|
];
|
|
|
|
};
|
2024-04-28 15:25:40 +00:00
|
|
|
|
|
|
|
enableOCR = true;
|
|
|
|
|
|
|
|
testScript = ''
|
2024-08-23 20:50:22 +00:00
|
|
|
nachtigall_test.wait_for_unit("system.slice")
|
|
|
|
nachtigall_test.succeed("ping 127.0.0.1 -c 2")
|
|
|
|
nachtigall_test.wait_for_unit("nginx.service")
|
2024-08-24 14:21:48 +00:00
|
|
|
nachtigall_test.succeed("curl https://test.pub.solar/")
|
|
|
|
nachtigall_test.succeed("curl https://www.test.pub.solar/")
|
2024-04-28 15:25:40 +00:00
|
|
|
'';
|
|
|
|
}
|