Test duration : 8.899s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.103s |
2021-11-15 22:51:35 |
2021-11-15 22:51:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-11-15 22:51:35 | ------------------------------------ 2021-11-15 22:51:35 | [Mutex] waiting for: [configured:node:node-3e230bc0-3175-43cc-b4ba-afb436ec2ff9:node-9baa20d0-cf2d-4416-913d-c9a20626c049] 2021-11-15 22:51:35 | [Mutex] received everything. 2021-11-15 22:51:35 | [Mutex] isItemNotified: configured:node:node-3e230bc0-3175-43cc-b4ba-afb436ec2ff9:node-9baa20d0-cf2d-4416-913d-c9a20626c049 :: true 2021-11-15 22:51:36 | [Mutex] waiting for: [received:nodes:a35eb070-8744-45b8-b8ca-7a227b069460:localhost] 2021-11-15 22:51:36 | [Mutex] received everything. 2021-11-15 22:51:36 | [Mutex] isItemNotified: received:node:a35eb070-8744-45b8-b8ca-7a227b069460:localhost:node-3e230bc0-3175-43cc-b4ba-afb436ec2ff9:Node 3e230bc0-3175-43cc-b4ba-afb436ec2ff9 :: true 2021-11-15 22:51:36 | [Mutex] waiting for: [received:nodes:8e3583f2-4ae7-4373-af88-93f4582ca65a:localhost] 2021-11-15 22:51:36 | [Mutex] received everything. 2021-11-15 22:51:36 | [Mutex] isItemNotified: received:node:8e3583f2-4ae7-4373-af88-93f4582ca65a:localhost:node-3e230bc0-3175-43cc-b4ba-afb436ec2ff9:Node 3e230bc0-3175-43cc-b4ba-afb436ec2ff9 :: false |
createNodes | 1.635s |
2021-11-15 22:51:32 |
2021-11-15 22:51:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-11-15 22:51:32 | ------------------------------------ 2021-11-15 22:51:32 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-3e230bc0-3175-43cc-b4ba-afb436ec2ff9", "pubsub#title": "Node 3e230bc0-3175-43cc-b4ba-afb436ec2ff9" } 2021-11-15 22:51:33 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-11-15 22:51:34 | [Mutex] waiting for: [received:nodes:6108a75c-5736-40aa-91da-9096a10e1cb0:localhost] 2021-11-15 22:51:34 | [Mutex] received everything. 2021-11-15 22:51:34 | [Mutex] isItemNotified: received:node:6108a75c-5736-40aa-91da-9096a10e1cb0:localhost:node-3e230bc0-3175-43cc-b4ba-afb436ec2ff9:Node 3e230bc0-3175-43cc-b4ba-afb436ec2ff9 :: true |
createSubnodes | 1.023s |
2021-11-15 22:51:34 |
2021-11-15 22:51:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-11-15 22:51:34 | ------------------------------------ 2021-11-15 22:51:34 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-9baa20d0-cf2d-4416-913d-c9a20626c049", "pubsub#title": "Node 9baa20d0-cf2d-4416-913d-c9a20626c049" } 2021-11-15 22:51:34 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-11-15 22:51:35 | [Mutex] waiting for: [received:nodes:51af43cc-0d62-4c3d-93e2-17de871230eb:localhost] 2021-11-15 22:51:35 | [Mutex] received everything. 2021-11-15 22:51:35 | [Mutex] isItemNotified: received:node:51af43cc-0d62-4c3d-93e2-17de871230eb:localhost:node-9baa20d0-cf2d-4416-913d-c9a20626c049:Node 9baa20d0-cf2d-4416-913d-c9a20626c049 :: true |
deleteNodes | 1.020s |
2021-11-15 22:51:39 |
2021-11-15 22:51:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-11-15 22:51:39 | ------------------------------------ 2021-11-15 22:51:39 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-9baa20d0-cf2d-4416-913d-c9a20626c049" } 2021-11-15 22:51:39 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-11-15 22:51:40 | [Mutex] waiting for: [received:nodes:af2af055-abc0-4d8f-b3b7-f195ee57b609:localhost] 2021-11-15 22:51:40 | [Mutex] received everything. 2021-11-15 22:51:40 | [Mutex] isItemNotified: received:node:af2af055-abc0-4d8f-b3b7-f195ee57b609:localhost:node-9baa20d0-cf2d-4416-913d-c9a20626c049:Node 9baa20d0-cf2d-4416-913d-c9a20626c049 :: false |
deleteSubnodes | 1.026s |
2021-11-15 22:51:38 |
2021-11-15 22:51:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-11-15 22:51:38 | ------------------------------------ 2021-11-15 22:51:38 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-3e230bc0-3175-43cc-b4ba-afb436ec2ff9" } 2021-11-15 22:51:38 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-11-15 22:51:39 | [Mutex] waiting for: [received:nodes:5b9a77d2-aaab-4701-893d-46e19a97c032:localhost] 2021-11-15 22:51:39 | [Mutex] waiting for: [received:nodes:5b9a77d2-aaab-4701-893d-46e19a97c032:localhost] 2021-11-15 22:51:39 | [Mutex] received everything. 2021-11-15 22:51:39 | [Mutex] isItemNotified: received:node:5b9a77d2-aaab-4701-893d-46e19a97c032:localhost:node-3e230bc0-3175-43cc-b4ba-afb436ec2ff9:Node 3e230bc0-3175-43cc-b4ba-afb436ec2ff9 :: false 2021-11-15 22:51:39 | [Mutex] waiting for: [received:nodes:8ef83c14-d55e-4a1d-8e73-f7dd73f1782c:localhost] 2021-11-15 22:51:39 | [Mutex] received everything. 2021-11-15 22:51:39 | [Mutex] isItemNotified: received:node:8ef83c14-d55e-4a1d-8e73-f7dd73f1782c:localhost:node-3e230bc0-3175-43cc-b4ba-afb436ec2ff9:Node 3e230bc0-3175-43cc-b4ba-afb436ec2ff9 :: false |
publishItemsToNodes | 0.039s |
2021-11-15 22:51:37 |
2021-11-15 22:51:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-11-15 22:51:37 | ------------------------------------ 2021-11-15 22:51:37 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-3e230bc0-3175-43cc-b4ba-afb436ec2ff9", "entry": "<test>item-b5c40f7b-cc9f-445a-85af-3259e5ce0345</test>", "item-id": "item-b5c40f7b-cc9f-445a-85af-3259e5ce0345" } 2021-11-15 22:51:37 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-b5c40f7b-cc9f-445a-85af-3259e5ce0345" } 2021-11-15 22:51:37 | [Mutex] waiting for: [published:item:notifieditem-b5c40f7b-cc9f-445a-85af-3259e5ce0345:admin@test-domain.com] 2021-11-15 22:51:37 | [Mutex] received everything. 2021-11-15 22:51:37 | [Mutex] isItemNotified: published:item:notifieditem-b5c40f7b-cc9f-445a-85af-3259e5ce0345:admin@test-domain.com :: true |
retractItemsFromNodes | 0.056s |
2021-11-15 22:51:37 |
2021-11-15 22:51:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-11-15 22:51:37 | ------------------------------------ 2021-11-15 22:51:37 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-3e230bc0-3175-43cc-b4ba-afb436ec2ff9", "item-id": "item-b5c40f7b-cc9f-445a-85af-3259e5ce0345" } 2021-11-15 22:51:37 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-b5c40f7b-cc9f-445a-85af-3259e5ce0345" } 2021-11-15 22:51:37 | [Mutex] waiting for: [retracted:item:notifieditem-b5c40f7b-cc9f-445a-85af-3259e5ce0345:admin@test-domain.com] 2021-11-15 22:51:37 | [Mutex] received everything. 2021-11-15 22:51:37 | [Mutex] isItemNotified: retracted:item:notifieditem-b5c40f7b-cc9f-445a-85af-3259e5ce0345:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.063s |
2021-11-15 22:51:37 |
2021-11-15 22:51:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-11-15 22:51:37 | ------------------------------------ 2021-11-15 22:51:37 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-3e230bc0-3175-43cc-b4ba-afb436ec2ff9", "item-id": "item-b5c40f7b-cc9f-445a-85af-3259e5ce0345" } 2021-11-15 22:51:37 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-3e230bc0-3175-43cc-b4ba-afb436ec2ff9", "item-id": "item-b5c40f7b-cc9f-445a-85af-3259e5ce0345", "item": [ "<item id=\"item-b5c40f7b-cc9f-445a-85af-3259e5ce0345\"><test>item-b5c40f7b-cc9f-445a-85af-3259e5ce0345</test></item>" ] } 2021-11-15 22:51:37 | [Mutex] notify: [retrieved:item:item-b5c40f7b-cc9f-445a-85af-3259e5ce0345:payload-matches:true:localhost] 2021-11-15 22:51:37 | [Mutex] received everything. 2021-11-15 22:51:37 | [Mutex] isItemNotified: retrieved:item:item-b5c40f7b-cc9f-445a-85af-3259e5ce0345:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2021-11-15 22:51:37 |
2021-11-15 22:51:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-11-15 22:51:37 | ------------------------------------ 2021-11-15 22:51:37 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-11-15 22:51:37 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-9baa20d0-cf2d-4416-913d-c9a20626c049", "test", "node-3e230bc0-3175-43cc-b4ba-afb436ec2ff9" ] } |
retrieveUserSubscriptionsWithRegex | 0.048s |
2021-11-15 22:51:37 |
2021-11-15 22:51:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-11-15 22:51:37 | ------------------------------------ 2021-11-15 22:51:37 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-3e230bc0-3175-43cc-b4ba-afb436ec2ff9)" } 2021-11-15 22:51:37 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.014s |
2021-11-15 22:51:36 |
2021-11-15 22:51:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-11-15 22:51:36 | ------------------------------------ 2021-11-15 22:51:36 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-3e230bc0-3175-43cc-b4ba-afb436ec2ff9", "jids": [ "admin@test-domain.com" ] } 2021-11-15 22:51:36 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.084s |
2021-11-15 22:51:37 |
2021-11-15 22:51:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-11-15 22:51:37 | ------------------------------------ 2021-11-15 22:51:37 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-3e230bc0-3175-43cc-b4ba-afb436ec2ff9", "jids": [ "admin@test-domain.com" ] } 2021-11-15 22:51:37 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |