Skip to content

Commit 6507768

Browse files
committed
Add strings.ToLower to test case skipping condition
1 parent 8dabe89 commit 6507768

File tree

4 files changed

+13
-9
lines changed

4 files changed

+13
-9
lines changed

tests_interdomain/interdomain_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
package interdomain
2222

2323
import (
24+
"strings"
2425
"testing"
2526

2627
"github.com/stretchr/testify/suite"
@@ -55,7 +56,7 @@ type msmSuite struct {
5556
}
5657

5758
func (s *msmSuite) BeforeTest(suiteName, testName string) {
58-
if testName == "TestNsm_istio" {
59+
if strings.ToLower(testName) == "testnsm_istio" {
5960
s.T().Skip()
6061
}
6162
}

tests_ovs_extended/feature_ovs_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ package ovsextra_test
2020

2121
import (
2222
"flag"
23+
"strings"
2324
"testing"
2425

2526
"github.com/networkservicemesh/integration-tests/extensions/parallel"
@@ -35,7 +36,7 @@ type kindFeatOvsSuite struct {
3536
}
3637

3738
func (s *kindFeatOvsSuite) BeforeTest(suiteName, testName string) {
38-
if testName == "TestWebhook_smartvf" {
39+
if strings.ToLower(testName) == "testwebhook_smartvf" {
3940
s.T().Skip()
4041
}
4142
}

tests_single/feature_test.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ package single
2020

2121
import (
2222
"flag"
23+
"strings"
2324
"testing"
2425

2526
"github.com/stretchr/testify/suite"
@@ -40,11 +41,11 @@ type calicoFeatureSuite struct {
4041
}
4142

4243
func (s *calicoFeatureSuite) BeforeTest(suiteName, testName string) {
43-
switch testName {
44+
switch strings.ToLower(testName) {
4445
case
45-
"TestNse_composition",
46-
"TestVl3_basic",
47-
"TestVl3_scale_from_zero":
46+
"testnse_composition",
47+
"testvl3_basic",
48+
"testvl3_scale_from_zero":
4849
s.T().Skip()
4950
}
5051
}

tests_single/ovs_test.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ package single
1818

1919
import (
2020
"flag"
21+
"strings"
2122
"testing"
2223

2324
"github.com/networkservicemesh/integration-tests/extensions/parallel"
@@ -35,10 +36,10 @@ type kindOvsSuite struct {
3536
}
3637

3738
func (s *kindOvsSuite) BeforeTest(suiteName, testName string) {
38-
switch testName {
39+
switch strings.ToLower(testName) {
3940
case
40-
"TestSmartVF2SmartVF",
41-
"TestKernel2KernelVLAN":
41+
"testsmartvf2smartvf",
42+
"testkernel2kernelvlan":
4243
s.T().Skip()
4344
}
4445
}

0 commit comments

Comments
 (0)