Test duration : 8.804s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.120s |
2022-08-18 22:40:42 |
2022-08-18 22:40:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-18 22:40:42 | ------------------------------------ 2022-08-18 22:40:42 | [Mutex] waiting for: [configured:node:node-ab068aad-f482-4676-aa04-0014b668944e:node-2fd1e91c-fd1c-45ee-ad28-eeb3f5fb1e83] 2022-08-18 22:40:42 | [Mutex] received everything. 2022-08-18 22:40:42 | [Mutex] isItemNotified: configured:node:node-ab068aad-f482-4676-aa04-0014b668944e:node-2fd1e91c-fd1c-45ee-ad28-eeb3f5fb1e83 :: true 2022-08-18 22:40:43 | [Mutex] waiting for: [received:nodes:12f345ce-50f0-4e53-be40-4f63346b3bf9:localhost] 2022-08-18 22:40:43 | [Mutex] received everything. 2022-08-18 22:40:43 | [Mutex] isItemNotified: received:node:12f345ce-50f0-4e53-be40-4f63346b3bf9:localhost:node-ab068aad-f482-4676-aa04-0014b668944e:Node ab068aad-f482-4676-aa04-0014b668944e :: true 2022-08-18 22:40:43 | [Mutex] waiting for: [received:nodes:c782046c-87bc-4499-8f2f-bbad79ff8e38:localhost] 2022-08-18 22:40:43 | [Mutex] received everything. 2022-08-18 22:40:43 | [Mutex] isItemNotified: received:node:c782046c-87bc-4499-8f2f-bbad79ff8e38:localhost:node-ab068aad-f482-4676-aa04-0014b668944e:Node ab068aad-f482-4676-aa04-0014b668944e :: false |
createNodes | 1.626s |
2022-08-18 22:40:39 |
2022-08-18 22:40:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-18 22:40:39 | ------------------------------------ 2022-08-18 22:40:40 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-ab068aad-f482-4676-aa04-0014b668944e", "pubsub#title": "Node ab068aad-f482-4676-aa04-0014b668944e" } 2022-08-18 22:40:40 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-18 22:40:41 | [Mutex] waiting for: [received:nodes:0a99bbd2-8366-46fd-a5af-387bc0126822:localhost] 2022-08-18 22:40:41 | [Mutex] received everything. 2022-08-18 22:40:41 | [Mutex] isItemNotified: received:node:0a99bbd2-8366-46fd-a5af-387bc0126822:localhost:node-ab068aad-f482-4676-aa04-0014b668944e:Node ab068aad-f482-4676-aa04-0014b668944e :: true |
createSubnodes | 1.034s |
2022-08-18 22:40:41 |
2022-08-18 22:40:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-18 22:40:41 | ------------------------------------ 2022-08-18 22:40:41 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-2fd1e91c-fd1c-45ee-ad28-eeb3f5fb1e83", "pubsub#title": "Node 2fd1e91c-fd1c-45ee-ad28-eeb3f5fb1e83" } 2022-08-18 22:40:41 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-18 22:40:42 | [Mutex] waiting for: [received:nodes:f243e75f-f2a2-455b-ab61-8b7f915633e7:localhost] 2022-08-18 22:40:42 | [Mutex] received everything. 2022-08-18 22:40:42 | [Mutex] isItemNotified: received:node:f243e75f-f2a2-455b-ab61-8b7f915633e7:localhost:node-2fd1e91c-fd1c-45ee-ad28-eeb3f5fb1e83:Node 2fd1e91c-fd1c-45ee-ad28-eeb3f5fb1e83 :: true |
deleteNodes | 1.018s |
2022-08-18 22:40:46 |
2022-08-18 22:40:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-18 22:40:46 | ------------------------------------ 2022-08-18 22:40:46 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-2fd1e91c-fd1c-45ee-ad28-eeb3f5fb1e83" } 2022-08-18 22:40:46 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-18 22:40:47 | [Mutex] waiting for: [received:nodes:4cc22bee-76bf-4829-96e5-080c86dbae6e:localhost] 2022-08-18 22:40:47 | [Mutex] received everything. 2022-08-18 22:40:47 | [Mutex] isItemNotified: received:node:4cc22bee-76bf-4829-96e5-080c86dbae6e:localhost:node-2fd1e91c-fd1c-45ee-ad28-eeb3f5fb1e83:Node 2fd1e91c-fd1c-45ee-ad28-eeb3f5fb1e83 :: false |
deleteSubnodes | 1.028s |
2022-08-18 22:40:45 |
2022-08-18 22:40:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-18 22:40:45 | ------------------------------------ 2022-08-18 22:40:45 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-ab068aad-f482-4676-aa04-0014b668944e" } 2022-08-18 22:40:45 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-18 22:40:46 | [Mutex] waiting for: [received:nodes:50ab45cb-0fb9-48fe-845f-893f57f045eb:localhost] 2022-08-18 22:40:46 | [Mutex] waiting for: [received:nodes:50ab45cb-0fb9-48fe-845f-893f57f045eb:localhost] 2022-08-18 22:40:46 | [Mutex] received everything. 2022-08-18 22:40:46 | [Mutex] isItemNotified: received:node:50ab45cb-0fb9-48fe-845f-893f57f045eb:localhost:node-ab068aad-f482-4676-aa04-0014b668944e:Node ab068aad-f482-4676-aa04-0014b668944e :: false 2022-08-18 22:40:46 | [Mutex] waiting for: [received:nodes:09cd5e25-7cce-4dbc-8c19-abd2ce1831bd:localhost] 2022-08-18 22:40:46 | [Mutex] received everything. 2022-08-18 22:40:46 | [Mutex] isItemNotified: received:node:09cd5e25-7cce-4dbc-8c19-abd2ce1831bd:localhost:node-ab068aad-f482-4676-aa04-0014b668944e:Node ab068aad-f482-4676-aa04-0014b668944e :: false |
publishItemsToNodes | 0.046s |
2022-08-18 22:40:44 |
2022-08-18 22:40:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-18 22:40:44 | ------------------------------------ 2022-08-18 22:40:44 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-ab068aad-f482-4676-aa04-0014b668944e", "entry": "<test>item-2f73c28b-3fb4-4a63-8c5a-7b23292f3928</test>", "item-id": "item-2f73c28b-3fb4-4a63-8c5a-7b23292f3928" } 2022-08-18 22:40:44 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-2f73c28b-3fb4-4a63-8c5a-7b23292f3928" } 2022-08-18 22:40:44 | [Mutex] waiting for: [published:item:notifieditem-2f73c28b-3fb4-4a63-8c5a-7b23292f3928:admin@test-domain.com] 2022-08-18 22:40:44 | [Mutex] received everything. 2022-08-18 22:40:44 | [Mutex] isItemNotified: published:item:notifieditem-2f73c28b-3fb4-4a63-8c5a-7b23292f3928:admin@test-domain.com :: true |
retractItemsFromNodes | 0.051s |
2022-08-18 22:40:44 |
2022-08-18 22:40:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-18 22:40:44 | ------------------------------------ 2022-08-18 22:40:44 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-ab068aad-f482-4676-aa04-0014b668944e", "item-id": "item-2f73c28b-3fb4-4a63-8c5a-7b23292f3928" } 2022-08-18 22:40:44 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-2f73c28b-3fb4-4a63-8c5a-7b23292f3928" } 2022-08-18 22:40:44 | [Mutex] received everything. 2022-08-18 22:40:44 | [Mutex] isItemNotified: retracted:item:notifieditem-2f73c28b-3fb4-4a63-8c5a-7b23292f3928:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.026s |
2022-08-18 22:40:44 |
2022-08-18 22:40:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-18 22:40:44 | ------------------------------------ 2022-08-18 22:40:44 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-ab068aad-f482-4676-aa04-0014b668944e", "item-id": "item-2f73c28b-3fb4-4a63-8c5a-7b23292f3928" } 2022-08-18 22:40:44 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-ab068aad-f482-4676-aa04-0014b668944e", "item-id": "item-2f73c28b-3fb4-4a63-8c5a-7b23292f3928", "item": [ "<item id=\"item-2f73c28b-3fb4-4a63-8c5a-7b23292f3928\"><test>item-2f73c28b-3fb4-4a63-8c5a-7b23292f3928</test></item>" ] } 2022-08-18 22:40:44 | [Mutex] notify: [retrieved:item:item-2f73c28b-3fb4-4a63-8c5a-7b23292f3928:payload-matches:true:localhost] 2022-08-18 22:40:44 | [Mutex] received everything. 2022-08-18 22:40:44 | [Mutex] isItemNotified: retrieved:item:item-2f73c28b-3fb4-4a63-8c5a-7b23292f3928:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.070s |
2022-08-18 22:40:44 |
2022-08-18 22:40:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-18 22:40:44 | ------------------------------------ 2022-08-18 22:40:44 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-08-18 22:40:44 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-2fd1e91c-fd1c-45ee-ad28-eeb3f5fb1e83", "test", "node-ab068aad-f482-4676-aa04-0014b668944e" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2022-08-18 22:40:44 |
2022-08-18 22:40:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-18 22:40:44 | ------------------------------------ 2022-08-18 22:40:44 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-ab068aad-f482-4676-aa04-0014b668944e)" } 2022-08-18 22:40:44 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.012s |
2022-08-18 22:40:43 |
2022-08-18 22:40:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-18 22:40:43 | ------------------------------------ 2022-08-18 22:40:43 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-ab068aad-f482-4676-aa04-0014b668944e", "jids": [ "admin@test-domain.com" ] } 2022-08-18 22:40:43 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.071s |
2022-08-18 22:40:44 |
2022-08-18 22:40:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-18 22:40:44 | ------------------------------------ 2022-08-18 22:40:44 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-ab068aad-f482-4676-aa04-0014b668944e", "jids": [ "admin@test-domain.com" ] } 2022-08-18 22:40:44 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |