Test duration : 8.695s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.108s |
2022-06-14 22:33:23 |
2022-06-14 22:33:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-14 22:33:23 | ------------------------------------ 2022-06-14 22:33:23 | [Mutex] waiting for: [configured:node:node-6f29b237-e554-4250-b64e-1eb6198d5e29:node-3af31fc8-98d4-4a2c-88a4-d18b66678754] 2022-06-14 22:33:23 | [Mutex] received everything. 2022-06-14 22:33:23 | [Mutex] isItemNotified: configured:node:node-6f29b237-e554-4250-b64e-1eb6198d5e29:node-3af31fc8-98d4-4a2c-88a4-d18b66678754 :: true 2022-06-14 22:33:24 | [Mutex] waiting for: [received:nodes:f5e0d8d7-0f65-49e7-bf52-8b4e877f85fd:localhost] 2022-06-14 22:33:24 | [Mutex] received everything. 2022-06-14 22:33:24 | [Mutex] isItemNotified: received:node:f5e0d8d7-0f65-49e7-bf52-8b4e877f85fd:localhost:node-6f29b237-e554-4250-b64e-1eb6198d5e29:Node 6f29b237-e554-4250-b64e-1eb6198d5e29 :: true 2022-06-14 22:33:24 | [Mutex] waiting for: [received:nodes:4a235f8c-7f8f-4488-8bf2-cef80cba71ff:localhost] 2022-06-14 22:33:24 | [Mutex] received everything. 2022-06-14 22:33:24 | [Mutex] isItemNotified: received:node:4a235f8c-7f8f-4488-8bf2-cef80cba71ff:localhost:node-6f29b237-e554-4250-b64e-1eb6198d5e29:Node 6f29b237-e554-4250-b64e-1eb6198d5e29 :: false |
createNodes | 1.609s |
2022-06-14 22:33:20 |
2022-06-14 22:33:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-14 22:33:20 | ------------------------------------ 2022-06-14 22:33:21 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-6f29b237-e554-4250-b64e-1eb6198d5e29", "pubsub#title": "Node 6f29b237-e554-4250-b64e-1eb6198d5e29" } 2022-06-14 22:33:21 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-06-14 22:33:22 | [Mutex] waiting for: [received:nodes:cc4891c9-e008-4e56-98bd-9ce404b9ba11:localhost] 2022-06-14 22:33:22 | [Mutex] received everything. 2022-06-14 22:33:22 | [Mutex] isItemNotified: received:node:cc4891c9-e008-4e56-98bd-9ce404b9ba11:localhost:node-6f29b237-e554-4250-b64e-1eb6198d5e29:Node 6f29b237-e554-4250-b64e-1eb6198d5e29 :: true |
createSubnodes | 1.023s |
2022-06-14 22:33:22 |
2022-06-14 22:33:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-14 22:33:22 | ------------------------------------ 2022-06-14 22:33:22 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-3af31fc8-98d4-4a2c-88a4-d18b66678754", "pubsub#title": "Node 3af31fc8-98d4-4a2c-88a4-d18b66678754" } 2022-06-14 22:33:22 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-06-14 22:33:23 | [Mutex] waiting for: [received:nodes:283e3109-9f98-4757-a11a-296fb7623ad6:localhost] 2022-06-14 22:33:23 | [Mutex] waiting for: [received:nodes:283e3109-9f98-4757-a11a-296fb7623ad6:localhost] 2022-06-14 22:33:23 | [Mutex] received everything. 2022-06-14 22:33:23 | [Mutex] isItemNotified: received:node:283e3109-9f98-4757-a11a-296fb7623ad6:localhost:node-3af31fc8-98d4-4a2c-88a4-d18b66678754:Node 3af31fc8-98d4-4a2c-88a4-d18b66678754 :: true |
deleteNodes | 1.026s |
2022-06-14 22:33:27 |
2022-06-14 22:33:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-14 22:33:27 | ------------------------------------ 2022-06-14 22:33:27 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-3af31fc8-98d4-4a2c-88a4-d18b66678754" } 2022-06-14 22:33:27 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-06-14 22:33:28 | [Mutex] waiting for: [received:nodes:b9360346-8017-41ad-8e0e-b1007aef2b8b:localhost] 2022-06-14 22:33:28 | [Mutex] received everything. 2022-06-14 22:33:28 | [Mutex] isItemNotified: received:node:b9360346-8017-41ad-8e0e-b1007aef2b8b:localhost:node-3af31fc8-98d4-4a2c-88a4-d18b66678754:Node 3af31fc8-98d4-4a2c-88a4-d18b66678754 :: false |
deleteSubnodes | 1.026s |
2022-06-14 22:33:26 |
2022-06-14 22:33:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-14 22:33:26 | ------------------------------------ 2022-06-14 22:33:26 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-6f29b237-e554-4250-b64e-1eb6198d5e29" } 2022-06-14 22:33:26 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-06-14 22:33:27 | [Mutex] waiting for: [received:nodes:63eea643-948d-4394-91a3-16ab88df37a7:localhost] 2022-06-14 22:33:27 | [Mutex] received everything. 2022-06-14 22:33:27 | [Mutex] isItemNotified: received:node:63eea643-948d-4394-91a3-16ab88df37a7:localhost:node-6f29b237-e554-4250-b64e-1eb6198d5e29:Node 6f29b237-e554-4250-b64e-1eb6198d5e29 :: false 2022-06-14 22:33:27 | [Mutex] waiting for: [received:nodes:3d4affe2-8378-4674-93d1-07738a87d463:localhost] 2022-06-14 22:33:27 | [Mutex] received everything. 2022-06-14 22:33:27 | [Mutex] isItemNotified: received:node:3d4affe2-8378-4674-93d1-07738a87d463:localhost:node-6f29b237-e554-4250-b64e-1eb6198d5e29:Node 6f29b237-e554-4250-b64e-1eb6198d5e29 :: false |
publishItemsToNodes | 0.051s |
2022-06-14 22:33:25 |
2022-06-14 22:33:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-14 22:33:25 | ------------------------------------ 2022-06-14 22:33:25 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-6f29b237-e554-4250-b64e-1eb6198d5e29", "entry": "<test>item-25f5a79d-5731-4d2e-a846-75596bcf69f2</test>", "item-id": "item-25f5a79d-5731-4d2e-a846-75596bcf69f2" } 2022-06-14 22:33:25 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-25f5a79d-5731-4d2e-a846-75596bcf69f2" } 2022-06-14 22:33:25 | [Mutex] waiting for: [published:item:notifieditem-25f5a79d-5731-4d2e-a846-75596bcf69f2:admin@test-domain.com] 2022-06-14 22:33:25 | [Mutex] received everything. 2022-06-14 22:33:25 | [Mutex] isItemNotified: published:item:notifieditem-25f5a79d-5731-4d2e-a846-75596bcf69f2:admin@test-domain.com :: true |
retractItemsFromNodes | 0.082s |
2022-06-14 22:33:25 |
2022-06-14 22:33:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-14 22:33:25 | ------------------------------------ 2022-06-14 22:33:25 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-6f29b237-e554-4250-b64e-1eb6198d5e29", "item-id": "item-25f5a79d-5731-4d2e-a846-75596bcf69f2" } 2022-06-14 22:33:25 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-25f5a79d-5731-4d2e-a846-75596bcf69f2" } 2022-06-14 22:33:25 | [Mutex] received everything. 2022-06-14 22:33:25 | [Mutex] isItemNotified: retracted:item:notifieditem-25f5a79d-5731-4d2e-a846-75596bcf69f2:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.058s |
2022-06-14 22:33:25 |
2022-06-14 22:33:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-14 22:33:25 | ------------------------------------ 2022-06-14 22:33:25 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-6f29b237-e554-4250-b64e-1eb6198d5e29", "item-id": "item-25f5a79d-5731-4d2e-a846-75596bcf69f2" } 2022-06-14 22:33:25 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-6f29b237-e554-4250-b64e-1eb6198d5e29", "item-id": "item-25f5a79d-5731-4d2e-a846-75596bcf69f2", "item": [ "<item id=\"item-25f5a79d-5731-4d2e-a846-75596bcf69f2\"><test>item-25f5a79d-5731-4d2e-a846-75596bcf69f2</test></item>" ] } 2022-06-14 22:33:25 | [Mutex] notify: [retrieved:item:item-25f5a79d-5731-4d2e-a846-75596bcf69f2:payload-matches:true:localhost] 2022-06-14 22:33:25 | [Mutex] received everything. 2022-06-14 22:33:25 | [Mutex] isItemNotified: retrieved:item:item-25f5a79d-5731-4d2e-a846-75596bcf69f2:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.047s |
2022-06-14 22:33:25 |
2022-06-14 22:33:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-14 22:33:25 | ------------------------------------ 2022-06-14 22:33:25 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-06-14 22:33:25 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-6f29b237-e554-4250-b64e-1eb6198d5e29", "test", "node-3af31fc8-98d4-4a2c-88a4-d18b66678754" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2022-06-14 22:33:25 |
2022-06-14 22:33:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-14 22:33:25 | ------------------------------------ 2022-06-14 22:33:25 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-6f29b237-e554-4250-b64e-1eb6198d5e29)" } 2022-06-14 22:33:25 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.011s |
2022-06-14 22:33:24 |
2022-06-14 22:33:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-14 22:33:24 | ------------------------------------ 2022-06-14 22:33:24 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-6f29b237-e554-4250-b64e-1eb6198d5e29", "jids": [ "admin@test-domain.com" ] } 2022-06-14 22:33:24 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.047s |
2022-06-14 22:33:25 |
2022-06-14 22:33:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-14 22:33:25 | ------------------------------------ 2022-06-14 22:33:25 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-6f29b237-e554-4250-b64e-1eb6198d5e29", "jids": [ "admin@test-domain.com" ] } 2022-06-14 22:33:25 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |