nixosTests.envoy: use port 80 to test CAP_NET_BIND_SERVICE

This commit is contained in:
Vincent Haupert 2023-02-09 11:22:06 +01:00 committed by pennae
parent 8fff553f7e
commit a36fc1d72a

View File

@ -13,7 +13,7 @@ import ./make-test-python.nix ({ pkgs, lib, ...} : {
socket_address = {
protocol = "TCP";
address = "127.0.0.1";
port_value = 9901;
port_value = 80;
};
};
};
@ -27,7 +27,7 @@ import ./make-test-python.nix ({ pkgs, lib, ...} : {
testScript = ''
machine.start()
machine.wait_for_unit("envoy.service")
machine.wait_for_open_port(9901)
machine.wait_until_succeeds("curl -fsS localhost:9901/ready")
machine.wait_for_open_port(80)
machine.wait_until_succeeds("curl -fsS localhost:80/ready")
'';
})