File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -252,7 +252,7 @@ public static void validateSslCertificate() {
252
252
253
253
254
254
public static void validateSslCertificate (NetworkHttpClient client ) {
255
- final Request request = new Request (HttpMethod .GET , "https://api .twilio.com:8443 " );
255
+ final Request request = new Request (HttpMethod .GET , "https://tls-test .twilio.com:443 " );
256
256
try {
257
257
final Response response = client .makeRequest (request );
258
258
Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ public void testSetRestClient() {
128
128
129
129
@ Test
130
130
public void testValidateSslCertificateError () {
131
- final Request request = new Request (HttpMethod .GET , "https://api .twilio.com:8443 " );
131
+ final Request request = new Request (HttpMethod .GET , "https://tls-test .twilio.com:443 " );
132
132
when (networkHttpClient .makeRequest (request )).thenReturn (new Response ("" , 500 ));
133
133
try {
134
134
Twilio .validateSslCertificate (networkHttpClient );
@@ -140,7 +140,7 @@ public void testValidateSslCertificateError() {
140
140
141
141
@ Test
142
142
public void testValidateSslCertificateException () {
143
- final Request request = new Request (HttpMethod .GET , "https://api .twilio.com:8443 " );
143
+ final Request request = new Request (HttpMethod .GET , "https://tls-test .twilio.com:443 " );
144
144
when (networkHttpClient .makeRequest (request )).thenThrow (new ApiException ("No" ));
145
145
146
146
try {
@@ -153,7 +153,7 @@ public void testValidateSslCertificateException() {
153
153
154
154
@ Test
155
155
public void testValidateSslCertificateSuccess () {
156
- final Request request = new Request (HttpMethod .GET , "https://api .twilio.com:8443 " );
156
+ final Request request = new Request (HttpMethod .GET , "https://tls-test .twilio.com:443 " );
157
157
when (networkHttpClient .makeRequest (request )).thenReturn (new Response ("" , 200 ));
158
158
159
159
Twilio .validateSslCertificate (networkHttpClient );
You can’t perform that action at this time.
0 commit comments