mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-28 14:22:50 +03:00
nixosTests.coturn: wait_for_open_port
This commit is contained in:
parent
c23b26e93e
commit
144ef637a6
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user