Skip to content

Commit e18e626

Browse files
committed
Fix for tests failing due to using deprecated cipher suites.
Change-Id: I72d24276dd854bc0bc38c247182cc2be13f5e514
1 parent 4f70ec3 commit e18e626

File tree

2 files changed

+58
-63
lines changed

2 files changed

+58
-63
lines changed

src/test/java/testsuite/simple/ConnectionTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2292,19 +2292,19 @@ public void testTLSVersionRemoval() throws Exception {
22922292

22932293
// TS.FR.2_1. Create a Connection with the connection property tlsCiphersuites=[valid-cipher-suite]. Assess that the connection is created successfully
22942294
// and it is using the cipher suite specified.
2295-
props.setProperty(PropertyKey.tlsCiphersuites.getKeyName(), "TLS_DHE_RSA_WITH_AES_128_CBC_SHA");
2295+
props.setProperty(PropertyKey.tlsCiphersuites.getKeyName(), "TLS_AES_256_GCM_SHA384");
22962296
con = getConnectionWithProps(props);
22972297
assertTrue(((MysqlConnection) con).getSession().isSSLEstablished());
2298-
assertSessionStatusEquals(con.createStatement(), "ssl_cipher", "DHE-RSA-AES128-SHA");
2298+
assertSessionStatusEquals(con.createStatement(), "ssl_cipher", "TLS_AES_256_GCM_SHA384");
22992299
con.close();
23002300

23012301
// TS.FR.2_2. Create a Connection with the connection property enabledSSLCipherSuites=[valid-cipher-suite] . Assess that the connection is created
23022302
// successfully and it is using the cipher suite specified.
23032303
props.remove(PropertyKey.tlsCiphersuites.getKeyName());
2304-
props.setProperty("enabledSSLCipherSuites", "TLS_DHE_RSA_WITH_AES_128_CBC_SHA");
2304+
props.setProperty("enabledSSLCipherSuites", "TLS_AES_256_GCM_SHA384");
23052305
con = getConnectionWithProps(props);
23062306
assertTrue(((MysqlConnection) con).getSession().isSSLEstablished());
2307-
assertSessionStatusEquals(con.createStatement(), "ssl_cipher", "DHE-RSA-AES128-SHA");
2307+
assertSessionStatusEquals(con.createStatement(), "ssl_cipher", "TLS_AES_256_GCM_SHA384");
23082308
con.close();
23092309
props.remove("enabledSSLCipherSuites");
23102310

0 commit comments

Comments
 (0)