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

testbench: changed tlscommands for librelp tls tests. #4535

Merged
merged 1 commit into from Feb 22, 2021

Conversation

alorbach
Copy link
Member

@alorbach alorbach commented Feb 16, 2021

tlscommands for the following tests have been changed:

  • imrelp-tls-cfgcmd.sh
  • sndrcv_relp_tls-cfgcmd.sh

This will make sure the librelp tlscommand tests run well on all librelp versions and with all OpenSSL Version.
Newer OpenSSL Versions would run TLSv1.3 on those tests which is valid for the old tlscommand. However we can NOT disable TLSv1.3 with one tlscommand as this would break the tlsconfcmd for older OpenSSL Versions.

closes: #4534

tlscommands for the following tests have been changed:
- imrelp-tls-cfgcmd.sh
- sndrcv_relp_tls-cfgcmd.sh

closes: rsyslog#4534
@@ -55,7 +63,7 @@ if [ $ret == 0 ]; then
skip_test
else
# Kindly check for a failed session
content_check "librelp error 10031" $RSYSLOG_DEBUGLOG
content_check "librelp: generic error: ecode 10031" $RSYSLOG_DEBUGLOG
Copy link
Contributor

Choose a reason for hiding this comment

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

typo? ecode -> code ?

Copy link
Member Author

Choose a reason for hiding this comment

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

@rgerhards rgerhards added this to the v8.2104 milestone Feb 18, 2021
@rgerhards rgerhards self-assigned this Feb 22, 2021
@rgerhards rgerhards merged commit 429ff7f into rsyslog:master Feb 22, 2021
@rgerhards
Copy link
Member

A better explanation for folks who come across this PR:

test bugfix: some tests did not work with newer TLS library versions

Newer versions provide TLS versions that cannot be disabled in older versions as they are unkonwn there. This is solved by setting restrictions in multiple steps. For older library versions, the final step will error out, but the other one be applied. This permits to achieve proper test results.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix librelp tlscommand tests
3 participants