nixosTests.hocker-fetchdocker: port to python

This commit is contained in:
Florian Klink 2020-08-23 11:15:09 +02:00
parent 1ddd030ee6
commit 0e817997a2

View File

@ -1,4 +1,4 @@
import ../make-test.nix ({ pkgs, ...} : {
import ../make-test-python.nix ({ pkgs, ...} : {
name = "test-hocker-fetchdocker";
meta = with pkgs.stdenv.lib.maintainers; {
maintainers = [ ixmatus ];
@ -7,9 +7,9 @@ import ../make-test.nix ({ pkgs, ...} : {
machine = import ./machine.nix;
testScript = ''
startAll;
start_all()
$machine->waitForUnit("sockets.target");
$machine->waitUntilSucceeds("docker run registry-1.docker.io/v2/library/hello-world:latest");
machine.wait_for_unit("sockets.target")
machine.wait_until_succeeds("docker run registry-1.docker.io/v2/library/hello-world:latest")
'';
})