Test duration : 8.827s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.110s |
2022-04-14 22:36:36 |
2022-04-14 22:36:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-04-14 22:36:36 | ------------------------------------ 2022-04-14 22:36:36 | [Mutex] waiting for: [configured:node:node-ecce3cad-7a44-42a4-a568-af301d8fa56e:node-2d5902d3-aee3-4f10-8e83-86dae17f18f6] 2022-04-14 22:36:36 | [Mutex] received everything. 2022-04-14 22:36:36 | [Mutex] isItemNotified: configured:node:node-ecce3cad-7a44-42a4-a568-af301d8fa56e:node-2d5902d3-aee3-4f10-8e83-86dae17f18f6 :: true 2022-04-14 22:36:37 | [Mutex] waiting for: [received:nodes:e1b483ce-da86-46e1-9f35-2ece88d5522d:localhost] 2022-04-14 22:36:37 | [Mutex] received everything. 2022-04-14 22:36:37 | [Mutex] isItemNotified: received:node:e1b483ce-da86-46e1-9f35-2ece88d5522d:localhost:node-ecce3cad-7a44-42a4-a568-af301d8fa56e:Node ecce3cad-7a44-42a4-a568-af301d8fa56e :: true 2022-04-14 22:36:37 | [Mutex] waiting for: [received:nodes:d55ef74f-c361-49b9-9df1-975c19f580b7:localhost] 2022-04-14 22:36:37 | [Mutex] waiting for: [received:nodes:d55ef74f-c361-49b9-9df1-975c19f580b7:localhost] 2022-04-14 22:36:37 | [Mutex] received everything. 2022-04-14 22:36:37 | [Mutex] isItemNotified: received:node:d55ef74f-c361-49b9-9df1-975c19f580b7:localhost:node-ecce3cad-7a44-42a4-a568-af301d8fa56e:Node ecce3cad-7a44-42a4-a568-af301d8fa56e :: false |
createNodes | 1.600s |
2022-04-14 22:36:34 |
2022-04-14 22:36:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-04-14 22:36:34 | ------------------------------------ 2022-04-14 22:36:34 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-ecce3cad-7a44-42a4-a568-af301d8fa56e", "pubsub#title": "Node ecce3cad-7a44-42a4-a568-af301d8fa56e" } 2022-04-14 22:36:34 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-04-14 22:36:35 | [Mutex] waiting for: [received:nodes:89b81192-be86-47d1-91b5-b256ecdb1a61:localhost] 2022-04-14 22:36:35 | [Mutex] waiting for: [received:nodes:89b81192-be86-47d1-91b5-b256ecdb1a61:localhost] 2022-04-14 22:36:35 | [Mutex] received everything. 2022-04-14 22:36:35 | [Mutex] isItemNotified: received:node:89b81192-be86-47d1-91b5-b256ecdb1a61:localhost:node-ecce3cad-7a44-42a4-a568-af301d8fa56e:Node ecce3cad-7a44-42a4-a568-af301d8fa56e :: true |
createSubnodes | 1.021s |
2022-04-14 22:36:35 |
2022-04-14 22:36:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-04-14 22:36:35 | ------------------------------------ 2022-04-14 22:36:35 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-2d5902d3-aee3-4f10-8e83-86dae17f18f6", "pubsub#title": "Node 2d5902d3-aee3-4f10-8e83-86dae17f18f6" } 2022-04-14 22:36:35 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-04-14 22:36:36 | [Mutex] waiting for: [received:nodes:b29fa700-d793-4e19-a67a-9fb123d4a331:localhost] 2022-04-14 22:36:36 | [Mutex] received everything. 2022-04-14 22:36:36 | [Mutex] isItemNotified: received:node:b29fa700-d793-4e19-a67a-9fb123d4a331:localhost:node-2d5902d3-aee3-4f10-8e83-86dae17f18f6:Node 2d5902d3-aee3-4f10-8e83-86dae17f18f6 :: true |
deleteNodes | 1.021s |
2022-04-14 22:36:41 |
2022-04-14 22:36:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-04-14 22:36:41 | ------------------------------------ 2022-04-14 22:36:41 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-2d5902d3-aee3-4f10-8e83-86dae17f18f6" } 2022-04-14 22:36:41 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-04-14 22:36:42 | [Mutex] waiting for: [received:nodes:a02fbf78-68c4-4180-8418-1b024862271f:localhost] 2022-04-14 22:36:42 | [Mutex] received everything. 2022-04-14 22:36:42 | [Mutex] isItemNotified: received:node:a02fbf78-68c4-4180-8418-1b024862271f:localhost:node-2d5902d3-aee3-4f10-8e83-86dae17f18f6:Node 2d5902d3-aee3-4f10-8e83-86dae17f18f6 :: false |
deleteSubnodes | 1.026s |
2022-04-14 22:36:40 |
2022-04-14 22:36:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-04-14 22:36:40 | ------------------------------------ 2022-04-14 22:36:40 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-ecce3cad-7a44-42a4-a568-af301d8fa56e" } 2022-04-14 22:36:40 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-04-14 22:36:41 | [Mutex] waiting for: [received:nodes:e2847a6b-7c72-45e5-ac83-6eef21f07fb0:localhost] 2022-04-14 22:36:41 | [Mutex] waiting for: [received:nodes:e2847a6b-7c72-45e5-ac83-6eef21f07fb0:localhost] 2022-04-14 22:36:41 | [Mutex] received everything. 2022-04-14 22:36:41 | [Mutex] isItemNotified: received:node:e2847a6b-7c72-45e5-ac83-6eef21f07fb0:localhost:node-ecce3cad-7a44-42a4-a568-af301d8fa56e:Node ecce3cad-7a44-42a4-a568-af301d8fa56e :: false 2022-04-14 22:36:41 | [Mutex] waiting for: [received:nodes:ab3dd02a-8cc8-42ff-bda7-9d0e24bde45a:localhost] 2022-04-14 22:36:41 | [Mutex] received everything. 2022-04-14 22:36:41 | [Mutex] isItemNotified: received:node:ab3dd02a-8cc8-42ff-bda7-9d0e24bde45a:localhost:node-ecce3cad-7a44-42a4-a568-af301d8fa56e:Node ecce3cad-7a44-42a4-a568-af301d8fa56e :: false |
publishItemsToNodes | 0.043s |
2022-04-14 22:36:38 |
2022-04-14 22:36:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-04-14 22:36:38 | ------------------------------------ 2022-04-14 22:36:38 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-ecce3cad-7a44-42a4-a568-af301d8fa56e", "entry": "<test>item-07e687f9-ab26-4934-8132-c4d1e2011815</test>", "item-id": "item-07e687f9-ab26-4934-8132-c4d1e2011815" } 2022-04-14 22:36:38 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-07e687f9-ab26-4934-8132-c4d1e2011815" } 2022-04-14 22:36:38 | [Mutex] waiting for: [published:item:notifieditem-07e687f9-ab26-4934-8132-c4d1e2011815:admin@test-domain.com] 2022-04-14 22:36:38 | [Mutex] received everything. 2022-04-14 22:36:38 | [Mutex] isItemNotified: published:item:notifieditem-07e687f9-ab26-4934-8132-c4d1e2011815:admin@test-domain.com :: true |
retractItemsFromNodes | 0.052s |
2022-04-14 22:36:39 |
2022-04-14 22:36:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-04-14 22:36:39 | ------------------------------------ 2022-04-14 22:36:39 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-ecce3cad-7a44-42a4-a568-af301d8fa56e", "item-id": "item-07e687f9-ab26-4934-8132-c4d1e2011815" } 2022-04-14 22:36:39 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-07e687f9-ab26-4934-8132-c4d1e2011815" } 2022-04-14 22:36:39 | [Mutex] received everything. 2022-04-14 22:36:39 | [Mutex] isItemNotified: retracted:item:notifieditem-07e687f9-ab26-4934-8132-c4d1e2011815:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.057s |
2022-04-14 22:36:38 |
2022-04-14 22:36:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-04-14 22:36:38 | ------------------------------------ 2022-04-14 22:36:38 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-ecce3cad-7a44-42a4-a568-af301d8fa56e", "item-id": "item-07e687f9-ab26-4934-8132-c4d1e2011815" } 2022-04-14 22:36:38 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-ecce3cad-7a44-42a4-a568-af301d8fa56e", "item-id": "item-07e687f9-ab26-4934-8132-c4d1e2011815", "item": [ "<item id=\"item-07e687f9-ab26-4934-8132-c4d1e2011815\"><test>item-07e687f9-ab26-4934-8132-c4d1e2011815</test></item>" ] } 2022-04-14 22:36:38 | [Mutex] notify: [retrieved:item:item-07e687f9-ab26-4934-8132-c4d1e2011815:payload-matches:true:localhost] 2022-04-14 22:36:38 | [Mutex] received everything. 2022-04-14 22:36:38 | [Mutex] isItemNotified: retrieved:item:item-07e687f9-ab26-4934-8132-c4d1e2011815:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.099s |
2022-04-14 22:36:38 |
2022-04-14 22:36:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-04-14 22:36:38 | ------------------------------------ 2022-04-14 22:36:38 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-04-14 22:36:38 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-ecce3cad-7a44-42a4-a568-af301d8fa56e", "test", "node-2d5902d3-aee3-4f10-8e83-86dae17f18f6" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2022-04-14 22:36:38 |
2022-04-14 22:36:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-04-14 22:36:38 | ------------------------------------ 2022-04-14 22:36:38 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-ecce3cad-7a44-42a4-a568-af301d8fa56e)" } 2022-04-14 22:36:39 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.012s |
2022-04-14 22:36:37 |
2022-04-14 22:36:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-04-14 22:36:37 | ------------------------------------ 2022-04-14 22:36:37 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-ecce3cad-7a44-42a4-a568-af301d8fa56e", "jids": [ "admin@test-domain.com" ] } 2022-04-14 22:36:37 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.083s |
2022-04-14 22:36:39 |
2022-04-14 22:36:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-04-14 22:36:39 | ------------------------------------ 2022-04-14 22:36:39 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-ecce3cad-7a44-42a4-a568-af301d8fa56e", "jids": [ "admin@test-domain.com" ] } 2022-04-14 22:36:39 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |