Test duration: 8.854s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.089s |
2020-06-22 00:14:38 |
2020-06-22 00:14:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-06-22 00:14:38 | ------------------------------------ 2020-06-22 00:14:38 | [Mutex] waiting for: [configured:node:node-a77146bf-a3f3-4641-ad5b-1ab41d32a475:node-9dbffee6-fb42-4718-85bd-5ffc2f7256a0] 2020-06-22 00:14:38 | [Mutex] received everything. 2020-06-22 00:14:38 | [Mutex] isItemNotified: configured:node:node-a77146bf-a3f3-4641-ad5b-1ab41d32a475:node-9dbffee6-fb42-4718-85bd-5ffc2f7256a0 :: true 2020-06-22 00:14:39 | [Mutex] waiting for: [received:nodes:ba613c24-824b-460a-96ff-5f68befa1d5b:localhost] 2020-06-22 00:14:39 | [Mutex] received everything. 2020-06-22 00:14:39 | [Mutex] isItemNotified: received:node:ba613c24-824b-460a-96ff-5f68befa1d5b:localhost:node-a77146bf-a3f3-4641-ad5b-1ab41d32a475:Node a77146bf-a3f3-4641-ad5b-1ab41d32a475 :: true 2020-06-22 00:14:39 | [Mutex] waiting for: [received:nodes:3f8f3228-14d5-4190-9d9b-1f1d34d3d825:localhost] 2020-06-22 00:14:39 | [Mutex] received everything. 2020-06-22 00:14:39 | [Mutex] isItemNotified: received:node:3f8f3228-14d5-4190-9d9b-1f1d34d3d825:localhost:node-a77146bf-a3f3-4641-ad5b-1ab41d32a475:Node a77146bf-a3f3-4641-ad5b-1ab41d32a475 :: false |
createNodes | 1.577s |
2020-06-22 00:14:36 |
2020-06-22 00:14:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-06-22 00:14:36 | ------------------------------------ 2020-06-22 00:14:36 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@localhost", "pubsub#node_type": "leaf", "node": "node-a77146bf-a3f3-4641-ad5b-1ab41d32a475", "pubsub#title": "Node a77146bf-a3f3-4641-ad5b-1ab41d32a475" } 2020-06-22 00:14:36 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-06-22 00:14:37 | [Mutex] waiting for: [received:nodes:75e2501d-720f-45a5-a767-b5be998db832:localhost] 2020-06-22 00:14:37 | [Mutex] received everything. 2020-06-22 00:14:37 | [Mutex] isItemNotified: received:node:75e2501d-720f-45a5-a767-b5be998db832:localhost:node-a77146bf-a3f3-4641-ad5b-1ab41d32a475:Node a77146bf-a3f3-4641-ad5b-1ab41d32a475 :: true |
createSubnodes | 1.021s |
2020-06-22 00:14:37 |
2020-06-22 00:14:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-06-22 00:14:37 | ------------------------------------ 2020-06-22 00:14:37 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@localhost", "pubsub#node_type": "collection", "node": "node-9dbffee6-fb42-4718-85bd-5ffc2f7256a0", "pubsub#title": "Node 9dbffee6-fb42-4718-85bd-5ffc2f7256a0" } 2020-06-22 00:14:37 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-06-22 00:14:38 | [Mutex] waiting for: [received:nodes:ded5832d-636b-45da-8e5b-f15fd349f016:localhost] 2020-06-22 00:14:38 | [Mutex] waiting for: [received:nodes:ded5832d-636b-45da-8e5b-f15fd349f016:localhost] 2020-06-22 00:14:38 | [Mutex] received everything. 2020-06-22 00:14:38 | [Mutex] isItemNotified: received:node:ded5832d-636b-45da-8e5b-f15fd349f016:localhost:node-9dbffee6-fb42-4718-85bd-5ffc2f7256a0:Node 9dbffee6-fb42-4718-85bd-5ffc2f7256a0 :: true |
deleteNodes | 1.021s |
2020-06-22 00:14:43 |
2020-06-22 00:14:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-06-22 00:14:43 | ------------------------------------ 2020-06-22 00:14:43 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-9dbffee6-fb42-4718-85bd-5ffc2f7256a0" } 2020-06-22 00:14:43 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-06-22 00:14:44 | [Mutex] waiting for: [received:nodes:44036f71-2eb9-48a6-b4af-dfacaa7bf931:localhost] 2020-06-22 00:14:44 | [Mutex] received everything. 2020-06-22 00:14:44 | [Mutex] isItemNotified: received:node:44036f71-2eb9-48a6-b4af-dfacaa7bf931:localhost:node-9dbffee6-fb42-4718-85bd-5ffc2f7256a0:Node 9dbffee6-fb42-4718-85bd-5ffc2f7256a0 :: false |
deleteSubnodes | 1.024s |
2020-06-22 00:14:42 |
2020-06-22 00:14:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-06-22 00:14:42 | ------------------------------------ 2020-06-22 00:14:42 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-a77146bf-a3f3-4641-ad5b-1ab41d32a475" } 2020-06-22 00:14:42 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-06-22 00:14:43 | [Mutex] waiting for: [received:nodes:d65b3bae-509b-49ac-8992-16592a103e67:localhost] 2020-06-22 00:14:43 | [Mutex] waiting for: [received:nodes:d65b3bae-509b-49ac-8992-16592a103e67:localhost] 2020-06-22 00:14:43 | [Mutex] received everything. 2020-06-22 00:14:43 | [Mutex] isItemNotified: received:node:d65b3bae-509b-49ac-8992-16592a103e67:localhost:node-a77146bf-a3f3-4641-ad5b-1ab41d32a475:Node a77146bf-a3f3-4641-ad5b-1ab41d32a475 :: false 2020-06-22 00:14:43 | [Mutex] waiting for: [received:nodes:21ec776f-a2eb-4cfc-887f-8a3b446ba921:localhost] 2020-06-22 00:14:43 | [Mutex] received everything. 2020-06-22 00:14:43 | [Mutex] isItemNotified: received:node:21ec776f-a2eb-4cfc-887f-8a3b446ba921:localhost:node-a77146bf-a3f3-4641-ad5b-1ab41d32a475:Node a77146bf-a3f3-4641-ad5b-1ab41d32a475 :: false |
publishItemsToNodes | 0.039s |
2020-06-22 00:14:41 |
2020-06-22 00:14:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-06-22 00:14:41 | ------------------------------------ 2020-06-22 00:14:41 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-a77146bf-a3f3-4641-ad5b-1ab41d32a475", "entry": "<test>item-7303c6e9-53a4-4ba2-bcb4-581a97095722</test>", "item-id": "item-7303c6e9-53a4-4ba2-bcb4-581a97095722" } 2020-06-22 00:14:41 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-7303c6e9-53a4-4ba2-bcb4-581a97095722" } 2020-06-22 00:14:41 | [Mutex] waiting for: [published:item:notifieditem-7303c6e9-53a4-4ba2-bcb4-581a97095722:admin@localhost] 2020-06-22 00:14:41 | [Mutex] received everything. 2020-06-22 00:14:41 | [Mutex] isItemNotified: published:item:notifieditem-7303c6e9-53a4-4ba2-bcb4-581a97095722:admin@localhost :: true |
retractItemsFromNodes | 0.052s |
2020-06-22 00:14:41 |
2020-06-22 00:14:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-06-22 00:14:41 | ------------------------------------ 2020-06-22 00:14:41 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-a77146bf-a3f3-4641-ad5b-1ab41d32a475", "item-id": "item-7303c6e9-53a4-4ba2-bcb4-581a97095722" } 2020-06-22 00:14:41 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-7303c6e9-53a4-4ba2-bcb4-581a97095722" } 2020-06-22 00:14:41 | [Mutex] received everything. 2020-06-22 00:14:41 | [Mutex] isItemNotified: retracted:item:notifieditem-7303c6e9-53a4-4ba2-bcb4-581a97095722:admin@localhost :: true |
retrieveItemsFromNodes | 0.064s |
2020-06-22 00:14:41 |
2020-06-22 00:14:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-06-22 00:14:41 | ------------------------------------ 2020-06-22 00:14:41 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-a77146bf-a3f3-4641-ad5b-1ab41d32a475", "item-id": "item-7303c6e9-53a4-4ba2-bcb4-581a97095722" } 2020-06-22 00:14:41 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-a77146bf-a3f3-4641-ad5b-1ab41d32a475", "item-id": "item-7303c6e9-53a4-4ba2-bcb4-581a97095722", "item": [ "<item id=\"item-7303c6e9-53a4-4ba2-bcb4-581a97095722\"><test>item-7303c6e9-53a4-4ba2-bcb4-581a97095722</test></item>" ] } 2020-06-22 00:14:41 | [Mutex] notify: [retrieved:item:item-7303c6e9-53a4-4ba2-bcb4-581a97095722:payload-matches:true:localhost] 2020-06-22 00:14:41 | [Mutex] received everything. 2020-06-22 00:14:41 | [Mutex] isItemNotified: retrieved:item:item-7303c6e9-53a4-4ba2-bcb4-581a97095722:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.047s |
2020-06-22 00:14:41 |
2020-06-22 00:14:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-06-22 00:14:41 | ------------------------------------ 2020-06-22 00:14:41 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@localhost" } 2020-06-22 00:14:41 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-9dbffee6-fb42-4718-85bd-5ffc2f7256a0", "test", "node-a77146bf-a3f3-4641-ad5b-1ab41d32a475" ] } |
retrieveUserSubscriptionsWithRegex | 0.052s |
2020-06-22 00:14:41 |
2020-06-22 00:14:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-06-22 00:14:41 | ------------------------------------ 2020-06-22 00:14:41 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@localhost", "node-pattern": "(?!node-a77146bf-a3f3-4641-ad5b-1ab41d32a475)" } 2020-06-22 00:14:41 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.012s |
2020-06-22 00:14:39 |
2020-06-22 00:14:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-06-22 00:14:39 | ------------------------------------ 2020-06-22 00:14:39 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-a77146bf-a3f3-4641-ad5b-1ab41d32a475", "jids": [ "admin@localhost" ] } 2020-06-22 00:14:40 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.071s |
2020-06-22 00:14:41 |
2020-06-22 00:14:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-06-22 00:14:41 | ------------------------------------ 2020-06-22 00:14:41 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-a77146bf-a3f3-4641-ad5b-1ab41d32a475", "jids": [ "admin@localhost" ] } 2020-06-22 00:14:41 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |