fix test executability

This commit is contained in:
David Arnold 2021-04-28 13:43:24 -05:00
parent 050c9f2759
commit 7a93fdce23
No known key found for this signature in database
GPG key ID: 6D6A936E69C59D08
6 changed files with 27 additions and 25 deletions

View file

@ -9,12 +9,12 @@ with lib;
name = "nginx-deployment";
description = "Test testing nginx deployment";
testScript = ''
$kube->waitUntilSucceeds("docker load < ${config.docker.images.nginx.image}");
$kube->waitUntilSucceeds("kubectl apply -f ${config.kubernetes.result}");
kube.wait_until_succeeds("docker load < ${config.docker.images.nginx.image}")
kube.wait_until_succeeds("kubectl apply -f ${config.kubernetes.result}")
$kube->succeed("kubectl get deployment | grep -i nginx");
$kube->waitUntilSucceeds("kubectl get deployment -o go-template nginx --template={{.status.readyReplicas}} | grep 10");
$kube->waitUntilSucceeds("${pkgs.curl}/bin/curl http://nginx.default.svc.cluster.local | grep -i hello");
kube.succeed("kubectl get deployment | grep -i nginx")
kube.wait_until_succeeds("kubectl get deployment -o go-template nginx --template={{.status.readyReplicas}} | grep 10")
kube.wait_until_succeeds({pkgs.curl}/bin/curl http://nginx.default.svc.cluster.local | grep -i hello")
'';
};
}