Test duration : 9.346s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.132s |
2020-11-11 21:30:13 |
2020-11-11 21:30:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-11 21:30:13 | ------------------------------------ 2020-11-11 21:30:14 | [Mutex] waiting for: [configured:node:node-c5537ddd-5ee7-4f43-8971-0a3db823d8c1:node-1cb97fb8-e3e7-4e67-8867-735b9c92011a] 2020-11-11 21:30:14 | [Mutex] received everything. 2020-11-11 21:30:14 | [Mutex] isItemNotified: configured:node:node-c5537ddd-5ee7-4f43-8971-0a3db823d8c1:node-1cb97fb8-e3e7-4e67-8867-735b9c92011a :: true 2020-11-11 21:30:15 | [Mutex] waiting for: [received:nodes:e45233fe-02cf-447f-a446-a2ee6762d027:localhost] 2020-11-11 21:30:15 | [Mutex] received everything. 2020-11-11 21:30:15 | [Mutex] isItemNotified: received:node:e45233fe-02cf-447f-a446-a2ee6762d027:localhost:node-c5537ddd-5ee7-4f43-8971-0a3db823d8c1:Node c5537ddd-5ee7-4f43-8971-0a3db823d8c1 :: true 2020-11-11 21:30:15 | [Mutex] waiting for: [received:nodes:a9860c38-d57e-4baa-a297-0f2d4c32b7a6:localhost] 2020-11-11 21:30:15 | [Mutex] waiting for: [received:nodes:a9860c38-d57e-4baa-a297-0f2d4c32b7a6:localhost] 2020-11-11 21:30:15 | [Mutex] received everything. 2020-11-11 21:30:15 | [Mutex] isItemNotified: received:node:a9860c38-d57e-4baa-a297-0f2d4c32b7a6:localhost:node-c5537ddd-5ee7-4f43-8971-0a3db823d8c1:Node c5537ddd-5ee7-4f43-8971-0a3db823d8c1 :: false |
createNodes | 1.815s |
2020-11-11 21:30:11 |
2020-11-11 21:30:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-11 21:30:11 | ------------------------------------ 2020-11-11 21:30:11 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-c5537ddd-5ee7-4f43-8971-0a3db823d8c1", "pubsub#title": "Node c5537ddd-5ee7-4f43-8971-0a3db823d8c1" } 2020-11-11 21:30:11 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-11-11 21:30:12 | [Mutex] waiting for: [received:nodes:6134b488-cd6a-4109-a7ef-790ef5d98f9d:localhost] 2020-11-11 21:30:12 | [Mutex] received everything. 2020-11-11 21:30:12 | [Mutex] isItemNotified: received:node:6134b488-cd6a-4109-a7ef-790ef5d98f9d:localhost:node-c5537ddd-5ee7-4f43-8971-0a3db823d8c1:Node c5537ddd-5ee7-4f43-8971-0a3db823d8c1 :: true |
createSubnodes | 1.029s |
2020-11-11 21:30:12 |
2020-11-11 21:30:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-11 21:30:12 | ------------------------------------ 2020-11-11 21:30:12 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-1cb97fb8-e3e7-4e67-8867-735b9c92011a", "pubsub#title": "Node 1cb97fb8-e3e7-4e67-8867-735b9c92011a" } 2020-11-11 21:30:12 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-11-11 21:30:13 | [Mutex] waiting for: [received:nodes:b976d1a2-7bf2-4db2-8029-076d5c7cf97b:localhost] 2020-11-11 21:30:13 | [Mutex] waiting for: [received:nodes:b976d1a2-7bf2-4db2-8029-076d5c7cf97b:localhost] 2020-11-11 21:30:13 | [Mutex] received everything. 2020-11-11 21:30:13 | [Mutex] isItemNotified: received:node:b976d1a2-7bf2-4db2-8029-076d5c7cf97b:localhost:node-1cb97fb8-e3e7-4e67-8867-735b9c92011a:Node 1cb97fb8-e3e7-4e67-8867-735b9c92011a :: true |
deleteNodes | 1.027s |
2020-11-11 21:30:18 |
2020-11-11 21:30:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-11 21:30:18 | ------------------------------------ 2020-11-11 21:30:18 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-1cb97fb8-e3e7-4e67-8867-735b9c92011a" } 2020-11-11 21:30:18 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-11-11 21:30:19 | [Mutex] waiting for: [received:nodes:01eaf46e-3c92-4418-9c06-c94f8bb4b81d:localhost] 2020-11-11 21:30:19 | [Mutex] received everything. 2020-11-11 21:30:19 | [Mutex] isItemNotified: received:node:01eaf46e-3c92-4418-9c06-c94f8bb4b81d:localhost:node-1cb97fb8-e3e7-4e67-8867-735b9c92011a:Node 1cb97fb8-e3e7-4e67-8867-735b9c92011a :: false |
deleteSubnodes | 1.038s |
2020-11-11 21:30:17 |
2020-11-11 21:30:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-11 21:30:17 | ------------------------------------ 2020-11-11 21:30:17 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-c5537ddd-5ee7-4f43-8971-0a3db823d8c1" } 2020-11-11 21:30:17 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-11-11 21:30:18 | [Mutex] waiting for: [received:nodes:35c48c99-a139-401a-84ff-0beb4628c610:localhost] 2020-11-11 21:30:18 | [Mutex] received everything. 2020-11-11 21:30:18 | [Mutex] isItemNotified: received:node:35c48c99-a139-401a-84ff-0beb4628c610:localhost:node-c5537ddd-5ee7-4f43-8971-0a3db823d8c1:Node c5537ddd-5ee7-4f43-8971-0a3db823d8c1 :: false 2020-11-11 21:30:18 | [Mutex] waiting for: [received:nodes:05c88bee-111c-4533-bf58-5e5c984cbefd:localhost] 2020-11-11 21:30:18 | [Mutex] received everything. 2020-11-11 21:30:18 | [Mutex] isItemNotified: received:node:05c88bee-111c-4533-bf58-5e5c984cbefd:localhost:node-c5537ddd-5ee7-4f43-8971-0a3db823d8c1:Node c5537ddd-5ee7-4f43-8971-0a3db823d8c1 :: false |
publishItemsToNodes | 0.100s |
2020-11-11 21:30:16 |
2020-11-11 21:30:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-11 21:30:16 | ------------------------------------ 2020-11-11 21:30:16 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-c5537ddd-5ee7-4f43-8971-0a3db823d8c1", "entry": "<test>item-fcd9ce87-0114-4aad-8e92-4009853085be</test>", "item-id": "item-fcd9ce87-0114-4aad-8e92-4009853085be" } 2020-11-11 21:30:16 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-fcd9ce87-0114-4aad-8e92-4009853085be" } 2020-11-11 21:30:16 | [Mutex] received everything. 2020-11-11 21:30:16 | [Mutex] isItemNotified: published:item:notifieditem-fcd9ce87-0114-4aad-8e92-4009853085be:admin@test-domain.com :: true |
retractItemsFromNodes | 0.055s |
2020-11-11 21:30:16 |
2020-11-11 21:30:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-11 21:30:16 | ------------------------------------ 2020-11-11 21:30:16 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-c5537ddd-5ee7-4f43-8971-0a3db823d8c1", "item-id": "item-fcd9ce87-0114-4aad-8e92-4009853085be" } 2020-11-11 21:30:16 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-fcd9ce87-0114-4aad-8e92-4009853085be" } 2020-11-11 21:30:16 | [Mutex] received everything. 2020-11-11 21:30:16 | [Mutex] isItemNotified: retracted:item:notifieditem-fcd9ce87-0114-4aad-8e92-4009853085be:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.066s |
2020-11-11 21:30:16 |
2020-11-11 21:30:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-11 21:30:16 | ------------------------------------ 2020-11-11 21:30:16 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-c5537ddd-5ee7-4f43-8971-0a3db823d8c1", "item-id": "item-fcd9ce87-0114-4aad-8e92-4009853085be" } 2020-11-11 21:30:16 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-c5537ddd-5ee7-4f43-8971-0a3db823d8c1", "item-id": "item-fcd9ce87-0114-4aad-8e92-4009853085be", "item": [ "<item id=\"item-fcd9ce87-0114-4aad-8e92-4009853085be\"><test>item-fcd9ce87-0114-4aad-8e92-4009853085be</test></item>" ] } 2020-11-11 21:30:16 | [Mutex] notify: [retrieved:item:item-fcd9ce87-0114-4aad-8e92-4009853085be:payload-matches:true:localhost] 2020-11-11 21:30:16 | [Mutex] received everything. 2020-11-11 21:30:16 | [Mutex] isItemNotified: retrieved:item:item-fcd9ce87-0114-4aad-8e92-4009853085be:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2020-11-11 21:30:16 |
2020-11-11 21:30:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-11 21:30:16 | ------------------------------------ 2020-11-11 21:30:16 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-11-11 21:30:16 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-c5537ddd-5ee7-4f43-8971-0a3db823d8c1", "node-1cb97fb8-e3e7-4e67-8867-735b9c92011a" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2020-11-11 21:30:16 |
2020-11-11 21:30:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-11 21:30:16 | ------------------------------------ 2020-11-11 21:30:16 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-c5537ddd-5ee7-4f43-8971-0a3db823d8c1)" } 2020-11-11 21:30:16 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.014s |
2020-11-11 21:30:15 |
2020-11-11 21:30:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-11 21:30:15 | ------------------------------------ 2020-11-11 21:30:15 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-c5537ddd-5ee7-4f43-8971-0a3db823d8c1", "jids": [ "admin@test-domain.com" ] } 2020-11-11 21:30:15 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.071s |
2020-11-11 21:30:16 |
2020-11-11 21:30:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-11 21:30:16 | ------------------------------------ 2020-11-11 21:30:16 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-c5537ddd-5ee7-4f43-8971-0a3db823d8c1", "jids": [ "admin@test-domain.com" ] } 2020-11-11 21:30:16 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |