@@ -522,19 +522,19 @@ var _ = Describe("Status Adapter", func() {
522522
523523`
524524 expectedTestReport := status.TestReport {
525- FullName : "Red Hat Konflux / scenario1" ,
525+ FullName : "Red Hat Konflux / scenario1 / component-sample " ,
526526 ScenarioName : "scenario1" ,
527527 SnapshotName : "snapshot-sample" ,
528- ComponentName : "" ,
528+ ComponentName : "component-sample " ,
529529 Text : text ,
530- Summary : "Integration test for snapshot snapshot-sample and scenario scenario1 has passed" ,
530+ Summary : "Integration test for component component-sample snapshot snapshot-sample and scenario scenario1 has passed" ,
531531 Status : integrationteststatus .IntegrationTestStatusTestPassed ,
532532 StartTime : & ts ,
533533 CompletionTime : & tc ,
534534 TestPipelineRunName : "test-pipelinerun" ,
535535 }
536536
537- testReport , err := status .GenerateTestReport (context .Background (), mockK8sClient , integrationTestStatusDetail , hasSnapshot , "" )
537+ testReport , err := status .GenerateTestReport (context .Background (), mockK8sClient , integrationTestStatusDetail , hasSnapshot , "component-sample " )
538538 Expect (err ).NotTo (HaveOccurred ())
539539 Expect (testReport ).To (Equal (& expectedTestReport ))
540540 })
@@ -545,7 +545,7 @@ var _ = Describe("Status Adapter", func() {
545545
546546 integrationTestStatusDetail := newIntegrationTestStatusDetail (expectedScenarioStatus )
547547
548- expectedSummary := fmt .Sprintf ("Integration test for snapshot snapshot-sample and scenario scenario1 %s" , expectedTextEnding )
548+ expectedSummary := fmt .Sprintf ("Integration test for component component-sample snapshot snapshot-sample and scenario scenario1 %s" , expectedTextEnding )
549549 testReport , err := status .GenerateTestReport (context .Background (), mockK8sClient , integrationTestStatusDetail , hasSnapshot , "component-sample" )
550550 Expect (err ).NotTo (HaveOccurred ())
551551 Expect (testReport .Summary ).To (Equal (expectedSummary ))
@@ -566,7 +566,7 @@ var _ = Describe("Status Adapter", func() {
566566
567567 integrationTestStatusDetail := newIntegrationTestStatusDetail (expectedScenarioStatus )
568568
569- expectedSummary := fmt .Sprintf ("Integration test for scenario scenario1 %s" , expectedTextEnding )
569+ expectedSummary := fmt .Sprintf ("Integration test for component component-sample snapshot scenario scenario1 %s" , expectedTextEnding )
570570 testReport , err := status .GenerateTestReport (context .Background (), mockK8sClient , integrationTestStatusDetail , hasSnapshot , "component-sample" )
571571 Expect (err ).NotTo (HaveOccurred ())
572572 Expect (testReport .Summary ).To (Equal (expectedSummary ))
@@ -578,7 +578,7 @@ var _ = Describe("Status Adapter", func() {
578578
579579 It ("check if GenerateSummary supports all integration test statuses" , func () {
580580 for _ , teststatus := range integrationteststatus .IntegrationTestStatusValues () {
581- _ , err := status .GenerateSummary (teststatus , "yolo" , "yolo" )
581+ _ , err := status .GenerateSummary (teststatus , "yolo" , "yolo" , "yoyo" )
582582 Expect (err ).NotTo (HaveOccurred ())
583583 }
584584 })
0 commit comments