@@ -372,25 +372,29 @@ var _ = Describe("indingsep test", func() {
372372 testcaseEnvInst .Log .Info ("Ensure that Indexer Cluster is in Ready phase" )
373373 testenv .SingleSiteIndexersReady (ctx , deployment , testcaseEnvInst )
374374
375- // Get instance of current Ingestor Cluster CR with latest config
376- testcaseEnvInst .Log .Info ("Get instance of current Ingestor Cluster CR with latest config" )
377- ingest := & enterpriseApi.IngestorCluster {}
378- err = deployment .GetInstance (ctx , deployment . GetName () + "-ingest" , ingest )
379- Expect (err ).To (Succeed (), "Failed to get instance of Ingestor Cluster " )
380-
381- // Update instance of Ingestor Cluster CR with new bus configuration
382- testcaseEnvInst .Log .Info ("Update instance of Ingestor Cluster CR with new bus configuration" )
383- ingest .Spec . BusConfigurationRef = v1. ObjectReference { Name : bc . Name }
384- err = deployment .UpdateCR (ctx , ingest )
385- Expect (err ).To (Succeed (), "Unable to deploy Ingestor Cluster with updated CR" )
375+ // Get instance of current Bus Configuration CR with latest config
376+ testcaseEnvInst .Log .Info ("Get instance of current Bus Configuration CR with latest config" )
377+ bus := & enterpriseApi.BusConfiguration {}
378+ err = deployment .GetInstance (ctx , bc . Name , bus )
379+ Expect (err ).To (Succeed (), "Failed to get instance of Bus Configuration " )
380+
381+ // Update instance of BusConfiguration CR with new bus configuration
382+ testcaseEnvInst .Log .Info ("Update instance of BusConfiguration CR with new bus configuration" )
383+ bus .Spec = updateBus
384+ err = deployment .UpdateCR (ctx , bus )
385+ Expect (err ).To (Succeed (), "Unable to deploy Bus Configuration with updated CR" )
386386
387387 // Ensure that Ingestor Cluster has not been restarted
388388 testcaseEnvInst .Log .Info ("Ensure that Ingestor Cluster has not been restarted" )
389389 testenv .IngestorReady (ctx , deployment , testcaseEnvInst )
390390
391+ // Ensure that Indexer Cluster has not been restarted
392+ testcaseEnvInst .Log .Info ("Ensure that Indexer Cluster has not been restarted" )
393+ testenv .SingleSiteIndexersReady (ctx , deployment , testcaseEnvInst )
394+
391395 // Get instance of current Ingestor Cluster CR with latest config
392396 testcaseEnvInst .Log .Info ("Get instance of current Ingestor Cluster CR with latest config" )
393- ingest = & enterpriseApi.IngestorCluster {}
397+ ingest : = & enterpriseApi.IngestorCluster {}
394398 err = deployment .GetInstance (ctx , deployment .GetName ()+ "-ingest" , ingest )
395399 Expect (err ).To (Succeed (), "Failed to get instance of Ingestor Cluster" )
396400
@@ -404,22 +408,6 @@ var _ = Describe("indingsep test", func() {
404408 err = deployment .GetInstance (ctx , deployment .GetName ()+ "-idxc" , index )
405409 Expect (err ).To (Succeed (), "Failed to get instance of Indexer Cluster" )
406410
407- // Update instance of Indexer Cluster CR with new bus configuration
408- testcaseEnvInst .Log .Info ("Update instance of Indexer Cluster CR with new bus configuration" )
409- index .Spec .BusConfigurationRef = v1.ObjectReference {Name : bc .Name }
410- err = deployment .UpdateCR (ctx , index )
411- Expect (err ).To (Succeed (), "Unable to deploy Indexer Cluster with updated CR" )
412-
413- // Ensure that Indexer Cluster has not been restarted
414- testcaseEnvInst .Log .Info ("Ensure that Indexer Cluster has not been restarted" )
415- testenv .SingleSiteIndexersReady (ctx , deployment , testcaseEnvInst )
416-
417- // Get instance of current Indexer Cluster CR with latest config
418- testcaseEnvInst .Log .Info ("Get instance of current Indexer Cluster CR with latest config" )
419- index = & enterpriseApi.IndexerCluster {}
420- err = deployment .GetInstance (ctx , deployment .GetName ()+ "-idxc" , index )
421- Expect (err ).To (Succeed (), "Failed to get instance of Indexer Cluster" )
422-
423411 // Verify Indexer Cluster Status
424412 testcaseEnvInst .Log .Info ("Verify Indexer Cluster Status" )
425413 Expect (index .Status .BusConfiguration ).To (Equal (updateBus ), "Indexer bus configuration status is not the same as provided as input" )
@@ -468,12 +456,6 @@ var _ = Describe("indingsep test", func() {
468456 }
469457 }
470458
471- // Get instance of current Indexer Cluster CR with latest config
472- testcaseEnvInst .Log .Info ("Get instance of current Indexer Cluster CR with latest config" )
473- index = & enterpriseApi.IndexerCluster {}
474- err = deployment .GetInstance (ctx , deployment .GetName ()+ "-idxc" , index )
475- Expect (err ).To (Succeed (), "Failed to get instance of Indexer Cluster" )
476-
477459 // Verify conf files
478460 testcaseEnvInst .Log .Info ("Verify conf files" )
479461 pods = testenv .DumpGetPods (deployment .GetName ())
0 commit comments