Skip to content

Commit

Permalink
Merge pull request #5323 from jparrill/fix-e2e-upgrade-test
Browse files Browse the repository at this point in the history
NO-JIRA: Revert E2E test change which validates the CVO Image propagation
  • Loading branch information
openshift-merge-bot[bot] authored Dec 19, 2024
2 parents 253fa18 + 72da5e1 commit 04b85e8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/e2e/util/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -390,12 +390,12 @@ func WaitForImageRollout(t *testing.T, ctx context.Context, client crclient.Clie
Status: metav1.ConditionFalse,
}),
func(hostedCluster *hyperv1.HostedCluster) (done bool, reasons string, err error) {
if wanted, got := image, ptr.Deref(hostedCluster.Status.Version, hyperv1.ClusterVersionStatus{}).Desired.Image; wanted != got {
return false, fmt.Sprintf("wanted HostedCluster to desire image %s, got %s", wanted, got), nil
}
if len(ptr.Deref(hostedCluster.Status.Version, hyperv1.ClusterVersionStatus{}).History) == 0 {
return false, "HostedCluster has no version history", nil
}
if wanted, got := hostedCluster.Status.Version.History[0].Version, ptr.Deref(hostedCluster.Status.Version, hyperv1.ClusterVersionStatus{}).Desired.Version; wanted != got {
return false, fmt.Sprintf("wanted HostedCluster to desired version %s, got %s", wanted, got), nil
}
if wanted, got := hostedCluster.Status.Version.Desired.Image, hostedCluster.Status.Version.History[0].Image; wanted != got {
return false, fmt.Sprintf("desired image %s doesn't match most recent image in history %s", wanted, got), nil
}
Expand Down

0 comments on commit 04b85e8

Please sign in to comment.