Test duration : 8.804s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.119s |
2023-03-06 09:22:37 |
2023-03-06 09:22:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-06 09:22:37 | ------------------------------------ 2023-03-06 09:22:37 | [Mutex] waiting for: [configured:node:node-eab86eb6-3845-4e37-a63b-2a923fd53909:node-cdc7f7f0-153e-4052-ba81-03c2ca9c3e83] 2023-03-06 09:22:37 | [Mutex] received everything. 2023-03-06 09:22:37 | [Mutex] isItemNotified: configured:node:node-eab86eb6-3845-4e37-a63b-2a923fd53909:node-cdc7f7f0-153e-4052-ba81-03c2ca9c3e83 :: true 2023-03-06 09:22:38 | [Mutex] waiting for: [received:nodes:17da6aa9-a757-4949-865a-c64965ce235f:localhost] 2023-03-06 09:22:38 | [Mutex] received everything. 2023-03-06 09:22:38 | [Mutex] isItemNotified: received:node:17da6aa9-a757-4949-865a-c64965ce235f:localhost:node-eab86eb6-3845-4e37-a63b-2a923fd53909:Node eab86eb6-3845-4e37-a63b-2a923fd53909 :: true 2023-03-06 09:22:38 | [Mutex] waiting for: [received:nodes:6a0df1e4-d0a7-43e1-a75c-6c3f4f87fdc1:localhost] 2023-03-06 09:22:38 | [Mutex] received everything. 2023-03-06 09:22:38 | [Mutex] isItemNotified: received:node:6a0df1e4-d0a7-43e1-a75c-6c3f4f87fdc1:localhost:node-eab86eb6-3845-4e37-a63b-2a923fd53909:Node eab86eb6-3845-4e37-a63b-2a923fd53909 :: false |
createNodes | 1.804s |
2023-03-06 09:22:34 |
2023-03-06 09:22:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-06 09:22:34 | ------------------------------------ 2023-03-06 09:22:35 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-eab86eb6-3845-4e37-a63b-2a923fd53909", "pubsub#title": "Node eab86eb6-3845-4e37-a63b-2a923fd53909" } 2023-03-06 09:22:35 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2023-03-06 09:22:36 | [Mutex] waiting for: [received:nodes:ced0fbfb-3287-468d-afa4-bb9a1b1d480e:localhost] 2023-03-06 09:22:36 | [Mutex] waiting for: [received:nodes:ced0fbfb-3287-468d-afa4-bb9a1b1d480e:localhost] 2023-03-06 09:22:36 | [Mutex] waiting for: [received:nodes:ced0fbfb-3287-468d-afa4-bb9a1b1d480e:localhost] 2023-03-06 09:22:36 | [Mutex] received everything. 2023-03-06 09:22:36 | [Mutex] isItemNotified: received:node:ced0fbfb-3287-468d-afa4-bb9a1b1d480e:localhost:node-eab86eb6-3845-4e37-a63b-2a923fd53909:Node eab86eb6-3845-4e37-a63b-2a923fd53909 :: true |
createSubnodes | 1.033s |
2023-03-06 09:22:36 |
2023-03-06 09:22:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-06 09:22:36 | ------------------------------------ 2023-03-06 09:22:36 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-cdc7f7f0-153e-4052-ba81-03c2ca9c3e83", "pubsub#title": "Node cdc7f7f0-153e-4052-ba81-03c2ca9c3e83" } 2023-03-06 09:22:36 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2023-03-06 09:22:37 | [Mutex] waiting for: [received:nodes:6c42fa68-ee10-42ec-881a-aee62103e675:localhost] 2023-03-06 09:22:37 | [Mutex] waiting for: [received:nodes:6c42fa68-ee10-42ec-881a-aee62103e675:localhost] 2023-03-06 09:22:37 | [Mutex] waiting for: [received:nodes:6c42fa68-ee10-42ec-881a-aee62103e675:localhost] 2023-03-06 09:22:37 | [Mutex] waiting for: [received:nodes:6c42fa68-ee10-42ec-881a-aee62103e675:localhost] 2023-03-06 09:22:37 | [Mutex] received everything. 2023-03-06 09:22:37 | [Mutex] isItemNotified: received:node:6c42fa68-ee10-42ec-881a-aee62103e675:localhost:node-cdc7f7f0-153e-4052-ba81-03c2ca9c3e83:Node cdc7f7f0-153e-4052-ba81-03c2ca9c3e83 :: true |
deleteNodes | 1.022s |
2023-03-06 09:22:41 |
2023-03-06 09:22:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-06 09:22:41 | ------------------------------------ 2023-03-06 09:22:41 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-cdc7f7f0-153e-4052-ba81-03c2ca9c3e83" } 2023-03-06 09:22:41 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2023-03-06 09:22:42 | [Mutex] waiting for: [received:nodes:495915fb-64e2-4009-854b-2581bce9c6ff:localhost] 2023-03-06 09:22:42 | [Mutex] waiting for: [received:nodes:495915fb-64e2-4009-854b-2581bce9c6ff:localhost] 2023-03-06 09:22:42 | [Mutex] received everything. 2023-03-06 09:22:42 | [Mutex] isItemNotified: received:node:495915fb-64e2-4009-854b-2581bce9c6ff:localhost:node-cdc7f7f0-153e-4052-ba81-03c2ca9c3e83:Node cdc7f7f0-153e-4052-ba81-03c2ca9c3e83 :: false |
deleteSubnodes | 1.026s |
2023-03-06 09:22:40 |
2023-03-06 09:22:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-06 09:22:40 | ------------------------------------ 2023-03-06 09:22:40 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-eab86eb6-3845-4e37-a63b-2a923fd53909" } 2023-03-06 09:22:40 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2023-03-06 09:22:41 | [Mutex] waiting for: [received:nodes:e3d5c458-ab1e-49d0-b102-ddf2409dd2e6:localhost] 2023-03-06 09:22:41 | [Mutex] waiting for: [received:nodes:e3d5c458-ab1e-49d0-b102-ddf2409dd2e6:localhost] 2023-03-06 09:22:41 | [Mutex] waiting for: [received:nodes:e3d5c458-ab1e-49d0-b102-ddf2409dd2e6:localhost] 2023-03-06 09:22:41 | [Mutex] waiting for: [received:nodes:e3d5c458-ab1e-49d0-b102-ddf2409dd2e6:localhost] 2023-03-06 09:22:41 | [Mutex] received everything. 2023-03-06 09:22:41 | [Mutex] isItemNotified: received:node:e3d5c458-ab1e-49d0-b102-ddf2409dd2e6:localhost:node-eab86eb6-3845-4e37-a63b-2a923fd53909:Node eab86eb6-3845-4e37-a63b-2a923fd53909 :: false 2023-03-06 09:22:41 | [Mutex] waiting for: [received:nodes:35e0598e-e35c-4623-9e64-e9ff5124c409:localhost] 2023-03-06 09:22:41 | [Mutex] received everything. 2023-03-06 09:22:41 | [Mutex] isItemNotified: received:node:35e0598e-e35c-4623-9e64-e9ff5124c409:localhost:node-eab86eb6-3845-4e37-a63b-2a923fd53909:Node eab86eb6-3845-4e37-a63b-2a923fd53909 :: false |
publishItemsToNodes | 0.076s |
2023-03-06 09:22:39 |
2023-03-06 09:22:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-06 09:22:39 | ------------------------------------ 2023-03-06 09:22:39 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-eab86eb6-3845-4e37-a63b-2a923fd53909", "entry": "<test>item-6f2dcbc4-4c3e-4225-a7f1-09c10b926428</test>", "item-id": "item-6f2dcbc4-4c3e-4225-a7f1-09c10b926428" } 2023-03-06 09:22:39 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-6f2dcbc4-4c3e-4225-a7f1-09c10b926428" } 2023-03-06 09:22:39 | [Mutex] waiting for: [published:item:notifieditem-6f2dcbc4-4c3e-4225-a7f1-09c10b926428:admin@test-domain.com] 2023-03-06 09:22:39 | [Mutex] received everything. 2023-03-06 09:22:39 | [Mutex] isItemNotified: published:item:notifieditem-6f2dcbc4-4c3e-4225-a7f1-09c10b926428:admin@test-domain.com :: true |
retractItemsFromNodes | 0.055s |
2023-03-06 09:22:39 |
2023-03-06 09:22:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-06 09:22:39 | ------------------------------------ 2023-03-06 09:22:39 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-eab86eb6-3845-4e37-a63b-2a923fd53909", "item-id": "item-6f2dcbc4-4c3e-4225-a7f1-09c10b926428" } 2023-03-06 09:22:39 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-6f2dcbc4-4c3e-4225-a7f1-09c10b926428" } 2023-03-06 09:22:39 | [Mutex] received everything. 2023-03-06 09:22:39 | [Mutex] isItemNotified: retracted:item:notifieditem-6f2dcbc4-4c3e-4225-a7f1-09c10b926428:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.026s |
2023-03-06 09:22:39 |
2023-03-06 09:22:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-06 09:22:39 | ------------------------------------ 2023-03-06 09:22:39 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-eab86eb6-3845-4e37-a63b-2a923fd53909", "item-id": "item-6f2dcbc4-4c3e-4225-a7f1-09c10b926428" } 2023-03-06 09:22:39 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-eab86eb6-3845-4e37-a63b-2a923fd53909", "item-id": "item-6f2dcbc4-4c3e-4225-a7f1-09c10b926428", "item": [ "<item id=\"item-6f2dcbc4-4c3e-4225-a7f1-09c10b926428\"><test>item-6f2dcbc4-4c3e-4225-a7f1-09c10b926428</test></item>" ] } 2023-03-06 09:22:39 | [Mutex] notify: [retrieved:item:item-6f2dcbc4-4c3e-4225-a7f1-09c10b926428:payload-matches:true:localhost] 2023-03-06 09:22:39 | [Mutex] received everything. 2023-03-06 09:22:39 | [Mutex] isItemNotified: retrieved:item:item-6f2dcbc4-4c3e-4225-a7f1-09c10b926428:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.050s |
2023-03-06 09:22:39 |
2023-03-06 09:22:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-06 09:22:39 | ------------------------------------ 2023-03-06 09:22:39 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2023-03-06 09:22:39 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-cdc7f7f0-153e-4052-ba81-03c2ca9c3e83", "test", "node-eab86eb6-3845-4e37-a63b-2a923fd53909" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2023-03-06 09:22:39 |
2023-03-06 09:22:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-06 09:22:39 | ------------------------------------ 2023-03-06 09:22:39 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-eab86eb6-3845-4e37-a63b-2a923fd53909)" } 2023-03-06 09:22:39 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.015s |
2023-03-06 09:22:38 |
2023-03-06 09:22:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-06 09:22:38 | ------------------------------------ 2023-03-06 09:22:38 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-eab86eb6-3845-4e37-a63b-2a923fd53909", "jids": [ "admin@test-domain.com" ] } 2023-03-06 09:22:38 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.051s |
2023-03-06 09:22:39 |
2023-03-06 09:22:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-06 09:22:39 | ------------------------------------ 2023-03-06 09:22:39 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-eab86eb6-3845-4e37-a63b-2a923fd53909", "jids": [ "admin@test-domain.com" ] } 2023-03-06 09:22:39 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |