Test duration : 8.726s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.101s |
2023-06-04 22:44:59 |
2023-06-04 22:44:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-06-04 22:44:59 | ------------------------------------ 2023-06-04 22:44:59 | [Mutex] waiting for: [configured:node:node-89c7c291-bc4d-477c-b2ff-ecdc824beaf5:node-fbd71aad-7d77-4145-b971-fb785cea7cf7] 2023-06-04 22:44:59 | [Mutex] received everything. 2023-06-04 22:44:59 | [Mutex] isItemNotified: configured:node:node-89c7c291-bc4d-477c-b2ff-ecdc824beaf5:node-fbd71aad-7d77-4145-b971-fb785cea7cf7 :: true 2023-06-04 22:45:00 | [Mutex] waiting for: [received:nodes:e97bae25-b653-42e6-87e6-82aec6c67379:localhost] 2023-06-04 22:45:00 | [Mutex] received everything. 2023-06-04 22:45:00 | [Mutex] isItemNotified: received:node:e97bae25-b653-42e6-87e6-82aec6c67379:localhost:node-89c7c291-bc4d-477c-b2ff-ecdc824beaf5:Node 89c7c291-bc4d-477c-b2ff-ecdc824beaf5 :: true 2023-06-04 22:45:00 | [Mutex] waiting for: [received:nodes:917eae24-ceca-4b11-9a46-7b3d3c291927:localhost] 2023-06-04 22:45:00 | [Mutex] waiting for: [received:nodes:917eae24-ceca-4b11-9a46-7b3d3c291927:localhost] 2023-06-04 22:45:00 | [Mutex] received everything. 2023-06-04 22:45:00 | [Mutex] isItemNotified: received:node:917eae24-ceca-4b11-9a46-7b3d3c291927:localhost:node-89c7c291-bc4d-477c-b2ff-ecdc824beaf5:Node 89c7c291-bc4d-477c-b2ff-ecdc824beaf5 :: false |
createNodes | 1.698s |
2023-06-04 22:44:57 |
2023-06-04 22:44:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-06-04 22:44:57 | ------------------------------------ 2023-06-04 22:44:57 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-89c7c291-bc4d-477c-b2ff-ecdc824beaf5", "pubsub#title": "Node 89c7c291-bc4d-477c-b2ff-ecdc824beaf5" } 2023-06-04 22:44:57 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2023-06-04 22:44:58 | [Mutex] waiting for: [received:nodes:f7495dfa-3fb3-4f53-80ef-60ea8e5c7798:localhost] 2023-06-04 22:44:58 | [Mutex] waiting for: [received:nodes:f7495dfa-3fb3-4f53-80ef-60ea8e5c7798:localhost] 2023-06-04 22:44:58 | [Mutex] waiting for: [received:nodes:f7495dfa-3fb3-4f53-80ef-60ea8e5c7798:localhost] 2023-06-04 22:44:58 | [Mutex] received everything. 2023-06-04 22:44:58 | [Mutex] isItemNotified: received:node:f7495dfa-3fb3-4f53-80ef-60ea8e5c7798:localhost:node-89c7c291-bc4d-477c-b2ff-ecdc824beaf5:Node 89c7c291-bc4d-477c-b2ff-ecdc824beaf5 :: true |
createSubnodes | 1.031s |
2023-06-04 22:44:58 |
2023-06-04 22:44:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-06-04 22:44:58 | ------------------------------------ 2023-06-04 22:44:58 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-fbd71aad-7d77-4145-b971-fb785cea7cf7", "pubsub#title": "Node fbd71aad-7d77-4145-b971-fb785cea7cf7" } 2023-06-04 22:44:58 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2023-06-04 22:44:59 | [Mutex] waiting for: [received:nodes:bb291d3b-69a1-4179-8f18-d8e4ecfd3294:localhost] 2023-06-04 22:44:59 | [Mutex] waiting for: [received:nodes:bb291d3b-69a1-4179-8f18-d8e4ecfd3294:localhost] 2023-06-04 22:44:59 | [Mutex] waiting for: [received:nodes:bb291d3b-69a1-4179-8f18-d8e4ecfd3294:localhost] 2023-06-04 22:44:59 | [Mutex] waiting for: [received:nodes:bb291d3b-69a1-4179-8f18-d8e4ecfd3294:localhost] 2023-06-04 22:44:59 | [Mutex] received everything. 2023-06-04 22:44:59 | [Mutex] isItemNotified: received:node:bb291d3b-69a1-4179-8f18-d8e4ecfd3294:localhost:node-fbd71aad-7d77-4145-b971-fb785cea7cf7:Node fbd71aad-7d77-4145-b971-fb785cea7cf7 :: true |
deleteNodes | 1.026s |
2023-06-04 22:45:04 |
2023-06-04 22:45:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-06-04 22:45:04 | ------------------------------------ 2023-06-04 22:45:04 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-fbd71aad-7d77-4145-b971-fb785cea7cf7" } 2023-06-04 22:45:04 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2023-06-04 22:45:05 | [Mutex] waiting for: [received:nodes:f3dbdd9c-c28d-44ad-b1bc-3c654c5bdfc2:localhost] 2023-06-04 22:45:05 | [Mutex] received everything. 2023-06-04 22:45:05 | [Mutex] isItemNotified: received:node:f3dbdd9c-c28d-44ad-b1bc-3c654c5bdfc2:localhost:node-fbd71aad-7d77-4145-b971-fb785cea7cf7:Node fbd71aad-7d77-4145-b971-fb785cea7cf7 :: false |
deleteSubnodes | 1.028s |
2023-06-04 22:45:03 |
2023-06-04 22:45:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-06-04 22:45:03 | ------------------------------------ 2023-06-04 22:45:03 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-89c7c291-bc4d-477c-b2ff-ecdc824beaf5" } 2023-06-04 22:45:03 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2023-06-04 22:45:04 | [Mutex] waiting for: [received:nodes:f802879e-6e84-4b38-a7ca-186dcd165c18:localhost] 2023-06-04 22:45:04 | [Mutex] waiting for: [received:nodes:f802879e-6e84-4b38-a7ca-186dcd165c18:localhost] 2023-06-04 22:45:04 | [Mutex] waiting for: [received:nodes:f802879e-6e84-4b38-a7ca-186dcd165c18:localhost] 2023-06-04 22:45:04 | [Mutex] waiting for: [received:nodes:f802879e-6e84-4b38-a7ca-186dcd165c18:localhost] 2023-06-04 22:45:04 | [Mutex] received everything. 2023-06-04 22:45:04 | [Mutex] isItemNotified: received:node:f802879e-6e84-4b38-a7ca-186dcd165c18:localhost:node-89c7c291-bc4d-477c-b2ff-ecdc824beaf5:Node 89c7c291-bc4d-477c-b2ff-ecdc824beaf5 :: false 2023-06-04 22:45:04 | [Mutex] waiting for: [received:nodes:5c2b3409-e41f-4972-8bd5-235a12148dce:localhost] 2023-06-04 22:45:04 | [Mutex] received everything. 2023-06-04 22:45:04 | [Mutex] isItemNotified: received:node:5c2b3409-e41f-4972-8bd5-235a12148dce:localhost:node-89c7c291-bc4d-477c-b2ff-ecdc824beaf5:Node 89c7c291-bc4d-477c-b2ff-ecdc824beaf5 :: false |
publishItemsToNodes | 0.052s |
2023-06-04 22:45:01 |
2023-06-04 22:45:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-06-04 22:45:01 | ------------------------------------ 2023-06-04 22:45:01 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-89c7c291-bc4d-477c-b2ff-ecdc824beaf5", "entry": "<test>item-a2ed2db4-586f-42b9-8267-4c11ada64efc</test>", "item-id": "item-a2ed2db4-586f-42b9-8267-4c11ada64efc" } 2023-06-04 22:45:01 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-a2ed2db4-586f-42b9-8267-4c11ada64efc" } 2023-06-04 22:45:01 | [Mutex] waiting for: [published:item:notifieditem-a2ed2db4-586f-42b9-8267-4c11ada64efc:admin@test-domain.com] 2023-06-04 22:45:02 | [Mutex] received everything. 2023-06-04 22:45:02 | [Mutex] isItemNotified: published:item:notifieditem-a2ed2db4-586f-42b9-8267-4c11ada64efc:admin@test-domain.com :: true |
retractItemsFromNodes | 0.067s |
2023-06-04 22:45:02 |
2023-06-04 22:45:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-06-04 22:45:02 | ------------------------------------ 2023-06-04 22:45:02 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-89c7c291-bc4d-477c-b2ff-ecdc824beaf5", "item-id": "item-a2ed2db4-586f-42b9-8267-4c11ada64efc" } 2023-06-04 22:45:02 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-a2ed2db4-586f-42b9-8267-4c11ada64efc" } 2023-06-04 22:45:02 | [Mutex] received everything. 2023-06-04 22:45:02 | [Mutex] isItemNotified: retracted:item:notifieditem-a2ed2db4-586f-42b9-8267-4c11ada64efc:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.090s |
2023-06-04 22:45:02 |
2023-06-04 22:45:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-06-04 22:45:02 | ------------------------------------ 2023-06-04 22:45:02 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-89c7c291-bc4d-477c-b2ff-ecdc824beaf5", "item-id": "item-a2ed2db4-586f-42b9-8267-4c11ada64efc" } 2023-06-04 22:45:02 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-89c7c291-bc4d-477c-b2ff-ecdc824beaf5", "item-id": "item-a2ed2db4-586f-42b9-8267-4c11ada64efc", "item": [ "<item id=\"item-a2ed2db4-586f-42b9-8267-4c11ada64efc\"><test>item-a2ed2db4-586f-42b9-8267-4c11ada64efc</test></item>" ] } 2023-06-04 22:45:02 | [Mutex] notify: [retrieved:item:item-a2ed2db4-586f-42b9-8267-4c11ada64efc:payload-matches:true:localhost] 2023-06-04 22:45:02 | [Mutex] received everything. 2023-06-04 22:45:02 | [Mutex] isItemNotified: retrieved:item:item-a2ed2db4-586f-42b9-8267-4c11ada64efc:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.046s |
2023-06-04 22:45:02 |
2023-06-04 22:45:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-06-04 22:45:02 | ------------------------------------ 2023-06-04 22:45:02 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2023-06-04 22:45:02 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-89c7c291-bc4d-477c-b2ff-ecdc824beaf5", "node-fbd71aad-7d77-4145-b971-fb785cea7cf7", "test" ] } |
retrieveUserSubscriptionsWithRegex | 0.052s |
2023-06-04 22:45:02 |
2023-06-04 22:45:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-06-04 22:45:02 | ------------------------------------ 2023-06-04 22:45:02 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-89c7c291-bc4d-477c-b2ff-ecdc824beaf5)" } 2023-06-04 22:45:02 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.013s |
2023-06-04 22:45:00 |
2023-06-04 22:45:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-06-04 22:45:00 | ------------------------------------ 2023-06-04 22:45:00 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-89c7c291-bc4d-477c-b2ff-ecdc824beaf5", "jids": [ "admin@test-domain.com" ] } 2023-06-04 22:45:00 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.076s |
2023-06-04 22:45:02 |
2023-06-04 22:45:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-06-04 22:45:02 | ------------------------------------ 2023-06-04 22:45:02 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-89c7c291-bc4d-477c-b2ff-ecdc824beaf5", "jids": [ "admin@test-domain.com" ] } 2023-06-04 22:45:02 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |