Test duration : 8.625s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.103s |
2023-03-24 22:30:05 |
2023-03-24 22:30:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-24 22:30:05 | ------------------------------------ 2023-03-24 22:30:05 | [Mutex] waiting for: [configured:node:node-3cae3112-5f33-494e-9efd-021d25940388:node-69edb14d-db31-4715-903f-df5283892fe9] 2023-03-24 22:30:06 | [Mutex] received everything. 2023-03-24 22:30:06 | [Mutex] isItemNotified: configured:node:node-3cae3112-5f33-494e-9efd-021d25940388:node-69edb14d-db31-4715-903f-df5283892fe9 :: true 2023-03-24 22:30:07 | [Mutex] waiting for: [received:nodes:068aa666-6133-4df9-8dac-515ccec9be14:localhost] 2023-03-24 22:30:07 | [Mutex] received everything. 2023-03-24 22:30:07 | [Mutex] isItemNotified: received:node:068aa666-6133-4df9-8dac-515ccec9be14:localhost:node-3cae3112-5f33-494e-9efd-021d25940388:Node 3cae3112-5f33-494e-9efd-021d25940388 :: true 2023-03-24 22:30:07 | [Mutex] waiting for: [received:nodes:f5206916-d477-418b-a233-f2591b1b9628:localhost] 2023-03-24 22:30:07 | [Mutex] waiting for: [received:nodes:f5206916-d477-418b-a233-f2591b1b9628:localhost] 2023-03-24 22:30:07 | [Mutex] waiting for: [received:nodes:f5206916-d477-418b-a233-f2591b1b9628:localhost] 2023-03-24 22:30:07 | [Mutex] waiting for: [received:nodes:f5206916-d477-418b-a233-f2591b1b9628:localhost] 2023-03-24 22:30:07 | [Mutex] received everything. 2023-03-24 22:30:07 | [Mutex] isItemNotified: received:node:f5206916-d477-418b-a233-f2591b1b9628:localhost:node-3cae3112-5f33-494e-9efd-021d25940388:Node 3cae3112-5f33-494e-9efd-021d25940388 :: false |
createNodes | 1.604s |
2023-03-24 22:30:03 |
2023-03-24 22:30:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-24 22:30:03 | ------------------------------------ 2023-03-24 22:30:03 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-3cae3112-5f33-494e-9efd-021d25940388", "pubsub#title": "Node 3cae3112-5f33-494e-9efd-021d25940388" } 2023-03-24 22:30:03 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2023-03-24 22:30:04 | [Mutex] waiting for: [received:nodes:953d0eba-f367-4e70-954d-da037214c372:localhost] 2023-03-24 22:30:04 | [Mutex] received everything. 2023-03-24 22:30:04 | [Mutex] isItemNotified: received:node:953d0eba-f367-4e70-954d-da037214c372:localhost:node-3cae3112-5f33-494e-9efd-021d25940388:Node 3cae3112-5f33-494e-9efd-021d25940388 :: true |
createSubnodes | 1.022s |
2023-03-24 22:30:04 |
2023-03-24 22:30:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-24 22:30:04 | ------------------------------------ 2023-03-24 22:30:04 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-69edb14d-db31-4715-903f-df5283892fe9", "pubsub#title": "Node 69edb14d-db31-4715-903f-df5283892fe9" } 2023-03-24 22:30:04 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2023-03-24 22:30:05 | [Mutex] waiting for: [received:nodes:ba2f3439-e14a-48fa-92fc-70974d793d8e:localhost] 2023-03-24 22:30:05 | [Mutex] waiting for: [received:nodes:ba2f3439-e14a-48fa-92fc-70974d793d8e:localhost] 2023-03-24 22:30:05 | [Mutex] waiting for: [received:nodes:ba2f3439-e14a-48fa-92fc-70974d793d8e:localhost] 2023-03-24 22:30:05 | [Mutex] received everything. 2023-03-24 22:30:05 | [Mutex] isItemNotified: received:node:ba2f3439-e14a-48fa-92fc-70974d793d8e:localhost:node-69edb14d-db31-4715-903f-df5283892fe9:Node 69edb14d-db31-4715-903f-df5283892fe9 :: true |
deleteNodes | 1.016s |
2023-03-24 22:30:10 |
2023-03-24 22:30:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-24 22:30:10 | ------------------------------------ 2023-03-24 22:30:10 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-69edb14d-db31-4715-903f-df5283892fe9" } 2023-03-24 22:30:10 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2023-03-24 22:30:11 | [Mutex] waiting for: [received:nodes:f3908784-dc92-4c16-864c-677201318a50:localhost] 2023-03-24 22:30:11 | [Mutex] waiting for: [received:nodes:f3908784-dc92-4c16-864c-677201318a50:localhost] 2023-03-24 22:30:11 | [Mutex] waiting for: [received:nodes:f3908784-dc92-4c16-864c-677201318a50:localhost] 2023-03-24 22:30:11 | [Mutex] received everything. 2023-03-24 22:30:11 | [Mutex] isItemNotified: received:node:f3908784-dc92-4c16-864c-677201318a50:localhost:node-69edb14d-db31-4715-903f-df5283892fe9:Node 69edb14d-db31-4715-903f-df5283892fe9 :: false |
deleteSubnodes | 1.028s |
2023-03-24 22:30:09 |
2023-03-24 22:30:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-24 22:30:09 | ------------------------------------ 2023-03-24 22:30:09 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-3cae3112-5f33-494e-9efd-021d25940388" } 2023-03-24 22:30:09 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2023-03-24 22:30:10 | [Mutex] waiting for: [received:nodes:8762b678-bcf7-484b-ab9d-9867698ce427:localhost] 2023-03-24 22:30:10 | [Mutex] waiting for: [received:nodes:8762b678-bcf7-484b-ab9d-9867698ce427:localhost] 2023-03-24 22:30:10 | [Mutex] waiting for: [received:nodes:8762b678-bcf7-484b-ab9d-9867698ce427:localhost] 2023-03-24 22:30:10 | [Mutex] waiting for: [received:nodes:8762b678-bcf7-484b-ab9d-9867698ce427:localhost] 2023-03-24 22:30:10 | [Mutex] received everything. 2023-03-24 22:30:10 | [Mutex] isItemNotified: received:node:8762b678-bcf7-484b-ab9d-9867698ce427:localhost:node-3cae3112-5f33-494e-9efd-021d25940388:Node 3cae3112-5f33-494e-9efd-021d25940388 :: false 2023-03-24 22:30:10 | [Mutex] waiting for: [received:nodes:b3fcec55-4931-44c0-9923-7eb3da5a957d:localhost] 2023-03-24 22:30:10 | [Mutex] received everything. 2023-03-24 22:30:10 | [Mutex] isItemNotified: received:node:b3fcec55-4931-44c0-9923-7eb3da5a957d:localhost:node-3cae3112-5f33-494e-9efd-021d25940388:Node 3cae3112-5f33-494e-9efd-021d25940388 :: false |
publishItemsToNodes | 0.020s |
2023-03-24 22:30:08 |
2023-03-24 22:30:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-24 22:30:08 | ------------------------------------ 2023-03-24 22:30:08 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-3cae3112-5f33-494e-9efd-021d25940388", "entry": "<test>item-759ee294-3764-46de-9806-f9cefc984c8f</test>", "item-id": "item-759ee294-3764-46de-9806-f9cefc984c8f" } 2023-03-24 22:30:08 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-759ee294-3764-46de-9806-f9cefc984c8f" } 2023-03-24 22:30:08 | [Mutex] waiting for: [published:item:notifieditem-759ee294-3764-46de-9806-f9cefc984c8f:admin@test-domain.com] 2023-03-24 22:30:08 | [Mutex] received everything. 2023-03-24 22:30:08 | [Mutex] isItemNotified: published:item:notifieditem-759ee294-3764-46de-9806-f9cefc984c8f:admin@test-domain.com :: true |
retractItemsFromNodes | 0.051s |
2023-03-24 22:30:08 |
2023-03-24 22:30:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-24 22:30:08 | ------------------------------------ 2023-03-24 22:30:08 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-3cae3112-5f33-494e-9efd-021d25940388", "item-id": "item-759ee294-3764-46de-9806-f9cefc984c8f" } 2023-03-24 22:30:08 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-759ee294-3764-46de-9806-f9cefc984c8f" } 2023-03-24 22:30:08 | [Mutex] received everything. 2023-03-24 22:30:08 | [Mutex] isItemNotified: retracted:item:notifieditem-759ee294-3764-46de-9806-f9cefc984c8f:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.072s |
2023-03-24 22:30:08 |
2023-03-24 22:30:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-24 22:30:08 | ------------------------------------ 2023-03-24 22:30:08 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-3cae3112-5f33-494e-9efd-021d25940388", "item-id": "item-759ee294-3764-46de-9806-f9cefc984c8f" } 2023-03-24 22:30:08 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-3cae3112-5f33-494e-9efd-021d25940388", "item-id": "item-759ee294-3764-46de-9806-f9cefc984c8f", "item": [ "<item id=\"item-759ee294-3764-46de-9806-f9cefc984c8f\"><test>item-759ee294-3764-46de-9806-f9cefc984c8f</test></item>" ] } 2023-03-24 22:30:08 | [Mutex] notify: [retrieved:item:item-759ee294-3764-46de-9806-f9cefc984c8f:payload-matches:true:localhost] 2023-03-24 22:30:08 | [Mutex] received everything. 2023-03-24 22:30:08 | [Mutex] isItemNotified: retrieved:item:item-759ee294-3764-46de-9806-f9cefc984c8f:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.047s |
2023-03-24 22:30:08 |
2023-03-24 22:30:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-24 22:30:08 | ------------------------------------ 2023-03-24 22:30:08 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2023-03-24 22:30:08 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-3cae3112-5f33-494e-9efd-021d25940388", "node-69edb14d-db31-4715-903f-df5283892fe9" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2023-03-24 22:30:08 |
2023-03-24 22:30:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-24 22:30:08 | ------------------------------------ 2023-03-24 22:30:08 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-3cae3112-5f33-494e-9efd-021d25940388)" } 2023-03-24 22:30:08 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.009s |
2023-03-24 22:30:07 |
2023-03-24 22:30:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-24 22:30:07 | ------------------------------------ 2023-03-24 22:30:07 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-3cae3112-5f33-494e-9efd-021d25940388", "jids": [ "admin@test-domain.com" ] } 2023-03-24 22:30:07 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.063s |
2023-03-24 22:30:08 |
2023-03-24 22:30:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-24 22:30:08 | ------------------------------------ 2023-03-24 22:30:08 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-3cae3112-5f33-494e-9efd-021d25940388", "jids": [ "admin@test-domain.com" ] } 2023-03-24 22:30:08 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |