You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by sb...@apache.org on 2015/06/07 23:20:09 UTC

[1/2] incubator-ignite git commit: #nodejs: add tcp ip finder to test

Repository: incubator-ignite
Updated Branches:
  refs/heads/ignite-nodejs 83112f876 -> bf7812e13


#nodejs: add tcp ip finder to test


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

Branch: refs/heads/ignite-nodejs
Commit: 0be954f6944cfe82282a7bcdc0c0d7d0f106e07e
Parents: 83112f8
Author: ivasilinets <iv...@gridgain.com>
Authored: Mon Jun 8 00:16:53 2015 +0300
Committer: ivasilinets <iv...@gridgain.com>
Committed: Mon Jun 8 00:16:53 2015 +0300

----------------------------------------------------------------------
 .../org/apache/ignite/internal/NodeJsAbstractTest.java  | 12 ++++++++++++
 1 file changed, 12 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/0be954f6/modules/nodejs/src/test/java/org/apache/ignite/internal/NodeJsAbstractTest.java
----------------------------------------------------------------------
diff --git a/modules/nodejs/src/test/java/org/apache/ignite/internal/NodeJsAbstractTest.java b/modules/nodejs/src/test/java/org/apache/ignite/internal/NodeJsAbstractTest.java
index 3600fc6..1ca1bed 100644
--- a/modules/nodejs/src/test/java/org/apache/ignite/internal/NodeJsAbstractTest.java
+++ b/modules/nodejs/src/test/java/org/apache/ignite/internal/NodeJsAbstractTest.java
@@ -22,6 +22,9 @@ import org.apache.ignite.configuration.*;
 import org.apache.ignite.internal.util.*;
 import org.apache.ignite.internal.util.typedef.*;
 import org.apache.ignite.internal.util.typedef.internal.*;
+import org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi;
+import org.apache.ignite.spi.discovery.tcp.ipfinder.TcpDiscoveryIpFinder;
+import org.apache.ignite.spi.discovery.tcp.ipfinder.vm.TcpDiscoveryVmIpFinder;
 import org.apache.ignite.testframework.junits.common.*;
 
 import java.util.*;
@@ -45,6 +48,9 @@ public class NodeJsAbstractTest extends GridCommonAbstractTest {
     /** Node JS file with tests. */
     private String fileName;
 
+    /** */
+    private static final TcpDiscoveryIpFinder IP_FINDER = new TcpDiscoveryVmIpFinder(true);
+
     /**
      * @param fileName Node JS file name.
      */
@@ -63,6 +69,12 @@ public class NodeJsAbstractTest extends GridCommonAbstractTest {
 
         cfg.setConnectorConfiguration(conCfg);
 
+        TcpDiscoverySpi disco = new TcpDiscoverySpi();
+
+        disco.setIpFinder(IP_FINDER);
+
+        cfg.setDiscoverySpi(disco);
+
         return cfg;
     }
 


[2/2] incubator-ignite git commit: #nodejs: debug

Posted by sb...@apache.org.
#nodejs: debug


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

Branch: refs/heads/ignite-nodejs
Commit: bf7812e130472b685441f6e5ff0d917df54c6f61
Parents: 0be954f
Author: ivasilinets <iv...@gridgain.com>
Authored: Mon Jun 8 00:20:03 2015 +0300
Committer: ivasilinets <iv...@gridgain.com>
Committed: Mon Jun 8 00:20:03 2015 +0300

----------------------------------------------------------------------
 modules/nodejs/src/test/nodejs/test_ignition.js | 2 ++
 modules/nodejs/src/test/nodejs/test_utils.js    | 9 ++++++++-
 2 files changed, 10 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/bf7812e1/modules/nodejs/src/test/nodejs/test_ignition.js
----------------------------------------------------------------------
diff --git a/modules/nodejs/src/test/nodejs/test_ignition.js b/modules/nodejs/src/test/nodejs/test_ignition.js
index da02039..388278b 100644
--- a/modules/nodejs/src/test/nodejs/test_ignition.js
+++ b/modules/nodejs/src/test/nodejs/test_ignition.js
@@ -1,3 +1,5 @@
+exports = module.exports = {};
+
 function TestIgnition () {
 }
 

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/bf7812e1/modules/nodejs/src/test/nodejs/test_utils.js
----------------------------------------------------------------------
diff --git a/modules/nodejs/src/test/nodejs/test_utils.js b/modules/nodejs/src/test/nodejs/test_utils.js
index 93a08ce..d7ec458 100644
--- a/modules/nodejs/src/test/nodejs/test_utils.js
+++ b/modules/nodejs/src/test/nodejs/test_utils.js
@@ -111,9 +111,16 @@ TestUtils.testDone = function() {
  */
 TestUtils.runTest = function() {
     var fileName = process.argv[2].toString().trim();
+
+    console.log("FileName " + fileName);
+
     var Test = require(fileName);
+
+    console.log("Test : " + Object.keys(Test))
+
     Test = Test[Object.keys(Test)[0]];
-    console.log(Test);
+
+    console.log("Result test: " + Test);
     var functionName = process.argv[3].toString().trim();
 
     if (!Test[functionName]) {