Merge pull request #283916 from devusb/fix-pomerium-test

nixos/pomerium: fix UI test
This commit is contained in:
Luke Granger-Brown 2024-01-27 17:02:35 +00:00 committed by GitHub
commit 0f8804e6a5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
import ./make-test-python.nix ({ pkgs, lib, ... }: { import ./make-test-python.nix ({ pkgs, lib, ... }: {
name = "pomerium"; name = "pomerium";
meta = with lib.maintainers; { meta = with lib.maintainers; {
maintainers = [ lukegb ]; maintainers = [ lukegb devusb ];
}; };
nodes = let base = myIP: { pkgs, lib, ... }: { nodes = let base = myIP: { pkgs, lib, ... }: {
@ -103,7 +103,7 @@ import ./make-test-python.nix ({ pkgs, lib, ... }: {
with subtest("ui"): with subtest("ui"):
pomerium.succeed( pomerium.succeed(
# check for a string that only appears if the UI is displayed correctly # 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'" "chromium --no-sandbox --headless --disable-gpu --dump-dom --host-resolver-rules='MAP login.required 127.0.0.1:80' http://login.required/.pomerium | grep 'User Details Not Available'"
) )
''; '';
}) })

View File

@ -122,7 +122,7 @@ buildGoModule rec {
homepage = "https://pomerium.io"; homepage = "https://pomerium.io";
description = "Authenticating reverse proxy"; description = "Authenticating reverse proxy";
license = licenses.asl20; license = licenses.asl20;
maintainers = with maintainers; [ lukegb ]; maintainers = with maintainers; [ lukegb devusb ];
platforms = [ "x86_64-linux" "aarch64-linux" ]; platforms = [ "x86_64-linux" "aarch64-linux" ];
}; };
} }