Skip to content

Commit fa8a4a5

Browse files
committed
Add nixos test check for Wagtail admin login page
1 parent 0514ae2 commit fa8a4a5

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,3 +195,4 @@ strykeforce.sql.gz
195195
/static
196196
/cache
197197
/image_renditions
198+
.nixos-test-history

lib/overrides-strykeforce.nix

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ final: prev: {
5757

5858
strykeforce.services.website = {
5959
enable = true;
60+
allowedHosts = "localhost";
6061
ssl = false;
6162
secrets = [ secrets ];
6263
};
@@ -82,6 +83,9 @@ final: prev: {
8283
# wait for service
8384
machine.wait_for_unit("strykeforce-website.service")
8485
machine.wait_until_succeeds("curl -sLf http://localhost:8000/static/2767/main.css")
86+
machine.succeed("curl -sLf http://localhost:8000/static/2767/main.js")
87+
html = machine.succeed("curl -sLf http://localhost:8000/admin/")
88+
assert "<title>Sign in - Wagtail</title>" in html
8589
'';
8690
};
8791
};

0 commit comments

Comments
 (0)