From ac6c8981932f014130af1ea13f1c8ca25a67af6c Mon Sep 17 00:00:00 2001 From: selldinesh Date: Mon, 13 Nov 2023 20:29:23 +0000 Subject: [PATCH] removing isolation group member case --- tests/api/test_isolation_group_member.py | 67 ------------------------ 1 file changed, 67 deletions(-) delete mode 100644 tests/api/test_isolation_group_member.py diff --git a/tests/api/test_isolation_group_member.py b/tests/api/test_isolation_group_member.py deleted file mode 100644 index 9ad26a24..00000000 --- a/tests/api/test_isolation_group_member.py +++ /dev/null @@ -1,67 +0,0 @@ -from pprint import pprint - -import pytest - -@pytest.fixture(scope="module", autouse=True) -def discovery(npu): - npu.objects_discovery() - -@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 - - def test_isolation_group_member_create(self, npu): - commands = [ - { - 'name': 'isolation_group_1', - 'op': 'create', - 'type': 'SAI_OBJECT_TYPE_ISOLATION_GROUP', - 'attributes': [ - 'SAI_ISOLATION_GROUP_ATTR_TYPE', - 'SAI_ISOLATION_GROUP_TYPE_PORT', - ], - }, - { - 'name': 'port_1', - 'op': 'create', - 'type': 'SAI_OBJECT_TYPE_PORT', - 'attributes': [ - 'SAI_PORT_ATTR_HW_LANE_LIST', - '2:10,11', - 'SAI_PORT_ATTR_SPEED', - '10', - ], - }, - { - 'name': 'isolation_group_member_1', - 'op': 'create', - 'type': 'SAI_OBJECT_TYPE_ISOLATION_GROUP_MEMBER', - 'attributes': [ - 'SAI_ISOLATION_GROUP_MEMBER_ATTR_ISOLATION_GROUP_ID', - '$isolation_group_1', - 'SAI_ISOLATION_GROUP_MEMBER_ATTR_ISOLATION_OBJECT', - '$port_1', - ], - }, - ] - - results = [*npu.process_commands(commands)] - print('======= SAI commands RETURN values create =======') - pprint(results) - - def test_isolation_group_member_remove(self, npu): - commands = [ - {'name': 'isolation_group_member_1', 'op': 'remove'}, - {'name': 'isolation_group_1', 'op': 'remove'}, - ] - - results = [*npu.process_commands(commands)] - print('======= SAI commands RETURN values remove =======') - pprint(results)