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

[tacacs] Skip ipintutil check on older OS versions #3154

Merged
merged 2 commits into from
Mar 17, 2021

Conversation

daall
Copy link
Contributor

@daall daall commented Mar 16, 2021

Signed-off-by: Danny Allen daall@microsoft.com

Description of PR

Summary:
Fixes # (issue)

Type of change

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

Approach

What is the motivation for this PR?

Fixes #3116 and unblocks buildimage PRs.

How did you do it?

Interestingly, if a file exists in the sudoers file but does not exist on the system, we still see the following error:

Make sure your account has RW permission to current device.
Otherwise sudo requests will be rejected.

So we need to be sure that the commands we test here actually exist in the image. Because skipping over scripts that are not found on the system may actually mask issues as well, I have opted to include an explicit version check in the test code.

How did you verify/test it?

Re-ran the ro_user_allowed_command test case against the 201911 and 202012 images.

Any platform specific information?

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

Documentation

Signed-off-by: Danny Allen <daall@microsoft.com>
@daall daall requested a review from a team as a code owner March 16, 2021 18:27
@daall daall merged commit b30d640 into sonic-net:master Mar 17, 2021
@daall daall deleted the tacacs_20xx_fix branch March 17, 2021 07:29
vmittal-msft pushed a commit to vmittal-msft/sonic-mgmt that referenced this pull request Sep 28, 2021
Signed-off-by: Danny Allen <daall@microsoft.com>
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.

[ro_user] test is failing on 202012 branch
2 participants