Test duration : 9.071s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.114s |
2020-08-27 22:59:23 |
2020-08-27 22:59:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-27 22:59:23 | ------------------------------------ 2020-08-27 22:59:23 | [Mutex] waiting for: [configured:node:node-582acafb-617c-474d-950a-e5642ed83b4f:node-55d619c2-edf1-4590-8ecb-8fd67203e4d6] 2020-08-27 22:59:23 | [Mutex] received everything. 2020-08-27 22:59:23 | [Mutex] isItemNotified: configured:node:node-582acafb-617c-474d-950a-e5642ed83b4f:node-55d619c2-edf1-4590-8ecb-8fd67203e4d6 :: true 2020-08-27 22:59:24 | [Mutex] waiting for: [received:nodes:bd4469fc-e269-4edd-ae84-362c4c7167a7:localhost] 2020-08-27 22:59:24 | [Mutex] received everything. 2020-08-27 22:59:24 | [Mutex] isItemNotified: received:node:bd4469fc-e269-4edd-ae84-362c4c7167a7:localhost:node-582acafb-617c-474d-950a-e5642ed83b4f:Node 582acafb-617c-474d-950a-e5642ed83b4f :: true 2020-08-27 22:59:24 | [Mutex] waiting for: [received:nodes:8fac89d3-67c5-4973-82c4-3cdaa656a9bb:localhost] 2020-08-27 22:59:24 | [Mutex] received everything. 2020-08-27 22:59:24 | [Mutex] isItemNotified: received:node:8fac89d3-67c5-4973-82c4-3cdaa656a9bb:localhost:node-582acafb-617c-474d-950a-e5642ed83b4f:Node 582acafb-617c-474d-950a-e5642ed83b4f :: false |
createNodes | 1.718s |
2020-08-27 22:59:20 |
2020-08-27 22:59:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-27 22:59:20 | ------------------------------------ 2020-08-27 22:59: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-582acafb-617c-474d-950a-e5642ed83b4f", "pubsub#title": "Node 582acafb-617c-474d-950a-e5642ed83b4f" } 2020-08-27 22:59:21 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-08-27 22:59:22 | [Mutex] waiting for: [received:nodes:5e1ec0da-b1e5-4061-b9e0-a02cd1035ff7:localhost] 2020-08-27 22:59:22 | [Mutex] waiting for: [received:nodes:5e1ec0da-b1e5-4061-b9e0-a02cd1035ff7:localhost] 2020-08-27 22:59:22 | [Mutex] received everything. 2020-08-27 22:59:22 | [Mutex] isItemNotified: received:node:5e1ec0da-b1e5-4061-b9e0-a02cd1035ff7:localhost:node-582acafb-617c-474d-950a-e5642ed83b4f:Node 582acafb-617c-474d-950a-e5642ed83b4f :: true |
createSubnodes | 1.029s |
2020-08-27 22:59:22 |
2020-08-27 22:59:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-27 22:59:22 | ------------------------------------ 2020-08-27 22:59: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-55d619c2-edf1-4590-8ecb-8fd67203e4d6", "pubsub#title": "Node 55d619c2-edf1-4590-8ecb-8fd67203e4d6" } 2020-08-27 22:59:22 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-08-27 22:59:23 | [Mutex] waiting for: [received:nodes:104c3dee-3ca7-4ae1-8e3a-064ee74b5943:localhost] 2020-08-27 22:59:23 | [Mutex] received everything. 2020-08-27 22:59:23 | [Mutex] isItemNotified: received:node:104c3dee-3ca7-4ae1-8e3a-064ee74b5943:localhost:node-55d619c2-edf1-4590-8ecb-8fd67203e4d6:Node 55d619c2-edf1-4590-8ecb-8fd67203e4d6 :: true |
deleteNodes | 1.026s |
2020-08-27 22:59:28 |
2020-08-27 22:59:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-27 22:59:28 | ------------------------------------ 2020-08-27 22:59:28 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-55d619c2-edf1-4590-8ecb-8fd67203e4d6" } 2020-08-27 22:59:28 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-08-27 22:59:29 | [Mutex] waiting for: [received:nodes:03f5aece-59b4-403c-bd1a-bf1cd3b312ef:localhost] 2020-08-27 22:59:29 | [Mutex] received everything. 2020-08-27 22:59:29 | [Mutex] isItemNotified: received:node:03f5aece-59b4-403c-bd1a-bf1cd3b312ef:localhost:node-55d619c2-edf1-4590-8ecb-8fd67203e4d6:Node 55d619c2-edf1-4590-8ecb-8fd67203e4d6 :: false |
deleteSubnodes | 1.028s |
2020-08-27 22:59:27 |
2020-08-27 22:59:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-27 22:59:27 | ------------------------------------ 2020-08-27 22:59:27 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-582acafb-617c-474d-950a-e5642ed83b4f" } 2020-08-27 22:59:27 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-08-27 22:59:28 | [Mutex] waiting for: [received:nodes:e4b87128-5aee-4ef6-bf4c-397fe294325a:localhost] 2020-08-27 22:59:28 | [Mutex] received everything. 2020-08-27 22:59:28 | [Mutex] isItemNotified: received:node:e4b87128-5aee-4ef6-bf4c-397fe294325a:localhost:node-582acafb-617c-474d-950a-e5642ed83b4f:Node 582acafb-617c-474d-950a-e5642ed83b4f :: false 2020-08-27 22:59:28 | [Mutex] waiting for: [received:nodes:7189f592-2bdd-41c0-9cb1-0285dbd17334:localhost] 2020-08-27 22:59:28 | [Mutex] received everything. 2020-08-27 22:59:28 | [Mutex] isItemNotified: received:node:7189f592-2bdd-41c0-9cb1-0285dbd17334:localhost:node-582acafb-617c-474d-950a-e5642ed83b4f:Node 582acafb-617c-474d-950a-e5642ed83b4f :: false |
publishItemsToNodes | 0.044s |
2020-08-27 22:59:25 |
2020-08-27 22:59:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-27 22:59:25 | ------------------------------------ 2020-08-27 22:59:25 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-582acafb-617c-474d-950a-e5642ed83b4f", "entry": "<test>item-c0c7b3fe-a9e0-4a8e-abf7-31350e9a2189</test>", "item-id": "item-c0c7b3fe-a9e0-4a8e-abf7-31350e9a2189" } 2020-08-27 22:59:25 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-c0c7b3fe-a9e0-4a8e-abf7-31350e9a2189" } 2020-08-27 22:59:25 | [Mutex] waiting for: [published:item:notifieditem-c0c7b3fe-a9e0-4a8e-abf7-31350e9a2189:admin@test-domain.com] 2020-08-27 22:59:25 | [Mutex] received everything. 2020-08-27 22:59:25 | [Mutex] isItemNotified: published:item:notifieditem-c0c7b3fe-a9e0-4a8e-abf7-31350e9a2189:admin@test-domain.com :: true |
retractItemsFromNodes | 0.060s |
2020-08-27 22:59:25 |
2020-08-27 22:59:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-27 22:59:25 | ------------------------------------ 2020-08-27 22:59:25 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-582acafb-617c-474d-950a-e5642ed83b4f", "item-id": "item-c0c7b3fe-a9e0-4a8e-abf7-31350e9a2189" } 2020-08-27 22:59:26 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-c0c7b3fe-a9e0-4a8e-abf7-31350e9a2189" } 2020-08-27 22:59:26 | [Mutex] received everything. 2020-08-27 22:59:26 | [Mutex] isItemNotified: retracted:item:notifieditem-c0c7b3fe-a9e0-4a8e-abf7-31350e9a2189:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.073s |
2020-08-27 22:59:25 |
2020-08-27 22:59:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-27 22:59:25 | ------------------------------------ 2020-08-27 22:59:25 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-582acafb-617c-474d-950a-e5642ed83b4f", "item-id": "item-c0c7b3fe-a9e0-4a8e-abf7-31350e9a2189" } 2020-08-27 22:59:25 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-582acafb-617c-474d-950a-e5642ed83b4f", "item-id": "item-c0c7b3fe-a9e0-4a8e-abf7-31350e9a2189", "item": [ "<item id=\"item-c0c7b3fe-a9e0-4a8e-abf7-31350e9a2189\"><test>item-c0c7b3fe-a9e0-4a8e-abf7-31350e9a2189</test></item>" ] } 2020-08-27 22:59:25 | [Mutex] notify: [retrieved:item:item-c0c7b3fe-a9e0-4a8e-abf7-31350e9a2189:payload-matches:true:localhost] 2020-08-27 22:59:25 | [Mutex] received everything. 2020-08-27 22:59:25 | [Mutex] isItemNotified: retrieved:item:item-c0c7b3fe-a9e0-4a8e-abf7-31350e9a2189:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2020-08-27 22:59:25 |
2020-08-27 22:59:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-27 22:59:25 | ------------------------------------ 2020-08-27 22:59:25 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-08-27 22:59:25 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-55d619c2-edf1-4590-8ecb-8fd67203e4d6", "test", "node-582acafb-617c-474d-950a-e5642ed83b4f" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2020-08-27 22:59:25 |
2020-08-27 22:59:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-27 22:59:25 | ------------------------------------ 2020-08-27 22:59:25 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-582acafb-617c-474d-950a-e5642ed83b4f)" } 2020-08-27 22:59:25 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.010s |
2020-08-27 22:59:24 |
2020-08-27 22:59:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-27 22:59:24 | ------------------------------------ 2020-08-27 22:59:24 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-582acafb-617c-474d-950a-e5642ed83b4f", "jids": [ "admin@test-domain.com" ] } 2020-08-27 22:59:24 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.079s |
2020-08-27 22:59:26 |
2020-08-27 22:59:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-27 22:59:26 | ------------------------------------ 2020-08-27 22:59:26 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-582acafb-617c-474d-950a-e5642ed83b4f", "jids": [ "admin@test-domain.com" ] } 2020-08-27 22:59:26 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |