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

Add condition_logical_operator or for test_passw_hardening.py #6482

Merged
merged 1 commit into from
Oct 9, 2022

Conversation

ZhaohuiS
Copy link
Contributor

@ZhaohuiS ZhaohuiS commented Oct 8, 2022

Signed-off-by: Zhaohui Sun [email protected]

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?

passw_hardening/test_passw_hardening.py should be ran on master image and with issue #6428 fixed.
Currently, issue #6428 is not fixed, the defulat logical operator is AND, so for master image, the final result is False, the case is not skipped.

How did you do it?

Change condition_logical_operator to OR, if the issue is fixed, it will run on master image, otherwise it will be skipped for all images.

How did you verify/test it?

passw_hardening/test_passw_hardening.py::test_passw_hardening_policy_reject_user_passw_match[str-dx010-acs-4]
SKIPPED                                                                  [ 10%]
passw_hardening/test_passw_hardening.py::test_passw_hardening_history[str-dx010-acs-4] SKIPPED                                                                          [ 20%]
passw_hardening/test_passw_hardening.py::test_passw_hardening_age_expiration[str-dx010-acs-4] SKIPPED                                                                   [ 30%]
passw_hardening/test_passw_hardening.py::test_passw_hardening_age_expiration_warning[str-dx010-acs-4] SKIPPED                                                           [ 40%]
passw_hardening/test_passw_hardening.py::test_passw_hardening_len_min[str-dx010-acs-4] SKIPPED                                                                          [ 50%]
passw_hardening/test_passw_hardening.py::test_passw_hardening_policies_digits[str-dx010-acs-4] SKIPPED                                                                  [ 60%]
passw_hardening/test_passw_hardening.py::test_passw_hardening_policies_lower_class[str-dx010-acs-4] SKIPPED                                                             [ 70%]
passw_hardening/test_passw_hardening.py::test_passw_hardening_policies_upper_class[str-dx010-acs-4] SKIPPED                                                             [ 80%]
passw_hardening/test_passw_hardening.py::test_passw_hardening_policies_special_class[str-dx010-acs-4] SKIPPED                                                           [ 90%]
passw_hardening/test_passw_hardening.py::test_passw_hardening_policy_reject_user_passw_match[str-dx010-acs-4] SKIPPED                                                   [100%]

Any platform specific information?

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

Documentation

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 ZhaohuiS merged commit e3258fe into sonic-net:master Oct 9, 2022
Azarack pushed a commit to Azarack/sonic-mgmt that referenced this pull request Oct 17, 2022
…net#6482)

What is the motivation for this PR?
passw_hardening/test_passw_hardening.py should be ran on master image and with issue sonic-net#6428 fixed.
Currently, issue sonic-net#6428 is not fixed, the defulat logical operator is AND, so for master image, the final result is False, the case is not skipped.

How did you do it?
Change condition_logical_operator to OR, if the issue is fixed, it will run on master image, otherwise it will be skipped for all images.

Signed-off-by: Zhaohui Sun <[email protected]>
allen-xf pushed a commit to allen-xf/sonic-mgmt that referenced this pull request Oct 28, 2022
…net#6482)

What is the motivation for this PR?
passw_hardening/test_passw_hardening.py should be ran on master image and with issue sonic-net#6428 fixed.
Currently, issue sonic-net#6428 is not fixed, the defulat logical operator is AND, so for master image, the final result is False, the case is not skipped.

How did you do it?
Change condition_logical_operator to OR, if the issue is fixed, it will run on master image, otherwise it will be skipped for all images.

Signed-off-by: Zhaohui Sun <[email protected]>
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.

2 participants