Skip to content

Commit

Permalink
Run ovs kernel mechanism test
Browse files Browse the repository at this point in the history
Related issue: networkservicemesh/deployments-k8s#9778

Signed-off-by: Laszlo Kiraly <laszlo.kiraly@est.tech>
  • Loading branch information
ljkiraly committed Sep 5, 2023
1 parent d22ec81 commit 37f6073
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions tests_single/ovs_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
// Copyright (c) 2023 Nordix Foundation.
//
// SPDX-License-Identifier: Apache-2.0
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at:
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package single

import (
"flag"
"testing"

"github.com/networkservicemesh/integration-tests/extensions/parallel"
"github.com/networkservicemesh/integration-tests/suites/ovs"
)

var smartVFFlag = flag.Bool("smart", false, "selects smartVF tests")

// Disabled tests:
// SmartVF to SmartVF Connection - ../use-cases/SmartVF2SmartVF
type kindOvsSuite struct {
ovs.Suite
}

func (s *kindOvsSuite) BeforeTest(suiteName, testName string) {
if testName == "TestSmartVF2SmartVF" {
s.T().Skip()
}
}

func TestRunOvsSuite(t *testing.T) {
if !*smartVFFlag {
parallel.Run(t, new(kindOvsSuite), "TestSmartVF2SmartVF")
} else {
parallel.Run(t, new(ovs.Suite))
}
}

0 comments on commit 37f6073

Please sign in to comment.