Skip to content

[tacacs] Config NOT ignore errors while test read-only allowed commands#3773

Closed
kevinskwang wants to merge 1 commit intosonic-net:masterfrom
kevinskwang:cli-check
Closed

[tacacs] Config NOT ignore errors while test read-only allowed commands#3773
kevinskwang wants to merge 1 commit intosonic-net:masterfrom
kevinskwang:cli-check

Conversation

@kevinskwang
Copy link
Copy Markdown
Contributor

@kevinskwang kevinskwang commented Jul 12, 2021

What is the motivation for this PR?
Currently, we ignore most of the errors except permission errors in the read-only command test cases of TACACS.
That may lead to the test case can't detect some basic issues in the code. Especially in the kvm test which is the fundament PR test of sonic_mgmt.

How did you do it?
For the read-only allowed command, don't ignore any errors.

How did you verify/test it?
Run tacacs/test_ro_user.py::test_ro_user_allowed_command, the test case should pass.

Signed-off-by: Kevin Wang shengkaiwang@microsoft.com

Description of PR

Summary:
Fixes # (issue)

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • Test case(new/improvement)

Back port request

  • 201911

Approach

What is the motivation for this PR?

How did you do it?

How did you verify/test it?

Any platform specific information?

Supported testbed topology if it's a new test case?

Documentation

What is the motivation for this PR?
Currently, we ignore most of the errors except permission errors in the read-only command test cases of TACACS.
That may lead to the test case can't detect some basic issues in the code. Especially in the kvm test which is the fundament PR test of sonic_mgmt.

How did you do it?
For the read-only allowed command, don't ignore any errors.

How did you verify/test it?
Run tacacs/test_ro_user.py::test_ro_user_allowed_command, the test case should pass.

Signed-off-by: Kevin Wang <shengkaiwang@microsoft.com>
@kevinskwang kevinskwang requested a review from a team as a code owner July 12, 2021 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant