-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
Hows My Ssl test for Android #5428
Conversation
n.b. above some rate, expect failures unless Square subscribe https://subscriptions.howsmyssl.com/ So we may not want to land, but using for testing in a console. |
assertEquals("TLS 1.3", results.tls_version) | ||
assertEquals(0, results.insecure_cipher_suites.size) | ||
|
||
assertEquals(TlsVersion.TLS_1_3, response.handshake?.tlsVersion) |
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.
TODO adapt this and other checks based on Android version.
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.
Yeah, this is a drag I guess we just need an expected TLS version for each Android version we support.
val given_cipher_suites: List<String>? | ||
) | ||
|
||
@Test |
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.
Wanna @Ignore
this so running our test suite by default doesn’t flake on connectivity?
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.
... I’d love to share tests like this between Android and JVM
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.
Yep, I'll follow up on that.
With session ticket disabled in AndroidSocketAdapter