Test duration : 9.375s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.110s |
2021-09-28 22:56:50 |
2021-09-28 22:56:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-28 22:56:50 | ------------------------------------ 2021-09-28 22:56:50 | [Mutex] waiting for: [configured:node:node-a3de36ce-7c6e-42cd-be4d-59cbf71c5199:node-091de45c-9f01-48c1-99e1-3bc190343754] 2021-09-28 22:56:50 | [Mutex] received everything. 2021-09-28 22:56:50 | [Mutex] isItemNotified: configured:node:node-a3de36ce-7c6e-42cd-be4d-59cbf71c5199:node-091de45c-9f01-48c1-99e1-3bc190343754 :: true 2021-09-28 22:56:51 | [Mutex] waiting for: [received:nodes:73e1aa17-018f-4bd4-bfdf-23db0b2ca538:localhost] 2021-09-28 22:56:51 | [Mutex] received everything. 2021-09-28 22:56:51 | [Mutex] isItemNotified: received:node:73e1aa17-018f-4bd4-bfdf-23db0b2ca538:localhost:node-a3de36ce-7c6e-42cd-be4d-59cbf71c5199:Node a3de36ce-7c6e-42cd-be4d-59cbf71c5199 :: true 2021-09-28 22:56:51 | [Mutex] waiting for: [received:nodes:1b6ae94b-6bef-458a-a8a8-2a0d1ac151b4:localhost] 2021-09-28 22:56:51 | [Mutex] received everything. 2021-09-28 22:56:51 | [Mutex] isItemNotified: received:node:1b6ae94b-6bef-458a-a8a8-2a0d1ac151b4:localhost:node-a3de36ce-7c6e-42cd-be4d-59cbf71c5199:Node a3de36ce-7c6e-42cd-be4d-59cbf71c5199 :: false |
createNodes | 1.960s |
2021-09-28 22:56:47 |
2021-09-28 22:56:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-28 22:56:47 | ------------------------------------ 2021-09-28 22:56:48 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-a3de36ce-7c6e-42cd-be4d-59cbf71c5199", "pubsub#title": "Node a3de36ce-7c6e-42cd-be4d-59cbf71c5199" } 2021-09-28 22:56:48 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-09-28 22:56:49 | [Mutex] waiting for: [received:nodes:623ea7a6-67c3-4eff-9ed7-f158386ce418:localhost] 2021-09-28 22:56:49 | [Mutex] received everything. 2021-09-28 22:56:49 | [Mutex] isItemNotified: received:node:623ea7a6-67c3-4eff-9ed7-f158386ce418:localhost:node-a3de36ce-7c6e-42cd-be4d-59cbf71c5199:Node a3de36ce-7c6e-42cd-be4d-59cbf71c5199 :: true |
createSubnodes | 1.028s |
2021-09-28 22:56:49 |
2021-09-28 22:56:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-28 22:56:49 | ------------------------------------ 2021-09-28 22:56:49 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-091de45c-9f01-48c1-99e1-3bc190343754", "pubsub#title": "Node 091de45c-9f01-48c1-99e1-3bc190343754" } 2021-09-28 22:56:49 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-09-28 22:56:50 | [Mutex] waiting for: [received:nodes:100517f5-8c26-455e-b184-b12a1a6d5393:localhost] 2021-09-28 22:56:50 | [Mutex] received everything. 2021-09-28 22:56:50 | [Mutex] isItemNotified: received:node:100517f5-8c26-455e-b184-b12a1a6d5393:localhost:node-091de45c-9f01-48c1-99e1-3bc190343754:Node 091de45c-9f01-48c1-99e1-3bc190343754 :: true |
deleteNodes | 1.028s |
2021-09-28 22:56:54 |
2021-09-28 22:56:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-28 22:56:54 | ------------------------------------ 2021-09-28 22:56:54 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-091de45c-9f01-48c1-99e1-3bc190343754" } 2021-09-28 22:56:54 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-09-28 22:56:55 | [Mutex] waiting for: [received:nodes:92037a14-7e35-4e60-8c26-8cf6201863b3:localhost] 2021-09-28 22:56:55 | [Mutex] waiting for: [received:nodes:92037a14-7e35-4e60-8c26-8cf6201863b3:localhost] 2021-09-28 22:56:55 | [Mutex] received everything. 2021-09-28 22:56:55 | [Mutex] isItemNotified: received:node:92037a14-7e35-4e60-8c26-8cf6201863b3:localhost:node-091de45c-9f01-48c1-99e1-3bc190343754:Node 091de45c-9f01-48c1-99e1-3bc190343754 :: false |
deleteSubnodes | 1.033s |
2021-09-28 22:56:53 |
2021-09-28 22:56:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-28 22:56:53 | ------------------------------------ 2021-09-28 22:56:53 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-a3de36ce-7c6e-42cd-be4d-59cbf71c5199" } 2021-09-28 22:56:53 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-09-28 22:56:54 | [Mutex] waiting for: [received:nodes:7418be33-fbc9-4507-a9b2-296a8d9e40f2:localhost] 2021-09-28 22:56:54 | [Mutex] received everything. 2021-09-28 22:56:54 | [Mutex] isItemNotified: received:node:7418be33-fbc9-4507-a9b2-296a8d9e40f2:localhost:node-a3de36ce-7c6e-42cd-be4d-59cbf71c5199:Node a3de36ce-7c6e-42cd-be4d-59cbf71c5199 :: false 2021-09-28 22:56:54 | [Mutex] waiting for: [received:nodes:11fcbd5d-db38-4e04-950c-20784f7b0db8:localhost] 2021-09-28 22:56:54 | [Mutex] received everything. 2021-09-28 22:56:54 | [Mutex] isItemNotified: received:node:11fcbd5d-db38-4e04-950c-20784f7b0db8:localhost:node-a3de36ce-7c6e-42cd-be4d-59cbf71c5199:Node a3de36ce-7c6e-42cd-be4d-59cbf71c5199 :: false |
publishItemsToNodes | 0.040s |
2021-09-28 22:56:52 |
2021-09-28 22:56:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-28 22:56:52 | ------------------------------------ 2021-09-28 22:56:52 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-a3de36ce-7c6e-42cd-be4d-59cbf71c5199", "entry": "<test>item-705f326a-172a-4a6b-bd31-445ecd6ce505</test>", "item-id": "item-705f326a-172a-4a6b-bd31-445ecd6ce505" } 2021-09-28 22:56:52 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-705f326a-172a-4a6b-bd31-445ecd6ce505" } 2021-09-28 22:56:52 | [Mutex] waiting for: [published:item:notifieditem-705f326a-172a-4a6b-bd31-445ecd6ce505:admin@test-domain.com] 2021-09-28 22:56:52 | [Mutex] received everything. 2021-09-28 22:56:52 | [Mutex] isItemNotified: published:item:notifieditem-705f326a-172a-4a6b-bd31-445ecd6ce505:admin@test-domain.com :: true |
retractItemsFromNodes | 0.071s |
2021-09-28 22:56:52 |
2021-09-28 22:56:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-28 22:56:52 | ------------------------------------ 2021-09-28 22:56:52 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-a3de36ce-7c6e-42cd-be4d-59cbf71c5199", "item-id": "item-705f326a-172a-4a6b-bd31-445ecd6ce505" } 2021-09-28 22:56:52 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-705f326a-172a-4a6b-bd31-445ecd6ce505" } 2021-09-28 22:56:52 | [Mutex] received everything. 2021-09-28 22:56:52 | [Mutex] isItemNotified: retracted:item:notifieditem-705f326a-172a-4a6b-bd31-445ecd6ce505:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.087s |
2021-09-28 22:56:52 |
2021-09-28 22:56:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-28 22:56:52 | ------------------------------------ 2021-09-28 22:56:52 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-a3de36ce-7c6e-42cd-be4d-59cbf71c5199", "item-id": "item-705f326a-172a-4a6b-bd31-445ecd6ce505" } 2021-09-28 22:56:52 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-a3de36ce-7c6e-42cd-be4d-59cbf71c5199", "item-id": "item-705f326a-172a-4a6b-bd31-445ecd6ce505", "item": [ "<item id=\"item-705f326a-172a-4a6b-bd31-445ecd6ce505\"><test>item-705f326a-172a-4a6b-bd31-445ecd6ce505</test></item>" ] } 2021-09-28 22:56:52 | [Mutex] notify: [retrieved:item:item-705f326a-172a-4a6b-bd31-445ecd6ce505:payload-matches:true:localhost] 2021-09-28 22:56:52 | [Mutex] received everything. 2021-09-28 22:56:52 | [Mutex] isItemNotified: retrieved:item:item-705f326a-172a-4a6b-bd31-445ecd6ce505:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.055s |
2021-09-28 22:56:52 |
2021-09-28 22:56:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-28 22:56:52 | ------------------------------------ 2021-09-28 22:56:52 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-09-28 22:56:52 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-091de45c-9f01-48c1-99e1-3bc190343754", "test", "node-a3de36ce-7c6e-42cd-be4d-59cbf71c5199" ] } |
retrieveUserSubscriptionsWithRegex | 0.048s |
2021-09-28 22:56:52 |
2021-09-28 22:56:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-28 22:56:52 | ------------------------------------ 2021-09-28 22:56:52 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-a3de36ce-7c6e-42cd-be4d-59cbf71c5199)" } 2021-09-28 22:56:52 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.013s |
2021-09-28 22:56:51 |
2021-09-28 22:56:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-28 22:56:51 | ------------------------------------ 2021-09-28 22:56:51 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-a3de36ce-7c6e-42cd-be4d-59cbf71c5199", "jids": [ "admin@test-domain.com" ] } 2021-09-28 22:56:51 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.056s |
2021-09-28 22:56:52 |
2021-09-28 22:56:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-28 22:56:52 | ------------------------------------ 2021-09-28 22:56:52 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-a3de36ce-7c6e-42cd-be4d-59cbf71c5199", "jids": [ "admin@test-domain.com" ] } 2021-09-28 22:56:52 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |