Skip to content

Commit

Permalink
NO-JIRA: Revert E2E test upgrade
Browse files Browse the repository at this point in the history
Signed-off-by: Juan Manuel Parrilla Madrid <jparrill@redhat.com>
  • Loading branch information
jparrill committed Dec 19, 2024
1 parent 7b99ad8 commit 72da5e1
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 72da5e1

Please sign in to comment.