fix nixos test

This commit is contained in:
Jörg Thalheim 2023-12-27 15:18:56 +01:00
parent 1ee86bb224
commit e7b0b5bf3e

View File

@ -6,6 +6,9 @@
imports = [
self.nixosModules.nixos-wiki
];
networking.extraHosts = ''
127.0.0.1 nixos-wiki.example.com
'';
security.acme.defaults.email = "admin@example.com";
services.nixos-wiki = {
hostname = "nixos-wiki.example.com";
@ -29,7 +32,7 @@
machine.wait_for_unit("phpfpm-mediawiki.service")
machine.wait_for_unit("nginx.service")
page = machine.succeed("curl -vL http://localhost/")
page = machine.succeed("curl -vL http://nixos-wiki.example.com/")
assert "MediaWiki has been installed" in page
'';
}