forked from extern/nixos-wiki-infra
fix nixos test
This commit is contained in:
parent
1ee86bb224
commit
e7b0b5bf3e
@ -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
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user