Test duration : 8.763s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.112s |
2022-07-20 23:03:51 |
2022-07-20 23:03:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-20 23:03:51 | ------------------------------------ 2022-07-20 23:03:51 | [Mutex] waiting for: [configured:node:node-33375baf-f0a4-4e73-a6c8-1b58160dcf36:node-f9d1f18b-3c81-41d9-9a27-42b4016695b1] 2022-07-20 23:03:51 | [Mutex] received everything. 2022-07-20 23:03:51 | [Mutex] isItemNotified: configured:node:node-33375baf-f0a4-4e73-a6c8-1b58160dcf36:node-f9d1f18b-3c81-41d9-9a27-42b4016695b1 :: true 2022-07-20 23:03:52 | [Mutex] waiting for: [received:nodes:ed005b9c-f10d-449c-ace0-b05ce780d123:localhost] 2022-07-20 23:03:52 | [Mutex] received everything. 2022-07-20 23:03:52 | [Mutex] isItemNotified: received:node:ed005b9c-f10d-449c-ace0-b05ce780d123:localhost:node-33375baf-f0a4-4e73-a6c8-1b58160dcf36:Node 33375baf-f0a4-4e73-a6c8-1b58160dcf36 :: true 2022-07-20 23:03:52 | [Mutex] waiting for: [received:nodes:5639ff53-7de7-4456-8861-0022bdc99c94:localhost] 2022-07-20 23:03:52 | [Mutex] waiting for: [received:nodes:5639ff53-7de7-4456-8861-0022bdc99c94:localhost] 2022-07-20 23:03:52 | [Mutex] received everything. 2022-07-20 23:03:52 | [Mutex] isItemNotified: received:node:5639ff53-7de7-4456-8861-0022bdc99c94:localhost:node-33375baf-f0a4-4e73-a6c8-1b58160dcf36:Node 33375baf-f0a4-4e73-a6c8-1b58160dcf36 :: false |
createNodes | 1.619s |
2022-07-20 23:03:48 |
2022-07-20 23:03:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-20 23:03:48 | ------------------------------------ 2022-07-20 23:03:49 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-33375baf-f0a4-4e73-a6c8-1b58160dcf36", "pubsub#title": "Node 33375baf-f0a4-4e73-a6c8-1b58160dcf36" } 2022-07-20 23:03:49 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-20 23:03:50 | [Mutex] waiting for: [received:nodes:82594056-ec18-444a-a07f-3286448f6d51:localhost] 2022-07-20 23:03:50 | [Mutex] waiting for: [received:nodes:82594056-ec18-444a-a07f-3286448f6d51:localhost] 2022-07-20 23:03:50 | [Mutex] received everything. 2022-07-20 23:03:50 | [Mutex] isItemNotified: received:node:82594056-ec18-444a-a07f-3286448f6d51:localhost:node-33375baf-f0a4-4e73-a6c8-1b58160dcf36:Node 33375baf-f0a4-4e73-a6c8-1b58160dcf36 :: true |
createSubnodes | 1.022s |
2022-07-20 23:03:50 |
2022-07-20 23:03:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-20 23:03:50 | ------------------------------------ 2022-07-20 23:03:50 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-f9d1f18b-3c81-41d9-9a27-42b4016695b1", "pubsub#title": "Node f9d1f18b-3c81-41d9-9a27-42b4016695b1" } 2022-07-20 23:03:50 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-20 23:03:51 | [Mutex] waiting for: [received:nodes:948a8086-718a-41cb-8e9d-0f6715337461:localhost] 2022-07-20 23:03:51 | [Mutex] waiting for: [received:nodes:948a8086-718a-41cb-8e9d-0f6715337461:localhost] 2022-07-20 23:03:51 | [Mutex] received everything. 2022-07-20 23:03:51 | [Mutex] isItemNotified: received:node:948a8086-718a-41cb-8e9d-0f6715337461:localhost:node-f9d1f18b-3c81-41d9-9a27-42b4016695b1:Node f9d1f18b-3c81-41d9-9a27-42b4016695b1 :: true |
deleteNodes | 1.023s |
2022-07-20 23:03:55 |
2022-07-20 23:03:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-20 23:03:55 | ------------------------------------ 2022-07-20 23:03:55 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-f9d1f18b-3c81-41d9-9a27-42b4016695b1" } 2022-07-20 23:03:55 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-20 23:03:56 | [Mutex] waiting for: [received:nodes:3299b1c4-21f9-40d7-8334-adc9b224781a:localhost] 2022-07-20 23:03:56 | [Mutex] received everything. 2022-07-20 23:03:56 | [Mutex] isItemNotified: received:node:3299b1c4-21f9-40d7-8334-adc9b224781a:localhost:node-f9d1f18b-3c81-41d9-9a27-42b4016695b1:Node f9d1f18b-3c81-41d9-9a27-42b4016695b1 :: false |
deleteSubnodes | 1.024s |
2022-07-20 23:03:54 |
2022-07-20 23:03:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-20 23:03:54 | ------------------------------------ 2022-07-20 23:03:54 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-33375baf-f0a4-4e73-a6c8-1b58160dcf36" } 2022-07-20 23:03:54 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-20 23:03:55 | [Mutex] waiting for: [received:nodes:18fbb80d-beed-443b-9088-e52bd26b5b69:localhost] 2022-07-20 23:03:55 | [Mutex] waiting for: [received:nodes:18fbb80d-beed-443b-9088-e52bd26b5b69:localhost] 2022-07-20 23:03:55 | [Mutex] received everything. 2022-07-20 23:03:55 | [Mutex] isItemNotified: received:node:18fbb80d-beed-443b-9088-e52bd26b5b69:localhost:node-33375baf-f0a4-4e73-a6c8-1b58160dcf36:Node 33375baf-f0a4-4e73-a6c8-1b58160dcf36 :: false 2022-07-20 23:03:55 | [Mutex] waiting for: [received:nodes:846c19da-c6b8-46de-a7f8-551a47fccf81:localhost] 2022-07-20 23:03:55 | [Mutex] received everything. 2022-07-20 23:03:55 | [Mutex] isItemNotified: received:node:846c19da-c6b8-46de-a7f8-551a47fccf81:localhost:node-33375baf-f0a4-4e73-a6c8-1b58160dcf36:Node 33375baf-f0a4-4e73-a6c8-1b58160dcf36 :: false |
publishItemsToNodes | 0.048s |
2022-07-20 23:03:53 |
2022-07-20 23:03:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-20 23:03:53 | ------------------------------------ 2022-07-20 23:03:53 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-33375baf-f0a4-4e73-a6c8-1b58160dcf36", "entry": "<test>item-ec2a2e67-869b-407a-adcd-e50c2a79fadb</test>", "item-id": "item-ec2a2e67-869b-407a-adcd-e50c2a79fadb" } 2022-07-20 23:03:53 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-ec2a2e67-869b-407a-adcd-e50c2a79fadb" } 2022-07-20 23:03:53 | [Mutex] waiting for: [published:item:notifieditem-ec2a2e67-869b-407a-adcd-e50c2a79fadb:admin@test-domain.com] 2022-07-20 23:03:53 | [Mutex] received everything. 2022-07-20 23:03:53 | [Mutex] isItemNotified: published:item:notifieditem-ec2a2e67-869b-407a-adcd-e50c2a79fadb:admin@test-domain.com :: true |
retractItemsFromNodes | 0.061s |
2022-07-20 23:03:53 |
2022-07-20 23:03:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-20 23:03:53 | ------------------------------------ 2022-07-20 23:03:53 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-33375baf-f0a4-4e73-a6c8-1b58160dcf36", "item-id": "item-ec2a2e67-869b-407a-adcd-e50c2a79fadb" } 2022-07-20 23:03:53 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-ec2a2e67-869b-407a-adcd-e50c2a79fadb" } 2022-07-20 23:03:53 | [Mutex] received everything. 2022-07-20 23:03:53 | [Mutex] isItemNotified: retracted:item:notifieditem-ec2a2e67-869b-407a-adcd-e50c2a79fadb:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.140s |
2022-07-20 23:03:53 |
2022-07-20 23:03:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-20 23:03:53 | ------------------------------------ 2022-07-20 23:03:53 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-33375baf-f0a4-4e73-a6c8-1b58160dcf36", "item-id": "item-ec2a2e67-869b-407a-adcd-e50c2a79fadb" } 2022-07-20 23:03:53 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-33375baf-f0a4-4e73-a6c8-1b58160dcf36", "item-id": "item-ec2a2e67-869b-407a-adcd-e50c2a79fadb", "item": [ "<item id=\"item-ec2a2e67-869b-407a-adcd-e50c2a79fadb\"><test>item-ec2a2e67-869b-407a-adcd-e50c2a79fadb</test></item>" ] } 2022-07-20 23:03:53 | [Mutex] notify: [retrieved:item:item-ec2a2e67-869b-407a-adcd-e50c2a79fadb:payload-matches:true:localhost] 2022-07-20 23:03:53 | [Mutex] received everything. 2022-07-20 23:03:53 | [Mutex] isItemNotified: retrieved:item:item-ec2a2e67-869b-407a-adcd-e50c2a79fadb:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.054s |
2022-07-20 23:03:53 |
2022-07-20 23:03:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-20 23:03:53 | ------------------------------------ 2022-07-20 23:03:53 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-07-20 23:03:53 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-f9d1f18b-3c81-41d9-9a27-42b4016695b1", "node-33375baf-f0a4-4e73-a6c8-1b58160dcf36", "test" ] } |
retrieveUserSubscriptionsWithRegex | 0.050s |
2022-07-20 23:03:53 |
2022-07-20 23:03:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-20 23:03:53 | ------------------------------------ 2022-07-20 23:03:53 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-33375baf-f0a4-4e73-a6c8-1b58160dcf36)" } 2022-07-20 23:03:53 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.008s |
2022-07-20 23:03:52 |
2022-07-20 23:03:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-20 23:03:52 | ------------------------------------ 2022-07-20 23:03:52 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-33375baf-f0a4-4e73-a6c8-1b58160dcf36", "jids": [ "admin@test-domain.com" ] } 2022-07-20 23:03:52 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.074s |
2022-07-20 23:03:53 |
2022-07-20 23:03:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-20 23:03:53 | ------------------------------------ 2022-07-20 23:03:53 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-33375baf-f0a4-4e73-a6c8-1b58160dcf36", "jids": [ "admin@test-domain.com" ] } 2022-07-20 23:03:53 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |