You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
o.Expect(sccAnnotation).To(o.Equal("hostaccess"), "Expected the annotation 'openshift.io/scc annotation' on pod %s to have the value 'hostaccess', but got %s", cvoPod.Name, sccAnnotation)
101
105
})
106
+
107
+
// Migrated from case Author:jiajliu-Medium-53906-The architecture info in clusterversion's status should be correct
108
+
// Refer to https://github.com/jiajliu/openshift-tests-private/blob/1ac5f94ee596419194ff7b0070732cb7930fe39e/test/extended/ota/cvo/cvo.go#L1775
109
+
g.It("should have correct architecture info in clusterversion status", func() {
o.Expect(nodeArchs).To(o.HaveLen(1), "Expected all nodes to have the same architecture in non-heterogeneous cluster, but found: %v", sets.List(nodeArchs))
169
+
170
+
expectedArch:=sets.List(nodeArchs)[0]
171
+
g.By("Verifying ClusterVersion status architecture matches node architecture")
172
+
o.Expect(cvArchInfo).To(o.ContainSubstring(expectedArch), "ClusterVersion ReleaseAccepted message should contain node architecture %q, but got: %s", expectedArch, cvArchInfo)
173
+
} else {
174
+
// For heterogeneous payload, the architecture info in ClusterVersion status should be Multi
175
+
g.By("Verifying ClusterVersion status architecture includes architecture=\"Multi\"")
176
+
expectedArchMsg:=`architecture="Multi"`
177
+
o.Expect(cvArchInfo).To(o.ContainSubstring(expectedArchMsg), "ClusterVersion ReleaseAccepted message should contain %q for heterogeneous payload, but got: %s", expectedArchMsg, cvArchInfo)
0 commit comments