mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-17 06:06:13 +03:00
Merge pull request #283916 from devusb/fix-pomerium-test
nixos/pomerium: fix UI test
This commit is contained in:
commit
0f8804e6a5
@ -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'"
|
||||||
)
|
)
|
||||||
'';
|
'';
|
||||||
})
|
})
|
||||||
|
@ -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" ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user