From 10147f10b852136979e09311e4c8592e78698929 Mon Sep 17 00:00:00 2001 From: Tao Li Date: Mon, 19 Feb 2024 14:08:12 +0800 Subject: [PATCH] hack, force run 4.12 Signed-off-by: Tao Li --- tests/e2e/openshift_upgrade_test.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/e2e/openshift_upgrade_test.go b/tests/e2e/openshift_upgrade_test.go index 3aca461b78..8896ac0558 100644 --- a/tests/e2e/openshift_upgrade_test.go +++ b/tests/e2e/openshift_upgrade_test.go @@ -130,10 +130,14 @@ var _ = Describe("Upgrade Paths on OpenShift", Label(tests.LabelUpgrade), Ordere AssertOperatorIsReady() }) + subScription, err := testsUtils.GetSubscription(env) + GinkgoWriter.Printf("subScription is %v", subScription) // Gather the version and semantic Versions of the operator currentVersion, err := testsUtils.GetSubscriptionVersion(env) + GinkgoWriter.Printf("currentVersion is %v", currentVersion) Expect(err).ToNot(HaveOccurred()) currentSemVersion, err := semver.Make(currentVersion) + GinkgoWriter.Printf("currentSemVersion is %v", currentSemVersion) Expect(err).ToNot(HaveOccurred()) newPolicyRelease, err := semver.Make("1.16.0") Expect(err).ToNot(HaveOccurred()) @@ -155,6 +159,8 @@ var _ = Describe("Upgrade Paths on OpenShift", Label(tests.LabelUpgrade), Ordere // Apply the new subscription to upgrade to a new version of the operator err = testsUtils.UpgradeSubscription(env, upgradeSubscription) Expect(err).ToNot(HaveOccurred()) + subScription, err = testsUtils.GetSubscription(env) + GinkgoWriter.Printf("subScription is %v", subScription) Eventually(func() (string, error) { return testsUtils.GetSubscriptionVersion(env) }, 300).