nixos/nitter: test with CAP_NET_BIND_SERVICE

This commit is contained in:
Alexandre Iooss 2021-08-08 15:29:33 +02:00
parent 9898f7e072
commit 2e8e8f2c92
No known key found for this signature in database
GPG Key ID: 6C79278F3FCDCC02

View File

@ -6,11 +6,13 @@ import ./make-test-python.nix ({ pkgs, ... }:
nodes.machine = {
services.nitter.enable = true;
# Test CAP_NET_BIND_SERVICE
services.nitter.server.port = 80;
};
testScript = ''
machine.wait_for_unit("nitter.service")
machine.wait_for_open_port("8080")
machine.succeed("curl --fail http://localhost:8080/")
machine.wait_for_open_port("80")
machine.succeed("curl --fail http://localhost:80/")
'';
})