mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
nixosTests.hitch: Port tests to python
This commit is contained in:
parent
5cb7b2cf60
commit
05587aba8b
@ -1,4 +1,4 @@
|
||||
import ../make-test.nix ({ pkgs, ... }:
|
||||
import ../make-test-python.nix ({ pkgs, ... }:
|
||||
{
|
||||
name = "hitch";
|
||||
meta = with pkgs.stdenv.lib.maintainers; {
|
||||
@ -23,11 +23,11 @@ import ../make-test.nix ({ pkgs, ... }:
|
||||
|
||||
testScript =
|
||||
''
|
||||
startAll;
|
||||
start_all()
|
||||
|
||||
$machine->waitForUnit('multi-user.target');
|
||||
$machine->waitForUnit('hitch.service');
|
||||
$machine->waitForOpenPort(443);
|
||||
$machine->succeed('curl -k https://localhost:443/index.txt | grep "We are all good!"');
|
||||
machine.wait_for_unit("multi-user.target")
|
||||
machine.wait_for_unit("hitch.service")
|
||||
machine.wait_for_open_port(443)
|
||||
assert "We are all good!" in machine.succeed("curl -k https://localhost:443/index.txt")
|
||||
'';
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user