Test duration : 8.877s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.110s |
2021-04-21 22:17:22 |
2021-04-21 22:17:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-21 22:17:22 | ------------------------------------ 2021-04-21 22:17:22 | [Mutex] waiting for: [configured:node:node-538cc00b-d31c-4274-9cf2-4a750926ab89:node-284bdafc-396e-4a2b-b898-7fe7c98d8e63] 2021-04-21 22:17:22 | [Mutex] received everything. 2021-04-21 22:17:22 | [Mutex] isItemNotified: configured:node:node-538cc00b-d31c-4274-9cf2-4a750926ab89:node-284bdafc-396e-4a2b-b898-7fe7c98d8e63 :: true 2021-04-21 22:17:23 | [Mutex] waiting for: [received:nodes:2d06f40c-8057-4673-a6fd-8b6c1a883c5c:localhost] 2021-04-21 22:17:23 | [Mutex] received everything. 2021-04-21 22:17:23 | [Mutex] isItemNotified: received:node:2d06f40c-8057-4673-a6fd-8b6c1a883c5c:localhost:node-538cc00b-d31c-4274-9cf2-4a750926ab89:Node 538cc00b-d31c-4274-9cf2-4a750926ab89 :: true 2021-04-21 22:17:23 | [Mutex] waiting for: [received:nodes:3b9e88a5-9330-4f1f-9b11-a2cbaed5ec01:localhost] 2021-04-21 22:17:23 | [Mutex] waiting for: [received:nodes:3b9e88a5-9330-4f1f-9b11-a2cbaed5ec01:localhost] 2021-04-21 22:17:23 | [Mutex] received everything. 2021-04-21 22:17:23 | [Mutex] isItemNotified: received:node:3b9e88a5-9330-4f1f-9b11-a2cbaed5ec01:localhost:node-538cc00b-d31c-4274-9cf2-4a750926ab89:Node 538cc00b-d31c-4274-9cf2-4a750926ab89 :: false |
createNodes | 1.585s |
2021-04-21 22:17:19 |
2021-04-21 22:17:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-21 22:17:19 | ------------------------------------ 2021-04-21 22:17:20 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-538cc00b-d31c-4274-9cf2-4a750926ab89", "pubsub#title": "Node 538cc00b-d31c-4274-9cf2-4a750926ab89" } 2021-04-21 22:17:20 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-04-21 22:17:21 | [Mutex] waiting for: [received:nodes:e35bae84-66b6-4043-9877-dfca8393608c:localhost] 2021-04-21 22:17:21 | [Mutex] waiting for: [received:nodes:e35bae84-66b6-4043-9877-dfca8393608c:localhost] 2021-04-21 22:17:21 | [Mutex] received everything. 2021-04-21 22:17:21 | [Mutex] isItemNotified: received:node:e35bae84-66b6-4043-9877-dfca8393608c:localhost:node-538cc00b-d31c-4274-9cf2-4a750926ab89:Node 538cc00b-d31c-4274-9cf2-4a750926ab89 :: true |
createSubnodes | 1.027s |
2021-04-21 22:17:21 |
2021-04-21 22:17:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-21 22:17:21 | ------------------------------------ 2021-04-21 22:17:21 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-284bdafc-396e-4a2b-b898-7fe7c98d8e63", "pubsub#title": "Node 284bdafc-396e-4a2b-b898-7fe7c98d8e63" } 2021-04-21 22:17:21 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-04-21 22:17:22 | [Mutex] waiting for: [received:nodes:b2968640-43b5-40f7-a376-32dcd07c238b:localhost] 2021-04-21 22:17:22 | [Mutex] received everything. 2021-04-21 22:17:22 | [Mutex] isItemNotified: received:node:b2968640-43b5-40f7-a376-32dcd07c238b:localhost:node-284bdafc-396e-4a2b-b898-7fe7c98d8e63:Node 284bdafc-396e-4a2b-b898-7fe7c98d8e63 :: true |
deleteNodes | 1.025s |
2021-04-21 22:17:26 |
2021-04-21 22:17:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-21 22:17:26 | ------------------------------------ 2021-04-21 22:17:26 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-284bdafc-396e-4a2b-b898-7fe7c98d8e63" } 2021-04-21 22:17:26 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-04-21 22:17:27 | [Mutex] waiting for: [received:nodes:f44f5d4d-d334-4f05-b564-3d84140477e5:localhost] 2021-04-21 22:17:27 | [Mutex] received everything. 2021-04-21 22:17:27 | [Mutex] isItemNotified: received:node:f44f5d4d-d334-4f05-b564-3d84140477e5:localhost:node-284bdafc-396e-4a2b-b898-7fe7c98d8e63:Node 284bdafc-396e-4a2b-b898-7fe7c98d8e63 :: false |
deleteSubnodes | 1.026s |
2021-04-21 22:17:25 |
2021-04-21 22:17:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-21 22:17:25 | ------------------------------------ 2021-04-21 22:17:25 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-538cc00b-d31c-4274-9cf2-4a750926ab89" } 2021-04-21 22:17:25 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-04-21 22:17:26 | [Mutex] waiting for: [received:nodes:7c18224c-93d4-4ef1-81a2-e38c5a897c71:localhost] 2021-04-21 22:17:26 | [Mutex] received everything. 2021-04-21 22:17:26 | [Mutex] isItemNotified: received:node:7c18224c-93d4-4ef1-81a2-e38c5a897c71:localhost:node-538cc00b-d31c-4274-9cf2-4a750926ab89:Node 538cc00b-d31c-4274-9cf2-4a750926ab89 :: false 2021-04-21 22:17:26 | [Mutex] waiting for: [received:nodes:7dc6804f-47f3-461e-be84-d3aa4bfc87e6:localhost] 2021-04-21 22:17:26 | [Mutex] received everything. 2021-04-21 22:17:26 | [Mutex] isItemNotified: received:node:7dc6804f-47f3-461e-be84-d3aa4bfc87e6:localhost:node-538cc00b-d31c-4274-9cf2-4a750926ab89:Node 538cc00b-d31c-4274-9cf2-4a750926ab89 :: false |
publishItemsToNodes | 0.069s |
2021-04-21 22:17:24 |
2021-04-21 22:17:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-21 22:17:24 | ------------------------------------ 2021-04-21 22:17:24 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-538cc00b-d31c-4274-9cf2-4a750926ab89", "entry": "<test>item-e15eccf1-7049-4ef7-9f8a-7f3aaa45d471</test>", "item-id": "item-e15eccf1-7049-4ef7-9f8a-7f3aaa45d471" } 2021-04-21 22:17:24 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-e15eccf1-7049-4ef7-9f8a-7f3aaa45d471" } 2021-04-21 22:17:24 | [Mutex] waiting for: [published:item:notifieditem-e15eccf1-7049-4ef7-9f8a-7f3aaa45d471:admin@test-domain.com] 2021-04-21 22:17:24 | [Mutex] received everything. 2021-04-21 22:17:24 | [Mutex] isItemNotified: published:item:notifieditem-e15eccf1-7049-4ef7-9f8a-7f3aaa45d471:admin@test-domain.com :: true |
retractItemsFromNodes | 0.067s |
2021-04-21 22:17:24 |
2021-04-21 22:17:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-21 22:17:24 | ------------------------------------ 2021-04-21 22:17:24 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-538cc00b-d31c-4274-9cf2-4a750926ab89", "item-id": "item-e15eccf1-7049-4ef7-9f8a-7f3aaa45d471" } 2021-04-21 22:17:24 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-e15eccf1-7049-4ef7-9f8a-7f3aaa45d471" } 2021-04-21 22:17:24 | [Mutex] received everything. 2021-04-21 22:17:24 | [Mutex] isItemNotified: retracted:item:notifieditem-e15eccf1-7049-4ef7-9f8a-7f3aaa45d471:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.027s |
2021-04-21 22:17:24 |
2021-04-21 22:17:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-21 22:17:24 | ------------------------------------ 2021-04-21 22:17:24 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-538cc00b-d31c-4274-9cf2-4a750926ab89", "item-id": "item-e15eccf1-7049-4ef7-9f8a-7f3aaa45d471" } 2021-04-21 22:17:24 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-538cc00b-d31c-4274-9cf2-4a750926ab89", "item-id": "item-e15eccf1-7049-4ef7-9f8a-7f3aaa45d471", "item": [ "<item id=\"item-e15eccf1-7049-4ef7-9f8a-7f3aaa45d471\"><test>item-e15eccf1-7049-4ef7-9f8a-7f3aaa45d471</test></item>" ] } 2021-04-21 22:17:24 | [Mutex] notify: [retrieved:item:item-e15eccf1-7049-4ef7-9f8a-7f3aaa45d471:payload-matches:true:localhost] 2021-04-21 22:17:24 | [Mutex] received everything. 2021-04-21 22:17:24 | [Mutex] isItemNotified: retrieved:item:item-e15eccf1-7049-4ef7-9f8a-7f3aaa45d471:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.076s |
2021-04-21 22:17:24 |
2021-04-21 22:17:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-21 22:17:24 | ------------------------------------ 2021-04-21 22:17:24 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-04-21 22:17:24 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-284bdafc-396e-4a2b-b898-7fe7c98d8e63", "test", "node-538cc00b-d31c-4274-9cf2-4a750926ab89" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2021-04-21 22:17:24 |
2021-04-21 22:17:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-21 22:17:24 | ------------------------------------ 2021-04-21 22:17:24 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-538cc00b-d31c-4274-9cf2-4a750926ab89)" } 2021-04-21 22:17:24 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.012s |
2021-04-21 22:17:23 |
2021-04-21 22:17:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-21 22:17:23 | ------------------------------------ 2021-04-21 22:17:23 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-538cc00b-d31c-4274-9cf2-4a750926ab89", "jids": [ "admin@test-domain.com" ] } 2021-04-21 22:17:23 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.083s |
2021-04-21 22:17:24 |
2021-04-21 22:17:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-21 22:17:24 | ------------------------------------ 2021-04-21 22:17:24 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-538cc00b-d31c-4274-9cf2-4a750926ab89", "jids": [ "admin@test-domain.com" ] } 2021-04-21 22:17:24 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |