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 = [ imports = [
self.nixosModules.nixos-wiki self.nixosModules.nixos-wiki
]; ];
networking.extraHosts = ''
127.0.0.1 nixos-wiki.example.com
'';
security.acme.defaults.email = "admin@example.com"; security.acme.defaults.email = "admin@example.com";
services.nixos-wiki = { services.nixos-wiki = {
hostname = "nixos-wiki.example.com"; hostname = "nixos-wiki.example.com";
@ -29,7 +32,7 @@
machine.wait_for_unit("phpfpm-mediawiki.service") machine.wait_for_unit("phpfpm-mediawiki.service")
machine.wait_for_unit("nginx.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 assert "MediaWiki has been installed" in page
''; '';
} }