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
101
})
102
+
103
+
/*// Migrated from case NonHyperShiftHOST-Author:dis-High-OCP-33876-Clusterversion status has metadata stored
104
+
g.It("Clusterversion status has metadata stored", func() {
105
+
ctx := context.Background()
106
+
err := util.SkipIfHypershift(ctx, restCfg)
107
+
o.Expect(err).NotTo(o.HaveOccurred(), "Failed to determine if cluster is HyperShift")
108
+
err = util.SkipIfMicroshift(ctx, restCfg)
109
+
o.Expect(err).NotTo(o.HaveOccurred(), "Failed to determine if cluster is MicroShift")
110
+
111
+
g.By("Checking that the Clusterversion status has metadata stored")
o.Expect(err).NotTo(o.HaveOccurred(), "Failed to get Clusterversion")
129
+
130
+
g.By("Extracting version details from ClusterVersion status")
131
+
o.Expect(clusterversion.Status.Desired.Version).NotTo(o.BeEmpty(), "ClusterVersion desired version should not be empty")
132
+
version:=clusterversion.Status.Desired.Version
133
+
logger.Info("Cluster version detected", "version", version)
134
+
135
+
g.By("Verifying the cluster is using a signed build")
136
+
o.Expect(clusterversion.Status.History).NotTo(o.BeEmpty(), "ClusterVersion history should not be empty")
137
+
currentUpdate:=clusterversion.Status.History[0]
138
+
o.Expect(currentUpdate.Verified).To(o.BeTrue(), "Expected the cluster build to be signed and verified, but Verified is false. Version: %s, Image: %s", currentUpdate.Version, currentUpdate.Image)
139
+
logger.Info("Cluster build is verified", "version", currentUpdate.Version, "image", currentUpdate.Image, "verified", currentUpdate.Verified)
140
+
141
+
g.By("Validating default channel format matches stable-<major>.<minor>")
142
+
channel:=clusterversion.Spec.Channel
143
+
o.Expect(channel).To(o.MatchRegexp(`^stable-\d+\.\d+$`), "Expected channel to match pattern 'stable-<major>.<minor>', but got %s", channel)
144
+
145
+
g.By("Verifying channel matches the cluster's major.minor version")
o.Expect(channel).To(o.Equal(expectedChannelPrefix), "Expected channel to be %s based on version %s, but got %s", expectedChannelPrefix, version, channel)
148
+
logger.Info("Deafault channel for version is correct", "version:", version, "channel:", channel)
0 commit comments