Test duration : 8.571s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.100s |
2023-06-22 22:30:44 |
2023-06-22 22:30:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-06-22 22:30:44 | ------------------------------------ 2023-06-22 22:30:44 | [Mutex] waiting for: [configured:node:node-e79ca8d9-6f05-4756-9e74-8ab1a0ec5c6f:node-27af28c6-90bc-4b0a-858c-137a2bc1c46c] 2023-06-22 22:30:45 | [Mutex] received everything. 2023-06-22 22:30:45 | [Mutex] isItemNotified: configured:node:node-e79ca8d9-6f05-4756-9e74-8ab1a0ec5c6f:node-27af28c6-90bc-4b0a-858c-137a2bc1c46c :: true 2023-06-22 22:30:46 | [Mutex] waiting for: [received:nodes:a5d5f6ba-8f2c-4594-9bd6-152a56a31981:localhost] 2023-06-22 22:30:46 | [Mutex] received everything. 2023-06-22 22:30:46 | [Mutex] isItemNotified: received:node:a5d5f6ba-8f2c-4594-9bd6-152a56a31981:localhost:node-e79ca8d9-6f05-4756-9e74-8ab1a0ec5c6f:Node e79ca8d9-6f05-4756-9e74-8ab1a0ec5c6f :: true 2023-06-22 22:30:46 | [Mutex] waiting for: [received:nodes:b6766e36-1f56-439b-9d04-f59120d15fec:localhost] 2023-06-22 22:30:46 | [Mutex] waiting for: [received:nodes:b6766e36-1f56-439b-9d04-f59120d15fec:localhost] 2023-06-22 22:30:46 | [Mutex] waiting for: [received:nodes:b6766e36-1f56-439b-9d04-f59120d15fec:localhost] 2023-06-22 22:30:46 | [Mutex] waiting for: [received:nodes:b6766e36-1f56-439b-9d04-f59120d15fec:localhost] 2023-06-22 22:30:46 | [Mutex] received everything. 2023-06-22 22:30:46 | [Mutex] isItemNotified: received:node:b6766e36-1f56-439b-9d04-f59120d15fec:localhost:node-e79ca8d9-6f05-4756-9e74-8ab1a0ec5c6f:Node e79ca8d9-6f05-4756-9e74-8ab1a0ec5c6f :: false |
createNodes | 1.568s |
2023-06-22 22:30:42 |
2023-06-22 22:30:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-06-22 22:30:42 | ------------------------------------ 2023-06-22 22:30:42 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-e79ca8d9-6f05-4756-9e74-8ab1a0ec5c6f", "pubsub#title": "Node e79ca8d9-6f05-4756-9e74-8ab1a0ec5c6f" } 2023-06-22 22:30:42 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2023-06-22 22:30:43 | [Mutex] waiting for: [received:nodes:8c11278c-bc79-46bb-9e4c-a6a3adf9e13c:localhost] 2023-06-22 22:30:43 | [Mutex] waiting for: [received:nodes:8c11278c-bc79-46bb-9e4c-a6a3adf9e13c:localhost] 2023-06-22 22:30:43 | [Mutex] waiting for: [received:nodes:8c11278c-bc79-46bb-9e4c-a6a3adf9e13c:localhost] 2023-06-22 22:30:43 | [Mutex] waiting for: [received:nodes:8c11278c-bc79-46bb-9e4c-a6a3adf9e13c:localhost] 2023-06-22 22:30:43 | [Mutex] received everything. 2023-06-22 22:30:43 | [Mutex] isItemNotified: received:node:8c11278c-bc79-46bb-9e4c-a6a3adf9e13c:localhost:node-e79ca8d9-6f05-4756-9e74-8ab1a0ec5c6f:Node e79ca8d9-6f05-4756-9e74-8ab1a0ec5c6f :: true |
createSubnodes | 1.023s |
2023-06-22 22:30:43 |
2023-06-22 22:30:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-06-22 22:30:43 | ------------------------------------ 2023-06-22 22:30:43 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-27af28c6-90bc-4b0a-858c-137a2bc1c46c", "pubsub#title": "Node 27af28c6-90bc-4b0a-858c-137a2bc1c46c" } 2023-06-22 22:30:43 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2023-06-22 22:30:44 | [Mutex] waiting for: [received:nodes:2569235d-c0e4-4fa1-a422-d85ee9e6f3df:localhost] 2023-06-22 22:30:44 | [Mutex] waiting for: [received:nodes:2569235d-c0e4-4fa1-a422-d85ee9e6f3df:localhost] 2023-06-22 22:30:44 | [Mutex] waiting for: [received:nodes:2569235d-c0e4-4fa1-a422-d85ee9e6f3df:localhost] 2023-06-22 22:30:44 | [Mutex] waiting for: [received:nodes:2569235d-c0e4-4fa1-a422-d85ee9e6f3df:localhost] 2023-06-22 22:30:44 | [Mutex] received everything. 2023-06-22 22:30:44 | [Mutex] isItemNotified: received:node:2569235d-c0e4-4fa1-a422-d85ee9e6f3df:localhost:node-27af28c6-90bc-4b0a-858c-137a2bc1c46c:Node 27af28c6-90bc-4b0a-858c-137a2bc1c46c :: true |
deleteNodes | 1.019s |
2023-06-22 22:30:49 |
2023-06-22 22:30:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-06-22 22:30:49 | ------------------------------------ 2023-06-22 22:30:49 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-27af28c6-90bc-4b0a-858c-137a2bc1c46c" } 2023-06-22 22:30:49 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2023-06-22 22:30:50 | [Mutex] waiting for: [received:nodes:9fdda94a-9846-46d2-a3bf-918f9777b444:localhost] 2023-06-22 22:30:50 | [Mutex] waiting for: [received:nodes:9fdda94a-9846-46d2-a3bf-918f9777b444:localhost] 2023-06-22 22:30:50 | [Mutex] waiting for: [received:nodes:9fdda94a-9846-46d2-a3bf-918f9777b444:localhost] 2023-06-22 22:30:50 | [Mutex] received everything. 2023-06-22 22:30:50 | [Mutex] isItemNotified: received:node:9fdda94a-9846-46d2-a3bf-918f9777b444:localhost:node-27af28c6-90bc-4b0a-858c-137a2bc1c46c:Node 27af28c6-90bc-4b0a-858c-137a2bc1c46c :: false |
deleteSubnodes | 1.024s |
2023-06-22 22:30:48 |
2023-06-22 22:30:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-06-22 22:30:48 | ------------------------------------ 2023-06-22 22:30:48 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-e79ca8d9-6f05-4756-9e74-8ab1a0ec5c6f" } 2023-06-22 22:30:48 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2023-06-22 22:30:49 | [Mutex] waiting for: [received:nodes:1e791dcf-5587-4f8a-9d33-baa8aed1836e:localhost] 2023-06-22 22:30:49 | [Mutex] waiting for: [received:nodes:1e791dcf-5587-4f8a-9d33-baa8aed1836e:localhost] 2023-06-22 22:30:49 | [Mutex] waiting for: [received:nodes:1e791dcf-5587-4f8a-9d33-baa8aed1836e:localhost] 2023-06-22 22:30:49 | [Mutex] received everything. 2023-06-22 22:30:49 | [Mutex] isItemNotified: received:node:1e791dcf-5587-4f8a-9d33-baa8aed1836e:localhost:node-e79ca8d9-6f05-4756-9e74-8ab1a0ec5c6f:Node e79ca8d9-6f05-4756-9e74-8ab1a0ec5c6f :: false 2023-06-22 22:30:49 | [Mutex] waiting for: [received:nodes:8f8ee541-b678-4eeb-992d-0b03422f6329:localhost] 2023-06-22 22:30:49 | [Mutex] received everything. 2023-06-22 22:30:49 | [Mutex] isItemNotified: received:node:8f8ee541-b678-4eeb-992d-0b03422f6329:localhost:node-e79ca8d9-6f05-4756-9e74-8ab1a0ec5c6f:Node e79ca8d9-6f05-4756-9e74-8ab1a0ec5c6f :: false |
publishItemsToNodes | 0.035s |
2023-06-22 22:30:47 |
2023-06-22 22:30:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-06-22 22:30:47 | ------------------------------------ 2023-06-22 22:30:47 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-e79ca8d9-6f05-4756-9e74-8ab1a0ec5c6f", "entry": "<test>item-7e4141b7-be15-4a51-becd-845807c1dfa9</test>", "item-id": "item-7e4141b7-be15-4a51-becd-845807c1dfa9" } 2023-06-22 22:30:47 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-7e4141b7-be15-4a51-becd-845807c1dfa9" } 2023-06-22 22:30:47 | [Mutex] waiting for: [published:item:notifieditem-7e4141b7-be15-4a51-becd-845807c1dfa9:admin@test-domain.com] 2023-06-22 22:30:47 | [Mutex] received everything. 2023-06-22 22:30:47 | [Mutex] isItemNotified: published:item:notifieditem-7e4141b7-be15-4a51-becd-845807c1dfa9:admin@test-domain.com :: true |
retractItemsFromNodes | 0.055s |
2023-06-22 22:30:47 |
2023-06-22 22:30:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-06-22 22:30:47 | ------------------------------------ 2023-06-22 22:30:47 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-e79ca8d9-6f05-4756-9e74-8ab1a0ec5c6f", "item-id": "item-7e4141b7-be15-4a51-becd-845807c1dfa9" } 2023-06-22 22:30:47 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-7e4141b7-be15-4a51-becd-845807c1dfa9" } 2023-06-22 22:30:47 | [Mutex] received everything. 2023-06-22 22:30:47 | [Mutex] isItemNotified: retracted:item:notifieditem-7e4141b7-be15-4a51-becd-845807c1dfa9:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.069s |
2023-06-22 22:30:47 |
2023-06-22 22:30:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-06-22 22:30:47 | ------------------------------------ 2023-06-22 22:30:47 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-e79ca8d9-6f05-4756-9e74-8ab1a0ec5c6f", "item-id": "item-7e4141b7-be15-4a51-becd-845807c1dfa9" } 2023-06-22 22:30:47 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-e79ca8d9-6f05-4756-9e74-8ab1a0ec5c6f", "item-id": "item-7e4141b7-be15-4a51-becd-845807c1dfa9", "item": [ "<item id=\"item-7e4141b7-be15-4a51-becd-845807c1dfa9\"><test>item-7e4141b7-be15-4a51-becd-845807c1dfa9</test></item>" ] } 2023-06-22 22:30:47 | [Mutex] notify: [retrieved:item:item-7e4141b7-be15-4a51-becd-845807c1dfa9:payload-matches:true:localhost] 2023-06-22 22:30:47 | [Mutex] received everything. 2023-06-22 22:30:47 | [Mutex] isItemNotified: retrieved:item:item-7e4141b7-be15-4a51-becd-845807c1dfa9:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.047s |
2023-06-22 22:30:47 |
2023-06-22 22:30:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-06-22 22:30:47 | ------------------------------------ 2023-06-22 22:30:47 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2023-06-22 22:30:47 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-27af28c6-90bc-4b0a-858c-137a2bc1c46c", "node-e79ca8d9-6f05-4756-9e74-8ab1a0ec5c6f" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2023-06-22 22:30:47 |
2023-06-22 22:30:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-06-22 22:30:47 | ------------------------------------ 2023-06-22 22:30:47 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-e79ca8d9-6f05-4756-9e74-8ab1a0ec5c6f)" } 2023-06-22 22:30:47 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.013s |
2023-06-22 22:30:46 |
2023-06-22 22:30:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-06-22 22:30:46 | ------------------------------------ 2023-06-22 22:30:46 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-e79ca8d9-6f05-4756-9e74-8ab1a0ec5c6f", "jids": [ "admin@test-domain.com" ] } 2023-06-22 22:30:46 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.071s |
2023-06-22 22:30:47 |
2023-06-22 22:30:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-06-22 22:30:47 | ------------------------------------ 2023-06-22 22:30:47 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-e79ca8d9-6f05-4756-9e74-8ab1a0ec5c6f", "jids": [ "admin@test-domain.com" ] } 2023-06-22 22:30:47 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |