Test duration : 8.681s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.093s |
2022-07-15 22:32:10 |
2022-07-15 22:32:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-15 22:32:10 | ------------------------------------ 2022-07-15 22:32:10 | [Mutex] waiting for: [configured:node:node-96733ed2-cbba-4e7a-81dc-12f7adceada2:node-d3d1e225-fc10-458c-809a-94b129f861fd] 2022-07-15 22:32:10 | [Mutex] received everything. 2022-07-15 22:32:10 | [Mutex] isItemNotified: configured:node:node-96733ed2-cbba-4e7a-81dc-12f7adceada2:node-d3d1e225-fc10-458c-809a-94b129f861fd :: true 2022-07-15 22:32:11 | [Mutex] waiting for: [received:nodes:1e30dd05-82d1-409e-a679-2988ca48afee:localhost] 2022-07-15 22:32:11 | [Mutex] received everything. 2022-07-15 22:32:11 | [Mutex] isItemNotified: received:node:1e30dd05-82d1-409e-a679-2988ca48afee:localhost:node-96733ed2-cbba-4e7a-81dc-12f7adceada2:Node 96733ed2-cbba-4e7a-81dc-12f7adceada2 :: true 2022-07-15 22:32:11 | [Mutex] waiting for: [received:nodes:1a8c01e7-fad3-456a-bb58-5b3b50b2775c:localhost] 2022-07-15 22:32:11 | [Mutex] received everything. 2022-07-15 22:32:11 | [Mutex] isItemNotified: received:node:1a8c01e7-fad3-456a-bb58-5b3b50b2775c:localhost:node-96733ed2-cbba-4e7a-81dc-12f7adceada2:Node 96733ed2-cbba-4e7a-81dc-12f7adceada2 :: false |
createNodes | 1.672s |
2022-07-15 22:32:08 |
2022-07-15 22:32:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-15 22:32:08 | ------------------------------------ 2022-07-15 22:32:08 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-96733ed2-cbba-4e7a-81dc-12f7adceada2", "pubsub#title": "Node 96733ed2-cbba-4e7a-81dc-12f7adceada2" } 2022-07-15 22:32:08 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-15 22:32:09 | [Mutex] waiting for: [received:nodes:aade1dd6-a0fa-4b23-8f5a-8d31e2ff7e09:localhost] 2022-07-15 22:32:09 | [Mutex] waiting for: [received:nodes:aade1dd6-a0fa-4b23-8f5a-8d31e2ff7e09:localhost] 2022-07-15 22:32:09 | [Mutex] waiting for: [received:nodes:aade1dd6-a0fa-4b23-8f5a-8d31e2ff7e09:localhost] 2022-07-15 22:32:09 | [Mutex] received everything. 2022-07-15 22:32:09 | [Mutex] isItemNotified: received:node:aade1dd6-a0fa-4b23-8f5a-8d31e2ff7e09:localhost:node-96733ed2-cbba-4e7a-81dc-12f7adceada2:Node 96733ed2-cbba-4e7a-81dc-12f7adceada2 :: true |
createSubnodes | 1.024s |
2022-07-15 22:32:09 |
2022-07-15 22:32:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-15 22:32:09 | ------------------------------------ 2022-07-15 22:32:09 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-d3d1e225-fc10-458c-809a-94b129f861fd", "pubsub#title": "Node d3d1e225-fc10-458c-809a-94b129f861fd" } 2022-07-15 22:32:09 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-15 22:32:10 | [Mutex] waiting for: [received:nodes:5565d0b3-7927-40a8-b462-f937a10fdafa:localhost] 2022-07-15 22:32:10 | [Mutex] received everything. 2022-07-15 22:32:10 | [Mutex] isItemNotified: received:node:5565d0b3-7927-40a8-b462-f937a10fdafa:localhost:node-d3d1e225-fc10-458c-809a-94b129f861fd:Node d3d1e225-fc10-458c-809a-94b129f861fd :: true |
deleteNodes | 1.024s |
2022-07-15 22:32:15 |
2022-07-15 22:32:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-15 22:32:15 | ------------------------------------ 2022-07-15 22:32:15 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-d3d1e225-fc10-458c-809a-94b129f861fd" } 2022-07-15 22:32:15 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-15 22:32:16 | [Mutex] waiting for: [received:nodes:7e3f4fa7-9e46-47c0-aa74-847c0561add5:localhost] 2022-07-15 22:32:16 | [Mutex] received everything. 2022-07-15 22:32:16 | [Mutex] isItemNotified: received:node:7e3f4fa7-9e46-47c0-aa74-847c0561add5:localhost:node-d3d1e225-fc10-458c-809a-94b129f861fd:Node d3d1e225-fc10-458c-809a-94b129f861fd :: false |
deleteSubnodes | 1.026s |
2022-07-15 22:32:14 |
2022-07-15 22:32:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-15 22:32:14 | ------------------------------------ 2022-07-15 22:32:14 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-96733ed2-cbba-4e7a-81dc-12f7adceada2" } 2022-07-15 22:32:14 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-15 22:32:15 | [Mutex] waiting for: [received:nodes:6c713315-1126-4537-85ea-6c2ac1d2170f:localhost] 2022-07-15 22:32:15 | [Mutex] waiting for: [received:nodes:6c713315-1126-4537-85ea-6c2ac1d2170f:localhost] 2022-07-15 22:32:15 | [Mutex] received everything. 2022-07-15 22:32:15 | [Mutex] isItemNotified: received:node:6c713315-1126-4537-85ea-6c2ac1d2170f:localhost:node-96733ed2-cbba-4e7a-81dc-12f7adceada2:Node 96733ed2-cbba-4e7a-81dc-12f7adceada2 :: false 2022-07-15 22:32:15 | [Mutex] waiting for: [received:nodes:6b2984ad-ad9c-4620-a1a7-a36bb9b27844:localhost] 2022-07-15 22:32:15 | [Mutex] received everything. 2022-07-15 22:32:15 | [Mutex] isItemNotified: received:node:6b2984ad-ad9c-4620-a1a7-a36bb9b27844:localhost:node-96733ed2-cbba-4e7a-81dc-12f7adceada2:Node 96733ed2-cbba-4e7a-81dc-12f7adceada2 :: false |
publishItemsToNodes | 0.061s |
2022-07-15 22:32:13 |
2022-07-15 22:32:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-15 22:32:13 | ------------------------------------ 2022-07-15 22:32:13 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-96733ed2-cbba-4e7a-81dc-12f7adceada2", "entry": "<test>item-0920f333-c4e1-46bd-b3d4-309434767e11</test>", "item-id": "item-0920f333-c4e1-46bd-b3d4-309434767e11" } 2022-07-15 22:32:13 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-0920f333-c4e1-46bd-b3d4-309434767e11" } 2022-07-15 22:32:13 | [Mutex] waiting for: [published:item:notifieditem-0920f333-c4e1-46bd-b3d4-309434767e11:admin@test-domain.com] 2022-07-15 22:32:13 | [Mutex] received everything. 2022-07-15 22:32:13 | [Mutex] isItemNotified: published:item:notifieditem-0920f333-c4e1-46bd-b3d4-309434767e11:admin@test-domain.com :: true |
retractItemsFromNodes | 0.052s |
2022-07-15 22:32:13 |
2022-07-15 22:32:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-15 22:32:13 | ------------------------------------ 2022-07-15 22:32:13 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-96733ed2-cbba-4e7a-81dc-12f7adceada2", "item-id": "item-0920f333-c4e1-46bd-b3d4-309434767e11" } 2022-07-15 22:32:13 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-0920f333-c4e1-46bd-b3d4-309434767e11" } 2022-07-15 22:32:13 | [Mutex] received everything. 2022-07-15 22:32:13 | [Mutex] isItemNotified: retracted:item:notifieditem-0920f333-c4e1-46bd-b3d4-309434767e11:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.053s |
2022-07-15 22:32:13 |
2022-07-15 22:32:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-15 22:32:13 | ------------------------------------ 2022-07-15 22:32:13 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-96733ed2-cbba-4e7a-81dc-12f7adceada2", "item-id": "item-0920f333-c4e1-46bd-b3d4-309434767e11" } 2022-07-15 22:32:13 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-96733ed2-cbba-4e7a-81dc-12f7adceada2", "item-id": "item-0920f333-c4e1-46bd-b3d4-309434767e11", "item": [ "<item id=\"item-0920f333-c4e1-46bd-b3d4-309434767e11\"><test>item-0920f333-c4e1-46bd-b3d4-309434767e11</test></item>" ] } 2022-07-15 22:32:13 | [Mutex] notify: [retrieved:item:item-0920f333-c4e1-46bd-b3d4-309434767e11:payload-matches:true:localhost] 2022-07-15 22:32:13 | [Mutex] received everything. 2022-07-15 22:32:13 | [Mutex] isItemNotified: retrieved:item:item-0920f333-c4e1-46bd-b3d4-309434767e11:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.047s |
2022-07-15 22:32:13 |
2022-07-15 22:32:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-15 22:32:13 | ------------------------------------ 2022-07-15 22:32:13 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-07-15 22:32:13 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-d3d1e225-fc10-458c-809a-94b129f861fd", "node-96733ed2-cbba-4e7a-81dc-12f7adceada2" ] } |
retrieveUserSubscriptionsWithRegex | 0.048s |
2022-07-15 22:32:13 |
2022-07-15 22:32:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-15 22:32:13 | ------------------------------------ 2022-07-15 22:32:13 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-96733ed2-cbba-4e7a-81dc-12f7adceada2)" } 2022-07-15 22:32:13 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.013s |
2022-07-15 22:32:11 |
2022-07-15 22:32:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-15 22:32:11 | ------------------------------------ 2022-07-15 22:32:11 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-96733ed2-cbba-4e7a-81dc-12f7adceada2", "jids": [ "admin@test-domain.com" ] } 2022-07-15 22:32:12 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.059s |
2022-07-15 22:32:13 |
2022-07-15 22:32:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-15 22:32:13 | ------------------------------------ 2022-07-15 22:32:13 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-96733ed2-cbba-4e7a-81dc-12f7adceada2", "jids": [ "admin@test-domain.com" ] } 2022-07-15 22:32:13 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |