Test duration : 8.725s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.095s |
2021-05-06 22:36:38 |
2021-05-06 22:36:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-06 22:36:38 | ------------------------------------ 2021-05-06 22:36:38 | [Mutex] waiting for: [configured:node:node-c0746730-c58e-4b82-bfae-aa291bbc51f5:node-34b1b330-c7a4-4bd3-b63c-3eaab5ede9e1] 2021-05-06 22:36:38 | [Mutex] received everything. 2021-05-06 22:36:38 | [Mutex] isItemNotified: configured:node:node-c0746730-c58e-4b82-bfae-aa291bbc51f5:node-34b1b330-c7a4-4bd3-b63c-3eaab5ede9e1 :: true 2021-05-06 22:36:39 | [Mutex] waiting for: [received:nodes:ae277366-2084-4406-997d-4fcf0805b141:localhost] 2021-05-06 22:36:39 | [Mutex] received everything. 2021-05-06 22:36:39 | [Mutex] isItemNotified: received:node:ae277366-2084-4406-997d-4fcf0805b141:localhost:node-c0746730-c58e-4b82-bfae-aa291bbc51f5:Node c0746730-c58e-4b82-bfae-aa291bbc51f5 :: true 2021-05-06 22:36:39 | [Mutex] waiting for: [received:nodes:d1fc5ee7-f26a-4b84-8afc-7ba7e5c06b49:localhost] 2021-05-06 22:36:39 | [Mutex] waiting for: [received:nodes:d1fc5ee7-f26a-4b84-8afc-7ba7e5c06b49:localhost] 2021-05-06 22:36:39 | [Mutex] waiting for: [received:nodes:d1fc5ee7-f26a-4b84-8afc-7ba7e5c06b49:localhost] 2021-05-06 22:36:39 | [Mutex] received everything. 2021-05-06 22:36:39 | [Mutex] isItemNotified: received:node:d1fc5ee7-f26a-4b84-8afc-7ba7e5c06b49:localhost:node-c0746730-c58e-4b82-bfae-aa291bbc51f5:Node c0746730-c58e-4b82-bfae-aa291bbc51f5 :: false |
createNodes | 1.490s |
2021-05-06 22:36:35 |
2021-05-06 22:36:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-06 22:36:35 | ------------------------------------ 2021-05-06 22:36:36 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-c0746730-c58e-4b82-bfae-aa291bbc51f5", "pubsub#title": "Node c0746730-c58e-4b82-bfae-aa291bbc51f5" } 2021-05-06 22:36:36 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-05-06 22:36:37 | [Mutex] waiting for: [received:nodes:3bf3629e-7117-4424-8d4b-dfc7c5765ff4:localhost] 2021-05-06 22:36:37 | [Mutex] waiting for: [received:nodes:3bf3629e-7117-4424-8d4b-dfc7c5765ff4:localhost] 2021-05-06 22:36:37 | [Mutex] received everything. 2021-05-06 22:36:37 | [Mutex] isItemNotified: received:node:3bf3629e-7117-4424-8d4b-dfc7c5765ff4:localhost:node-c0746730-c58e-4b82-bfae-aa291bbc51f5:Node c0746730-c58e-4b82-bfae-aa291bbc51f5 :: true |
createSubnodes | 1.020s |
2021-05-06 22:36:37 |
2021-05-06 22:36:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-06 22:36:37 | ------------------------------------ 2021-05-06 22:36:37 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-34b1b330-c7a4-4bd3-b63c-3eaab5ede9e1", "pubsub#title": "Node 34b1b330-c7a4-4bd3-b63c-3eaab5ede9e1" } 2021-05-06 22:36:37 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-05-06 22:36:38 | [Mutex] waiting for: [received:nodes:e2dafaf9-32ec-43df-8b43-cc082a4aa80d:localhost] 2021-05-06 22:36:38 | [Mutex] waiting for: [received:nodes:e2dafaf9-32ec-43df-8b43-cc082a4aa80d:localhost] 2021-05-06 22:36:38 | [Mutex] received everything. 2021-05-06 22:36:38 | [Mutex] isItemNotified: received:node:e2dafaf9-32ec-43df-8b43-cc082a4aa80d:localhost:node-34b1b330-c7a4-4bd3-b63c-3eaab5ede9e1:Node 34b1b330-c7a4-4bd3-b63c-3eaab5ede9e1 :: true |
deleteNodes | 1.018s |
2021-05-06 22:36:42 |
2021-05-06 22:36:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-06 22:36:42 | ------------------------------------ 2021-05-06 22:36:42 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-34b1b330-c7a4-4bd3-b63c-3eaab5ede9e1" } 2021-05-06 22:36:42 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-05-06 22:36:43 | [Mutex] waiting for: [received:nodes:1b31b55d-1be2-4679-b0be-33cd5d95a455:localhost] 2021-05-06 22:36:43 | [Mutex] received everything. 2021-05-06 22:36:43 | [Mutex] isItemNotified: received:node:1b31b55d-1be2-4679-b0be-33cd5d95a455:localhost:node-34b1b330-c7a4-4bd3-b63c-3eaab5ede9e1:Node 34b1b330-c7a4-4bd3-b63c-3eaab5ede9e1 :: false |
deleteSubnodes | 1.024s |
2021-05-06 22:36:41 |
2021-05-06 22:36:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-06 22:36:41 | ------------------------------------ 2021-05-06 22:36:41 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-c0746730-c58e-4b82-bfae-aa291bbc51f5" } 2021-05-06 22:36:41 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-05-06 22:36:42 | [Mutex] waiting for: [received:nodes:8dd37622-37c1-48bf-b134-1c357d71cb33:localhost] 2021-05-06 22:36:42 | [Mutex] received everything. 2021-05-06 22:36:42 | [Mutex] isItemNotified: received:node:8dd37622-37c1-48bf-b134-1c357d71cb33:localhost:node-c0746730-c58e-4b82-bfae-aa291bbc51f5:Node c0746730-c58e-4b82-bfae-aa291bbc51f5 :: false 2021-05-06 22:36:42 | [Mutex] waiting for: [received:nodes:8abbd9bd-7c56-4c40-ba40-2603f375c4cd:localhost] 2021-05-06 22:36:42 | [Mutex] received everything. 2021-05-06 22:36:42 | [Mutex] isItemNotified: received:node:8abbd9bd-7c56-4c40-ba40-2603f375c4cd:localhost:node-c0746730-c58e-4b82-bfae-aa291bbc51f5:Node c0746730-c58e-4b82-bfae-aa291bbc51f5 :: false |
publishItemsToNodes | 0.073s |
2021-05-06 22:36:40 |
2021-05-06 22:36:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-06 22:36:40 | ------------------------------------ 2021-05-06 22:36:40 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-c0746730-c58e-4b82-bfae-aa291bbc51f5", "entry": "<test>item-ae1567d4-9a0d-4a64-8cd0-d552b1c56127</test>", "item-id": "item-ae1567d4-9a0d-4a64-8cd0-d552b1c56127" } 2021-05-06 22:36:40 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-ae1567d4-9a0d-4a64-8cd0-d552b1c56127" } 2021-05-06 22:36:40 | [Mutex] waiting for: [published:item:notifieditem-ae1567d4-9a0d-4a64-8cd0-d552b1c56127:admin@test-domain.com] 2021-05-06 22:36:40 | [Mutex] received everything. 2021-05-06 22:36:40 | [Mutex] isItemNotified: published:item:notifieditem-ae1567d4-9a0d-4a64-8cd0-d552b1c56127:admin@test-domain.com :: true |
retractItemsFromNodes | 0.063s |
2021-05-06 22:36:40 |
2021-05-06 22:36:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-06 22:36:40 | ------------------------------------ 2021-05-06 22:36:40 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-c0746730-c58e-4b82-bfae-aa291bbc51f5", "item-id": "item-ae1567d4-9a0d-4a64-8cd0-d552b1c56127" } 2021-05-06 22:36:40 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-ae1567d4-9a0d-4a64-8cd0-d552b1c56127" } 2021-05-06 22:36:40 | [Mutex] received everything. 2021-05-06 22:36:40 | [Mutex] isItemNotified: retracted:item:notifieditem-ae1567d4-9a0d-4a64-8cd0-d552b1c56127:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.065s |
2021-05-06 22:36:40 |
2021-05-06 22:36:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-06 22:36:40 | ------------------------------------ 2021-05-06 22:36:40 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-c0746730-c58e-4b82-bfae-aa291bbc51f5", "item-id": "item-ae1567d4-9a0d-4a64-8cd0-d552b1c56127" } 2021-05-06 22:36:40 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-c0746730-c58e-4b82-bfae-aa291bbc51f5", "item-id": "item-ae1567d4-9a0d-4a64-8cd0-d552b1c56127", "item": [ "<item id=\"item-ae1567d4-9a0d-4a64-8cd0-d552b1c56127\"><test>item-ae1567d4-9a0d-4a64-8cd0-d552b1c56127</test></item>" ] } 2021-05-06 22:36:40 | [Mutex] notify: [retrieved:item:item-ae1567d4-9a0d-4a64-8cd0-d552b1c56127:payload-matches:true:localhost] 2021-05-06 22:36:40 | [Mutex] received everything. 2021-05-06 22:36:40 | [Mutex] isItemNotified: retrieved:item:item-ae1567d4-9a0d-4a64-8cd0-d552b1c56127:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.050s |
2021-05-06 22:36:40 |
2021-05-06 22:36:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-06 22:36:40 | ------------------------------------ 2021-05-06 22:36:40 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-05-06 22:36:40 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-34b1b330-c7a4-4bd3-b63c-3eaab5ede9e1", "node-c0746730-c58e-4b82-bfae-aa291bbc51f5", "test" ] } |
retrieveUserSubscriptionsWithRegex | 0.048s |
2021-05-06 22:36:40 |
2021-05-06 22:36:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-06 22:36:40 | ------------------------------------ 2021-05-06 22:36:40 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-c0746730-c58e-4b82-bfae-aa291bbc51f5)" } 2021-05-06 22:36:40 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.009s |
2021-05-06 22:36:39 |
2021-05-06 22:36:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-06 22:36:39 | ------------------------------------ 2021-05-06 22:36:39 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-c0746730-c58e-4b82-bfae-aa291bbc51f5", "jids": [ "admin@test-domain.com" ] } 2021-05-06 22:36:39 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.055s |
2021-05-06 22:36:40 |
2021-05-06 22:36:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-06 22:36:40 | ------------------------------------ 2021-05-06 22:36:40 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-c0746730-c58e-4b82-bfae-aa291bbc51f5", "jids": [ "admin@test-domain.com" ] } 2021-05-06 22:36:40 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |