Skip to content

Commit

Permalink
OCM-4331 | ci: fix OCP-63141 to prevent CI failure
Browse files Browse the repository at this point in the history
  • Loading branch information
shellymiron authored and openshift-merge-bot[bot] committed Feb 15, 2024
1 parent 0976a7e commit 20fab2e
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions tests/e2e/verfication_post_day1_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,18 +110,18 @@ var _ = Describe("TF Test", func() {
})
})
Context("Author:smiron-Medium-OCP-63141 @OCP-63141 @smiron", func() {
It("Verify availability zones and multi-az is set post cluster creation", ci.Day1Post, ci.Medium, func() {
vpcService := exe.NewVPCService()
It("Verify availability zones and multi-az are set post cluster creation", ci.Day1Post, ci.Medium, func() {
getResp, err := cms.RetrieveClusterDetail(ci.RHCSConnection, clusterID)
zonesArray := strings.Split(profile.Zones, ",")
clusterAvailZones := cluster.Nodes().AvailabilityZones()
clusterAvailZones := getResp.Body().Nodes().AvailabilityZones()
Expect(err).ToNot(HaveOccurred())
Expect(cluster.MultiAZ()).To(Equal(profile.MultiAZ))
Expect(getResp.Body().MultiAZ()).To(Equal(profile.MultiAZ))

if profile.Zones != "" {
Expect(clusterAvailZones).
To(Equal(H.JoinStringWithArray(profile.Region, zonesArray)))
Expect(clusterAvailZones).To(Equal(H.JoinStringWithArray(profile.Region, zonesArray)))
} else {
vpcOut, _ := vpcService.Output()
Expect(clusterAvailZones).To(Equal(vpcOut.AZs))
// the default zone for each region
Expect(clusterAvailZones[0]).To(Equal(fmt.Sprintf("%sa", profile.Region)))
}
})
})
Expand Down

0 comments on commit 20fab2e

Please sign in to comment.