ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject [2/2] incubator-ignite git commit: enable tests
Date Wed, 25 Mar 2015 17:56:03 GMT
enable tests


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

Branch: refs/heads/ignite-tests-todo
Commit: bcc407616f4f76a3a2ecd66411792afe6c854ca6
Parents: fe0b893
Author: Artem Shutak <ashutak@gridgain.com>
Authored: Wed Mar 25 20:55:17 2015 +0300
Committer: Artem Shutak <ashutak@gridgain.com>
Committed: Wed Mar 25 20:56:13 2015 +0300

----------------------------------------------------------------------
 .../examples/MessagingExamplesSelfTest.java     |  5 +-
 .../examples/MessagingExamplesSelfTest.java     |  5 +-
 .../client/ClientReconnectionSelfTest.java      | 67 ++++++++++----------
 ...CacheOffHeapMultiThreadedUpdateSelfTest.java | 42 +++++++-----
 .../GridCacheAbstractFieldsQuerySelfTest.java   |  8 ++-
 .../processors/cache/GridCacheJtaSelfTest.java  |  4 +-
 6 files changed, 76 insertions(+), 55 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/bcc40761/examples/src/test/java/org/apache/ignite/examples/MessagingExamplesSelfTest.java
----------------------------------------------------------------------
diff --git a/examples/src/test/java/org/apache/ignite/examples/MessagingExamplesSelfTest.java
b/examples/src/test/java/org/apache/ignite/examples/MessagingExamplesSelfTest.java
index 9950870..df6197b 100644
--- a/examples/src/test/java/org/apache/ignite/examples/MessagingExamplesSelfTest.java
+++ b/examples/src/test/java/org/apache/ignite/examples/MessagingExamplesSelfTest.java
@@ -37,10 +37,11 @@ public class MessagingExamplesSelfTest extends GridAbstractExamplesTest
{
     }
 
     /**
-     * TODO IGNITE-533
      * @throws Exception If failed.
      */
-    public void _testMessagingPingPongExample() throws Exception {
+    public void testMessagingPingPongExample() throws Exception {
+        fail("https://issues.apache.org/jira/browse/IGNITE-533");
+        
         MessagingPingPongExample.main(EMPTY_ARGS);
     }
 

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/bcc40761/examples/src/test/java8/org/apache/ignite/java8/examples/MessagingExamplesSelfTest.java
----------------------------------------------------------------------
diff --git a/examples/src/test/java8/org/apache/ignite/java8/examples/MessagingExamplesSelfTest.java
b/examples/src/test/java8/org/apache/ignite/java8/examples/MessagingExamplesSelfTest.java
index 1a3940d..444ebe3 100644
--- a/examples/src/test/java8/org/apache/ignite/java8/examples/MessagingExamplesSelfTest.java
+++ b/examples/src/test/java8/org/apache/ignite/java8/examples/MessagingExamplesSelfTest.java
@@ -37,10 +37,11 @@ public class MessagingExamplesSelfTest extends GridAbstractExamplesTest
{
     }
 
     /**
-     * TODO IGNITE-533
      * @throws Exception If failed.
      */
-    public void _testMessagingPingPongExample() throws Exception {
+    public void testMessagingPingPongExample() throws Exception {
+        fail("https://issues.apache.org/jira/browse/IGNITE-533");
+        
         MessagingPingPongExample.main(EMPTY_ARGS);
     }
 

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/bcc40761/modules/clients/src/test/java/org/apache/ignite/internal/client/ClientReconnectionSelfTest.java
----------------------------------------------------------------------
diff --git a/modules/clients/src/test/java/org/apache/ignite/internal/client/ClientReconnectionSelfTest.java
b/modules/clients/src/test/java/org/apache/ignite/internal/client/ClientReconnectionSelfTest.java
index 8b82a3c..a425e44 100644
--- a/modules/clients/src/test/java/org/apache/ignite/internal/client/ClientReconnectionSelfTest.java
+++ b/modules/clients/src/test/java/org/apache/ignite/internal/client/ClientReconnectionSelfTest.java
@@ -180,38 +180,41 @@ public class ClientReconnectionSelfTest extends GridCommonAbstractTest
{
     /**
      * @throws Exception If failed.
      */
-    // TODO Uncomment when GG-3789 fixed.
-//    public void testIdleConnection() throws Exception {
-//        for (int i = 0; i < SERVERS_CNT; i++)
-//            runServer(i, false);
-//
-//        GridClient client = client(); // Here client opens initial connection and fetches
topology.
-//
-//        try {
-//            // Only first server in list should be contacted.
-//            assertEquals(1, srvs[0].getConnectCount());
-//
-//            Thread.sleep(35000); // Timeout as idle.
-//
-//            assertEquals(1, srvs[0].getDisconnectCount());
-//
-//            for (int i = 1; i < SERVERS_CNT; i++)
-//                assertEquals(0, srvs[i].getConnectCount());
-//
-//            srvs[0].resetCounters();
-//
-//            // On new request connection should be re-opened.
-//            client.compute().refreshTopology(false, false);
-//
-//            assertEquals(1, srvs[0].getConnectCount());
-//
-//            for (int i = 1; i < SERVERS_CNT; i++)
-//                assertEquals(0, srvs[i].getConnectCount());
-//        }
-//        finally {
-//            GridClientFactory.stop(client.id());
-//        }
-//    }
+    public void testIdleConnection() throws Exception {
+        fail("https://issues.apache.org/jira/browse/IGNITE-590");
+        
+        int srvsCnt = 4; // TODO it may be wrong value. Need to investigate after IGNITE-590
will be fixed.
+        
+        for (int i = 0; i < srvsCnt; i++)
+            runServer(i, false);
+
+        GridClient client = client(); // Here client opens initial connection and fetches
topology.
+
+        try {
+            // Only first server in list should be contacted.
+            assertEquals(1, srvs[0].getConnectCount());
+
+            Thread.sleep(35000); // Timeout as idle.
+
+            assertEquals(1, srvs[0].getDisconnectCount());
+
+            for (int i = 1; i < srvsCnt; i++)
+                assertEquals(0, srvs[i].getConnectCount());
+
+            srvs[0].resetCounters();
+
+            // On new request connection should be re-opened.
+            client.compute().refreshTopology(false, false);
+
+            assertEquals(1, srvs[0].getConnectCount());
+
+            for (int i = 1; i < srvsCnt; i++)
+                assertEquals(0, srvs[i].getConnectCount());
+        }
+        finally {
+            GridClientFactory.stop(client.id());
+        }
+    }
 
     /**
      * Runs a new server with given index.

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/bcc40761/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/GridCacheOffHeapMultiThreadedUpdateSelfTest.java
----------------------------------------------------------------------
diff --git a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/GridCacheOffHeapMultiThreadedUpdateSelfTest.java
b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/GridCacheOffHeapMultiThreadedUpdateSelfTest.java
index 021b88f..213e85e 100644
--- a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/GridCacheOffHeapMultiThreadedUpdateSelfTest.java
+++ b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/GridCacheOffHeapMultiThreadedUpdateSelfTest.java
@@ -102,18 +102,23 @@ public class GridCacheOffHeapMultiThreadedUpdateSelfTest extends GridCacheOffHea
     /**
      * @throws Exception If failed.
      */
-    public void testPutTx() throws Exception {
+    public void testPutTxPessimistic() throws Exception {
         testPutTx(keyForNode(0), PESSIMISTIC);
 
-        // TODO GG-8118.
-        //testPutTx(keyForNode(0), OPTIMISTIC);
-
-        if (gridCount() > 1) {
+        if (gridCount() > 1)
             testPutTx(keyForNode(1), PESSIMISTIC);
+    }
+    
+    /**
+     * @throws Exception If failed.
+     */
+    public void testPutTxOptimistic() throws Exception {
+        fail("https://issues.apache.org/jira/browse/IGNITE-592");
+        
+        testPutTx(keyForNode(0), OPTIMISTIC);
 
-            // TODO GG-8118.
-            //testPutTx(keyForNode(1), OPTIMISTIC);
-        }
+        if (gridCount() > 1)
+            testPutTx(keyForNode(1), OPTIMISTIC);
     }
 
     /**
@@ -158,18 +163,23 @@ public class GridCacheOffHeapMultiThreadedUpdateSelfTest extends GridCacheOffHea
     /**
      * @throws Exception If failed.
      */
-    public void testPutxIfAbsentTx() throws Exception {
+    public void testPutxIfAbsentTxPessimistic() throws Exception {
         testPutxIfAbsentTx(keyForNode(0), PESSIMISTIC);
 
-        // TODO GG-8118.
-        //testPutxIfAbsentTx(keyForNode(0), OPTIMISTIC);
-
-        if (gridCount() > 1) {
+        if (gridCount() > 1)
             testPutxIfAbsentTx(keyForNode(1), PESSIMISTIC);
+    }
 
-            // TODO GG-8118.
-            //testPutxIfAbsentTx(keyForNode(1), OPTIMISTIC);
-        }
+    /**
+     * @throws Exception If failed.
+     */
+    public void testPutxIfAbsentTxOptimistic() throws Exception {
+        fail("https://issues.apache.org/jira/browse/IGNITE-592");
+        
+        testPutxIfAbsentTx(keyForNode(0), OPTIMISTIC);
+
+        if (gridCount() > 1)
+            testPutxIfAbsentTx(keyForNode(1), OPTIMISTIC);
     }
 
     /**

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/bcc40761/modules/indexing/src/test/java/org/apache/ignite/internal/processors/cache/GridCacheAbstractFieldsQuerySelfTest.java
----------------------------------------------------------------------
diff --git a/modules/indexing/src/test/java/org/apache/ignite/internal/processors/cache/GridCacheAbstractFieldsQuerySelfTest.java
b/modules/indexing/src/test/java/org/apache/ignite/internal/processors/cache/GridCacheAbstractFieldsQuerySelfTest.java
index 7dad58c..7eab2a4 100644
--- a/modules/indexing/src/test/java/org/apache/ignite/internal/processors/cache/GridCacheAbstractFieldsQuerySelfTest.java
+++ b/modules/indexing/src/test/java/org/apache/ignite/internal/processors/cache/GridCacheAbstractFieldsQuerySelfTest.java
@@ -777,7 +777,9 @@ public abstract class GridCacheAbstractFieldsQuerySelfTest extends GridCommonAbs
     }
 
     /** @throws Exception If failed. */
-    public void _testNoPrimitives() throws Exception { // TODO
+    public void testNoPrimitives() throws Exception {
+        fail("https://issues.apache.org/jira/browse/IGNITE-588");
+        
         GridCache<Object, Object> cache = ((IgniteKernal)grid(0)).getCache(CACHE_NO_PRIMITIVES);
 
         assert cache.putx("key", "val");
@@ -796,7 +798,9 @@ public abstract class GridCacheAbstractFieldsQuerySelfTest extends GridCommonAbs
     }
 
     /** @throws Exception If failed. */
-    public void _testComplexKeys() throws Exception { // TODO
+    public void testComplexKeys() throws Exception {
+        fail("https://issues.apache.org/jira/browse/IGNITE-588");
+        
         GridCache<PersonKey, Person> cache = ((IgniteKernal)grid(0)).getCache(CACHE_COMPLEX_KEYS);
 
         UUID id = UUID.randomUUID();

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/bcc40761/modules/jta/src/test/java/org/apache/ignite/internal/processors/cache/GridCacheJtaSelfTest.java
----------------------------------------------------------------------
diff --git a/modules/jta/src/test/java/org/apache/ignite/internal/processors/cache/GridCacheJtaSelfTest.java
b/modules/jta/src/test/java/org/apache/ignite/internal/processors/cache/GridCacheJtaSelfTest.java
index 8916786..24ce373 100644
--- a/modules/jta/src/test/java/org/apache/ignite/internal/processors/cache/GridCacheJtaSelfTest.java
+++ b/modules/jta/src/test/java/org/apache/ignite/internal/processors/cache/GridCacheJtaSelfTest.java
@@ -148,7 +148,9 @@ public class GridCacheJtaSelfTest extends GridCacheAbstractSelfTest {
      * @throws Exception If failed.
      */
     @SuppressWarnings("ConstantConditions")
-    public void _testJtaTwoCaches() throws Exception { // TODO GG-9141
+    public void testJtaTwoCaches() throws Exception {
+        fail("https://issues.apache.org/jira/browse/IGNITE-591");
+        
         UserTransaction jtaTx = jotm.getUserTransaction();
 
         IgniteEx ignite = grid(0);


Mime
View raw message