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 SSL_CIPHER_get_version test to SSLVersionTest.Version #1631

Merged

Conversation

WillChilds-Klein
Copy link
Contributor

@WillChilds-Klein WillChilds-Klein commented Jun 10, 2024

Issues:

Resolves n/a (not needed for v1.29.0 release)
Addresses n/a

Description of changes:

@andrewhop noticed that this test didn't cover TLSv1.3 although we'd expected it to. This is because the previous test case guards against TLSv1.3 for unrelated reasons. So, we move the test to another case that does cover TLSv1.3.

Call-outs:

  • n/a

Testing:

  • CI
  • verified TLSv1.3 parameterized tests pass
$ cmake-build.sh && ./build/ssl/ssl_test --gtest_filter='WithVersion/SSLVersionTest.Version*' | grep TLS1_3
...
[ RUN      ] WithVersion/SSLVersionTest.Version/TLS1_3_BufferSize_0
[       OK ] WithVersion/SSLVersionTest.Version/TLS1_3_BufferSize_0 (1 ms)
[ RUN      ] WithVersion/SSLVersionTest.Version/TLS1_3_BufferSize_128
[       OK ] WithVersion/SSLVersionTest.Version/TLS1_3_BufferSize_128 (0 ms)
[ RUN      ] WithVersion/SSLVersionTest.Version/TLS1_3_BufferSize_512
[       OK ] WithVersion/SSLVersionTest.Version/TLS1_3_BufferSize_512 (1 ms)
[ RUN      ] WithVersion/SSLVersionTest.Version/TLS1_3_BufferSize_8192
[       OK ] WithVersion/SSLVersionTest.Version/TLS1_3_BufferSize_8192 (1 ms)
[ RUN      ] WithVersion/SSLVersionTest.Version/TLS1_3_BufferSize_65535
[       OK ] WithVersion/SSLVersionTest.Version/TLS1_3_BufferSize_65535 (1 ms)
[ RUN      ] WithVersion/SSLVersionTest.Version/TLS1_3_SSL_TRANSFER_BufferSize_0
[       OK ] WithVersion/SSLVersionTest.Version/TLS1_3_SSL_TRANSFER_BufferSize_0 (1 ms)
[ RUN      ] WithVersion/SSLVersionTest.Version/TLS1_3_SSL_TRANSFER_BufferSize_128
[       OK ] WithVersion/SSLVersionTest.Version/TLS1_3_SSL_TRANSFER_BufferSize_128 (1 ms)
[ RUN      ] WithVersion/SSLVersionTest.Version/TLS1_3_SSL_TRANSFER_BufferSize_512
[       OK ] WithVersion/SSLVersionTest.Version/TLS1_3_SSL_TRANSFER_BufferSize_512 (1 ms)
[ RUN      ] WithVersion/SSLVersionTest.Version/TLS1_3_SSL_TRANSFER_BufferSize_8192
[       OK ] WithVersion/SSLVersionTest.Version/TLS1_3_SSL_TRANSFER_BufferSize_8192 (0 ms)
[ RUN      ] WithVersion/SSLVersionTest.Version/TLS1_3_SSL_TRANSFER_BufferSize_65535
[       OK ] WithVersion/SSLVersionTest.Version/TLS1_3_SSL_TRANSFER_BufferSize_65535 (1 ms)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and the ISC license.

@adrewhop noticed that this test didn't cover TLSv1.3 although we'd
expected it to. This is because the previous test case [guarded against
TLSv1.3][1] for unrelated reasons. So, we move the test to another case
that does cover TLSv1.3.

[1]: https://github.com/aws/aws-lc/blob/main/ssl/ssl_test.cc#L7786-L7789
@WillChilds-Klein WillChilds-Klein marked this pull request as ready for review June 10, 2024 14:52
@WillChilds-Klein WillChilds-Klein requested a review from a team as a code owner June 10, 2024 14:52
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 78.10%. Comparing base (f304a81) to head (9bcbcde).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1631      +/-   ##
==========================================
+ Coverage   78.08%   78.10%   +0.01%     
==========================================
  Files         562      562              
  Lines       94666    94666              
  Branches    13574    13575       +1     
==========================================
+ Hits        73923    73935      +12     
+ Misses      20150    20138      -12     
  Partials      593      593              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@WillChilds-Klein WillChilds-Klein enabled auto-merge (squash) June 11, 2024 11:46
@WillChilds-Klein WillChilds-Klein merged commit 31e078a into aws:main Jun 11, 2024
95 of 98 checks passed
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