ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject incubator-ignite git commit: add hooks and change port
Date Wed, 25 Mar 2015 12:16:56 GMT
Repository: incubator-ignite
Updated Branches:
  refs/heads/ignite-tc-jclient 6612993f9 -> 96f4659a9


add hooks and change port


Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/96f4659a
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/96f4659a
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/96f4659a

Branch: refs/heads/ignite-tc-jclient
Commit: 96f4659a9975a4e985f3ae8c9e846e53e3acfa9e
Parents: 6612993
Author: Artem Shutak <ashutak@gridgain.com>
Authored: Wed Mar 25 15:17:21 2015 +0300
Committer: Artem Shutak <ashutak@gridgain.com>
Committed: Wed Mar 25 15:17:21 2015 +0300

----------------------------------------------------------------------
 .../processors/rest/JettyRestProcessorAbstractSelfTest.java  | 8 +++++++-
 .../processors/rest/JettyRestProcessorUnsignedSelfTest.java  | 3 ++-
 2 files changed, 9 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/96f4659a/modules/clients/src/test/java/org/apache/ignite/internal/processors/rest/JettyRestProcessorAbstractSelfTest.java
----------------------------------------------------------------------
diff --git a/modules/clients/src/test/java/org/apache/ignite/internal/processors/rest/JettyRestProcessorAbstractSelfTest.java
b/modules/clients/src/test/java/org/apache/ignite/internal/processors/rest/JettyRestProcessorAbstractSelfTest.java
index 7a1b687..ae43565 100644
--- a/modules/clients/src/test/java/org/apache/ignite/internal/processors/rest/JettyRestProcessorAbstractSelfTest.java
+++ b/modules/clients/src/test/java/org/apache/ignite/internal/processors/rest/JettyRestProcessorAbstractSelfTest.java
@@ -72,7 +72,7 @@ abstract class JettyRestProcessorAbstractSelfTest extends AbstractRestProcessorS
         for (Map.Entry<String, String> e : params.entrySet())
             addr += e.getKey() + '=' + e.getValue() + '&';
 
-        System.out.println("addr=" + addr);
+        info("addr=" + addr);
         
         URL url = new URL(addr);
         
@@ -89,10 +89,16 @@ abstract class JettyRestProcessorAbstractSelfTest extends AbstractRestProcessorS
         if (signature != null)
             conn.setRequestProperty("X-Signature", signature);
 
+        // Hooks ------------------
         conn.setRequestProperty("Content-Length", "1000");
+
         conn.setRequestProperty("Connection", "close");
+        System.setProperty("http.keepAlive", "false");
+
         System.setProperty("java.net.preferIPv4Stack" , "true");
+
         conn.setReadTimeout(2 * 60 * 1000);// 2 min.
+        // Hooks ------------------
 
         log.info("Inside content 5");
 

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/96f4659a/modules/clients/src/test/java/org/apache/ignite/internal/processors/rest/JettyRestProcessorUnsignedSelfTest.java
----------------------------------------------------------------------
diff --git a/modules/clients/src/test/java/org/apache/ignite/internal/processors/rest/JettyRestProcessorUnsignedSelfTest.java
b/modules/clients/src/test/java/org/apache/ignite/internal/processors/rest/JettyRestProcessorUnsignedSelfTest.java
index c3de703..a1ac550 100644
--- a/modules/clients/src/test/java/org/apache/ignite/internal/processors/rest/JettyRestProcessorUnsignedSelfTest.java
+++ b/modules/clients/src/test/java/org/apache/ignite/internal/processors/rest/JettyRestProcessorUnsignedSelfTest.java
@@ -23,7 +23,8 @@ package org.apache.ignite.internal.processors.rest;
 public class JettyRestProcessorUnsignedSelfTest extends JettyRestProcessorAbstractSelfTest
{
     /** {@inheritDoc} */
     @Override protected int restPort() {
-        return 8091;
+        return 8080;
+//        return 8091;
     }
 
     /**


Mime
View raw message