From 2f21b747a119d1427111987255a508e4e26b086f Mon Sep 17 00:00:00 2001 From: Abhinav Dahiya Date: Sat, 19 Oct 2019 17:07:52 -0700 Subject: [PATCH] test/extended/operators: ensure clusterversion current version is set The check was dropped in 040f521 [1] during the rebase. reinstating the check correctly. [1]: https://github.com/openshift/origin/commit/040f521d78039a06be7c5393bc6968285ae4ba4e --- test/extended/operators/operators.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/extended/operators/operators.go b/test/extended/operators/operators.go index 1cc6f2345a66..c4e0e2202170 100644 --- a/test/extended/operators/operators.go +++ b/test/extended/operators/operators.go @@ -58,6 +58,11 @@ var _ = g.Describe("[Feature:Platform][Smoke] Managed cluster should", func() { cv := objx.Map(obj.UnstructuredContent()) lastErr = nil lastCV = cv + payload := cv.Get("status.desired.payload").String() + if len(payload) == 0 { + e2e.Logf("ClusterVersion has no current payload version") + return false, nil + } if cond := condition(cv, "Progressing"); cond.Get("status").String() != "False" { e2e.Logf("ClusterVersion is still progressing: %s", cond.Get("message").String()) return false, nil