nixos/tor: port test to python
This commit is contained in:
parent
b786c1be04
commit
daa97862b5
@ -1,4 +1,4 @@
|
||||
import ./make-test.nix ({ lib, ... }: with lib;
|
||||
import ./make-test-python.nix ({ lib, ... }: with lib;
|
||||
|
||||
rec {
|
||||
name = "tor";
|
||||
@ -21,8 +21,10 @@ rec {
|
||||
};
|
||||
|
||||
testScript = ''
|
||||
$client->waitForUnit("tor.service");
|
||||
$client->waitForOpenPort(9051);
|
||||
$client->succeed("echo GETINFO version | nc 127.0.0.1 9051") =~ /514 Authentication required./ or die;
|
||||
client.wait_for_unit("tor.service")
|
||||
client.wait_for_open_port(9051)
|
||||
assert "514 Authentication required." in client.succeed(
|
||||
"echo GETINFO version | nc 127.0.0.1 9051"
|
||||
)
|
||||
'';
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user