Test duration : 8.702s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.099s |
2022-07-12 23:00:37 |
2022-07-12 23:00:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-12 23:00:37 | ------------------------------------ 2022-07-12 23:00:37 | [Mutex] waiting for: [configured:node:node-596cd1f8-2ced-455d-a9a8-2c9999c6398a:node-ec89ee2a-8076-4d70-9ed6-f07e90287075] 2022-07-12 23:00:37 | [Mutex] received everything. 2022-07-12 23:00:37 | [Mutex] isItemNotified: configured:node:node-596cd1f8-2ced-455d-a9a8-2c9999c6398a:node-ec89ee2a-8076-4d70-9ed6-f07e90287075 :: true 2022-07-12 23:00:38 | [Mutex] waiting for: [received:nodes:cb104c8e-140b-4958-bf21-4bb65fe3aee9:localhost] 2022-07-12 23:00:38 | [Mutex] received everything. 2022-07-12 23:00:38 | [Mutex] isItemNotified: received:node:cb104c8e-140b-4958-bf21-4bb65fe3aee9:localhost:node-596cd1f8-2ced-455d-a9a8-2c9999c6398a:Node 596cd1f8-2ced-455d-a9a8-2c9999c6398a :: true 2022-07-12 23:00:38 | [Mutex] waiting for: [received:nodes:22aeb3d3-815e-439b-bbc8-01edff0f759c:localhost] 2022-07-12 23:00:38 | [Mutex] waiting for: [received:nodes:22aeb3d3-815e-439b-bbc8-01edff0f759c:localhost] 2022-07-12 23:00:38 | [Mutex] received everything. 2022-07-12 23:00:38 | [Mutex] isItemNotified: received:node:22aeb3d3-815e-439b-bbc8-01edff0f759c:localhost:node-596cd1f8-2ced-455d-a9a8-2c9999c6398a:Node 596cd1f8-2ced-455d-a9a8-2c9999c6398a :: false |
createNodes | 1.577s |
2022-07-12 23:00:34 |
2022-07-12 23:00:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-12 23:00:34 | ------------------------------------ 2022-07-12 23:00: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-596cd1f8-2ced-455d-a9a8-2c9999c6398a", "pubsub#title": "Node 596cd1f8-2ced-455d-a9a8-2c9999c6398a" } 2022-07-12 23:00:34 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-12 23:00:35 | [Mutex] waiting for: [received:nodes:96d007eb-71ab-48c7-a785-547a0a1b47c9:localhost] 2022-07-12 23:00:35 | [Mutex] waiting for: [received:nodes:96d007eb-71ab-48c7-a785-547a0a1b47c9:localhost] 2022-07-12 23:00:35 | [Mutex] waiting for: [received:nodes:96d007eb-71ab-48c7-a785-547a0a1b47c9:localhost] 2022-07-12 23:00:35 | [Mutex] waiting for: [received:nodes:96d007eb-71ab-48c7-a785-547a0a1b47c9:localhost] 2022-07-12 23:00:35 | [Mutex] received everything. 2022-07-12 23:00:35 | [Mutex] isItemNotified: received:node:96d007eb-71ab-48c7-a785-547a0a1b47c9:localhost:node-596cd1f8-2ced-455d-a9a8-2c9999c6398a:Node 596cd1f8-2ced-455d-a9a8-2c9999c6398a :: true |
createSubnodes | 1.029s |
2022-07-12 23:00:35 |
2022-07-12 23:00:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-12 23:00:35 | ------------------------------------ 2022-07-12 23:00: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-ec89ee2a-8076-4d70-9ed6-f07e90287075", "pubsub#title": "Node ec89ee2a-8076-4d70-9ed6-f07e90287075" } 2022-07-12 23:00:35 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-12 23:00:36 | [Mutex] waiting for: [received:nodes:0a91f721-1fda-4c97-8286-59ee6d7ce362:localhost] 2022-07-12 23:00:36 | [Mutex] received everything. 2022-07-12 23:00:36 | [Mutex] isItemNotified: received:node:0a91f721-1fda-4c97-8286-59ee6d7ce362:localhost:node-ec89ee2a-8076-4d70-9ed6-f07e90287075:Node ec89ee2a-8076-4d70-9ed6-f07e90287075 :: true |
deleteNodes | 1.033s |
2022-07-12 23:00:41 |
2022-07-12 23:00:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-12 23:00:41 | ------------------------------------ 2022-07-12 23:00:41 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-ec89ee2a-8076-4d70-9ed6-f07e90287075" } 2022-07-12 23:00:41 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-12 23:00:42 | [Mutex] waiting for: [received:nodes:09e3dcf0-42c0-4025-bd74-771f5c855f25:localhost] 2022-07-12 23:00:42 | [Mutex] received everything. 2022-07-12 23:00:42 | [Mutex] isItemNotified: received:node:09e3dcf0-42c0-4025-bd74-771f5c855f25:localhost:node-ec89ee2a-8076-4d70-9ed6-f07e90287075:Node ec89ee2a-8076-4d70-9ed6-f07e90287075 :: false |
deleteSubnodes | 1.031s |
2022-07-12 23:00:40 |
2022-07-12 23:00:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-12 23:00:40 | ------------------------------------ 2022-07-12 23:00:40 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-596cd1f8-2ced-455d-a9a8-2c9999c6398a" } 2022-07-12 23:00:40 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-12 23:00:41 | [Mutex] waiting for: [received:nodes:fdb2869f-51d4-4e08-83ed-8fad1b17775f:localhost] 2022-07-12 23:00:41 | [Mutex] waiting for: [received:nodes:fdb2869f-51d4-4e08-83ed-8fad1b17775f:localhost] 2022-07-12 23:00:41 | [Mutex] received everything. 2022-07-12 23:00:41 | [Mutex] isItemNotified: received:node:fdb2869f-51d4-4e08-83ed-8fad1b17775f:localhost:node-596cd1f8-2ced-455d-a9a8-2c9999c6398a:Node 596cd1f8-2ced-455d-a9a8-2c9999c6398a :: false 2022-07-12 23:00:41 | [Mutex] waiting for: [received:nodes:428e4ad0-4b6c-4dfd-901f-73fb753a449b:localhost] 2022-07-12 23:00:41 | [Mutex] received everything. 2022-07-12 23:00:41 | [Mutex] isItemNotified: received:node:428e4ad0-4b6c-4dfd-901f-73fb753a449b:localhost:node-596cd1f8-2ced-455d-a9a8-2c9999c6398a:Node 596cd1f8-2ced-455d-a9a8-2c9999c6398a :: false |
publishItemsToNodes | 0.045s |
2022-07-12 23:00:39 |
2022-07-12 23:00:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-12 23:00:39 | ------------------------------------ 2022-07-12 23:00:39 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-596cd1f8-2ced-455d-a9a8-2c9999c6398a", "entry": "<test>item-1548185c-8306-4edb-adc1-aefe8e4e0d1b</test>", "item-id": "item-1548185c-8306-4edb-adc1-aefe8e4e0d1b" } 2022-07-12 23:00:39 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-1548185c-8306-4edb-adc1-aefe8e4e0d1b" } 2022-07-12 23:00:39 | [Mutex] waiting for: [published:item:notifieditem-1548185c-8306-4edb-adc1-aefe8e4e0d1b:admin@test-domain.com] 2022-07-12 23:00:39 | [Mutex] received everything. 2022-07-12 23:00:39 | [Mutex] isItemNotified: published:item:notifieditem-1548185c-8306-4edb-adc1-aefe8e4e0d1b:admin@test-domain.com :: true |
retractItemsFromNodes | 0.063s |
2022-07-12 23:00:39 |
2022-07-12 23:00:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-12 23:00:39 | ------------------------------------ 2022-07-12 23:00:39 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-596cd1f8-2ced-455d-a9a8-2c9999c6398a", "item-id": "item-1548185c-8306-4edb-adc1-aefe8e4e0d1b" } 2022-07-12 23:00:39 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-1548185c-8306-4edb-adc1-aefe8e4e0d1b" } 2022-07-12 23:00:39 | [Mutex] received everything. 2022-07-12 23:00:39 | [Mutex] isItemNotified: retracted:item:notifieditem-1548185c-8306-4edb-adc1-aefe8e4e0d1b:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.108s |
2022-07-12 23:00:39 |
2022-07-12 23:00:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-12 23:00:39 | ------------------------------------ 2022-07-12 23:00:39 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-596cd1f8-2ced-455d-a9a8-2c9999c6398a", "item-id": "item-1548185c-8306-4edb-adc1-aefe8e4e0d1b" } 2022-07-12 23:00:39 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-596cd1f8-2ced-455d-a9a8-2c9999c6398a", "item-id": "item-1548185c-8306-4edb-adc1-aefe8e4e0d1b", "item": [ "<item id=\"item-1548185c-8306-4edb-adc1-aefe8e4e0d1b\"><test>item-1548185c-8306-4edb-adc1-aefe8e4e0d1b</test></item>" ] } 2022-07-12 23:00:39 | [Mutex] notify: [retrieved:item:item-1548185c-8306-4edb-adc1-aefe8e4e0d1b:payload-matches:true:localhost] 2022-07-12 23:00:39 | [Mutex] received everything. 2022-07-12 23:00:39 | [Mutex] isItemNotified: retrieved:item:item-1548185c-8306-4edb-adc1-aefe8e4e0d1b:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.049s |
2022-07-12 23:00:39 |
2022-07-12 23:00:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-12 23:00:39 | ------------------------------------ 2022-07-12 23:00:39 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-07-12 23:00:39 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-ec89ee2a-8076-4d70-9ed6-f07e90287075", "node-596cd1f8-2ced-455d-a9a8-2c9999c6398a" ] } |
retrieveUserSubscriptionsWithRegex | 0.052s |
2022-07-12 23:00:39 |
2022-07-12 23:00:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-12 23:00:39 | ------------------------------------ 2022-07-12 23:00:39 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-596cd1f8-2ced-455d-a9a8-2c9999c6398a)" } 2022-07-12 23:00:39 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.016s |
2022-07-12 23:00:38 |
2022-07-12 23:00:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-12 23:00:38 | ------------------------------------ 2022-07-12 23:00:38 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-596cd1f8-2ced-455d-a9a8-2c9999c6398a", "jids": [ "admin@test-domain.com" ] } 2022-07-12 23:00:38 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.067s |
2022-07-12 23:00:39 |
2022-07-12 23:00:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-12 23:00:39 | ------------------------------------ 2022-07-12 23:00:39 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-596cd1f8-2ced-455d-a9a8-2c9999c6398a", "jids": [ "admin@test-domain.com" ] } 2022-07-12 23:00:39 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |