Test duration : 8.481s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.109s |
2023-08-06 22:30:59 |
2023-08-06 22:30:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-08-06 22:30:59 | ------------------------------------ 2023-08-06 22:30:59 | [Mutex] waiting for: [configured:node:node-d3a4d0b2-193a-4029-b4c5-45b496a53b8b:node-2dc46027-e9db-468f-99c8-d93f0fc374d9] 2023-08-06 22:30:59 | [Mutex] received everything. 2023-08-06 22:30:59 | [Mutex] isItemNotified: configured:node:node-d3a4d0b2-193a-4029-b4c5-45b496a53b8b:node-2dc46027-e9db-468f-99c8-d93f0fc374d9 :: true 2023-08-06 22:31:00 | [Mutex] waiting for: [received:nodes:66178de3-7775-4fe5-b296-a4c23abfdc29:localhost] 2023-08-06 22:31:00 | [Mutex] received everything. 2023-08-06 22:31:00 | [Mutex] isItemNotified: received:node:66178de3-7775-4fe5-b296-a4c23abfdc29:localhost:node-d3a4d0b2-193a-4029-b4c5-45b496a53b8b:Node d3a4d0b2-193a-4029-b4c5-45b496a53b8b :: true 2023-08-06 22:31:00 | [Mutex] waiting for: [received:nodes:05e3d6ab-5add-48d2-bb88-d6713d7e1ee4:localhost] 2023-08-06 22:31:00 | [Mutex] waiting for: [received:nodes:05e3d6ab-5add-48d2-bb88-d6713d7e1ee4:localhost] 2023-08-06 22:31:00 | [Mutex] waiting for: [received:nodes:05e3d6ab-5add-48d2-bb88-d6713d7e1ee4:localhost] 2023-08-06 22:31:00 | [Mutex] waiting for: [received:nodes:05e3d6ab-5add-48d2-bb88-d6713d7e1ee4:localhost] 2023-08-06 22:31:00 | [Mutex] received everything. 2023-08-06 22:31:00 | [Mutex] isItemNotified: received:node:05e3d6ab-5add-48d2-bb88-d6713d7e1ee4:localhost:node-d3a4d0b2-193a-4029-b4c5-45b496a53b8b:Node d3a4d0b2-193a-4029-b4c5-45b496a53b8b :: false |
createNodes | 1.529s |
2023-08-06 22:30:56 |
2023-08-06 22:30:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-08-06 22:30:56 | ------------------------------------ 2023-08-06 22:30: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-d3a4d0b2-193a-4029-b4c5-45b496a53b8b", "pubsub#title": "Node d3a4d0b2-193a-4029-b4c5-45b496a53b8b" } 2023-08-06 22:30:57 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2023-08-06 22:30:58 | [Mutex] waiting for: [received:nodes:07ca4f1c-73d6-4df1-a484-ffb0d2d9d2f2:localhost] 2023-08-06 22:30:58 | [Mutex] waiting for: [received:nodes:07ca4f1c-73d6-4df1-a484-ffb0d2d9d2f2:localhost] 2023-08-06 22:30:58 | [Mutex] waiting for: [received:nodes:07ca4f1c-73d6-4df1-a484-ffb0d2d9d2f2:localhost] 2023-08-06 22:30:58 | [Mutex] received everything. 2023-08-06 22:30:58 | [Mutex] isItemNotified: received:node:07ca4f1c-73d6-4df1-a484-ffb0d2d9d2f2:localhost:node-d3a4d0b2-193a-4029-b4c5-45b496a53b8b:Node d3a4d0b2-193a-4029-b4c5-45b496a53b8b :: true |
createSubnodes | 1.035s |
2023-08-06 22:30:58 |
2023-08-06 22:30:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-08-06 22:30:58 | ------------------------------------ 2023-08-06 22:30: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-2dc46027-e9db-468f-99c8-d93f0fc374d9", "pubsub#title": "Node 2dc46027-e9db-468f-99c8-d93f0fc374d9" } 2023-08-06 22:30:58 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2023-08-06 22:30:59 | [Mutex] waiting for: [received:nodes:a13a0236-45dc-4980-b1ea-95fd40b7c3dd:localhost] 2023-08-06 22:30:59 | [Mutex] received everything. 2023-08-06 22:30:59 | [Mutex] isItemNotified: received:node:a13a0236-45dc-4980-b1ea-95fd40b7c3dd:localhost:node-2dc46027-e9db-468f-99c8-d93f0fc374d9:Node 2dc46027-e9db-468f-99c8-d93f0fc374d9 :: true |
deleteNodes | 1.019s |
2023-08-06 22:31:03 |
2023-08-06 22:31:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-08-06 22:31:03 | ------------------------------------ 2023-08-06 22:31:03 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-2dc46027-e9db-468f-99c8-d93f0fc374d9" } 2023-08-06 22:31:03 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2023-08-06 22:31:04 | [Mutex] waiting for: [received:nodes:22020bf9-b8a6-4361-813d-cf028cdf4218:localhost] 2023-08-06 22:31:04 | [Mutex] waiting for: [received:nodes:22020bf9-b8a6-4361-813d-cf028cdf4218:localhost] 2023-08-06 22:31:04 | [Mutex] waiting for: [received:nodes:22020bf9-b8a6-4361-813d-cf028cdf4218:localhost] 2023-08-06 22:31:04 | [Mutex] received everything. 2023-08-06 22:31:04 | [Mutex] isItemNotified: received:node:22020bf9-b8a6-4361-813d-cf028cdf4218:localhost:node-2dc46027-e9db-468f-99c8-d93f0fc374d9:Node 2dc46027-e9db-468f-99c8-d93f0fc374d9 :: false |
deleteSubnodes | 1.021s |
2023-08-06 22:31:02 |
2023-08-06 22:31:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-08-06 22:31:02 | ------------------------------------ 2023-08-06 22:31:02 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-d3a4d0b2-193a-4029-b4c5-45b496a53b8b" } 2023-08-06 22:31:02 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2023-08-06 22:31:03 | [Mutex] waiting for: [received:nodes:302c2f7e-3954-436c-af64-a7b614a3db7e:localhost] 2023-08-06 22:31:03 | [Mutex] waiting for: [received:nodes:302c2f7e-3954-436c-af64-a7b614a3db7e:localhost] 2023-08-06 22:31:03 | [Mutex] waiting for: [received:nodes:302c2f7e-3954-436c-af64-a7b614a3db7e:localhost] 2023-08-06 22:31:03 | [Mutex] waiting for: [received:nodes:302c2f7e-3954-436c-af64-a7b614a3db7e:localhost] 2023-08-06 22:31:03 | [Mutex] received everything. 2023-08-06 22:31:03 | [Mutex] isItemNotified: received:node:302c2f7e-3954-436c-af64-a7b614a3db7e:localhost:node-d3a4d0b2-193a-4029-b4c5-45b496a53b8b:Node d3a4d0b2-193a-4029-b4c5-45b496a53b8b :: false 2023-08-06 22:31:03 | [Mutex] waiting for: [received:nodes:6c398107-dfb0-4dc8-8395-4bcb324c30fe:localhost] 2023-08-06 22:31:03 | [Mutex] received everything. 2023-08-06 22:31:03 | [Mutex] isItemNotified: received:node:6c398107-dfb0-4dc8-8395-4bcb324c30fe:localhost:node-d3a4d0b2-193a-4029-b4c5-45b496a53b8b:Node d3a4d0b2-193a-4029-b4c5-45b496a53b8b :: false |
publishItemsToNodes | 0.027s |
2023-08-06 22:31:01 |
2023-08-06 22:31:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-08-06 22:31:01 | ------------------------------------ 2023-08-06 22:31:01 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-d3a4d0b2-193a-4029-b4c5-45b496a53b8b", "entry": "<test>item-5960e84a-8332-41ce-823d-b893805c8157</test>", "item-id": "item-5960e84a-8332-41ce-823d-b893805c8157" } 2023-08-06 22:31:01 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-5960e84a-8332-41ce-823d-b893805c8157" } 2023-08-06 22:31:01 | [Mutex] waiting for: [published:item:notifieditem-5960e84a-8332-41ce-823d-b893805c8157:admin@test-domain.com] 2023-08-06 22:31:01 | [Mutex] received everything. 2023-08-06 22:31:01 | [Mutex] isItemNotified: published:item:notifieditem-5960e84a-8332-41ce-823d-b893805c8157:admin@test-domain.com :: true |
retractItemsFromNodes | 0.056s |
2023-08-06 22:31:01 |
2023-08-06 22:31:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-08-06 22:31:01 | ------------------------------------ 2023-08-06 22:31:01 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-d3a4d0b2-193a-4029-b4c5-45b496a53b8b", "item-id": "item-5960e84a-8332-41ce-823d-b893805c8157" } 2023-08-06 22:31:01 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-5960e84a-8332-41ce-823d-b893805c8157" } 2023-08-06 22:31:01 | [Mutex] received everything. 2023-08-06 22:31:01 | [Mutex] isItemNotified: retracted:item:notifieditem-5960e84a-8332-41ce-823d-b893805c8157:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.057s |
2023-08-06 22:31:01 |
2023-08-06 22:31:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-08-06 22:31:01 | ------------------------------------ 2023-08-06 22:31:01 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-d3a4d0b2-193a-4029-b4c5-45b496a53b8b", "item-id": "item-5960e84a-8332-41ce-823d-b893805c8157" } 2023-08-06 22:31:01 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-d3a4d0b2-193a-4029-b4c5-45b496a53b8b", "item-id": "item-5960e84a-8332-41ce-823d-b893805c8157", "item": [ "<item id=\"item-5960e84a-8332-41ce-823d-b893805c8157\"><test>item-5960e84a-8332-41ce-823d-b893805c8157</test></item>" ] } 2023-08-06 22:31:01 | [Mutex] notify: [retrieved:item:item-5960e84a-8332-41ce-823d-b893805c8157:payload-matches:true:localhost] 2023-08-06 22:31:01 | [Mutex] received everything. 2023-08-06 22:31:01 | [Mutex] isItemNotified: retrieved:item:item-5960e84a-8332-41ce-823d-b893805c8157:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.047s |
2023-08-06 22:31:01 |
2023-08-06 22:31:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-08-06 22:31:01 | ------------------------------------ 2023-08-06 22:31:01 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2023-08-06 22:31:01 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-d3a4d0b2-193a-4029-b4c5-45b496a53b8b", "node-2dc46027-e9db-468f-99c8-d93f0fc374d9" ] } |
retrieveUserSubscriptionsWithRegex | 0.048s |
2023-08-06 22:31:01 |
2023-08-06 22:31:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-08-06 22:31:01 | ------------------------------------ 2023-08-06 22:31:01 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-d3a4d0b2-193a-4029-b4c5-45b496a53b8b)" } 2023-08-06 22:31:01 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.011s |
2023-08-06 22:31:00 |
2023-08-06 22:31:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-08-06 22:31:00 | ------------------------------------ 2023-08-06 22:31:00 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-d3a4d0b2-193a-4029-b4c5-45b496a53b8b", "jids": [ "admin@test-domain.com" ] } 2023-08-06 22:31:00 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.051s |
2023-08-06 22:31:01 |
2023-08-06 22:31:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-08-06 22:31:01 | ------------------------------------ 2023-08-06 22:31:01 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-d3a4d0b2-193a-4029-b4c5-45b496a53b8b", "jids": [ "admin@test-domain.com" ] } 2023-08-06 22:31:01 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |