Test duration : 8.572s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.080s |
2022-05-29 22:51:45 |
2022-05-29 22:51:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-29 22:51:45 | ------------------------------------ 2022-05-29 22:51:45 | [Mutex] waiting for: [configured:node:node-61d9d424-a8b7-41cc-ad0f-e72ae063f7bb:node-00dafebd-921b-41ee-a04a-c861af2ea48c] 2022-05-29 22:51:45 | [Mutex] received everything. 2022-05-29 22:51:45 | [Mutex] isItemNotified: configured:node:node-61d9d424-a8b7-41cc-ad0f-e72ae063f7bb:node-00dafebd-921b-41ee-a04a-c861af2ea48c :: true 2022-05-29 22:51:46 | [Mutex] waiting for: [received:nodes:f4edeaf4-ffe7-4992-8b80-3ab7d15510d0:localhost] 2022-05-29 22:51:46 | [Mutex] received everything. 2022-05-29 22:51:46 | [Mutex] isItemNotified: received:node:f4edeaf4-ffe7-4992-8b80-3ab7d15510d0:localhost:node-61d9d424-a8b7-41cc-ad0f-e72ae063f7bb:Node 61d9d424-a8b7-41cc-ad0f-e72ae063f7bb :: true 2022-05-29 22:51:46 | [Mutex] waiting for: [received:nodes:c8a6db23-58b7-40d7-a9eb-5e18f5320009:localhost] 2022-05-29 22:51:46 | [Mutex] waiting for: [received:nodes:c8a6db23-58b7-40d7-a9eb-5e18f5320009:localhost] 2022-05-29 22:51:46 | [Mutex] received everything. 2022-05-29 22:51:46 | [Mutex] isItemNotified: received:node:c8a6db23-58b7-40d7-a9eb-5e18f5320009:localhost:node-61d9d424-a8b7-41cc-ad0f-e72ae063f7bb:Node 61d9d424-a8b7-41cc-ad0f-e72ae063f7bb :: false |
createNodes | 1.535s |
2022-05-29 22:51:42 |
2022-05-29 22:51:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-29 22:51:42 | ------------------------------------ 2022-05-29 22:51:43 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-61d9d424-a8b7-41cc-ad0f-e72ae063f7bb", "pubsub#title": "Node 61d9d424-a8b7-41cc-ad0f-e72ae063f7bb" } 2022-05-29 22:51:43 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-29 22:51:44 | [Mutex] waiting for: [received:nodes:146aca52-a88f-4473-8720-2d467f89d503:localhost] 2022-05-29 22:51:44 | [Mutex] received everything. 2022-05-29 22:51:44 | [Mutex] isItemNotified: received:node:146aca52-a88f-4473-8720-2d467f89d503:localhost:node-61d9d424-a8b7-41cc-ad0f-e72ae063f7bb:Node 61d9d424-a8b7-41cc-ad0f-e72ae063f7bb :: true |
createSubnodes | 1.024s |
2022-05-29 22:51:44 |
2022-05-29 22:51:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-29 22:51:44 | ------------------------------------ 2022-05-29 22:51:44 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-00dafebd-921b-41ee-a04a-c861af2ea48c", "pubsub#title": "Node 00dafebd-921b-41ee-a04a-c861af2ea48c" } 2022-05-29 22:51:44 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-29 22:51:45 | [Mutex] waiting for: [received:nodes:2b57064e-64b9-44a2-8212-b34b8af2be69:localhost] 2022-05-29 22:51:45 | [Mutex] waiting for: [received:nodes:2b57064e-64b9-44a2-8212-b34b8af2be69:localhost] 2022-05-29 22:51:45 | [Mutex] received everything. 2022-05-29 22:51:45 | [Mutex] isItemNotified: received:node:2b57064e-64b9-44a2-8212-b34b8af2be69:localhost:node-00dafebd-921b-41ee-a04a-c861af2ea48c:Node 00dafebd-921b-41ee-a04a-c861af2ea48c :: true |
deleteNodes | 1.027s |
2022-05-29 22:51:49 |
2022-05-29 22:51:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-29 22:51:49 | ------------------------------------ 2022-05-29 22:51:49 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-00dafebd-921b-41ee-a04a-c861af2ea48c" } 2022-05-29 22:51:49 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-29 22:51:50 | [Mutex] waiting for: [received:nodes:0fa37110-c0eb-46c2-8871-10f559047751:localhost] 2022-05-29 22:51:50 | [Mutex] waiting for: [received:nodes:0fa37110-c0eb-46c2-8871-10f559047751:localhost] 2022-05-29 22:51:50 | [Mutex] received everything. 2022-05-29 22:51:50 | [Mutex] isItemNotified: received:node:0fa37110-c0eb-46c2-8871-10f559047751:localhost:node-00dafebd-921b-41ee-a04a-c861af2ea48c:Node 00dafebd-921b-41ee-a04a-c861af2ea48c :: false |
deleteSubnodes | 1.029s |
2022-05-29 22:51:48 |
2022-05-29 22:51:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-29 22:51:48 | ------------------------------------ 2022-05-29 22:51:48 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-61d9d424-a8b7-41cc-ad0f-e72ae063f7bb" } 2022-05-29 22:51:48 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-29 22:51:49 | [Mutex] waiting for: [received:nodes:dcceaa39-8dff-4d8d-a38b-1647a5c50357:localhost] 2022-05-29 22:51:49 | [Mutex] received everything. 2022-05-29 22:51:49 | [Mutex] isItemNotified: received:node:dcceaa39-8dff-4d8d-a38b-1647a5c50357:localhost:node-61d9d424-a8b7-41cc-ad0f-e72ae063f7bb:Node 61d9d424-a8b7-41cc-ad0f-e72ae063f7bb :: false 2022-05-29 22:51:49 | [Mutex] waiting for: [received:nodes:64055675-4a88-4a4b-9f8e-2f884b2aee75:localhost] 2022-05-29 22:51:49 | [Mutex] received everything. 2022-05-29 22:51:49 | [Mutex] isItemNotified: received:node:64055675-4a88-4a4b-9f8e-2f884b2aee75:localhost:node-61d9d424-a8b7-41cc-ad0f-e72ae063f7bb:Node 61d9d424-a8b7-41cc-ad0f-e72ae063f7bb :: false |
publishItemsToNodes | 0.049s |
2022-05-29 22:51:47 |
2022-05-29 22:51:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-29 22:51:47 | ------------------------------------ 2022-05-29 22:51:47 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-61d9d424-a8b7-41cc-ad0f-e72ae063f7bb", "entry": "<test>item-52bc4a31-7671-4efe-b265-bd4868a93d25</test>", "item-id": "item-52bc4a31-7671-4efe-b265-bd4868a93d25" } 2022-05-29 22:51:47 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-52bc4a31-7671-4efe-b265-bd4868a93d25" } 2022-05-29 22:51:47 | [Mutex] waiting for: [published:item:notifieditem-52bc4a31-7671-4efe-b265-bd4868a93d25:admin@test-domain.com] 2022-05-29 22:51:47 | [Mutex] received everything. 2022-05-29 22:51:47 | [Mutex] isItemNotified: published:item:notifieditem-52bc4a31-7671-4efe-b265-bd4868a93d25:admin@test-domain.com :: true |
retractItemsFromNodes | 0.052s |
2022-05-29 22:51:47 |
2022-05-29 22:51:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-29 22:51:47 | ------------------------------------ 2022-05-29 22:51:47 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-61d9d424-a8b7-41cc-ad0f-e72ae063f7bb", "item-id": "item-52bc4a31-7671-4efe-b265-bd4868a93d25" } 2022-05-29 22:51:47 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-52bc4a31-7671-4efe-b265-bd4868a93d25" } 2022-05-29 22:51:47 | [Mutex] received everything. 2022-05-29 22:51:47 | [Mutex] isItemNotified: retracted:item:notifieditem-52bc4a31-7671-4efe-b265-bd4868a93d25:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.057s |
2022-05-29 22:51:47 |
2022-05-29 22:51:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-29 22:51:47 | ------------------------------------ 2022-05-29 22:51:47 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-61d9d424-a8b7-41cc-ad0f-e72ae063f7bb", "item-id": "item-52bc4a31-7671-4efe-b265-bd4868a93d25" } 2022-05-29 22:51:47 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-61d9d424-a8b7-41cc-ad0f-e72ae063f7bb", "item-id": "item-52bc4a31-7671-4efe-b265-bd4868a93d25", "item": [ "<item id=\"item-52bc4a31-7671-4efe-b265-bd4868a93d25\"><test>item-52bc4a31-7671-4efe-b265-bd4868a93d25</test></item>" ] } 2022-05-29 22:51:47 | [Mutex] notify: [retrieved:item:item-52bc4a31-7671-4efe-b265-bd4868a93d25:payload-matches:true:localhost] 2022-05-29 22:51:47 | [Mutex] received everything. 2022-05-29 22:51:47 | [Mutex] isItemNotified: retrieved:item:item-52bc4a31-7671-4efe-b265-bd4868a93d25:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2022-05-29 22:51:47 |
2022-05-29 22:51:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-29 22:51:47 | ------------------------------------ 2022-05-29 22:51:47 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-05-29 22:51:47 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-00dafebd-921b-41ee-a04a-c861af2ea48c", "test", "node-61d9d424-a8b7-41cc-ad0f-e72ae063f7bb" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2022-05-29 22:51:47 |
2022-05-29 22:51:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-29 22:51:47 | ------------------------------------ 2022-05-29 22:51:47 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-61d9d424-a8b7-41cc-ad0f-e72ae063f7bb)" } 2022-05-29 22:51:47 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.010s |
2022-05-29 22:51:46 |
2022-05-29 22:51:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-29 22:51:46 | ------------------------------------ 2022-05-29 22:51:46 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-61d9d424-a8b7-41cc-ad0f-e72ae063f7bb", "jids": [ "admin@test-domain.com" ] } 2022-05-29 22:51:46 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.051s |
2022-05-29 22:51:47 |
2022-05-29 22:51:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-29 22:51:47 | ------------------------------------ 2022-05-29 22:51:47 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-61d9d424-a8b7-41cc-ad0f-e72ae063f7bb", "jids": [ "admin@test-domain.com" ] } 2022-05-29 22:51:47 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |