Skip to content

Commit 5c9035b

Browse files
committed
Print action plan
1 parent 70312f3 commit 5c9035b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/e2e/kubectl.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,9 @@ def create_and_check(manifest, check, kind="chi", ns=None, shell=None, timeout=1
172172
# wait_field_changed("chi", chi_name, state_field, prev_state, ns)
173173
wait_field(kind=kind, name=chi_name, field=".status.status", value="InProgress"
174174
, ns=ns, retries=3, throw_error=False, shell=shell)
175+
actionPlan = get_chi_actionPlan(chi_name, ns, shell)
176+
print(actionPlan)
177+
175178
wait_field(kind=kind, name=chi_name, field=".status.status", value="Completed"
176179
, ns=ns, shell=shell)
177180

@@ -234,6 +237,10 @@ def get_chi_normalizedCompleted(chi, ns=None, shell=None):
234237
chi_storage = get("configmap", f"chi-storage-{chi}", ns=ns)
235238
return json.loads(chi_storage["data"]["status-normalizedCompleted"])
236239

240+
def get_chi_actionPlan(chi, ns=None, shell=None):
241+
chi_storage = get("configmap", f"chi-storage-{chi}", ns=ns)
242+
return chi_storage["data"]["status-actionPlan"]
243+
237244

238245
def create_ns(ns):
239246
if ns is None:

0 commit comments

Comments
 (0)