nixosTests.coturn: wait_for_open_port

This commit is contained in:
0x4A6F 2023-06-13 22:48:29 +02:00
parent c23b26e93e
commit 144ef637a6
No known key found for this signature in database
GPG Key ID: 8DEDBA5BE07080E1

View File

@ -24,6 +24,7 @@ import ./make-test-python.nix ({ pkgs, ... }: {
with subtest("works with static-auth-secret-file"):
secretsfile.wait_for_unit("coturn.service")
secretsfile.wait_for_open_port(3478)
secretsfile.succeed("grep 'some-very-secret-string' /run/coturn/turnserver.cfg")
# Forbidden IP, fails:
secretsfile.fail("${pkgs.coturn}/bin/turnutils_uclient -W some-very-secret-string 127.0.0.1 -DgX -e 127.0.0.1 -n 1 -c -y")