diff options
author | Alexandre Iooss <erdnaxe@crans.org> | 2021-08-08 15:29:33 +0200 |
---|---|---|
committer | Alexandre Iooss <erdnaxe@crans.org> | 2021-08-08 15:29:33 +0200 |
commit | 2e8e8f2c92a76535fa0d44611a20b97ee6b75927 (patch) | |
tree | fbe40475ccc4ee403f849dd45770ff5f4f13fdd4 /nixos/tests/nitter.nix | |
parent | 9898f7e0728d45cf9cd60d340e023683b7b6472d (diff) | |
download | nixpkgs-2e8e8f2c92a76535fa0d44611a20b97ee6b75927.tar nixpkgs-2e8e8f2c92a76535fa0d44611a20b97ee6b75927.tar.gz nixpkgs-2e8e8f2c92a76535fa0d44611a20b97ee6b75927.tar.bz2 nixpkgs-2e8e8f2c92a76535fa0d44611a20b97ee6b75927.tar.lz nixpkgs-2e8e8f2c92a76535fa0d44611a20b97ee6b75927.tar.xz nixpkgs-2e8e8f2c92a76535fa0d44611a20b97ee6b75927.tar.zst nixpkgs-2e8e8f2c92a76535fa0d44611a20b97ee6b75927.zip |
nixos/nitter: test with CAP_NET_BIND_SERVICE
Diffstat (limited to 'nixos/tests/nitter.nix')
-rw-r--r-- | nixos/tests/nitter.nix | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/nixos/tests/nitter.nix b/nixos/tests/nitter.nix index e17f1c47343..0e1a6d150f3 100644 --- a/nixos/tests/nitter.nix +++ b/nixos/tests/nitter.nix @@ -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/") ''; }) |