Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public class NodeSslConnectionMetricTest extends GridCommonAbstractTest {
private static final String CIPHER_SUITE = "TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256";

/** Cipher suite not supported by cluster nodes. */
private static final String UNSUPPORTED_CIPHER_SUITE = "TLS_RSA_WITH_AES_128_GCM_SHA256";
private static final String UNSUPPORTED_CIPHER_SUITE = "TLS_DHE_RSA_WITH_AES_128_CBC_SHA256";

/** Local server address. */
private static final String LOCAL_CLIENT_ADDRESS = "127.0.0.1:10800";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ public void testDefaultCipherSuite() throws Exception {
@Test
public void testSameCipherSuite() throws Exception {
String ciphers = "TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256," +
"TLS_RSA_WITH_AES_128_GCM_SHA256," +
"TLS_DHE_RSA_WITH_AES_128_CBC_SHA256," +
"TLS_DHE_RSA_WITH_AES_128_GCM_SHA256";

activate(ciphers, ciphers, EXIT_CODE_OK);
Expand All @@ -165,7 +165,7 @@ public void testSameCipherSuite() throws Exception {
*/
@Test
public void testOneCommonCipherSuite() throws Exception {
String nodeCipherSuites = "TLS_RSA_WITH_AES_128_GCM_SHA256," +
String nodeCipherSuites = "TLS_DHE_RSA_WITH_AES_128_CBC_SHA256," +
"TLS_DHE_RSA_WITH_AES_128_GCM_SHA256";

String utilityCipherSuites = "TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256," +
Expand All @@ -179,7 +179,7 @@ public void testOneCommonCipherSuite() throws Exception {
*/
@Test
public void testNoCommonCipherSuite() throws Exception {
String nodeCipherSuites = "TLS_RSA_WITH_AES_128_GCM_SHA256";
String nodeCipherSuites = "TLS_DHE_RSA_WITH_AES_128_CBC_SHA256";

String utilityCipherSuites = "TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256," +
"TLS_DHE_RSA_WITH_AES_128_GCM_SHA256";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ protected ClientConfiguration getClientConfiguration() {
public void testSameCipherSuite() throws Exception {
cipherSuites = new String[] {
"TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256",
"TLS_RSA_WITH_AES_128_GCM_SHA256",
"TLS_DHE_RSA_WITH_AES_128_CBC_SHA256",
"TLS_DHE_RSA_WITH_AES_128_GCM_SHA256"
};

Expand All @@ -110,7 +110,7 @@ public void testSameCipherSuite() throws Exception {
checkSuccessfulClientStart(
new String[] {
"TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256",
"TLS_RSA_WITH_AES_128_GCM_SHA256",
"TLS_DHE_RSA_WITH_AES_128_CBC_SHA256",
"TLS_DHE_RSA_WITH_AES_128_GCM_SHA256"
},
null
Expand All @@ -123,7 +123,7 @@ public void testSameCipherSuite() throws Exception {
@Test
public void testOneCommonCipherSuite() throws Exception {
cipherSuites = new String[] {
"TLS_RSA_WITH_AES_128_GCM_SHA256",
"TLS_DHE_RSA_WITH_AES_128_CBC_SHA256",
"TLS_DHE_RSA_WITH_AES_128_GCM_SHA256"
};

Expand All @@ -144,7 +144,7 @@ public void testOneCommonCipherSuite() throws Exception {
@Test
public void testNoCommonCipherSuite() throws Exception {
cipherSuites = new String[] {
"TLS_RSA_WITH_AES_128_GCM_SHA256"
"TLS_DHE_RSA_WITH_AES_128_CBC_SHA256"
};

startGrid();
Expand All @@ -164,7 +164,7 @@ public void testNoCommonCipherSuite() throws Exception {
@Test
public void testNonExistentCipherSuite() throws Exception {
cipherSuites = new String[] {
"TLS_RSA_WITH_AES_128_GCM_SHA256"
"TLS_DHE_RSA_WITH_AES_128_CBC_SHA256"
};

startGrid();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,12 @@ public void testSameCipherSuite() throws Exception {
new String[][] {
new String[] {
"TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256",
"TLS_RSA_WITH_AES_128_GCM_SHA256",
"TLS_DHE_RSA_WITH_AES_128_CBC_SHA256",
"TLS_DHE_RSA_WITH_AES_128_GCM_SHA256"
},
new String[] {
"TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256",
"TLS_RSA_WITH_AES_128_GCM_SHA256",
"TLS_DHE_RSA_WITH_AES_128_CBC_SHA256",
"TLS_DHE_RSA_WITH_AES_128_GCM_SHA256"
}
},
Expand All @@ -87,7 +87,7 @@ public void testOneCommonCipherSuite() throws Exception {
checkDiscoverySuccess(
new String[][] {
new String[] {
"TLS_RSA_WITH_AES_128_GCM_SHA256",
"TLS_DHE_RSA_WITH_AES_128_CBC_SHA256",
"TLS_DHE_RSA_WITH_AES_128_GCM_SHA256"
},
new String[] {
Expand All @@ -107,7 +107,7 @@ public void testNoCommonCipherSuite() throws Exception {
checkDiscoveryFailure(
new String[][] {
new String[] {
"TLS_RSA_WITH_AES_128_GCM_SHA256",
"TLS_DHE_RSA_WITH_AES_128_CBC_SHA256",
},
new String[] {
"TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256",
Expand All @@ -126,7 +126,7 @@ public void testNonExistentCipherSuite() throws Exception {
checkDiscoveryFailure(
new String[][] {
new String[] {
"TLS_RSA_WITH_AES_128_GCM_SHA256",
"TLS_DHE_RSA_WITH_AES_128_CBC_SHA256",
"TLS_DHE_RSA_WITH_AES_128_GCM_SHA256"
},
new String[] {
Expand Down
Loading