-
Notifications
You must be signed in to change notification settings - Fork 216
USHIFT-5775: TLS config RF test: skip cipher if not available #4939
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
Conversation
@agullon: This pull request explicitly references no jira issue. In response to this: Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
@agullon: This pull request references USHIFT-5775 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the task to target the "4.20.0" version, but no target version was set. In response to this: Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
@agullon: This pull request references USHIFT-5775 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the task to target the "4.20.0" version, but no target version was set. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
@agullon: all tests passed! Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/hold
Just one nit, held in case you want to do it. If not we can always do it later as its not critical and we are a bit tight on schedule.
@@ -155,15 +155,20 @@ Restore Valid TLS Configuration | |||
|
|||
Openssl Connect Command | |||
[Documentation] Run Openssl Connect Command in the remote server | |||
[Arguments] ${host_and_port} ${args} | |||
[Arguments] ${host_and_port} ${args} ${expected_rc} ${expected_str} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: If you default expected_str
to empty string then you shouldnt need the IF below, right? Would also wouldnt require some string regardless of the rc
when you call it (like in 194 below).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We shouldn't remove the IF because it's needed to validate the cipher under tests is in the stdout of the openssl command. See this line: https://github.com/openshift/microshift/pull/4939/files#diff-af253f15d1596775b3ca9cf4154438c05a0007533c49259a222eb7f9d4adc9aaR184
Furthermore, I'm happy to set the default value of ${expected_str}
to an empty string, but I prefer to be not use default values on testing functions to force user to configure everything making sure what is being tested.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: agullon, pacevedom The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/hold cancel |
/cherrypick release-4.19 |
@agullon: #4939 failed to apply on top of branch "release-4.19":
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
Added a condition to skip checking a cipher when it's not available, for example, when FIPS mode is enabled.