Test duration : 9.046s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.132s |
2021-02-05 21:30:36 |
2021-02-05 21:30:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-05 21:30:36 | ------------------------------------ 2021-02-05 21:30:36 | [Mutex] waiting for: [configured:node:node-3e56e736-ee15-4598-9723-4b10720949a5:node-9a54e754-ea0b-42d6-9671-c4bf918b7a34] 2021-02-05 21:30:37 | [Mutex] received everything. 2021-02-05 21:30:37 | [Mutex] isItemNotified: configured:node:node-3e56e736-ee15-4598-9723-4b10720949a5:node-9a54e754-ea0b-42d6-9671-c4bf918b7a34 :: true 2021-02-05 21:30:38 | [Mutex] waiting for: [received:nodes:0ce22b3b-45ea-4407-90aa-430deb637ce1:localhost] 2021-02-05 21:30:38 | [Mutex] received everything. 2021-02-05 21:30:38 | [Mutex] isItemNotified: received:node:0ce22b3b-45ea-4407-90aa-430deb637ce1:localhost:node-3e56e736-ee15-4598-9723-4b10720949a5:Node 3e56e736-ee15-4598-9723-4b10720949a5 :: true 2021-02-05 21:30:38 | [Mutex] waiting for: [received:nodes:7c775627-2aac-465e-a3fa-f02e4b9f3fa0:localhost] 2021-02-05 21:30:38 | [Mutex] received everything. 2021-02-05 21:30:38 | [Mutex] isItemNotified: received:node:7c775627-2aac-465e-a3fa-f02e4b9f3fa0:localhost:node-3e56e736-ee15-4598-9723-4b10720949a5:Node 3e56e736-ee15-4598-9723-4b10720949a5 :: false |
createNodes | 1.639s |
2021-02-05 21:30:34 |
2021-02-05 21:30:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-05 21:30:34 | ------------------------------------ 2021-02-05 21:30: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-3e56e736-ee15-4598-9723-4b10720949a5", "pubsub#title": "Node 3e56e736-ee15-4598-9723-4b10720949a5" } 2021-02-05 21:30:34 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-02-05 21:30:35 | [Mutex] waiting for: [received:nodes:26fe1b06-3b5a-4d3f-9e82-35031746a5cc:localhost] 2021-02-05 21:30:35 | [Mutex] received everything. 2021-02-05 21:30:35 | [Mutex] isItemNotified: received:node:26fe1b06-3b5a-4d3f-9e82-35031746a5cc:localhost:node-3e56e736-ee15-4598-9723-4b10720949a5:Node 3e56e736-ee15-4598-9723-4b10720949a5 :: true |
createSubnodes | 1.022s |
2021-02-05 21:30:35 |
2021-02-05 21:30:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-05 21:30:35 | ------------------------------------ 2021-02-05 21:30: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-9a54e754-ea0b-42d6-9671-c4bf918b7a34", "pubsub#title": "Node 9a54e754-ea0b-42d6-9671-c4bf918b7a34" } 2021-02-05 21:30:35 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-02-05 21:30:36 | [Mutex] waiting for: [received:nodes:dacaa666-c123-4ece-864c-abc46e5cf19e:localhost] 2021-02-05 21:30:36 | [Mutex] received everything. 2021-02-05 21:30:36 | [Mutex] isItemNotified: received:node:dacaa666-c123-4ece-864c-abc46e5cf19e:localhost:node-9a54e754-ea0b-42d6-9671-c4bf918b7a34:Node 9a54e754-ea0b-42d6-9671-c4bf918b7a34 :: true |
deleteNodes | 1.018s |
2021-02-05 21:30:41 |
2021-02-05 21:30:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-05 21:30:41 | ------------------------------------ 2021-02-05 21:30:41 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-9a54e754-ea0b-42d6-9671-c4bf918b7a34" } 2021-02-05 21:30:41 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-02-05 21:30:42 | [Mutex] waiting for: [received:nodes:fcff016a-162a-4e37-b4aa-e9d9afcfd2f2:localhost] 2021-02-05 21:30:42 | [Mutex] waiting for: [received:nodes:fcff016a-162a-4e37-b4aa-e9d9afcfd2f2:localhost] 2021-02-05 21:30:42 | [Mutex] received everything. 2021-02-05 21:30:42 | [Mutex] isItemNotified: received:node:fcff016a-162a-4e37-b4aa-e9d9afcfd2f2:localhost:node-9a54e754-ea0b-42d6-9671-c4bf918b7a34:Node 9a54e754-ea0b-42d6-9671-c4bf918b7a34 :: false |
deleteSubnodes | 1.033s |
2021-02-05 21:30:40 |
2021-02-05 21:30:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-05 21:30:40 | ------------------------------------ 2021-02-05 21:30:40 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-3e56e736-ee15-4598-9723-4b10720949a5" } 2021-02-05 21:30:40 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-02-05 21:30:41 | [Mutex] waiting for: [received:nodes:eac41c59-0d50-40fa-88fc-2a2cf123bc6f:localhost] 2021-02-05 21:30:41 | [Mutex] received everything. 2021-02-05 21:30:41 | [Mutex] isItemNotified: received:node:eac41c59-0d50-40fa-88fc-2a2cf123bc6f:localhost:node-3e56e736-ee15-4598-9723-4b10720949a5:Node 3e56e736-ee15-4598-9723-4b10720949a5 :: false 2021-02-05 21:30:41 | [Mutex] waiting for: [received:nodes:2d74017d-4e74-4e95-85ec-58414cd53b83:localhost] 2021-02-05 21:30:41 | [Mutex] received everything. 2021-02-05 21:30:41 | [Mutex] isItemNotified: received:node:2d74017d-4e74-4e95-85ec-58414cd53b83:localhost:node-3e56e736-ee15-4598-9723-4b10720949a5:Node 3e56e736-ee15-4598-9723-4b10720949a5 :: false |
publishItemsToNodes | 0.060s |
2021-02-05 21:30:39 |
2021-02-05 21:30:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-05 21:30:39 | ------------------------------------ 2021-02-05 21:30:39 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-3e56e736-ee15-4598-9723-4b10720949a5", "entry": "<test>item-23331071-26fa-425b-90ed-3db6da542495</test>", "item-id": "item-23331071-26fa-425b-90ed-3db6da542495" } 2021-02-05 21:30:39 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-23331071-26fa-425b-90ed-3db6da542495" } 2021-02-05 21:30:39 | [Mutex] waiting for: [published:item:notifieditem-23331071-26fa-425b-90ed-3db6da542495:admin@test-domain.com] 2021-02-05 21:30:39 | [Mutex] received everything. 2021-02-05 21:30:39 | [Mutex] isItemNotified: published:item:notifieditem-23331071-26fa-425b-90ed-3db6da542495:admin@test-domain.com :: true |
retractItemsFromNodes | 0.104s |
2021-02-05 21:30:39 |
2021-02-05 21:30:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-05 21:30:39 | ------------------------------------ 2021-02-05 21:30:39 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-3e56e736-ee15-4598-9723-4b10720949a5", "item-id": "item-23331071-26fa-425b-90ed-3db6da542495" } 2021-02-05 21:30:39 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-23331071-26fa-425b-90ed-3db6da542495" } 2021-02-05 21:30:39 | [Mutex] waiting for: [retracted:item:notifieditem-23331071-26fa-425b-90ed-3db6da542495:admin@test-domain.com] 2021-02-05 21:30:39 | [Mutex] received everything. 2021-02-05 21:30:39 | [Mutex] isItemNotified: retracted:item:notifieditem-23331071-26fa-425b-90ed-3db6da542495:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.016s |
2021-02-05 21:30:39 |
2021-02-05 21:30:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-05 21:30:39 | ------------------------------------ 2021-02-05 21:30:39 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-3e56e736-ee15-4598-9723-4b10720949a5", "item-id": "item-23331071-26fa-425b-90ed-3db6da542495" } 2021-02-05 21:30:39 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-3e56e736-ee15-4598-9723-4b10720949a5", "item-id": "item-23331071-26fa-425b-90ed-3db6da542495", "item": [ "<item id=\"item-23331071-26fa-425b-90ed-3db6da542495\"><test>item-23331071-26fa-425b-90ed-3db6da542495</test></item>" ] } 2021-02-05 21:30:39 | [Mutex] notify: [retrieved:item:item-23331071-26fa-425b-90ed-3db6da542495:payload-matches:true:localhost] 2021-02-05 21:30:39 | [Mutex] received everything. 2021-02-05 21:30:39 | [Mutex] isItemNotified: retrieved:item:item-23331071-26fa-425b-90ed-3db6da542495:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.055s |
2021-02-05 21:30:39 |
2021-02-05 21:30:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-05 21:30:39 | ------------------------------------ 2021-02-05 21:30:39 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-02-05 21:30:39 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-3e56e736-ee15-4598-9723-4b10720949a5", "node-9a54e754-ea0b-42d6-9671-c4bf918b7a34", "test" ] } |
retrieveUserSubscriptionsWithRegex | 0.068s |
2021-02-05 21:30:39 |
2021-02-05 21:30:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-05 21:30:39 | ------------------------------------ 2021-02-05 21:30:39 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-3e56e736-ee15-4598-9723-4b10720949a5)" } 2021-02-05 21:30:39 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.011s |
2021-02-05 21:30:38 |
2021-02-05 21:30:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-05 21:30:38 | ------------------------------------ 2021-02-05 21:30:38 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-3e56e736-ee15-4598-9723-4b10720949a5", "jids": [ "admin@test-domain.com" ] } 2021-02-05 21:30:38 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.016s |
2021-02-05 21:30:39 |
2021-02-05 21:30:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-05 21:30:39 | ------------------------------------ 2021-02-05 21:30:39 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-3e56e736-ee15-4598-9723-4b10720949a5", "jids": [ "admin@test-domain.com" ] } 2021-02-05 21:30:39 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |