You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2010/03/05 10:29:13 UTC
svn commit: r919345 - in
/camel/trunk/components/camel-http/src/test/java/org/apache/camel/component/http:
HttpsAuthenticationTest.java HttpsGetTest.java
Author: davsclaus
Date: Fri Mar 5 09:29:13 2010
New Revision: 919345
URL: http://svn.apache.org/viewvc?rev=919345&view=rev
Log:
Fixed unit test failure due certificate needs to use 127.0.0.1 to match hostname.
Modified:
camel/trunk/components/camel-http/src/test/java/org/apache/camel/component/http/HttpsAuthenticationTest.java
camel/trunk/components/camel-http/src/test/java/org/apache/camel/component/http/HttpsGetTest.java
Modified: camel/trunk/components/camel-http/src/test/java/org/apache/camel/component/http/HttpsAuthenticationTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-http/src/test/java/org/apache/camel/component/http/HttpsAuthenticationTest.java?rev=919345&r1=919344&r2=919345&view=diff
==============================================================================
--- camel/trunk/components/camel-http/src/test/java/org/apache/camel/component/http/HttpsAuthenticationTest.java (original)
+++ camel/trunk/components/camel-http/src/test/java/org/apache/camel/component/http/HttpsAuthenticationTest.java Fri Mar 5 09:29:13 2010
@@ -38,7 +38,7 @@
public void httpsGetWithAuthentication() throws Exception {
localServer.register("/", new AuthenticationValidationHandler("GET", null, null, getExpectedContent(), user, password));
- Exchange exchange = template.request("https://" + getHostName() + ":" + getPort() + "/?username=camel&password=password", new Processor() {
+ Exchange exchange = template.request("https://127.0.0.1:" + getPort() + "/?username=camel&password=password", new Processor() {
public void process(Exchange exchange) throws Exception {
}
});
Modified: camel/trunk/components/camel-http/src/test/java/org/apache/camel/component/http/HttpsGetTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-http/src/test/java/org/apache/camel/component/http/HttpsGetTest.java?rev=919345&r1=919344&r2=919345&view=diff
==============================================================================
--- camel/trunk/components/camel-http/src/test/java/org/apache/camel/component/http/HttpsGetTest.java (original)
+++ camel/trunk/components/camel-http/src/test/java/org/apache/camel/component/http/HttpsGetTest.java Fri Mar 5 09:29:13 2010
@@ -31,7 +31,7 @@
public void httpsGet() throws Exception {
localServer.register("/mail/", new BasicValidationHandler("GET", null, null, getExpectedContent()));
- Exchange exchange = template.request("https://" + getHostName() + ":" + getPort() + "/mail/", new Processor() {
+ Exchange exchange = template.request("https://127.0.0.1:" + getPort() + "/mail/", new Processor() {
public void process(Exchange exchange) throws Exception {
}
});