Test duration : 8.805s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.102s |
2022-05-24 22:40:07 |
2022-05-24 22:40:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-24 22:40:07 | ------------------------------------ 2022-05-24 22:40:07 | [Mutex] waiting for: [configured:node:node-24bb57a0-5635-48b4-9f5d-eeda7adeb263:node-d8514ec9-55b6-47fb-a0a4-5367fef3fbe5] 2022-05-24 22:40:07 | [Mutex] received everything. 2022-05-24 22:40:07 | [Mutex] isItemNotified: configured:node:node-24bb57a0-5635-48b4-9f5d-eeda7adeb263:node-d8514ec9-55b6-47fb-a0a4-5367fef3fbe5 :: true 2022-05-24 22:40:08 | [Mutex] waiting for: [received:nodes:39b0e66a-7c86-4a49-bdae-649512ea41ab:localhost] 2022-05-24 22:40:08 | [Mutex] received everything. 2022-05-24 22:40:08 | [Mutex] isItemNotified: received:node:39b0e66a-7c86-4a49-bdae-649512ea41ab:localhost:node-24bb57a0-5635-48b4-9f5d-eeda7adeb263:Node 24bb57a0-5635-48b4-9f5d-eeda7adeb263 :: true 2022-05-24 22:40:08 | [Mutex] waiting for: [received:nodes:79c12853-1955-4935-9879-c84e25a4c3d7:localhost] 2022-05-24 22:40:08 | [Mutex] waiting for: [received:nodes:79c12853-1955-4935-9879-c84e25a4c3d7:localhost] 2022-05-24 22:40:08 | [Mutex] received everything. 2022-05-24 22:40:08 | [Mutex] isItemNotified: received:node:79c12853-1955-4935-9879-c84e25a4c3d7:localhost:node-24bb57a0-5635-48b4-9f5d-eeda7adeb263:Node 24bb57a0-5635-48b4-9f5d-eeda7adeb263 :: false |
createNodes | 1.578s |
2022-05-24 22:40:04 |
2022-05-24 22:40:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-24 22:40:04 | ------------------------------------ 2022-05-24 22:40:05 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-24bb57a0-5635-48b4-9f5d-eeda7adeb263", "pubsub#title": "Node 24bb57a0-5635-48b4-9f5d-eeda7adeb263" } 2022-05-24 22:40:05 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-24 22:40:06 | [Mutex] waiting for: [received:nodes:5e122e50-c03a-441c-a7ae-e4a9d219faab:localhost] 2022-05-24 22:40:06 | [Mutex] received everything. 2022-05-24 22:40:06 | [Mutex] isItemNotified: received:node:5e122e50-c03a-441c-a7ae-e4a9d219faab:localhost:node-24bb57a0-5635-48b4-9f5d-eeda7adeb263:Node 24bb57a0-5635-48b4-9f5d-eeda7adeb263 :: true |
createSubnodes | 1.038s |
2022-05-24 22:40:06 |
2022-05-24 22:40:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-24 22:40:06 | ------------------------------------ 2022-05-24 22:40:06 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-d8514ec9-55b6-47fb-a0a4-5367fef3fbe5", "pubsub#title": "Node d8514ec9-55b6-47fb-a0a4-5367fef3fbe5" } 2022-05-24 22:40:06 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-24 22:40:07 | [Mutex] waiting for: [received:nodes:81d78cee-1f5f-4e5c-b329-d1cb9334a261:localhost] 2022-05-24 22:40:07 | [Mutex] received everything. 2022-05-24 22:40:07 | [Mutex] isItemNotified: received:node:81d78cee-1f5f-4e5c-b329-d1cb9334a261:localhost:node-d8514ec9-55b6-47fb-a0a4-5367fef3fbe5:Node d8514ec9-55b6-47fb-a0a4-5367fef3fbe5 :: true |
deleteNodes | 1.028s |
2022-05-24 22:40:12 |
2022-05-24 22:40:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-24 22:40:12 | ------------------------------------ 2022-05-24 22:40:12 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-d8514ec9-55b6-47fb-a0a4-5367fef3fbe5" } 2022-05-24 22:40:12 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-24 22:40:13 | [Mutex] waiting for: [received:nodes:78acb9d1-7661-479d-a997-3a287fcf9078:localhost] 2022-05-24 22:40:13 | [Mutex] waiting for: [received:nodes:78acb9d1-7661-479d-a997-3a287fcf9078:localhost] 2022-05-24 22:40:13 | [Mutex] received everything. 2022-05-24 22:40:13 | [Mutex] isItemNotified: received:node:78acb9d1-7661-479d-a997-3a287fcf9078:localhost:node-d8514ec9-55b6-47fb-a0a4-5367fef3fbe5:Node d8514ec9-55b6-47fb-a0a4-5367fef3fbe5 :: false |
deleteSubnodes | 1.027s |
2022-05-24 22:40:11 |
2022-05-24 22:40:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-24 22:40:11 | ------------------------------------ 2022-05-24 22:40:11 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-24bb57a0-5635-48b4-9f5d-eeda7adeb263" } 2022-05-24 22:40:11 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-24 22:40:12 | [Mutex] waiting for: [received:nodes:8d698276-7e83-4449-b0b1-0795e6bf77e4:localhost] 2022-05-24 22:40:12 | [Mutex] waiting for: [received:nodes:8d698276-7e83-4449-b0b1-0795e6bf77e4:localhost] 2022-05-24 22:40:12 | [Mutex] received everything. 2022-05-24 22:40:12 | [Mutex] isItemNotified: received:node:8d698276-7e83-4449-b0b1-0795e6bf77e4:localhost:node-24bb57a0-5635-48b4-9f5d-eeda7adeb263:Node 24bb57a0-5635-48b4-9f5d-eeda7adeb263 :: false 2022-05-24 22:40:12 | [Mutex] waiting for: [received:nodes:c53d8a7f-dd14-4269-a305-b8141066e49b:localhost] 2022-05-24 22:40:12 | [Mutex] received everything. 2022-05-24 22:40:12 | [Mutex] isItemNotified: received:node:c53d8a7f-dd14-4269-a305-b8141066e49b:localhost:node-24bb57a0-5635-48b4-9f5d-eeda7adeb263:Node 24bb57a0-5635-48b4-9f5d-eeda7adeb263 :: false |
publishItemsToNodes | 0.051s |
2022-05-24 22:40:09 |
2022-05-24 22:40:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-24 22:40:09 | ------------------------------------ 2022-05-24 22:40:09 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-24bb57a0-5635-48b4-9f5d-eeda7adeb263", "entry": "<test>item-f071c3ef-52fb-4b97-a3c6-b737c13d13cb</test>", "item-id": "item-f071c3ef-52fb-4b97-a3c6-b737c13d13cb" } 2022-05-24 22:40:09 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-f071c3ef-52fb-4b97-a3c6-b737c13d13cb" } 2022-05-24 22:40:09 | [Mutex] waiting for: [published:item:notifieditem-f071c3ef-52fb-4b97-a3c6-b737c13d13cb:admin@test-domain.com] 2022-05-24 22:40:09 | [Mutex] received everything. 2022-05-24 22:40:09 | [Mutex] isItemNotified: published:item:notifieditem-f071c3ef-52fb-4b97-a3c6-b737c13d13cb:admin@test-domain.com :: true |
retractItemsFromNodes | 0.063s |
2022-05-24 22:40:09 |
2022-05-24 22:40:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-24 22:40:09 | ------------------------------------ 2022-05-24 22:40:09 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-24bb57a0-5635-48b4-9f5d-eeda7adeb263", "item-id": "item-f071c3ef-52fb-4b97-a3c6-b737c13d13cb" } 2022-05-24 22:40:10 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-f071c3ef-52fb-4b97-a3c6-b737c13d13cb" } 2022-05-24 22:40:10 | [Mutex] received everything. 2022-05-24 22:40:10 | [Mutex] isItemNotified: retracted:item:notifieditem-f071c3ef-52fb-4b97-a3c6-b737c13d13cb:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.176s |
2022-05-24 22:40:09 |
2022-05-24 22:40:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-24 22:40:09 | ------------------------------------ 2022-05-24 22:40:09 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-24bb57a0-5635-48b4-9f5d-eeda7adeb263", "item-id": "item-f071c3ef-52fb-4b97-a3c6-b737c13d13cb" } 2022-05-24 22:40:09 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-24bb57a0-5635-48b4-9f5d-eeda7adeb263", "item-id": "item-f071c3ef-52fb-4b97-a3c6-b737c13d13cb", "item": [ "<item id=\"item-f071c3ef-52fb-4b97-a3c6-b737c13d13cb\"><test>item-f071c3ef-52fb-4b97-a3c6-b737c13d13cb</test></item>" ] } 2022-05-24 22:40:09 | [Mutex] notify: [retrieved:item:item-f071c3ef-52fb-4b97-a3c6-b737c13d13cb:payload-matches:true:localhost] 2022-05-24 22:40:09 | [Mutex] received everything. 2022-05-24 22:40:09 | [Mutex] isItemNotified: retrieved:item:item-f071c3ef-52fb-4b97-a3c6-b737c13d13cb:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2022-05-24 22:40:09 |
2022-05-24 22:40:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-24 22:40:09 | ------------------------------------ 2022-05-24 22:40:09 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-05-24 22:40:09 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-d8514ec9-55b6-47fb-a0a4-5367fef3fbe5", "node-24bb57a0-5635-48b4-9f5d-eeda7adeb263" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2022-05-24 22:40:09 |
2022-05-24 22:40:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-24 22:40:09 | ------------------------------------ 2022-05-24 22:40:09 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-24bb57a0-5635-48b4-9f5d-eeda7adeb263)" } 2022-05-24 22:40:09 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.011s |
2022-05-24 22:40:08 |
2022-05-24 22:40:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-24 22:40:08 | ------------------------------------ 2022-05-24 22:40:08 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-24bb57a0-5635-48b4-9f5d-eeda7adeb263", "jids": [ "admin@test-domain.com" ] } 2022-05-24 22:40:08 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.055s |
2022-05-24 22:40:10 |
2022-05-24 22:40:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-24 22:40:10 | ------------------------------------ 2022-05-24 22:40:10 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-24bb57a0-5635-48b4-9f5d-eeda7adeb263", "jids": [ "admin@test-domain.com" ] } 2022-05-24 22:40:10 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |