Test duration : 9.385s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.132s |
2020-10-11 22:57:39 |
2020-10-11 22:57:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-11 22:57:39 | ------------------------------------ 2020-10-11 22:57:39 | [Mutex] waiting for: [configured:node:node-4916f48f-9d66-4a5c-be1b-3a289e0438a2:node-612958cc-3340-48be-8bce-aacf0de7f7d7] 2020-10-11 22:57:39 | [Mutex] received everything. 2020-10-11 22:57:39 | [Mutex] isItemNotified: configured:node:node-4916f48f-9d66-4a5c-be1b-3a289e0438a2:node-612958cc-3340-48be-8bce-aacf0de7f7d7 :: true 2020-10-11 22:57:40 | [Mutex] waiting for: [received:nodes:28326d80-2f8c-43ca-95b9-62b588b5e562:localhost] 2020-10-11 22:57:40 | [Mutex] waiting for: [received:nodes:28326d80-2f8c-43ca-95b9-62b588b5e562:localhost] 2020-10-11 22:57:40 | [Mutex] received everything. 2020-10-11 22:57:40 | [Mutex] isItemNotified: received:node:28326d80-2f8c-43ca-95b9-62b588b5e562:localhost:node-4916f48f-9d66-4a5c-be1b-3a289e0438a2:Node 4916f48f-9d66-4a5c-be1b-3a289e0438a2 :: true 2020-10-11 22:57:40 | [Mutex] waiting for: [received:nodes:d5afb43e-7002-499b-b4aa-15e7e1dccca8:localhost] 2020-10-11 22:57:40 | [Mutex] received everything. 2020-10-11 22:57:40 | [Mutex] isItemNotified: received:node:d5afb43e-7002-499b-b4aa-15e7e1dccca8:localhost:node-4916f48f-9d66-4a5c-be1b-3a289e0438a2:Node 4916f48f-9d66-4a5c-be1b-3a289e0438a2 :: false |
createNodes | 1.728s |
2020-10-11 22:57:36 |
2020-10-11 22:57:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-11 22:57:36 | ------------------------------------ 2020-10-11 22:57:37 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-4916f48f-9d66-4a5c-be1b-3a289e0438a2", "pubsub#title": "Node 4916f48f-9d66-4a5c-be1b-3a289e0438a2" } 2020-10-11 22:57:37 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-10-11 22:57:38 | [Mutex] waiting for: [received:nodes:a2531d90-464b-4e5e-b22b-9d5ed7548d45:localhost] 2020-10-11 22:57:38 | [Mutex] received everything. 2020-10-11 22:57:38 | [Mutex] isItemNotified: received:node:a2531d90-464b-4e5e-b22b-9d5ed7548d45:localhost:node-4916f48f-9d66-4a5c-be1b-3a289e0438a2:Node 4916f48f-9d66-4a5c-be1b-3a289e0438a2 :: true |
createSubnodes | 1.028s |
2020-10-11 22:57:38 |
2020-10-11 22:57:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-11 22:57:38 | ------------------------------------ 2020-10-11 22:57:38 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-612958cc-3340-48be-8bce-aacf0de7f7d7", "pubsub#title": "Node 612958cc-3340-48be-8bce-aacf0de7f7d7" } 2020-10-11 22:57:38 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-10-11 22:57:39 | [Mutex] waiting for: [received:nodes:cede2c82-5030-4117-a9c7-d083701b6a52:localhost] 2020-10-11 22:57:39 | [Mutex] received everything. 2020-10-11 22:57:39 | [Mutex] isItemNotified: received:node:cede2c82-5030-4117-a9c7-d083701b6a52:localhost:node-612958cc-3340-48be-8bce-aacf0de7f7d7:Node 612958cc-3340-48be-8bce-aacf0de7f7d7 :: true |
deleteNodes | 1.024s |
2020-10-11 22:57:44 |
2020-10-11 22:57:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-11 22:57:44 | ------------------------------------ 2020-10-11 22:57:44 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-612958cc-3340-48be-8bce-aacf0de7f7d7" } 2020-10-11 22:57:44 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-10-11 22:57:45 | [Mutex] waiting for: [received:nodes:fe8a9eb2-0b56-44d6-babc-f7fdeb1bae00:localhost] 2020-10-11 22:57:45 | [Mutex] received everything. 2020-10-11 22:57:45 | [Mutex] isItemNotified: received:node:fe8a9eb2-0b56-44d6-babc-f7fdeb1bae00:localhost:node-612958cc-3340-48be-8bce-aacf0de7f7d7:Node 612958cc-3340-48be-8bce-aacf0de7f7d7 :: false |
deleteSubnodes | 1.044s |
2020-10-11 22:57:43 |
2020-10-11 22:57:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-11 22:57:43 | ------------------------------------ 2020-10-11 22:57:43 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-4916f48f-9d66-4a5c-be1b-3a289e0438a2" } 2020-10-11 22:57:43 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-10-11 22:57:44 | [Mutex] waiting for: [received:nodes:3a688ed2-e927-46c8-8b8b-484a74be2610:localhost] 2020-10-11 22:57:44 | [Mutex] waiting for: [received:nodes:3a688ed2-e927-46c8-8b8b-484a74be2610:localhost] 2020-10-11 22:57:44 | [Mutex] received everything. 2020-10-11 22:57:44 | [Mutex] isItemNotified: received:node:3a688ed2-e927-46c8-8b8b-484a74be2610:localhost:node-4916f48f-9d66-4a5c-be1b-3a289e0438a2:Node 4916f48f-9d66-4a5c-be1b-3a289e0438a2 :: false 2020-10-11 22:57:44 | [Mutex] waiting for: [received:nodes:823865c3-82eb-4a81-951b-777064751f1d:localhost] 2020-10-11 22:57:44 | [Mutex] received everything. 2020-10-11 22:57:44 | [Mutex] isItemNotified: received:node:823865c3-82eb-4a81-951b-777064751f1d:localhost:node-4916f48f-9d66-4a5c-be1b-3a289e0438a2:Node 4916f48f-9d66-4a5c-be1b-3a289e0438a2 :: false |
publishItemsToNodes | 0.063s |
2020-10-11 22:57:41 |
2020-10-11 22:57:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-11 22:57:41 | ------------------------------------ 2020-10-11 22:57:41 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-4916f48f-9d66-4a5c-be1b-3a289e0438a2", "entry": "<test>item-949c7afa-5153-4539-9876-2602969b4d4d</test>", "item-id": "item-949c7afa-5153-4539-9876-2602969b4d4d" } 2020-10-11 22:57:41 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-949c7afa-5153-4539-9876-2602969b4d4d" } 2020-10-11 22:57:41 | [Mutex] received everything. 2020-10-11 22:57:41 | [Mutex] isItemNotified: published:item:notifieditem-949c7afa-5153-4539-9876-2602969b4d4d:admin@test-domain.com :: true |
retractItemsFromNodes | 0.091s |
2020-10-11 22:57:42 |
2020-10-11 22:57:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-11 22:57:42 | ------------------------------------ 2020-10-11 22:57:42 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-4916f48f-9d66-4a5c-be1b-3a289e0438a2", "item-id": "item-949c7afa-5153-4539-9876-2602969b4d4d" } 2020-10-11 22:57:42 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-949c7afa-5153-4539-9876-2602969b4d4d" } 2020-10-11 22:57:42 | [Mutex] received everything. 2020-10-11 22:57:42 | [Mutex] isItemNotified: retracted:item:notifieditem-949c7afa-5153-4539-9876-2602969b4d4d:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.111s |
2020-10-11 22:57:41 |
2020-10-11 22:57:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-11 22:57:41 | ------------------------------------ 2020-10-11 22:57:41 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-4916f48f-9d66-4a5c-be1b-3a289e0438a2", "item-id": "item-949c7afa-5153-4539-9876-2602969b4d4d" } 2020-10-11 22:57:41 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-4916f48f-9d66-4a5c-be1b-3a289e0438a2", "item-id": "item-949c7afa-5153-4539-9876-2602969b4d4d", "item": [ "<item id=\"item-949c7afa-5153-4539-9876-2602969b4d4d\"><test>item-949c7afa-5153-4539-9876-2602969b4d4d</test></item>" ] } 2020-10-11 22:57:41 | [Mutex] notify: [retrieved:item:item-949c7afa-5153-4539-9876-2602969b4d4d:payload-matches:true:localhost] 2020-10-11 22:57:41 | [Mutex] received everything. 2020-10-11 22:57:41 | [Mutex] isItemNotified: retrieved:item:item-949c7afa-5153-4539-9876-2602969b4d4d:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.054s |
2020-10-11 22:57:41 |
2020-10-11 22:57:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-11 22:57:41 | ------------------------------------ 2020-10-11 22:57:41 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-10-11 22:57:42 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-612958cc-3340-48be-8bce-aacf0de7f7d7", "node-4916f48f-9d66-4a5c-be1b-3a289e0438a2" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2020-10-11 22:57:42 |
2020-10-11 22:57:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-11 22:57:42 | ------------------------------------ 2020-10-11 22:57:42 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-4916f48f-9d66-4a5c-be1b-3a289e0438a2)" } 2020-10-11 22:57:42 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.015s |
2020-10-11 22:57:40 |
2020-10-11 22:57:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-11 22:57:40 | ------------------------------------ 2020-10-11 22:57:40 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-4916f48f-9d66-4a5c-be1b-3a289e0438a2", "jids": [ "admin@test-domain.com" ] } 2020-10-11 22:57:40 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.071s |
2020-10-11 22:57:42 |
2020-10-11 22:57:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-11 22:57:42 | ------------------------------------ 2020-10-11 22:57:42 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-4916f48f-9d66-4a5c-be1b-3a289e0438a2", "jids": [ "admin@test-domain.com" ] } 2020-10-11 22:57:42 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |