|
17 | 17 | package main_test
|
18 | 18 |
|
19 | 19 | import (
|
20 |
| - "os" |
| 20 | + "github.com/networkservicemesh/integration-tests/suites/basic" |
21 | 21 | "testing"
|
22 | 22 |
|
23 | 23 | "github.com/stretchr/testify/suite"
|
24 |
| - |
25 |
| - "github.com/networkservicemesh/integration-tests/suites/calico" |
26 |
| - "github.com/networkservicemesh/integration-tests/suites/heal" |
27 |
| - "github.com/networkservicemesh/integration-tests/suites/memory" |
28 |
| - "github.com/networkservicemesh/integration-tests/suites/multiforwarder" |
29 |
| - "github.com/networkservicemesh/integration-tests/suites/observability" |
30 |
| - "github.com/networkservicemesh/integration-tests/suites/sriov" |
31 | 24 | )
|
32 | 25 |
|
33 |
| -func isCalico() bool { |
34 |
| - return os.Getenv("CALICO") == "on" |
35 |
| -} |
36 |
| - |
37 |
| -func TestMemory(t *testing.T) { |
38 |
| - if isCalico() { |
39 |
| - t.Skip("not available with Calico") |
40 |
| - } |
41 |
| - suite.Run(t, new(memory.Suite)) |
42 |
| -} |
43 |
| - |
44 |
| -func TestSRIOV(t *testing.T) { |
45 |
| - if isCalico() { |
46 |
| - t.Skip("not available with Calico") |
47 |
| - } |
48 |
| - suite.Run(t, new(sriov.Suite)) |
49 |
| -} |
50 |
| - |
51 |
| -func TestMultiForwarder(t *testing.T) { |
52 |
| - if isCalico() { |
53 |
| - t.Skip("not available with Calico") |
54 |
| - } |
55 |
| - suite.Run(t, new(multiforwarder.Suite)) |
56 |
| -} |
| 26 | +//func isCalico() bool { |
| 27 | +// return os.Getenv("CALICO") == "on" |
| 28 | +//} |
57 | 29 |
|
58 |
| -func TestHeal(t *testing.T) { |
59 |
| - if isCalico() { |
60 |
| - t.Skip("not available with Calico") |
61 |
| - } |
62 |
| - suite.Run(t, new(heal.Suite)) |
63 |
| -} |
| 30 | +//func TestMemory(t *testing.T) { |
| 31 | +// suite.Run(t, new(memory.Suite)) |
| 32 | +//} |
| 33 | +// |
| 34 | +//func TestSRIOV(t *testing.T) { |
| 35 | +// suite.Run(t, new(sriov.Suite)) |
| 36 | +//} |
| 37 | +// |
| 38 | +//func TestMultiForwarder(t *testing.T) { |
| 39 | +// suite.Run(t, new(multiforwarder.Suite)) |
| 40 | +//} |
| 41 | +// |
| 42 | +//func TestHeal(t *testing.T) { |
| 43 | +// suite.Run(t, new(heal.Suite)) |
| 44 | +//} |
64 | 45 |
|
65 |
| -func TestRunObservabilitySuite(t *testing.T) { |
66 |
| - suite.Run(t, new(observability.Suite)) |
67 |
| -} |
| 46 | +//func TestRunObservabilitySuite(t *testing.T) { |
| 47 | +// suite.Run(t, new(observability.Suite)) |
| 48 | +//} |
68 | 49 |
|
69 | 50 | func TestBasic(t *testing.T) {
|
70 |
| - if isCalico() { |
71 |
| - t.Skip("not available with Calico") |
72 |
| - } |
73 | 51 | suite.Run(t, new(basic.Suite))
|
74 | 52 | }
|
75 |
| - |
76 |
| -func TestCalico(t *testing.T) { |
77 |
| - if !isCalico() { |
78 |
| - t.Skip("not available without Calico") |
79 |
| - } |
80 |
| - suite.Run(t, new(calico.Suite)) |
81 |
| -} |
| 53 | +// |
| 54 | +//func TestRunFeatureSuiteSingle(t *testing.T) { |
| 55 | +// suite.Run(t, new(features.Suite)) |
| 56 | +//} |
| 57 | + |
| 58 | +//func TestCalico(t *testing.T) { |
| 59 | +// if !isCalico() { |
| 60 | +// t.Skip("not available without Calico") |
| 61 | +// } |
| 62 | +// suite.Run(t, new(calico.Suite)) |
| 63 | +//} |
0 commit comments