ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anovi...@apache.org
Subject [04/17] ignite git commit: IGNITE-3262 Implemented remove missed cache.
Date Fri, 08 Jul 2016 06:27:50 GMT
IGNITE-3262 Implemented remove missed cache.


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

Branch: refs/heads/ignite-3262
Commit: 8b994c4292e256bf5dd5b49870ef9598ffd740a2
Parents: 2f79123
Author: Maxim Afanasiev <mafkus@gmail.com>
Authored: Mon Jul 4 18:04:47 2016 +0700
Committer: Maxim Afanasiev <mafkus@gmail.com>
Committed: Mon Jul 4 18:04:47 2016 +0700

----------------------------------------------------------------------
 .../main/js/test/backend/unit/CacheService.test.js   | 15 +++++++++++----
 1 file changed, 11 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/8b994c42/modules/web-console/src/main/js/test/backend/unit/CacheService.test.js
----------------------------------------------------------------------
diff --git a/modules/web-console/src/main/js/test/backend/unit/CacheService.test.js b/modules/web-console/src/main/js/test/backend/unit/CacheService.test.js
index 2764dad..44b0d1b 100644
--- a/modules/web-console/src/main/js/test/backend/unit/CacheService.test.js
+++ b/modules/web-console/src/main/js/test/backend/unit/CacheService.test.js
@@ -117,7 +117,7 @@ suite('CacheServiceTestsSuite', () => {
             .catch(done);
     });
 
-    test('Remove missed cache', (done) => {
+    test('Remove cache without identifier', (done) => {
         cacheService.merge(testCaches[0])
             .then(() => cacheService.remove())
             .catch((err) => {
@@ -127,9 +127,16 @@ suite('CacheServiceTestsSuite', () => {
             });
     });
 
-    test('Remove cache without identifier', (done) => {
-        // TODO IGNITE-3262 Add test.
-        done();
+    test('Remove missed cache', (done) => {
+        const validNoExistingId = 'FFFFFFFFFFFFFFFFFFFFFFFF';
+
+        cacheService.merge(testCaches[0])
+            .then(() => cacheService.remove(validNoExistingId))
+            .then(({rowsAffected}) => {
+                assert.equal(rowsAffected, 0);
+            })
+            .then(done)
+            .catch(done);
     });
 
     test('Remove all caches in space', (done) => {


Mime
View raw message