@@ -29,14 +29,10 @@ type Results struct {
2929 } `json:"testcase"`
3030}
3131
32- << << << < HEAD
3332func RunTest (meshConfig ServiceMesh , annotations , labels map [string ]string ) Results {
3433 manifestDirs := []string {}
3534 output := Results {}
3635 results := & report.Testsuites {}
37- == == == =
38- func RunTest (meshConfig ServiceMesh , annotations map [string ]string ) Results {
39- >> >> >> > 4 ac32010a115d1a96483e11b380fbc97259d70fd
4036
4137 c := make (chan Results )
4238 go func () {
@@ -64,37 +60,7 @@ func RunTest(meshConfig ServiceMesh, annotations map[string]string) Results {
6460 if options .KINDContext == "" {
6561 options .KINDContext = harness .DefaultKINDContext
6662 }
67-
68- << << << < HEAD
69- testHandlers := make (map [string ]map [string ]test.CustomTest )
70- testHandlers ["traffic-access" ] = serviceMeshConfObj .TrafficAccessGetTests ()
71- testHandlers ["traffic-spec" ] = serviceMeshConfObj .TrafficSpecGetTests ()
72- testHandlers ["traffic-split" ] = serviceMeshConfObj .TrafficSplitGetTests ()
73-
74- testutils .RunTests ("kudo" , testToRun , options .Parallel , func (t * testing.T ) {
75- harness := test.Harness {
76- TestSuite : options ,
77- T : t ,
78- SuiteCustomTests : testHandlers ,
79- NamespaceAnnotations : annotations ,
80- NamespaceLabels : labels ,
81- == == == =
82- if len (args ) != 0 {
83- options.TestDirs = args
84- >> >> >> > 4 ac32010a115d1a96483e11b380fbc97259d70fd
85- }
86- if len (args ) != 0 {
87- options.TestDirs = args
88- }
89-
90- // annotations := make(map[string]string)
91- // Namespace Injection
92- // annotations["linkerd.io/inject"] = "enabled"
93-
94- serviceMeshConfObj := SMIConformance {
95- SMObj : meshConfig ,
96- }
97-
63+
9864 testHandlers := make (map [string ]map [string ]test.CustomTest )
9965 testHandlers ["traffic-access" ] = serviceMeshConfObj .TrafficAccessGetTests ()
10066 testHandlers ["traffic-spec" ] = serviceMeshConfObj .TrafficSpecGetTests ()
@@ -106,8 +72,25 @@ func RunTest(meshConfig ServiceMesh, annotations map[string]string) Results {
10672 T : t ,
10773 SuiteCustomTests : testHandlers ,
10874 NamespaceAnnotations : annotations ,
75+ NamespaceLabels : labels ,
76+ }
77+ if len (args ) != 0 {
78+ options .TestDirs = args
79+ }
80+
81+ // annotations := make(map[string]string)
82+ // Namespace Injection
83+ // annotations["linkerd.io/inject"] = "enabled"
84+
85+ serviceMeshConfObj := SMIConformance {
86+ SMObj : meshConfig ,
10987 }
11088
89+ testHandlers := make (map [string ]map [string ]test.CustomTest )
90+ testHandlers ["traffic-access" ] = serviceMeshConfObj .TrafficAccessGetTests ()
91+ testHandlers ["traffic-spec" ] = serviceMeshConfObj .TrafficSpecGetTests ()
92+ testHandlers ["traffic-split" ] = serviceMeshConfObj .TrafficSplitGetTests ()
93+
11194 // Runs the test using the inCluster kubeConfig (runs only when the code is running inside the pod)
11295 harness .InCluster = true
11396
0 commit comments