File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff 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 })
630634var _ = Describe ("Edit cluster validation should" , labels .Feature .Cluster , func () {
You can’t perform that action at this time.
0 commit comments