Test duration : 9.128s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.121s |
2021-01-03 21:58:37 |
2021-01-03 21:58:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-03 21:58:37 | ------------------------------------ 2021-01-03 21:58:37 | [Mutex] waiting for: [configured:node:node-6d8d27e5-a8e2-4d82-a548-6d7575830df7:node-df96bfaf-0b2e-4d7c-a648-403507740349] 2021-01-03 21:58:37 | [Mutex] received everything. 2021-01-03 21:58:37 | [Mutex] isItemNotified: configured:node:node-6d8d27e5-a8e2-4d82-a548-6d7575830df7:node-df96bfaf-0b2e-4d7c-a648-403507740349 :: true 2021-01-03 21:58:38 | [Mutex] waiting for: [received:nodes:1358b83b-d137-467c-a396-86721c2e76a8:localhost] 2021-01-03 21:58:38 | [Mutex] received everything. 2021-01-03 21:58:38 | [Mutex] isItemNotified: received:node:1358b83b-d137-467c-a396-86721c2e76a8:localhost:node-6d8d27e5-a8e2-4d82-a548-6d7575830df7:Node 6d8d27e5-a8e2-4d82-a548-6d7575830df7 :: true 2021-01-03 21:58:38 | [Mutex] waiting for: [received:nodes:eda5757e-967a-4505-8c0f-4165519bdd01:localhost] 2021-01-03 21:58:38 | [Mutex] received everything. 2021-01-03 21:58:38 | [Mutex] isItemNotified: received:node:eda5757e-967a-4505-8c0f-4165519bdd01:localhost:node-6d8d27e5-a8e2-4d82-a548-6d7575830df7:Node 6d8d27e5-a8e2-4d82-a548-6d7575830df7 :: false |
createNodes | 1.720s |
2021-01-03 21:58:34 |
2021-01-03 21:58:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-03 21:58:34 | ------------------------------------ 2021-01-03 21:58: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-6d8d27e5-a8e2-4d82-a548-6d7575830df7", "pubsub#title": "Node 6d8d27e5-a8e2-4d82-a548-6d7575830df7" } 2021-01-03 21:58:34 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-01-03 21:58:35 | [Mutex] waiting for: [received:nodes:d589c710-714d-49b1-a26d-34378d7033b2:localhost] 2021-01-03 21:58:35 | [Mutex] received everything. 2021-01-03 21:58:35 | [Mutex] isItemNotified: received:node:d589c710-714d-49b1-a26d-34378d7033b2:localhost:node-6d8d27e5-a8e2-4d82-a548-6d7575830df7:Node 6d8d27e5-a8e2-4d82-a548-6d7575830df7 :: true |
createSubnodes | 1.024s |
2021-01-03 21:58:35 |
2021-01-03 21:58:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-03 21:58:35 | ------------------------------------ 2021-01-03 21:58: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-df96bfaf-0b2e-4d7c-a648-403507740349", "pubsub#title": "Node df96bfaf-0b2e-4d7c-a648-403507740349" } 2021-01-03 21:58:35 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-01-03 21:58:36 | [Mutex] waiting for: [received:nodes:91c8a9ce-9554-4e32-9dcd-47ce19f0edee:localhost] 2021-01-03 21:58:36 | [Mutex] waiting for: [received:nodes:91c8a9ce-9554-4e32-9dcd-47ce19f0edee:localhost] 2021-01-03 21:58:36 | [Mutex] received everything. 2021-01-03 21:58:36 | [Mutex] isItemNotified: received:node:91c8a9ce-9554-4e32-9dcd-47ce19f0edee:localhost:node-df96bfaf-0b2e-4d7c-a648-403507740349:Node df96bfaf-0b2e-4d7c-a648-403507740349 :: true |
deleteNodes | 1.021s |
2021-01-03 21:58:41 |
2021-01-03 21:58:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-03 21:58:41 | ------------------------------------ 2021-01-03 21:58:41 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-df96bfaf-0b2e-4d7c-a648-403507740349" } 2021-01-03 21:58:41 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-01-03 21:58:42 | [Mutex] waiting for: [received:nodes:331d5b9e-d983-4683-8e87-72a296fc0a0a:localhost] 2021-01-03 21:58:42 | [Mutex] waiting for: [received:nodes:331d5b9e-d983-4683-8e87-72a296fc0a0a:localhost] 2021-01-03 21:58:42 | [Mutex] received everything. 2021-01-03 21:58:42 | [Mutex] isItemNotified: received:node:331d5b9e-d983-4683-8e87-72a296fc0a0a:localhost:node-df96bfaf-0b2e-4d7c-a648-403507740349:Node df96bfaf-0b2e-4d7c-a648-403507740349 :: false |
deleteSubnodes | 1.035s |
2021-01-03 21:58:40 |
2021-01-03 21:58:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-03 21:58:40 | ------------------------------------ 2021-01-03 21:58:40 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-6d8d27e5-a8e2-4d82-a548-6d7575830df7" } 2021-01-03 21:58:40 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-01-03 21:58:41 | [Mutex] waiting for: [received:nodes:4d0df8b2-eba1-4441-9a77-38ac00741bfa:localhost] 2021-01-03 21:58:41 | [Mutex] waiting for: [received:nodes:4d0df8b2-eba1-4441-9a77-38ac00741bfa:localhost] 2021-01-03 21:58:41 | [Mutex] received everything. 2021-01-03 21:58:41 | [Mutex] isItemNotified: received:node:4d0df8b2-eba1-4441-9a77-38ac00741bfa:localhost:node-6d8d27e5-a8e2-4d82-a548-6d7575830df7:Node 6d8d27e5-a8e2-4d82-a548-6d7575830df7 :: false 2021-01-03 21:58:41 | [Mutex] waiting for: [received:nodes:356866b7-f0dd-4ad0-aa4c-2105d99ec7b0:localhost] 2021-01-03 21:58:41 | [Mutex] received everything. 2021-01-03 21:58:41 | [Mutex] isItemNotified: received:node:356866b7-f0dd-4ad0-aa4c-2105d99ec7b0:localhost:node-6d8d27e5-a8e2-4d82-a548-6d7575830df7:Node 6d8d27e5-a8e2-4d82-a548-6d7575830df7 :: false |
publishItemsToNodes | 0.055s |
2021-01-03 21:58:39 |
2021-01-03 21:58:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-03 21:58:39 | ------------------------------------ 2021-01-03 21:58:39 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-6d8d27e5-a8e2-4d82-a548-6d7575830df7", "entry": "<test>item-74254c49-6cec-4a25-8d37-14cc4a5a37dc</test>", "item-id": "item-74254c49-6cec-4a25-8d37-14cc4a5a37dc" } 2021-01-03 21:58:39 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-74254c49-6cec-4a25-8d37-14cc4a5a37dc" } 2021-01-03 21:58:39 | [Mutex] waiting for: [published:item:notifieditem-74254c49-6cec-4a25-8d37-14cc4a5a37dc:admin@test-domain.com] 2021-01-03 21:58:39 | [Mutex] received everything. 2021-01-03 21:58:39 | [Mutex] isItemNotified: published:item:notifieditem-74254c49-6cec-4a25-8d37-14cc4a5a37dc:admin@test-domain.com :: true |
retractItemsFromNodes | 0.061s |
2021-01-03 21:58:39 |
2021-01-03 21:58:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-03 21:58:39 | ------------------------------------ 2021-01-03 21:58:39 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-6d8d27e5-a8e2-4d82-a548-6d7575830df7", "item-id": "item-74254c49-6cec-4a25-8d37-14cc4a5a37dc" } 2021-01-03 21:58:39 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-74254c49-6cec-4a25-8d37-14cc4a5a37dc" } 2021-01-03 21:58:39 | [Mutex] waiting for: [retracted:item:notifieditem-74254c49-6cec-4a25-8d37-14cc4a5a37dc:admin@test-domain.com] 2021-01-03 21:58:39 | [Mutex] received everything. 2021-01-03 21:58:39 | [Mutex] isItemNotified: retracted:item:notifieditem-74254c49-6cec-4a25-8d37-14cc4a5a37dc:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.035s |
2021-01-03 21:58:39 |
2021-01-03 21:58:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-03 21:58:39 | ------------------------------------ 2021-01-03 21:58:39 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-6d8d27e5-a8e2-4d82-a548-6d7575830df7", "item-id": "item-74254c49-6cec-4a25-8d37-14cc4a5a37dc" } 2021-01-03 21:58:39 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-6d8d27e5-a8e2-4d82-a548-6d7575830df7", "item-id": "item-74254c49-6cec-4a25-8d37-14cc4a5a37dc", "item": [ "<item id=\"item-74254c49-6cec-4a25-8d37-14cc4a5a37dc\"><test>item-74254c49-6cec-4a25-8d37-14cc4a5a37dc</test></item>" ] } 2021-01-03 21:58:39 | [Mutex] notify: [retrieved:item:item-74254c49-6cec-4a25-8d37-14cc4a5a37dc:payload-matches:true:localhost] 2021-01-03 21:58:39 | [Mutex] received everything. 2021-01-03 21:58:39 | [Mutex] isItemNotified: retrieved:item:item-74254c49-6cec-4a25-8d37-14cc4a5a37dc:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.107s |
2021-01-03 21:58:39 |
2021-01-03 21:58:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-03 21:58:39 | ------------------------------------ 2021-01-03 21:58:39 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-01-03 21:58:39 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-df96bfaf-0b2e-4d7c-a648-403507740349", "node-6d8d27e5-a8e2-4d82-a548-6d7575830df7" ] } |
retrieveUserSubscriptionsWithRegex | 0.056s |
2021-01-03 21:58:39 |
2021-01-03 21:58:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-03 21:58:39 | ------------------------------------ 2021-01-03 21:58:39 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-6d8d27e5-a8e2-4d82-a548-6d7575830df7)" } 2021-01-03 21:58:39 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.014s |
2021-01-03 21:58:38 |
2021-01-03 21:58:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-03 21:58:38 | ------------------------------------ 2021-01-03 21:58:38 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-6d8d27e5-a8e2-4d82-a548-6d7575830df7", "jids": [ "admin@test-domain.com" ] } 2021-01-03 21:58:38 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.066s |
2021-01-03 21:58:39 |
2021-01-03 21:58:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-03 21:58:39 | ------------------------------------ 2021-01-03 21:58:39 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-6d8d27e5-a8e2-4d82-a548-6d7575830df7", "jids": [ "admin@test-domain.com" ] } 2021-01-03 21:58:39 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |