fix tests and examples

This commit is contained in:
Jaka Hudoklin 2020-01-14 19:13:33 +00:00
parent 80cb43fcea
commit acd93f0748
No known key found for this signature in database
GPG key ID: D1F18234B07BD6E2
8 changed files with 20 additions and 16 deletions

View file

@ -10,7 +10,7 @@ with lib;
description = "Test testing nginx deployment";
testScript = ''
$kube->waitUntilSucceeds("docker load < ${config.docker.images.nginx.image}");
$kube->waitUntilSucceeds("kubectl apply -f ${toYAML config.kubernetes.generated}");
$kube->waitUntilSucceeds("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");