Skip to content

Commit c08ef48

Browse files
yuwang-RHolucasfreitas
authored andcommitted
OCM-20111 | test: fix ids: 75922 to update the expected billing account with the cluster config
1 parent 5f21d22 commit c08ef48

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/e2e/test_rosacli_cluster.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -620,11 +620,15 @@ var _ = Describe("Edit cluster",
620620
"not valid. Rerun the command with a valid billing account number"))
621621

622622
By("Check the billing account is NOT changed")
623+
clusterConfig, err := config.ParseClusterProfile()
624+
Expect(err).ToNot(HaveOccurred())
623625
output, err = clusterService.DescribeCluster(clusterID)
624626
Expect(err).To(BeNil())
625627
CD, err := clusterService.ReflectClusterDescription(output)
626628
Expect(err).To(BeNil())
627-
Expect(CD.AWSBillingAccount).To(Equal(constants.BillingAccount))
629+
if clusterConfig.BillingAccount != "" {
630+
Expect(CD.AWSBillingAccount).To(Equal(clusterConfig.BillingAccount))
631+
}
628632
})
629633
})
630634
var _ = Describe("Edit cluster validation should", labels.Feature.Cluster, func() {

0 commit comments

Comments
 (0)