Skip to content

Commit

Permalink
adding the port remove and skip all fixture
Browse files Browse the repository at this point in the history
  • Loading branch information
selldinesh committed Sep 26, 2023
1 parent c1232d4 commit 7f5ab0b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/api/test_isolation_group_member.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
from pprint import pprint

import pytest


@pytest.fixture(scope='module', autouse=True)
def skip_all(testbed_instance):
testbed = testbed_instance
if testbed is not None and len(testbed.npu) != 1:
pytest.skip('invalid for {} testbed'.format(testbed.name))


@pytest.mark.npu
class TestSaiIsolationGroupMember:
# object with parent SAI_OBJECT_TYPE_ISOLATION_GROUP SAI_OBJECT_TYPE_PORT SAI_OBJECT_TYPE_BRIDGE_PORT

Expand Down Expand Up @@ -46,6 +56,7 @@ def test_isolation_group_member_create(self, npu):
def test_isolation_group_member_remove(self, npu):
commands = [
{'name': 'isolation_group_member_1', 'op': 'remove'},
{'name': 'port_1', 'op': 'remove'},
{'name': 'isolation_group_1', 'op': 'remove'},
]

Expand Down

0 comments on commit 7f5ab0b

Please sign in to comment.