From b50f1f2fc990a23bd6e63e30a8bdbac0ee8a4782 Mon Sep 17 00:00:00 2001 From: abikouo <79859644+abikouo@users.noreply.github.com> Date: Tue, 22 Jun 2021 08:55:40 +0200 Subject: [PATCH] Fix molecule test ``gc.yml`` (#132) * add until loop * Update gc.yml --- molecule/default/tasks/gc.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/molecule/default/tasks/gc.yml b/molecule/default/tasks/gc.yml index aee5f3a8..81381f4b 100644 --- a/molecule/default/tasks/gc.yml +++ b/molecule/default/tasks/gc.yml @@ -46,6 +46,9 @@ wait: yes wait_timeout: 100 register: job + until: job.resources[0].status.phase == "Running" + retries: 5 + delay: 10 - name: Assert job's pod is running assert: @@ -87,6 +90,9 @@ wait: yes wait_timeout: 100 register: job + until: job.resources[0].status.phase == "Running" + retries: 5 + delay: 10 - name: Assert job's pod is running assert: @@ -129,6 +135,9 @@ wait: yes wait_timeout: 100 register: job + until: job.resources[0].status.phase == "Running" + retries: 5 + delay: 10 - name: Assert job's pod is running assert: