Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding Test Cases for Get, Set on the Api Attributes #191

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion tests/api/test_acl_counter.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from pprint import pprint


class TestSaiAclCounter:
# object with parent SAI_OBJECT_TYPE_ACL_TABLE

Expand All @@ -24,6 +23,23 @@ def test_acl_counter_create(self, npu):
print('======= SAI commands RETURN values create =======')
pprint(results)


@pytest.mark.dependency(name="test_sai_acl_counter_attr_label_set")
def test_sai_acl_counter_attr_label_set(self, npu):

commands = [
{
"name": "acl_counter_1",
"op": "set",
"attributes": ["SAI_ACL_COUNTER_ATTR_LABEL", '""']
}
]
npu.objects_discovery()
results = [*npu.process_commands(commands)]
print("======= SAI commands RETURN values get =======")
pprint(results)


def test_acl_counter_remove(self, npu):
commands = [
{
Expand Down
Loading