From c734d7abf6b9aa74e263057e27f9223b2a93c0de Mon Sep 17 00:00:00 2001 From: Artem Glazychev Date: Fri, 25 Mar 2022 20:54:39 +0700 Subject: [PATCH] Enable feature suite with Calico Signed-off-by: Artem Glazychev --- calico_test.go | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/calico_test.go b/calico_test.go index 91536fd23..b80a45387 100644 --- a/calico_test.go +++ b/calico_test.go @@ -22,6 +22,7 @@ import ( "github.com/stretchr/testify/suite" "github.com/networkservicemesh/integration-tests/suites/basic" + "github.com/networkservicemesh/integration-tests/suites/features" "github.com/networkservicemesh/integration-tests/suites/heal" "github.com/networkservicemesh/integration-tests/suites/memory" "github.com/networkservicemesh/integration-tests/suites/observability" @@ -42,3 +43,22 @@ func TestRunMemorySuiteCalico(t *testing.T) { func TestRunObservabilitySuiteCalico(t *testing.T) { suite.Run(t, new(observability.Suite)) } + +// Disabled tests: +// TestMutually_aware_nses - https://github.com/networkservicemesh/integration-k8s-kind/issues/627 +// TestNse_composition - https://github.com/networkservicemesh/integration-k8s-kind/issues/625 +type featuresSuite struct { + features.Suite +} + +func (s *featuresSuite) BeforeTest(suiteName, testName string) { + if testName == "TestMutually_aware_nses" || + testName == "TestNse_composition" { + s.T().Skip() + } + s.Suite.BeforeTest(suiteName, testName) +} + +func TestRunFeatureSuiteCalico(t *testing.T) { + suite.Run(t, new(featuresSuite)) +}