diff options
author | github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | 2023-03-18 18:01:02 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-18 18:01:02 +0000 |
commit | 403b148aa51073bc343febbbfd041ecd495dbe3e (patch) | |
tree | c87344999d503ac574fdb3edc2fd21322298b555 /nixos/tests | |
parent | 7f0b38bc9a7d016ab7f5eab51d637315cfc33419 (diff) | |
parent | d3840956451bc76c9e81134b2af21844ddac0ef3 (diff) |
Merge master into staging-next
Diffstat (limited to 'nixos/tests')
-rw-r--r-- | nixos/tests/pomerium.nix | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/nixos/tests/pomerium.nix b/nixos/tests/pomerium.nix index 7af8283264489..abaf56c518e05 100644 --- a/nixos/tests/pomerium.nix +++ b/nixos/tests/pomerium.nix @@ -20,6 +20,7 @@ import ./make-test-python.nix ({ pkgs, lib, ... }: { }; in { pomerium = { pkgs, lib, ... }: { imports = [ (base "192.168.1.1") ]; + environment.systemPackages = with pkgs; [ chromium ]; services.pomerium = { enable = true; settings = { @@ -98,5 +99,11 @@ import ./make-test-python.nix ({ pkgs, lib, ... }: { pomerium.succeed( "curl -L --resolve login.required:80:127.0.0.1 http://login.required | grep 'hello I am login page'" ) + + with subtest("ui"): + pomerium.succeed( + # check for a string that only appears if the UI is displayed correctly + "chromium --no-sandbox --headless --disable-gpu --dump-dom --host-resolver-rules='MAP login.required 127.0.0.1:80' http://login.required/.pomerium | grep 'contact your administrator'" + ) ''; }) |