forked from networkservicemesh/integration-k8s-kind
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Related issue: networkservicemesh/deployments-k8s#9778 Signed-off-by: Laszlo Kiraly <laszlo.kiraly@est.tech>
- Loading branch information
Showing
4 changed files
with
173 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
// Copyright (c) 2024 Nordix and/or its affiliates. | ||
// | ||
// 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 ovsextra_test | ||
|
||
import ( | ||
"flag" | ||
"testing" | ||
|
||
"github.com/networkservicemesh/integration-tests/extensions/parallel" | ||
"github.com/networkservicemesh/integration-tests/suites/features_ovs" | ||
) | ||
|
||
var smartVFFlag = flag.Bool("smart", false, "selects smartVF tests") | ||
|
||
// Disabled tests for kind: | ||
// SmartVF to SmartVF Connection - ../features/webhook-smartvf | ||
type kindFeatOvsSuite struct { | ||
features_ovs.Suite | ||
} | ||
|
||
func (s *kindFeatOvsSuite) BeforeTest(suiteName, testName string) { | ||
if testName == "TestWebhook_smartvf" { | ||
s.T().Skip() | ||
} | ||
} | ||
|
||
func TestRunFeatureOvsSuite(t *testing.T) { | ||
if !*smartVFFlag { | ||
parallel.Run(t, new(kindFeatOvsSuite), "TestScale_from_zero", "TestNse_composition", "TestSelect_forwarder") | ||
} else { | ||
parallel.Run(t, new(features_ovs.Suite), "TestScale_from_zero", "TestNse_composition", "TestSelect_forwarder") | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// Copyright (c) 2024 Nordix and/or its affiliates. | ||
// | ||
// 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 ovsextra_test | ||
|
||
import ( | ||
"testing" | ||
|
||
"github.com/stretchr/testify/suite" | ||
|
||
"github.com/networkservicemesh/integration-tests/suites/heal_ovs" | ||
) | ||
|
||
func TestRunHealOvsSuite(t *testing.T) { | ||
suite.Run(t, new(heal_ovs.Suite)) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
// Copyright (c) 2023-2024 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 | ||
// Temporary disabled tests: | ||
// Kernel to Kernel Connection over VLAN Trunking - ../use-cases/Kernel2KernelVLAN | ||
type kindOvsSuite struct { | ||
ovs.Suite | ||
} | ||
|
||
func (s *kindOvsSuite) BeforeTest(suiteName, testName string) { | ||
switch testName { | ||
case | ||
"TestSmartVF2SmartVF", | ||
"TestKernel2KernelVLAN": | ||
s.T().Skip() | ||
} | ||
} | ||
|
||
func TestRunOvsSuite(t *testing.T) { | ||
if !*smartVFFlag { | ||
parallel.Run(t, new(kindOvsSuite)) | ||
} else { | ||
parallel.Run(t, new(ovs.Suite)) | ||
} | ||
} |