diff options
author | Luke Granger-Brown <git@lukegb.com> | 2023-03-18 17:49:01 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-18 17:49:01 +0000 |
commit | d3840956451bc76c9e81134b2af21844ddac0ef3 (patch) | |
tree | fd33310403772c8403e471f7b1ed222372758820 /nixos | |
parent | 8db72e3b7eac911b4c14a24c56741d98ac7eac94 (diff) | |
parent | c1bfba963d794bce5715e6cf2c61e323e67272f7 (diff) |
Merge pull request #221838 from devusb/pomerium
pomerium: 0.20.0 -> 0.21.2
Diffstat (limited to 'nixos')
-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'" + ) ''; }) |