This is an automated email from the ASF dual-hosted git repository.
veithen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/axis-axis2-java-core.git
The following commit(s) were added to refs/heads/master by this push:
new 2a18d66 Use invalid host names in TLDs reserved by RFC 2606
2a18d66 is described below
commit 2a18d66d686e4ad670ca010ecabaeab58514e675
Author: Andreas Veithen <[email protected]>
AuthorDate: Wed Dec 30 16:19:03 2020 +0000
Use invalid host names in TLDs reserved by RFC 2606
---
.../org/apache/axis2/jaxws/dispatch/DispatchTestConstants.java | 2 +-
.../org/apache/axis2/jaxws/sample/AddNumbersHandlerTests.java | 2 +-
.../java/org/apache/axis2/jaxws/sample/FaultyWebServiceTests.java | 8 ++++----
.../apache/axis2/jaxws/sample/RuntimeExceptionsAsyncMepTest.java | 2 +-
4 files changed, 7 insertions(+), 7 deletions(-)
diff --git
a/modules/jaxws-integration/src/test/java/org/apache/axis2/jaxws/dispatch/DispatchTestConstants.java
b/modules/jaxws-integration/src/test/java/org/apache/axis2/jaxws/dispatch/DispatchTestConstants.java
index 27b5a7f..18c22de 100644
---
a/modules/jaxws-integration/src/test/java/org/apache/axis2/jaxws/dispatch/DispatchTestConstants.java
+++
b/modules/jaxws-integration/src/test/java/org/apache/axis2/jaxws/dispatch/DispatchTestConstants.java
@@ -23,7 +23,7 @@ import javax.xml.namespace.QName;
public class DispatchTestConstants {
- public static final String BADURL =
"http://this.is.not.a.valid.hostname.at.all.no.way:9999/wacky";
+ public static final String BADURL =
"http://this.hostname.is.invalid:9999/wacky";
public static final QName QNAME_SERVICE = new
QName("http://ws.apache.org/axis2", "EchoService");
public static final QName QNAME_PORT = new
QName("http://ws.apache.org/axis2", "EchoServiceSOAP11port0");
diff --git
a/modules/jaxws-integration/src/test/java/org/apache/axis2/jaxws/sample/AddNumbersHandlerTests.java
b/modules/jaxws-integration/src/test/java/org/apache/axis2/jaxws/sample/AddNumbersHandlerTests.java
index f7b3afa..359d636 100644
---
a/modules/jaxws-integration/src/test/java/org/apache/axis2/jaxws/sample/AddNumbersHandlerTests.java
+++
b/modules/jaxws-integration/src/test/java/org/apache/axis2/jaxws/sample/AddNumbersHandlerTests.java
@@ -88,7 +88,7 @@ public class AddNumbersHandlerTests {
@ClassRule
public static final Axis2Server server = new Axis2Server("target/repo");
- String invalidAxisEndpoint =
"http://invalidHostName:6060/axis2/services/AddNumbersHandlerService.AddNumbersHandlerPortTypeImplPort";
+ String invalidAxisEndpoint =
"http://rfc2606.invalid:6060/axis2/services/AddNumbersHandlerService.AddNumbersHandlerPortTypeImplPort";
static File requestFile = null;
static {
diff --git
a/modules/jaxws-integration/src/test/java/org/apache/axis2/jaxws/sample/FaultyWebServiceTests.java
b/modules/jaxws-integration/src/test/java/org/apache/axis2/jaxws/sample/FaultyWebServiceTests.java
index 55c7528..94c8fa4 100644
---
a/modules/jaxws-integration/src/test/java/org/apache/axis2/jaxws/sample/FaultyWebServiceTests.java
+++
b/modules/jaxws-integration/src/test/java/org/apache/axis2/jaxws/sample/FaultyWebServiceTests.java
@@ -119,7 +119,7 @@ public class FaultyWebServiceTests {
@Test
public void testFaultyWebService_badEndpoint() throws Exception {
- String host = "this.is.a.bad.endpoint.terrible.in.fact";
+ String host = "this.endpoint.is.invalid";
String badEndpoint = "http://" + host;
checkUnknownHostURL(badEndpoint);
@@ -185,7 +185,7 @@ public class FaultyWebServiceTests {
@Test
public void testFaultyWebService_badEndpoint_oneWay() throws Exception {
- String host = "this.is.a.bad.endpoint.terrible.in.fact";
+ String host = "this.endpoint.is.invalid";
String badEndpoint = "http://" + host;
checkUnknownHostURL(badEndpoint);
@@ -240,7 +240,7 @@ public class FaultyWebServiceTests {
public void testFaultyWebService_badEndpoint_AsyncCallback()
throws Exception {
- String host = "this.is.a.bad.endpoint.terrible.in.fact";
+ String host = "this.endpoint.is.invalid";
String badEndpoint = "http://" + host;
TestLogger.logger.debug("------------------------------");
@@ -294,7 +294,7 @@ public class FaultyWebServiceTests {
public void testFaultyWebService_badEndpoint_AsyncPolling()
throws Exception {
- String host = "this.is.a.bad.endpoint.terrible.in.fact";
+ String host = "this.endpoint.is.invalid";
String badEndpoint = "http://" + host;
TestLogger.logger.debug("------------------------------");
diff --git
a/modules/jaxws-integration/src/test/java/org/apache/axis2/jaxws/sample/RuntimeExceptionsAsyncMepTest.java
b/modules/jaxws-integration/src/test/java/org/apache/axis2/jaxws/sample/RuntimeExceptionsAsyncMepTest.java
index d559a66..9ec4994 100644
---
a/modules/jaxws-integration/src/test/java/org/apache/axis2/jaxws/sample/RuntimeExceptionsAsyncMepTest.java
+++
b/modules/jaxws-integration/src/test/java/org/apache/axis2/jaxws/sample/RuntimeExceptionsAsyncMepTest.java
@@ -63,7 +63,7 @@ public class RuntimeExceptionsAsyncMepTest {
private static final String CONNECT_EXCEPTION_ENDPOINT =
"http://localhost:6061/axis2/services/AsyncService2.DocLitWrappedPortImplPort";
- static final String HOST_NOT_FOUND_ENDPOINT =
"http://this.endpoint.does.not.exist/nope";
+ static final String HOST_NOT_FOUND_ENDPOINT =
"http://this.endpoint.is.invalid/nope";
/*
* For async-on-the-wire exchanges, we need to enable WS-Addressing and
get a transport