Benjamin Yule Bädorf
ec01fe5eea
Some checks failed
Flake checks / Check (pull_request) Failing after 3m23s
82 lines
1.7 KiB
Nix
82 lines
1.7 KiB
Nix
{
|
|
<<<<<<< HEAD
|
|
self,
|
|
pkgs,
|
|
lib,
|
|
config,
|
|
...
|
|
}:
|
|
{
|
|
name = "website";
|
|
|
|
hostPkgs = pkgs;
|
|
|
|
node.pkgs = pkgs;
|
|
node.specialArgs = self.outputs.nixosConfigurations.nachtigall._module.specialArgs;
|
|
|
|
nodes = {
|
|
acme-server = {
|
|
imports = [
|
|
self.nixosModules.home-manager
|
|
self.nixosModules.core
|
|
./support/ca.nix
|
|
];
|
|
};
|
|
|
|
nachtigall = {
|
|
imports = [
|
|
self.nixosModules.home-manager
|
|
self.nixosModules.core
|
|
self.nixosModules.nginx
|
|
self.nixosModules.nginx-website
|
|
./support/global.nix
|
|
];
|
|
|
|
virtualisation.memorySize = 4096;
|
|
|
|
networking.interfaces.eth0.ipv4.addresses = [
|
|
{
|
|
address = "192.168.1.3";
|
|
prefixLength = 32;
|
|
}
|
|
];
|
|
};
|
|
};
|
|
|
|
testScript = ''
|
|
start_all()
|
|
|
|
acme_server.wait_for_unit("system.slice")
|
|
acme_server.wait_for_unit("step-ca.service")
|
|
acme_server.succeed("ping ca.test.pub.solar -c 2")
|
|
acme_server.wait_until_succeeds("curl 127.0.0.1:443")
|
|
|
|
nachtigall.wait_for_unit("system.slice")
|
|
nachtigall.succeed("ping test.pub.solar -c 2")
|
|
nachtigall.succeed("ping ca.test.pub.solar -c 2")
|
|
nachtigall.wait_for_unit("nginx.service")
|
|
nachtigall.wait_until_succeeds("curl https://test.pub.solar/")
|
|
=======
|
|
self,
|
|
pkgs,
|
|
lib,
|
|
config,
|
|
...
|
|
}: {
|
|
name = "website";
|
|
|
|
nodes.nachtigall-test = self.nixosConfigurations.nachtigall-test;
|
|
|
|
node.specialArgs = self.outputs.nixosConfigurations.nachtigall._module.specialArgs;
|
|
hostPkgs = pkgs;
|
|
|
|
enableOCR = true;
|
|
|
|
testScript = ''
|
|
machine.wait_for_unit("system.slice")
|
|
machine.succeed("ping 127.0.0.1 -c 2")
|
|
machine.succeed("ping iregendeinscheiss.de -c 2")
|
|
>>>>>>> af599c9 (test: add initial e2e test for nachtigall)
|
|
'';
|
|
}
|