Test duration : 8.968s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.099s |
2022-02-16 07:57:31 |
2022-02-16 07:57:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-16 07:57:31 | ------------------------------------ 2022-02-16 07:57:31 | [Mutex] waiting for: [configured:node:node-333637c7-5b6b-4c00-aa59-7bca6b957690:node-140f9dd0-f64f-4489-8acd-c5aa8c8ae91d] 2022-02-16 07:57:31 | [Mutex] received everything. 2022-02-16 07:57:31 | [Mutex] isItemNotified: configured:node:node-333637c7-5b6b-4c00-aa59-7bca6b957690:node-140f9dd0-f64f-4489-8acd-c5aa8c8ae91d :: true 2022-02-16 07:57:32 | [Mutex] waiting for: [received:nodes:e0cdf220-4b0a-42ae-bb12-0b3b131a6b29:localhost] 2022-02-16 07:57:32 | [Mutex] received everything. 2022-02-16 07:57:32 | [Mutex] isItemNotified: received:node:e0cdf220-4b0a-42ae-bb12-0b3b131a6b29:localhost:node-333637c7-5b6b-4c00-aa59-7bca6b957690:Node 333637c7-5b6b-4c00-aa59-7bca6b957690 :: true 2022-02-16 07:57:32 | [Mutex] waiting for: [received:nodes:29f65582-ca80-42b4-8fa7-86d81c051f6e:localhost] 2022-02-16 07:57:32 | [Mutex] received everything. 2022-02-16 07:57:32 | [Mutex] isItemNotified: received:node:29f65582-ca80-42b4-8fa7-86d81c051f6e:localhost:node-333637c7-5b6b-4c00-aa59-7bca6b957690:Node 333637c7-5b6b-4c00-aa59-7bca6b957690 :: false |
createNodes | 1.626s |
2022-02-16 07:57:28 |
2022-02-16 07:57:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-16 07:57:28 | ------------------------------------ 2022-02-16 07:57:29 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-333637c7-5b6b-4c00-aa59-7bca6b957690", "pubsub#title": "Node 333637c7-5b6b-4c00-aa59-7bca6b957690" } 2022-02-16 07:57:29 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-16 07:57:30 | [Mutex] waiting for: [received:nodes:d52d2b69-20f0-43e4-9b2a-9516a747be18:localhost] 2022-02-16 07:57:30 | [Mutex] received everything. 2022-02-16 07:57:30 | [Mutex] isItemNotified: received:node:d52d2b69-20f0-43e4-9b2a-9516a747be18:localhost:node-333637c7-5b6b-4c00-aa59-7bca6b957690:Node 333637c7-5b6b-4c00-aa59-7bca6b957690 :: true |
createSubnodes | 1.067s |
2022-02-16 07:57:30 |
2022-02-16 07:57:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-16 07:57:30 | ------------------------------------ 2022-02-16 07:57:30 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-140f9dd0-f64f-4489-8acd-c5aa8c8ae91d", "pubsub#title": "Node 140f9dd0-f64f-4489-8acd-c5aa8c8ae91d" } 2022-02-16 07:57:30 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-16 07:57:31 | [Mutex] waiting for: [received:nodes:9914d40f-33fe-4c54-b137-da11cd1a0f70:localhost] 2022-02-16 07:57:31 | [Mutex] received everything. 2022-02-16 07:57:31 | [Mutex] isItemNotified: received:node:9914d40f-33fe-4c54-b137-da11cd1a0f70:localhost:node-140f9dd0-f64f-4489-8acd-c5aa8c8ae91d:Node 140f9dd0-f64f-4489-8acd-c5aa8c8ae91d :: true |
deleteNodes | 1.018s |
2022-02-16 07:57:36 |
2022-02-16 07:57:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-16 07:57:36 | ------------------------------------ 2022-02-16 07:57:36 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-140f9dd0-f64f-4489-8acd-c5aa8c8ae91d" } 2022-02-16 07:57:36 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-16 07:57:37 | [Mutex] waiting for: [received:nodes:1eef53e2-2e1d-4837-86be-ae507be7c38a:localhost] 2022-02-16 07:57:37 | [Mutex] received everything. 2022-02-16 07:57:37 | [Mutex] isItemNotified: received:node:1eef53e2-2e1d-4837-86be-ae507be7c38a:localhost:node-140f9dd0-f64f-4489-8acd-c5aa8c8ae91d:Node 140f9dd0-f64f-4489-8acd-c5aa8c8ae91d :: false |
deleteSubnodes | 1.028s |
2022-02-16 07:57:35 |
2022-02-16 07:57:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-16 07:57:35 | ------------------------------------ 2022-02-16 07:57:35 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-333637c7-5b6b-4c00-aa59-7bca6b957690" } 2022-02-16 07:57:35 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-16 07:57:36 | [Mutex] waiting for: [received:nodes:d19dc251-b831-4362-b009-6bda1c473a09:localhost] 2022-02-16 07:57:36 | [Mutex] received everything. 2022-02-16 07:57:36 | [Mutex] isItemNotified: received:node:d19dc251-b831-4362-b009-6bda1c473a09:localhost:node-333637c7-5b6b-4c00-aa59-7bca6b957690:Node 333637c7-5b6b-4c00-aa59-7bca6b957690 :: false 2022-02-16 07:57:36 | [Mutex] waiting for: [received:nodes:08a387e2-5e1a-4a0c-bf78-81073bb3bd91:localhost] 2022-02-16 07:57:36 | [Mutex] received everything. 2022-02-16 07:57:36 | [Mutex] isItemNotified: received:node:08a387e2-5e1a-4a0c-bf78-81073bb3bd91:localhost:node-333637c7-5b6b-4c00-aa59-7bca6b957690:Node 333637c7-5b6b-4c00-aa59-7bca6b957690 :: false |
publishItemsToNodes | 0.049s |
2022-02-16 07:57:33 |
2022-02-16 07:57:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-16 07:57:33 | ------------------------------------ 2022-02-16 07:57:33 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-333637c7-5b6b-4c00-aa59-7bca6b957690", "entry": "<test>item-11e48786-a75b-4dfc-8363-80c5172da973</test>", "item-id": "item-11e48786-a75b-4dfc-8363-80c5172da973" } 2022-02-16 07:57:33 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-11e48786-a75b-4dfc-8363-80c5172da973" } 2022-02-16 07:57:33 | [Mutex] waiting for: [published:item:notifieditem-11e48786-a75b-4dfc-8363-80c5172da973:admin@test-domain.com] 2022-02-16 07:57:33 | [Mutex] received everything. 2022-02-16 07:57:33 | [Mutex] isItemNotified: published:item:notifieditem-11e48786-a75b-4dfc-8363-80c5172da973:admin@test-domain.com :: true |
retractItemsFromNodes | 0.084s |
2022-02-16 07:57:33 |
2022-02-16 07:57:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-16 07:57:33 | ------------------------------------ 2022-02-16 07:57:33 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-333637c7-5b6b-4c00-aa59-7bca6b957690", "item-id": "item-11e48786-a75b-4dfc-8363-80c5172da973" } 2022-02-16 07:57:34 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-11e48786-a75b-4dfc-8363-80c5172da973" } 2022-02-16 07:57:34 | [Mutex] received everything. 2022-02-16 07:57:34 | [Mutex] isItemNotified: retracted:item:notifieditem-11e48786-a75b-4dfc-8363-80c5172da973:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.061s |
2022-02-16 07:57:33 |
2022-02-16 07:57:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-16 07:57:33 | ------------------------------------ 2022-02-16 07:57:33 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-333637c7-5b6b-4c00-aa59-7bca6b957690", "item-id": "item-11e48786-a75b-4dfc-8363-80c5172da973" } 2022-02-16 07:57:33 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-333637c7-5b6b-4c00-aa59-7bca6b957690", "item-id": "item-11e48786-a75b-4dfc-8363-80c5172da973", "item": [ "<item id=\"item-11e48786-a75b-4dfc-8363-80c5172da973\"><test>item-11e48786-a75b-4dfc-8363-80c5172da973</test></item>" ] } 2022-02-16 07:57:33 | [Mutex] notify: [retrieved:item:item-11e48786-a75b-4dfc-8363-80c5172da973:payload-matches:true:localhost] 2022-02-16 07:57:33 | [Mutex] received everything. 2022-02-16 07:57:33 | [Mutex] isItemNotified: retrieved:item:item-11e48786-a75b-4dfc-8363-80c5172da973:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.055s |
2022-02-16 07:57:33 |
2022-02-16 07:57:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-16 07:57:33 | ------------------------------------ 2022-02-16 07:57:33 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-02-16 07:57:33 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-333637c7-5b6b-4c00-aa59-7bca6b957690", "test", "node-140f9dd0-f64f-4489-8acd-c5aa8c8ae91d" ] } |
retrieveUserSubscriptionsWithRegex | 0.060s |
2022-02-16 07:57:33 |
2022-02-16 07:57:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-16 07:57:33 | ------------------------------------ 2022-02-16 07:57:33 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-333637c7-5b6b-4c00-aa59-7bca6b957690)" } 2022-02-16 07:57:33 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.017s |
2022-02-16 07:57:32 |
2022-02-16 07:57:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-16 07:57:32 | ------------------------------------ 2022-02-16 07:57:32 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-333637c7-5b6b-4c00-aa59-7bca6b957690", "jids": [ "admin@test-domain.com" ] } 2022-02-16 07:57:32 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.075s |
2022-02-16 07:57:34 |
2022-02-16 07:57:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-16 07:57:34 | ------------------------------------ 2022-02-16 07:57:34 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-333637c7-5b6b-4c00-aa59-7bca6b957690", "jids": [ "admin@test-domain.com" ] } 2022-02-16 07:57:34 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |