google-nomulus/javatests/google/registry/proxy
jianglai 9eec70729f Refine tests in GCP proxy
Previously the ssl initializer tests always uses JDK, which is not really testing what happens in production when we take advantage of the OpenSSL provider. Now the tests will run with all providers that are available (through JUnit parameterization). Some bugs that may cause flakiness are fixed in the process.

Change how SNI is verified in tests. It turns out that the old method (only verifying the SSL parameters in the SSL engine) does not actually ensure that the SNI address is sent to the peer, but only that the SSL engine is configured to send it (this value exists even before a handshake is performed). Also there's likely a bug in Netty's SSL engine that does not set this parameter when created with a peer host.

Lastly HTTP test utils are changed so that they do not use pre-defined constants for header names and values. We want the test to confirm that these constants are what we expect they are. Using string literals makes these tests also more explicit.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=207930282
2018-08-10 13:46:48 -04:00
..
handler Refine tests in GCP proxy 2018-08-10 13:46:48 -04:00
metric Fix proxy metrics instrumentation bug 2018-05-30 12:18:54 -04:00
quota Clean up some code quality issues in GCP proxy 2018-03-19 18:44:12 -04:00
testdata Open source GCP proxy 2017-11-21 19:19:03 -05:00
BUILD Clean up annotation imports in BUILD files 2018-06-27 15:28:53 -04:00
CertificateModuleTest.java Use self signed certificate when running the proxy locally 2018-04-10 16:36:56 -04:00
EppProtocolModuleTest.java Open source GCP proxy 2017-11-21 19:19:03 -05:00
GcpJsonFormatterTest.java Clean up some code quality issues in GCP proxy 2018-03-19 18:44:12 -04:00
HealthCheckProtocolModuleTest.java Open source GCP proxy 2017-11-21 19:19:03 -05:00
HttpsRelayProtocolModuleTest.java Open source GCP proxy 2017-11-21 19:19:03 -05:00
ProtocolModuleTest.java Add tests for web whois protocols module 2018-08-10 13:46:48 -04:00
ProxyModuleTest.java Add web WHOIS redirect support 2018-08-10 13:46:48 -04:00
TestUtils.java Refine tests in GCP proxy 2018-08-10 13:46:48 -04:00
WebWhoisProtocolsModuleTest.java Add tests for web whois protocols module 2018-08-10 13:46:48 -04:00
WhoisProtocolModuleTest.java Automatic reconnect to GAE when the connection is dropped 2018-08-10 13:46:48 -04:00