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";
|
name = "hitch";
|
||||||
meta = with pkgs.stdenv.lib.maintainers; {
|
meta = with pkgs.stdenv.lib.maintainers; {
|
||||||
|
@ -23,11 +23,11 @@ import ../make-test.nix ({ pkgs, ... }:
|
||||||
|
|
||||||
testScript =
|
testScript =
|
||||||
''
|
''
|
||||||
startAll;
|
start_all()
|
||||||
|
|
||||||
$machine->waitForUnit('multi-user.target');
|
machine.wait_for_unit("multi-user.target")
|
||||||
$machine->waitForUnit('hitch.service');
|
machine.wait_for_unit("hitch.service")
|
||||||
$machine->waitForOpenPort(443);
|
machine.wait_for_open_port(443)
|
||||||
$machine->succeed('curl -k https://localhost:443/index.txt | grep "We are all good!"');
|
assert "We are all good!" in machine.succeed("curl -k https://localhost:443/index.txt")
|
||||||
'';
|
'';
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue