Test duration : 8.729s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.115s |
2022-07-18 23:00:19 |
2022-07-18 23:00:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-18 23:00:19 | ------------------------------------ 2022-07-18 23:00:19 | [Mutex] waiting for: [configured:node:node-fe3abfbf-16d9-478d-87db-02b31710c47b:node-7fc89083-34bf-4877-beee-caa60f07af7d] 2022-07-18 23:00:19 | [Mutex] received everything. 2022-07-18 23:00:19 | [Mutex] isItemNotified: configured:node:node-fe3abfbf-16d9-478d-87db-02b31710c47b:node-7fc89083-34bf-4877-beee-caa60f07af7d :: true 2022-07-18 23:00:20 | [Mutex] waiting for: [received:nodes:660a6988-095a-489c-87b2-547ede5a9237:localhost] 2022-07-18 23:00:20 | [Mutex] received everything. 2022-07-18 23:00:20 | [Mutex] isItemNotified: received:node:660a6988-095a-489c-87b2-547ede5a9237:localhost:node-fe3abfbf-16d9-478d-87db-02b31710c47b:Node fe3abfbf-16d9-478d-87db-02b31710c47b :: true 2022-07-18 23:00:20 | [Mutex] waiting for: [received:nodes:891efe97-4ea2-4130-b3d7-6e7803ff72a4:localhost] 2022-07-18 23:00:20 | [Mutex] received everything. 2022-07-18 23:00:20 | [Mutex] isItemNotified: received:node:891efe97-4ea2-4130-b3d7-6e7803ff72a4:localhost:node-fe3abfbf-16d9-478d-87db-02b31710c47b:Node fe3abfbf-16d9-478d-87db-02b31710c47b :: false |
createNodes | 1.607s |
2022-07-18 23:00:16 |
2022-07-18 23:00:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-18 23:00:16 | ------------------------------------ 2022-07-18 23:00:17 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-fe3abfbf-16d9-478d-87db-02b31710c47b", "pubsub#title": "Node fe3abfbf-16d9-478d-87db-02b31710c47b" } 2022-07-18 23:00:17 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-18 23:00:18 | [Mutex] waiting for: [received:nodes:17a0096c-07bf-44ee-aca1-4fa50f0a8859:localhost] 2022-07-18 23:00:18 | [Mutex] waiting for: [received:nodes:17a0096c-07bf-44ee-aca1-4fa50f0a8859:localhost] 2022-07-18 23:00:18 | [Mutex] received everything. 2022-07-18 23:00:18 | [Mutex] isItemNotified: received:node:17a0096c-07bf-44ee-aca1-4fa50f0a8859:localhost:node-fe3abfbf-16d9-478d-87db-02b31710c47b:Node fe3abfbf-16d9-478d-87db-02b31710c47b :: true |
createSubnodes | 1.020s |
2022-07-18 23:00:18 |
2022-07-18 23:00:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-18 23:00:18 | ------------------------------------ 2022-07-18 23:00:18 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-7fc89083-34bf-4877-beee-caa60f07af7d", "pubsub#title": "Node 7fc89083-34bf-4877-beee-caa60f07af7d" } 2022-07-18 23:00:18 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-18 23:00:19 | [Mutex] waiting for: [received:nodes:3adc4ea7-eb7a-4aac-8bc5-7474f41adaec:localhost] 2022-07-18 23:00:19 | [Mutex] received everything. 2022-07-18 23:00:19 | [Mutex] isItemNotified: received:node:3adc4ea7-eb7a-4aac-8bc5-7474f41adaec:localhost:node-7fc89083-34bf-4877-beee-caa60f07af7d:Node 7fc89083-34bf-4877-beee-caa60f07af7d :: true |
deleteNodes | 1.023s |
2022-07-18 23:00:24 |
2022-07-18 23:00:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-18 23:00:24 | ------------------------------------ 2022-07-18 23:00:24 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-7fc89083-34bf-4877-beee-caa60f07af7d" } 2022-07-18 23:00:24 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-18 23:00:25 | [Mutex] waiting for: [received:nodes:b1ea3eeb-033f-4d76-bf25-ca473985a40a:localhost] 2022-07-18 23:00:25 | [Mutex] received everything. 2022-07-18 23:00:25 | [Mutex] isItemNotified: received:node:b1ea3eeb-033f-4d76-bf25-ca473985a40a:localhost:node-7fc89083-34bf-4877-beee-caa60f07af7d:Node 7fc89083-34bf-4877-beee-caa60f07af7d :: false |
deleteSubnodes | 1.027s |
2022-07-18 23:00:23 |
2022-07-18 23:00:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-18 23:00:23 | ------------------------------------ 2022-07-18 23:00:23 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-fe3abfbf-16d9-478d-87db-02b31710c47b" } 2022-07-18 23:00:23 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-18 23:00:24 | [Mutex] waiting for: [received:nodes:9ffa95d2-3b65-4816-851d-be14e1bf36c3:localhost] 2022-07-18 23:00:24 | [Mutex] received everything. 2022-07-18 23:00:24 | [Mutex] isItemNotified: received:node:9ffa95d2-3b65-4816-851d-be14e1bf36c3:localhost:node-fe3abfbf-16d9-478d-87db-02b31710c47b:Node fe3abfbf-16d9-478d-87db-02b31710c47b :: false 2022-07-18 23:00:24 | [Mutex] waiting for: [received:nodes:4caccb45-71cc-4540-afdb-040418aa10a3:localhost] 2022-07-18 23:00:24 | [Mutex] received everything. 2022-07-18 23:00:24 | [Mutex] isItemNotified: received:node:4caccb45-71cc-4540-afdb-040418aa10a3:localhost:node-fe3abfbf-16d9-478d-87db-02b31710c47b:Node fe3abfbf-16d9-478d-87db-02b31710c47b :: false |
publishItemsToNodes | 0.062s |
2022-07-18 23:00:21 |
2022-07-18 23:00:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-18 23:00:21 | ------------------------------------ 2022-07-18 23:00:21 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-fe3abfbf-16d9-478d-87db-02b31710c47b", "entry": "<test>item-44648684-4028-4842-9e0f-7a189bb719ea</test>", "item-id": "item-44648684-4028-4842-9e0f-7a189bb719ea" } 2022-07-18 23:00:21 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-44648684-4028-4842-9e0f-7a189bb719ea" } 2022-07-18 23:00:21 | [Mutex] waiting for: [published:item:notifieditem-44648684-4028-4842-9e0f-7a189bb719ea:admin@test-domain.com] 2022-07-18 23:00:21 | [Mutex] received everything. 2022-07-18 23:00:21 | [Mutex] isItemNotified: published:item:notifieditem-44648684-4028-4842-9e0f-7a189bb719ea:admin@test-domain.com :: true |
retractItemsFromNodes | 0.053s |
2022-07-18 23:00:21 |
2022-07-18 23:00:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-18 23:00:21 | ------------------------------------ 2022-07-18 23:00:21 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-fe3abfbf-16d9-478d-87db-02b31710c47b", "item-id": "item-44648684-4028-4842-9e0f-7a189bb719ea" } 2022-07-18 23:00:21 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-44648684-4028-4842-9e0f-7a189bb719ea" } 2022-07-18 23:00:21 | [Mutex] received everything. 2022-07-18 23:00:21 | [Mutex] isItemNotified: retracted:item:notifieditem-44648684-4028-4842-9e0f-7a189bb719ea:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.058s |
2022-07-18 23:00:21 |
2022-07-18 23:00:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-18 23:00:21 | ------------------------------------ 2022-07-18 23:00:21 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-fe3abfbf-16d9-478d-87db-02b31710c47b", "item-id": "item-44648684-4028-4842-9e0f-7a189bb719ea" } 2022-07-18 23:00:21 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-fe3abfbf-16d9-478d-87db-02b31710c47b", "item-id": "item-44648684-4028-4842-9e0f-7a189bb719ea", "item": [ "<item id=\"item-44648684-4028-4842-9e0f-7a189bb719ea\"><test>item-44648684-4028-4842-9e0f-7a189bb719ea</test></item>" ] } 2022-07-18 23:00:21 | [Mutex] notify: [retrieved:item:item-44648684-4028-4842-9e0f-7a189bb719ea:payload-matches:true:localhost] 2022-07-18 23:00:21 | [Mutex] received everything. 2022-07-18 23:00:21 | [Mutex] isItemNotified: retrieved:item:item-44648684-4028-4842-9e0f-7a189bb719ea:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.047s |
2022-07-18 23:00:21 |
2022-07-18 23:00:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-18 23:00:21 | ------------------------------------ 2022-07-18 23:00:21 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-07-18 23:00:21 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-fe3abfbf-16d9-478d-87db-02b31710c47b", "node-7fc89083-34bf-4877-beee-caa60f07af7d" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2022-07-18 23:00:21 |
2022-07-18 23:00:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-18 23:00:21 | ------------------------------------ 2022-07-18 23:00:21 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-fe3abfbf-16d9-478d-87db-02b31710c47b)" } 2022-07-18 23:00:21 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.011s |
2022-07-18 23:00:20 |
2022-07-18 23:00:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-18 23:00:20 | ------------------------------------ 2022-07-18 23:00:20 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-fe3abfbf-16d9-478d-87db-02b31710c47b", "jids": [ "admin@test-domain.com" ] } 2022-07-18 23:00:20 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.059s |
2022-07-18 23:00:21 |
2022-07-18 23:00:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-18 23:00:21 | ------------------------------------ 2022-07-18 23:00:21 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-fe3abfbf-16d9-478d-87db-02b31710c47b", "jids": [ "admin@test-domain.com" ] } 2022-07-18 23:00:22 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |