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

Move skip check of test_passwd_hardening to tests_mark_conditions.yaml #6429

Merged
merged 1 commit into from
Sep 29, 2022

Conversation

ZhaohuiS
Copy link
Contributor

@ZhaohuiS ZhaohuiS commented Sep 28, 2022

Signed-off-by: Zhaohui Sun zhaohuisun@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
  • 202012
  • 202205

Approach

What is the motivation for this PR?

test_passw_hardening is unable to run on master image because sonic-net/sonic-buildimage#12138 hasn't been merged.
But after running it on 202205 image which supports passw-harden(enabled in this PR sonic-net/sonic-buildimage#12025), found an issue and raised here #6428.

I think that it's better to skip test case in tests_mark_conditions.yaml instead of in test script.

How did you do it?

  1. Move skip condition to tests_mark_conditions.yaml
  2. Add an issue in skip condition. After it's been fixed, we can run this script.

How did you verify/test it?

Run passw_hardening/test_passw_hardening.py

Any platform specific information?

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

Documentation

Signed-off-by: Zhaohui Sun <zhaohuisun@microsoft.com>
@ZhaohuiS
Copy link
Contributor Author

@davidpil2002 Could you please take a look? Please let me know if you have any objection, thanks.

@davidpil2002
Copy link
Contributor

tests_mark_conditions.yaml - this file is a configuration file or its require to add some code?
In general, I will push a fix to 202205 today or tomorrow.

@yejianquan
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@ZhaohuiS ZhaohuiS changed the title Skip test_passwd_hardening in tests_mark_conditions.yaml Move skip check of test_passwd_hardening to tests_mark_conditions.yaml Sep 29, 2022
Copy link
Collaborator

@StormLiangMS StormLiangMS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ZhaohuiS
Copy link
Contributor Author

tests_mark_conditions.yaml - this file is a configuration file or its require to add some code?
In general, I will push a fix to 202205 today or tomorrow.

tests_mark_conditions.yaml is a configuration file, test script or case will be skipped at the very beginning of test run, it doesn't have to run sanity check and other fixtures, it's best way to skip script or case. Because it will save us time to avoid running sanity check or other fixtures and also it could avoid the errors during these checks or fixtures.

@ZhaohuiS ZhaohuiS merged commit a02991c into sonic-net:master Sep 29, 2022
@ZhaohuiS ZhaohuiS mentioned this pull request Oct 9, 2022
3 tasks
Azarack pushed a commit to Azarack/sonic-mgmt that referenced this pull request Oct 17, 2022
)

What is the motivation for this PR?
test_passw_hardening is unable to run on master image because sonic-net/sonic-buildimage#12138 hasn't been merged.
But after running it on 202205 image which supports passw-harden(enabled in this PR sonic-net/sonic-buildimage#12025), found an issue and raised here sonic-net#6428.

I think that it's better to skip test case in tests_mark_conditions.yaml instead of in test script.

How did you do it?
Move skip condition to tests_mark_conditions.yaml
Add an issue in skip condition. After it's been fixed, we can run this script.
How did you verify/test it?
Run passw_hardening/test_passw_hardening.py
Signed-off-by: Zhaohui Sun <zhaohuisun@microsoft.com>
allen-xf pushed a commit to allen-xf/sonic-mgmt that referenced this pull request Oct 28, 2022
)

What is the motivation for this PR?
test_passw_hardening is unable to run on master image because sonic-net/sonic-buildimage#12138 hasn't been merged.
But after running it on 202205 image which supports passw-harden(enabled in this PR sonic-net/sonic-buildimage#12025), found an issue and raised here sonic-net#6428.

I think that it's better to skip test case in tests_mark_conditions.yaml instead of in test script.

How did you do it?
Move skip condition to tests_mark_conditions.yaml
Add an issue in skip condition. After it's been fixed, we can run this script.
How did you verify/test it?
Run passw_hardening/test_passw_hardening.py
Signed-off-by: Zhaohui Sun <zhaohuisun@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.

4 participants