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

Make tests agnostic about TLS v1.x. #1150

Merged
merged 4 commits into from
Jun 26, 2023
Merged

Conversation

prbprbprb
Copy link
Collaborator

Test only change. Ensures tests neither use nor assume anything about whether TLSv.1 are enabled or supported. As such it is suitable for backporting to historic Android test suites where vendors may have disabled TLS v1.x by editing the default arrays.

However by being agnostic it does not enforce that TLS v1.x are available if expected. A further change will provide an API for that, but which is not suitable for backporting as it will require non-test changes.

A lot of the tidy-up is around RenegotiationTest and its TestUtils methods, which are only tested on OpenJDK builds.

Test only change. Ensures tests neither use nor assume anything
about whether TLSv.1 are enabled or supported.  As such it is
suitable for backporting to historic Android test suites where
vendors may have disabled TLS v1.x by editing the default arrays.

However by being agnostic it does not enforce that TLS v1.x are
available if expected. A further change will provide an API for
that, but which is not suitable for backporting as it will
require non-test changes.

A lot of the tidy-up is around RenegotiationTest and its
TestUtils methods, which are only tested on OpenJDK builds.
* Remove unused import
* Optimise Streams somewhat
* Remove unused Set when verifying enabled protocols
@prbprbprb prbprbprb merged commit ab097c8 into google:master Jun 26, 2023
15 checks passed
@prbprbprb prbprbprb deleted the tlsv1_tests branch June 26, 2023 11:55
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.

3 participants