Test duration : 8.628s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.112s |
2022-12-28 21:31:13 |
2022-12-28 21:31:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-28 21:31:13 | ------------------------------------ 2022-12-28 21:31:13 | [Mutex] waiting for: [configured:node:node-27e3dbb6-5bbe-413a-8d77-62d70a83e3ac:node-ef82ddb7-0fa5-4789-b6cc-a714a9fa8437] 2022-12-28 21:31:13 | [Mutex] received everything. 2022-12-28 21:31:13 | [Mutex] isItemNotified: configured:node:node-27e3dbb6-5bbe-413a-8d77-62d70a83e3ac:node-ef82ddb7-0fa5-4789-b6cc-a714a9fa8437 :: true 2022-12-28 21:31:14 | [Mutex] waiting for: [received:nodes:de798b4c-57e7-45d4-8e3d-cd5d4cd3db70:localhost] 2022-12-28 21:31:14 | [Mutex] received everything. 2022-12-28 21:31:14 | [Mutex] isItemNotified: received:node:de798b4c-57e7-45d4-8e3d-cd5d4cd3db70:localhost:node-27e3dbb6-5bbe-413a-8d77-62d70a83e3ac:Node 27e3dbb6-5bbe-413a-8d77-62d70a83e3ac :: true 2022-12-28 21:31:14 | [Mutex] waiting for: [received:nodes:0cfe5cf8-877e-4076-a3b9-0acaa65d49ba:localhost] 2022-12-28 21:31:14 | [Mutex] received everything. 2022-12-28 21:31:14 | [Mutex] isItemNotified: received:node:0cfe5cf8-877e-4076-a3b9-0acaa65d49ba:localhost:node-27e3dbb6-5bbe-413a-8d77-62d70a83e3ac:Node 27e3dbb6-5bbe-413a-8d77-62d70a83e3ac :: false |
createNodes | 1.565s |
2022-12-28 21:31:10 |
2022-12-28 21:31:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-28 21:31:10 | ------------------------------------ 2022-12-28 21:31: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-27e3dbb6-5bbe-413a-8d77-62d70a83e3ac", "pubsub#title": "Node 27e3dbb6-5bbe-413a-8d77-62d70a83e3ac" } 2022-12-28 21:31:11 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-12-28 21:31:12 | [Mutex] waiting for: [received:nodes:8375ba8b-5e94-4c35-8225-380e00a79b02:localhost] 2022-12-28 21:31:12 | [Mutex] waiting for: [received:nodes:8375ba8b-5e94-4c35-8225-380e00a79b02:localhost] 2022-12-28 21:31:12 | [Mutex] waiting for: [received:nodes:8375ba8b-5e94-4c35-8225-380e00a79b02:localhost] 2022-12-28 21:31:12 | [Mutex] waiting for: [received:nodes:8375ba8b-5e94-4c35-8225-380e00a79b02:localhost] 2022-12-28 21:31:12 | [Mutex] received everything. 2022-12-28 21:31:12 | [Mutex] isItemNotified: received:node:8375ba8b-5e94-4c35-8225-380e00a79b02:localhost:node-27e3dbb6-5bbe-413a-8d77-62d70a83e3ac:Node 27e3dbb6-5bbe-413a-8d77-62d70a83e3ac :: true |
createSubnodes | 1.022s |
2022-12-28 21:31:12 |
2022-12-28 21:31:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-28 21:31:12 | ------------------------------------ 2022-12-28 21:31: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-ef82ddb7-0fa5-4789-b6cc-a714a9fa8437", "pubsub#title": "Node ef82ddb7-0fa5-4789-b6cc-a714a9fa8437" } 2022-12-28 21:31:12 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-12-28 21:31:13 | [Mutex] waiting for: [received:nodes:a2f146a5-d0f7-4bfc-924f-2d7e7e7090c1:localhost] 2022-12-28 21:31:13 | [Mutex] waiting for: [received:nodes:a2f146a5-d0f7-4bfc-924f-2d7e7e7090c1:localhost] 2022-12-28 21:31:13 | [Mutex] waiting for: [received:nodes:a2f146a5-d0f7-4bfc-924f-2d7e7e7090c1:localhost] 2022-12-28 21:31:13 | [Mutex] waiting for: [received:nodes:a2f146a5-d0f7-4bfc-924f-2d7e7e7090c1:localhost] 2022-12-28 21:31:13 | [Mutex] waiting for: [received:nodes:a2f146a5-d0f7-4bfc-924f-2d7e7e7090c1:localhost] 2022-12-28 21:31:13 | [Mutex] received everything. 2022-12-28 21:31:13 | [Mutex] isItemNotified: received:node:a2f146a5-d0f7-4bfc-924f-2d7e7e7090c1:localhost:node-ef82ddb7-0fa5-4789-b6cc-a714a9fa8437:Node ef82ddb7-0fa5-4789-b6cc-a714a9fa8437 :: true |
deleteNodes | 1.020s |
2022-12-28 21:31:17 |
2022-12-28 21:31:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-28 21:31:17 | ------------------------------------ 2022-12-28 21:31:17 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-ef82ddb7-0fa5-4789-b6cc-a714a9fa8437" } 2022-12-28 21:31:17 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-12-28 21:31:18 | [Mutex] waiting for: [received:nodes:bc43b440-df43-4a35-902d-77480670551b:localhost] 2022-12-28 21:31:18 | [Mutex] waiting for: [received:nodes:bc43b440-df43-4a35-902d-77480670551b:localhost] 2022-12-28 21:31:18 | [Mutex] waiting for: [received:nodes:bc43b440-df43-4a35-902d-77480670551b:localhost] 2022-12-28 21:31:18 | [Mutex] received everything. 2022-12-28 21:31:18 | [Mutex] isItemNotified: received:node:bc43b440-df43-4a35-902d-77480670551b:localhost:node-ef82ddb7-0fa5-4789-b6cc-a714a9fa8437:Node ef82ddb7-0fa5-4789-b6cc-a714a9fa8437 :: false |
deleteSubnodes | 1.026s |
2022-12-28 21:31:16 |
2022-12-28 21:31:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-28 21:31:16 | ------------------------------------ 2022-12-28 21:31:16 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-27e3dbb6-5bbe-413a-8d77-62d70a83e3ac" } 2022-12-28 21:31:16 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-12-28 21:31:17 | [Mutex] waiting for: [received:nodes:41d9c5db-8b58-4f61-9f04-8eabfa1911e3:localhost] 2022-12-28 21:31:17 | [Mutex] waiting for: [received:nodes:41d9c5db-8b58-4f61-9f04-8eabfa1911e3:localhost] 2022-12-28 21:31:17 | [Mutex] waiting for: [received:nodes:41d9c5db-8b58-4f61-9f04-8eabfa1911e3:localhost] 2022-12-28 21:31:17 | [Mutex] waiting for: [received:nodes:41d9c5db-8b58-4f61-9f04-8eabfa1911e3:localhost] 2022-12-28 21:31:17 | [Mutex] received everything. 2022-12-28 21:31:17 | [Mutex] isItemNotified: received:node:41d9c5db-8b58-4f61-9f04-8eabfa1911e3:localhost:node-27e3dbb6-5bbe-413a-8d77-62d70a83e3ac:Node 27e3dbb6-5bbe-413a-8d77-62d70a83e3ac :: false 2022-12-28 21:31:17 | [Mutex] waiting for: [received:nodes:2c7a13c6-be80-4a2d-9798-374623cb1a8d:localhost] 2022-12-28 21:31:17 | [Mutex] received everything. 2022-12-28 21:31:17 | [Mutex] isItemNotified: received:node:2c7a13c6-be80-4a2d-9798-374623cb1a8d:localhost:node-27e3dbb6-5bbe-413a-8d77-62d70a83e3ac:Node 27e3dbb6-5bbe-413a-8d77-62d70a83e3ac :: false |
publishItemsToNodes | 0.044s |
2022-12-28 21:31:15 |
2022-12-28 21:31:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-28 21:31:15 | ------------------------------------ 2022-12-28 21:31:15 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-27e3dbb6-5bbe-413a-8d77-62d70a83e3ac", "entry": "<test>item-08362d0b-d1c0-47a1-aaed-4dcc93bdd3ab</test>", "item-id": "item-08362d0b-d1c0-47a1-aaed-4dcc93bdd3ab" } 2022-12-28 21:31:15 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-08362d0b-d1c0-47a1-aaed-4dcc93bdd3ab" } 2022-12-28 21:31:15 | [Mutex] waiting for: [published:item:notifieditem-08362d0b-d1c0-47a1-aaed-4dcc93bdd3ab:admin@test-domain.com] 2022-12-28 21:31:15 | [Mutex] received everything. 2022-12-28 21:31:15 | [Mutex] isItemNotified: published:item:notifieditem-08362d0b-d1c0-47a1-aaed-4dcc93bdd3ab:admin@test-domain.com :: true |
retractItemsFromNodes | 0.076s |
2022-12-28 21:31:15 |
2022-12-28 21:31:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-28 21:31:15 | ------------------------------------ 2022-12-28 21:31:15 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-27e3dbb6-5bbe-413a-8d77-62d70a83e3ac", "item-id": "item-08362d0b-d1c0-47a1-aaed-4dcc93bdd3ab" } 2022-12-28 21:31:15 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-08362d0b-d1c0-47a1-aaed-4dcc93bdd3ab" } 2022-12-28 21:31:15 | [Mutex] received everything. 2022-12-28 21:31:15 | [Mutex] isItemNotified: retracted:item:notifieditem-08362d0b-d1c0-47a1-aaed-4dcc93bdd3ab:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.056s |
2022-12-28 21:31:15 |
2022-12-28 21:31:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-28 21:31:15 | ------------------------------------ 2022-12-28 21:31:15 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-27e3dbb6-5bbe-413a-8d77-62d70a83e3ac", "item-id": "item-08362d0b-d1c0-47a1-aaed-4dcc93bdd3ab" } 2022-12-28 21:31:15 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-27e3dbb6-5bbe-413a-8d77-62d70a83e3ac", "item-id": "item-08362d0b-d1c0-47a1-aaed-4dcc93bdd3ab", "item": [ "<item id=\"item-08362d0b-d1c0-47a1-aaed-4dcc93bdd3ab\"><test>item-08362d0b-d1c0-47a1-aaed-4dcc93bdd3ab</test></item>" ] } 2022-12-28 21:31:15 | [Mutex] notify: [retrieved:item:item-08362d0b-d1c0-47a1-aaed-4dcc93bdd3ab:payload-matches:true:localhost] 2022-12-28 21:31:15 | [Mutex] received everything. 2022-12-28 21:31:15 | [Mutex] isItemNotified: retrieved:item:item-08362d0b-d1c0-47a1-aaed-4dcc93bdd3ab:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.045s |
2022-12-28 21:31:15 |
2022-12-28 21:31:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-28 21:31:15 | ------------------------------------ 2022-12-28 21:31:15 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-12-28 21:31:15 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-27e3dbb6-5bbe-413a-8d77-62d70a83e3ac", "test", "node-ef82ddb7-0fa5-4789-b6cc-a714a9fa8437" ] } |
retrieveUserSubscriptionsWithRegex | 0.048s |
2022-12-28 21:31:15 |
2022-12-28 21:31:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-28 21:31:15 | ------------------------------------ 2022-12-28 21:31:15 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-27e3dbb6-5bbe-413a-8d77-62d70a83e3ac)" } 2022-12-28 21:31:15 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.009s |
2022-12-28 21:31:14 |
2022-12-28 21:31:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-28 21:31:14 | ------------------------------------ 2022-12-28 21:31:14 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-27e3dbb6-5bbe-413a-8d77-62d70a83e3ac", "jids": [ "admin@test-domain.com" ] } 2022-12-28 21:31:14 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.115s |
2022-12-28 21:31:15 |
2022-12-28 21:31:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-28 21:31:15 | ------------------------------------ 2022-12-28 21:31:15 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-27e3dbb6-5bbe-413a-8d77-62d70a83e3ac", "jids": [ "admin@test-domain.com" ] } 2022-12-28 21:31:15 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |