Test duration : 8.883s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.095s |
2020-09-02 22:47:32 |
2020-09-02 22:47:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-02 22:47:32 | ------------------------------------ 2020-09-02 22:47:32 | [Mutex] waiting for: [configured:node:node-36802377-04eb-43f8-ada0-08e862f38eda:node-21a8f3ee-92c6-4561-96b0-16b3c055140c] 2020-09-02 22:47:32 | [Mutex] received everything. 2020-09-02 22:47:32 | [Mutex] isItemNotified: configured:node:node-36802377-04eb-43f8-ada0-08e862f38eda:node-21a8f3ee-92c6-4561-96b0-16b3c055140c :: true 2020-09-02 22:47:33 | [Mutex] waiting for: [received:nodes:0b288ffb-66be-45ca-a4d4-8e8f1fbb38bc:localhost] 2020-09-02 22:47:33 | [Mutex] received everything. 2020-09-02 22:47:33 | [Mutex] isItemNotified: received:node:0b288ffb-66be-45ca-a4d4-8e8f1fbb38bc:localhost:node-36802377-04eb-43f8-ada0-08e862f38eda:Node 36802377-04eb-43f8-ada0-08e862f38eda :: true 2020-09-02 22:47:33 | [Mutex] waiting for: [received:nodes:b3acf2e4-42b9-45ab-8e1a-e245f4987dd0:localhost] 2020-09-02 22:47:33 | [Mutex] received everything. 2020-09-02 22:47:33 | [Mutex] isItemNotified: received:node:b3acf2e4-42b9-45ab-8e1a-e245f4987dd0:localhost:node-36802377-04eb-43f8-ada0-08e862f38eda:Node 36802377-04eb-43f8-ada0-08e862f38eda :: false |
createNodes | 1.508s |
2020-09-02 22:47:29 |
2020-09-02 22:47:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-02 22:47:29 | ------------------------------------ 2020-09-02 22:47:29 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-36802377-04eb-43f8-ada0-08e862f38eda", "pubsub#title": "Node 36802377-04eb-43f8-ada0-08e862f38eda" } 2020-09-02 22:47:29 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-02 22:47:30 | [Mutex] waiting for: [received:nodes:5792af5a-5b63-4705-831f-cb56747161d9:localhost] 2020-09-02 22:47:30 | [Mutex] received everything. 2020-09-02 22:47:30 | [Mutex] isItemNotified: received:node:5792af5a-5b63-4705-831f-cb56747161d9:localhost:node-36802377-04eb-43f8-ada0-08e862f38eda:Node 36802377-04eb-43f8-ada0-08e862f38eda :: true |
createSubnodes | 1.025s |
2020-09-02 22:47:30 |
2020-09-02 22:47:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-02 22:47:30 | ------------------------------------ 2020-09-02 22:47:30 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-21a8f3ee-92c6-4561-96b0-16b3c055140c", "pubsub#title": "Node 21a8f3ee-92c6-4561-96b0-16b3c055140c" } 2020-09-02 22:47:30 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-02 22:47:31 | [Mutex] waiting for: [received:nodes:62843e3a-d25a-4e72-ae58-165c1b420a47:localhost] 2020-09-02 22:47:32 | [Mutex] received everything. 2020-09-02 22:47:32 | [Mutex] isItemNotified: received:node:62843e3a-d25a-4e72-ae58-165c1b420a47:localhost:node-21a8f3ee-92c6-4561-96b0-16b3c055140c:Node 21a8f3ee-92c6-4561-96b0-16b3c055140c :: true |
deleteNodes | 1.020s |
2020-09-02 22:47:36 |
2020-09-02 22:47:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-02 22:47:36 | ------------------------------------ 2020-09-02 22:47:36 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-21a8f3ee-92c6-4561-96b0-16b3c055140c" } 2020-09-02 22:47:36 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-02 22:47:37 | [Mutex] waiting for: [received:nodes:860b47b4-aa2e-4ba0-9e48-3ced40022441:localhost] 2020-09-02 22:47:37 | [Mutex] received everything. 2020-09-02 22:47:37 | [Mutex] isItemNotified: received:node:860b47b4-aa2e-4ba0-9e48-3ced40022441:localhost:node-21a8f3ee-92c6-4561-96b0-16b3c055140c:Node 21a8f3ee-92c6-4561-96b0-16b3c055140c :: false |
deleteSubnodes | 1.023s |
2020-09-02 22:47:35 |
2020-09-02 22:47:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-02 22:47:35 | ------------------------------------ 2020-09-02 22:47:35 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-36802377-04eb-43f8-ada0-08e862f38eda" } 2020-09-02 22:47:35 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-02 22:47:36 | [Mutex] waiting for: [received:nodes:8c5a310d-481a-4629-bf09-c9afd3919fda:localhost] 2020-09-02 22:47:36 | [Mutex] received everything. 2020-09-02 22:47:36 | [Mutex] isItemNotified: received:node:8c5a310d-481a-4629-bf09-c9afd3919fda:localhost:node-36802377-04eb-43f8-ada0-08e862f38eda:Node 36802377-04eb-43f8-ada0-08e862f38eda :: false 2020-09-02 22:47:36 | [Mutex] waiting for: [received:nodes:179d991a-1c12-4bce-aec0-db3518897518:localhost] 2020-09-02 22:47:36 | [Mutex] received everything. 2020-09-02 22:47:36 | [Mutex] isItemNotified: received:node:179d991a-1c12-4bce-aec0-db3518897518:localhost:node-36802377-04eb-43f8-ada0-08e862f38eda:Node 36802377-04eb-43f8-ada0-08e862f38eda :: false |
publishItemsToNodes | 0.047s |
2020-09-02 22:47:34 |
2020-09-02 22:47:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-02 22:47:34 | ------------------------------------ 2020-09-02 22:47:34 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-36802377-04eb-43f8-ada0-08e862f38eda", "entry": "<test>item-76c644b3-bd75-4efc-887b-1359effc14cc</test>", "item-id": "item-76c644b3-bd75-4efc-887b-1359effc14cc" } 2020-09-02 22:47:34 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-76c644b3-bd75-4efc-887b-1359effc14cc" } 2020-09-02 22:47:34 | [Mutex] waiting for: [published:item:notifieditem-76c644b3-bd75-4efc-887b-1359effc14cc:admin@test-domain.com] 2020-09-02 22:47:34 | [Mutex] received everything. 2020-09-02 22:47:34 | [Mutex] isItemNotified: published:item:notifieditem-76c644b3-bd75-4efc-887b-1359effc14cc:admin@test-domain.com :: true |
retractItemsFromNodes | 0.119s |
2020-09-02 22:47:34 |
2020-09-02 22:47:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-02 22:47:34 | ------------------------------------ 2020-09-02 22:47:34 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-36802377-04eb-43f8-ada0-08e862f38eda", "item-id": "item-76c644b3-bd75-4efc-887b-1359effc14cc" } 2020-09-02 22:47:34 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-76c644b3-bd75-4efc-887b-1359effc14cc" } 2020-09-02 22:47:34 | [Mutex] received everything. 2020-09-02 22:47:34 | [Mutex] isItemNotified: retracted:item:notifieditem-76c644b3-bd75-4efc-887b-1359effc14cc:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.062s |
2020-09-02 22:47:34 |
2020-09-02 22:47:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-02 22:47:34 | ------------------------------------ 2020-09-02 22:47:34 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-36802377-04eb-43f8-ada0-08e862f38eda", "item-id": "item-76c644b3-bd75-4efc-887b-1359effc14cc" } 2020-09-02 22:47:34 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-36802377-04eb-43f8-ada0-08e862f38eda", "item-id": "item-76c644b3-bd75-4efc-887b-1359effc14cc", "item": [ "<item id=\"item-76c644b3-bd75-4efc-887b-1359effc14cc\"><test>item-76c644b3-bd75-4efc-887b-1359effc14cc</test></item>" ] } 2020-09-02 22:47:34 | [Mutex] notify: [retrieved:item:item-76c644b3-bd75-4efc-887b-1359effc14cc:payload-matches:true:localhost] 2020-09-02 22:47:34 | [Mutex] received everything. 2020-09-02 22:47:34 | [Mutex] isItemNotified: retrieved:item:item-76c644b3-bd75-4efc-887b-1359effc14cc:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.047s |
2020-09-02 22:47:34 |
2020-09-02 22:47:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-02 22:47:34 | ------------------------------------ 2020-09-02 22:47:34 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-09-02 22:47:34 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-21a8f3ee-92c6-4561-96b0-16b3c055140c", "node-36802377-04eb-43f8-ada0-08e862f38eda" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2020-09-02 22:47:34 |
2020-09-02 22:47:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-02 22:47:34 | ------------------------------------ 2020-09-02 22:47:34 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-36802377-04eb-43f8-ada0-08e862f38eda)" } 2020-09-02 22:47:34 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.015s |
2020-09-02 22:47:33 |
2020-09-02 22:47:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-02 22:47:33 | ------------------------------------ 2020-09-02 22:47:33 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-36802377-04eb-43f8-ada0-08e862f38eda", "jids": [ "admin@test-domain.com" ] } 2020-09-02 22:47:33 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.071s |
2020-09-02 22:47:34 |
2020-09-02 22:47:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-02 22:47:34 | ------------------------------------ 2020-09-02 22:47:34 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-36802377-04eb-43f8-ada0-08e862f38eda", "jids": [ "admin@test-domain.com" ] } 2020-09-02 22:47:34 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |