Test duration : 9.035s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.103s |
2022-01-16 22:25:37 |
2022-01-16 22:25:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-01-16 22:25:37 | ------------------------------------ 2022-01-16 22:25:37 | [Mutex] waiting for: [configured:node:node-edbddf02-c04e-4ed4-b0c7-22f526bf267b:node-8b90b5a5-9337-48ce-9b62-d33157d222d5] 2022-01-16 22:25:37 | [Mutex] received everything. 2022-01-16 22:25:37 | [Mutex] isItemNotified: configured:node:node-edbddf02-c04e-4ed4-b0c7-22f526bf267b:node-8b90b5a5-9337-48ce-9b62-d33157d222d5 :: true 2022-01-16 22:25:38 | [Mutex] waiting for: [received:nodes:c0a9b8d2-ecaf-430d-af2b-79376c4993fa:localhost] 2022-01-16 22:25:38 | [Mutex] received everything. 2022-01-16 22:25:38 | [Mutex] isItemNotified: received:node:c0a9b8d2-ecaf-430d-af2b-79376c4993fa:localhost:node-edbddf02-c04e-4ed4-b0c7-22f526bf267b:Node edbddf02-c04e-4ed4-b0c7-22f526bf267b :: true 2022-01-16 22:25:38 | [Mutex] waiting for: [received:nodes:82d36053-97c7-405e-bafe-7ec6d63e84e5:localhost] 2022-01-16 22:25:38 | [Mutex] received everything. 2022-01-16 22:25:38 | [Mutex] isItemNotified: received:node:82d36053-97c7-405e-bafe-7ec6d63e84e5:localhost:node-edbddf02-c04e-4ed4-b0c7-22f526bf267b:Node edbddf02-c04e-4ed4-b0c7-22f526bf267b :: false |
createNodes | 1.763s |
2022-01-16 22:25:34 |
2022-01-16 22:25:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-01-16 22:25:34 | ------------------------------------ 2022-01-16 22:25:34 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-edbddf02-c04e-4ed4-b0c7-22f526bf267b", "pubsub#title": "Node edbddf02-c04e-4ed4-b0c7-22f526bf267b" } 2022-01-16 22:25:34 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-01-16 22:25:35 | [Mutex] waiting for: [received:nodes:76e47492-e169-4db5-9c2c-15fc6d6deafc:localhost] 2022-01-16 22:25:35 | [Mutex] received everything. 2022-01-16 22:25:35 | [Mutex] isItemNotified: received:node:76e47492-e169-4db5-9c2c-15fc6d6deafc:localhost:node-edbddf02-c04e-4ed4-b0c7-22f526bf267b:Node edbddf02-c04e-4ed4-b0c7-22f526bf267b :: true |
createSubnodes | 1.076s |
2022-01-16 22:25:35 |
2022-01-16 22:25:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-01-16 22:25:35 | ------------------------------------ 2022-01-16 22:25:35 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-8b90b5a5-9337-48ce-9b62-d33157d222d5", "pubsub#title": "Node 8b90b5a5-9337-48ce-9b62-d33157d222d5" } 2022-01-16 22:25:35 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-01-16 22:25:36 | [Mutex] waiting for: [received:nodes:5a8e59fb-454a-41bc-8ea9-62b4dedf879d:localhost] 2022-01-16 22:25:37 | [Mutex] received everything. 2022-01-16 22:25:37 | [Mutex] isItemNotified: received:node:5a8e59fb-454a-41bc-8ea9-62b4dedf879d:localhost:node-8b90b5a5-9337-48ce-9b62-d33157d222d5:Node 8b90b5a5-9337-48ce-9b62-d33157d222d5 :: true |
deleteNodes | 1.022s |
2022-01-16 22:25:41 |
2022-01-16 22:25:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-01-16 22:25:41 | ------------------------------------ 2022-01-16 22:25:41 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-8b90b5a5-9337-48ce-9b62-d33157d222d5" } 2022-01-16 22:25:41 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-01-16 22:25:42 | [Mutex] waiting for: [received:nodes:d89923bc-7b23-4562-b28d-ee672fb012c8:localhost] 2022-01-16 22:25:42 | [Mutex] received everything. 2022-01-16 22:25:42 | [Mutex] isItemNotified: received:node:d89923bc-7b23-4562-b28d-ee672fb012c8:localhost:node-8b90b5a5-9337-48ce-9b62-d33157d222d5:Node 8b90b5a5-9337-48ce-9b62-d33157d222d5 :: false |
deleteSubnodes | 1.026s |
2022-01-16 22:25:40 |
2022-01-16 22:25:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-01-16 22:25:40 | ------------------------------------ 2022-01-16 22:25:40 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-edbddf02-c04e-4ed4-b0c7-22f526bf267b" } 2022-01-16 22:25:40 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-01-16 22:25:41 | [Mutex] waiting for: [received:nodes:443db783-c3b1-4750-b307-232d2e96243e:localhost] 2022-01-16 22:25:41 | [Mutex] received everything. 2022-01-16 22:25:41 | [Mutex] isItemNotified: received:node:443db783-c3b1-4750-b307-232d2e96243e:localhost:node-edbddf02-c04e-4ed4-b0c7-22f526bf267b:Node edbddf02-c04e-4ed4-b0c7-22f526bf267b :: false 2022-01-16 22:25:41 | [Mutex] waiting for: [received:nodes:aad7029e-4727-48d7-8a55-d83b4fb6926c:localhost] 2022-01-16 22:25:41 | [Mutex] received everything. 2022-01-16 22:25:41 | [Mutex] isItemNotified: received:node:aad7029e-4727-48d7-8a55-d83b4fb6926c:localhost:node-edbddf02-c04e-4ed4-b0c7-22f526bf267b:Node edbddf02-c04e-4ed4-b0c7-22f526bf267b :: false |
publishItemsToNodes | 0.052s |
2022-01-16 22:25:39 |
2022-01-16 22:25:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-01-16 22:25:39 | ------------------------------------ 2022-01-16 22:25:39 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-edbddf02-c04e-4ed4-b0c7-22f526bf267b", "entry": "<test>item-7edb6a8f-0560-4357-bf59-640c22ae2f34</test>", "item-id": "item-7edb6a8f-0560-4357-bf59-640c22ae2f34" } 2022-01-16 22:25:39 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-7edb6a8f-0560-4357-bf59-640c22ae2f34" } 2022-01-16 22:25:39 | [Mutex] waiting for: [published:item:notifieditem-7edb6a8f-0560-4357-bf59-640c22ae2f34:admin@test-domain.com] 2022-01-16 22:25:39 | [Mutex] received everything. 2022-01-16 22:25:39 | [Mutex] isItemNotified: published:item:notifieditem-7edb6a8f-0560-4357-bf59-640c22ae2f34:admin@test-domain.com :: true |
retractItemsFromNodes | 0.065s |
2022-01-16 22:25:39 |
2022-01-16 22:25:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-01-16 22:25:39 | ------------------------------------ 2022-01-16 22:25:39 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-edbddf02-c04e-4ed4-b0c7-22f526bf267b", "item-id": "item-7edb6a8f-0560-4357-bf59-640c22ae2f34" } 2022-01-16 22:25:39 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-7edb6a8f-0560-4357-bf59-640c22ae2f34" } 2022-01-16 22:25:39 | [Mutex] waiting for: [retracted:item:notifieditem-7edb6a8f-0560-4357-bf59-640c22ae2f34:admin@test-domain.com] 2022-01-16 22:25:39 | [Mutex] received everything. 2022-01-16 22:25:39 | [Mutex] isItemNotified: retracted:item:notifieditem-7edb6a8f-0560-4357-bf59-640c22ae2f34:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.029s |
2022-01-16 22:25:39 |
2022-01-16 22:25:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-01-16 22:25:39 | ------------------------------------ 2022-01-16 22:25:39 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-edbddf02-c04e-4ed4-b0c7-22f526bf267b", "item-id": "item-7edb6a8f-0560-4357-bf59-640c22ae2f34" } 2022-01-16 22:25:39 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-edbddf02-c04e-4ed4-b0c7-22f526bf267b", "item-id": "item-7edb6a8f-0560-4357-bf59-640c22ae2f34", "item": [ "<item id=\"item-7edb6a8f-0560-4357-bf59-640c22ae2f34\"><test>item-7edb6a8f-0560-4357-bf59-640c22ae2f34</test></item>" ] } 2022-01-16 22:25:39 | [Mutex] notify: [retrieved:item:item-7edb6a8f-0560-4357-bf59-640c22ae2f34:payload-matches:true:localhost] 2022-01-16 22:25:39 | [Mutex] received everything. 2022-01-16 22:25:39 | [Mutex] isItemNotified: retrieved:item:item-7edb6a8f-0560-4357-bf59-640c22ae2f34:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.083s |
2022-01-16 22:25:39 |
2022-01-16 22:25:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-01-16 22:25:39 | ------------------------------------ 2022-01-16 22:25:39 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-01-16 22:25:39 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-8b90b5a5-9337-48ce-9b62-d33157d222d5", "node-edbddf02-c04e-4ed4-b0c7-22f526bf267b" ] } |
retrieveUserSubscriptionsWithRegex | 0.056s |
2022-01-16 22:25:39 |
2022-01-16 22:25:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-01-16 22:25:39 | ------------------------------------ 2022-01-16 22:25:39 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-edbddf02-c04e-4ed4-b0c7-22f526bf267b)" } 2022-01-16 22:25:39 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.012s |
2022-01-16 22:25:38 |
2022-01-16 22:25:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-01-16 22:25:38 | ------------------------------------ 2022-01-16 22:25:38 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-edbddf02-c04e-4ed4-b0c7-22f526bf267b", "jids": [ "admin@test-domain.com" ] } 2022-01-16 22:25:38 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.061s |
2022-01-16 22:25:39 |
2022-01-16 22:25:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-01-16 22:25:39 | ------------------------------------ 2022-01-16 22:25:39 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-edbddf02-c04e-4ed4-b0c7-22f526bf267b", "jids": [ "admin@test-domain.com" ] } 2022-01-16 22:25:39 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |