Test duration: 9.175s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.119s |
2019-11-20 20:03:38 |
2019-11-20 20:03:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-20 20:03:38 | ------------------------------------ 2019-11-20 20:03:38 | [Mutex] waiting for: [configured:node:node-851b602d-e0b1-405a-b26b-cfcdd2ba8e2f:node-fbe8aed5-946c-4b87-9add-f5aa22147f3e] 2019-11-20 20:03:38 | [Mutex] received everything. 2019-11-20 20:03:38 | [Mutex] isItemNotified: configured:node:node-851b602d-e0b1-405a-b26b-cfcdd2ba8e2f:node-fbe8aed5-946c-4b87-9add-f5aa22147f3e :: true 2019-11-20 20:03:39 | [Mutex] waiting for: [received:nodes:877ebf87-b095-4a22-8e82-9f91ff71213c:localhost] 2019-11-20 20:03:39 | [Mutex] received everything. 2019-11-20 20:03:39 | [Mutex] isItemNotified: received:node:877ebf87-b095-4a22-8e82-9f91ff71213c:localhost:node-851b602d-e0b1-405a-b26b-cfcdd2ba8e2f:Node 851b602d-e0b1-405a-b26b-cfcdd2ba8e2f :: true 2019-11-20 20:03:39 | [Mutex] waiting for: [received:nodes:1462a79b-4b68-49f1-aa83-7c67efe2fa0e:localhost] 2019-11-20 20:03:39 | [Mutex] received everything. 2019-11-20 20:03:39 | [Mutex] isItemNotified: received:node:1462a79b-4b68-49f1-aa83-7c67efe2fa0e:localhost:node-851b602d-e0b1-405a-b26b-cfcdd2ba8e2f:Node 851b602d-e0b1-405a-b26b-cfcdd2ba8e2f :: false |
createNodes | 1.714s |
2019-11-20 20:03:35 |
2019-11-20 20:03:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-20 20:03:35 | ------------------------------------ 2019-11-20 20:03:35 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@localhost", "pubsub#node_type": "leaf", "node": "node-851b602d-e0b1-405a-b26b-cfcdd2ba8e2f", "pubsub#title": "Node 851b602d-e0b1-405a-b26b-cfcdd2ba8e2f" } 2019-11-20 20:03:36 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2019-11-20 20:03:37 | [Mutex] waiting for: [received:nodes:79aa1dd5-47bd-409c-98a8-da1504cd67e3:localhost] 2019-11-20 20:03:37 | [Mutex] received everything. 2019-11-20 20:03:37 | [Mutex] isItemNotified: received:node:79aa1dd5-47bd-409c-98a8-da1504cd67e3:localhost:node-851b602d-e0b1-405a-b26b-cfcdd2ba8e2f:Node 851b602d-e0b1-405a-b26b-cfcdd2ba8e2f :: true |
createSubnodes | 1.027s |
2019-11-20 20:03:37 |
2019-11-20 20:03:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-20 20:03:37 | ------------------------------------ 2019-11-20 20:03:37 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@localhost", "pubsub#node_type": "collection", "node": "node-fbe8aed5-946c-4b87-9add-f5aa22147f3e", "pubsub#title": "Node fbe8aed5-946c-4b87-9add-f5aa22147f3e" } 2019-11-20 20:03:37 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2019-11-20 20:03:38 | [Mutex] waiting for: [received:nodes:2c0fec39-f87e-4ae7-9e2c-757ebc46a608:localhost] 2019-11-20 20:03:38 | [Mutex] received everything. 2019-11-20 20:03:38 | [Mutex] isItemNotified: received:node:2c0fec39-f87e-4ae7-9e2c-757ebc46a608:localhost:node-fbe8aed5-946c-4b87-9add-f5aa22147f3e:Node fbe8aed5-946c-4b87-9add-f5aa22147f3e :: true |
deleteNodes | 1.028s |
2019-11-20 20:03:42 |
2019-11-20 20:03:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-20 20:03:42 | ------------------------------------ 2019-11-20 20:03:42 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-fbe8aed5-946c-4b87-9add-f5aa22147f3e" } 2019-11-20 20:03:42 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2019-11-20 20:03:43 | [Mutex] waiting for: [received:nodes:6adad41a-2897-4a08-b4cc-148770a14c53:localhost] 2019-11-20 20:03:43 | [Mutex] received everything. 2019-11-20 20:03:43 | [Mutex] isItemNotified: received:node:6adad41a-2897-4a08-b4cc-148770a14c53:localhost:node-fbe8aed5-946c-4b87-9add-f5aa22147f3e:Node fbe8aed5-946c-4b87-9add-f5aa22147f3e :: false |
deleteSubnodes | 1.038s |
2019-11-20 20:03:41 |
2019-11-20 20:03:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-20 20:03:41 | ------------------------------------ 2019-11-20 20:03:41 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-851b602d-e0b1-405a-b26b-cfcdd2ba8e2f" } 2019-11-20 20:03:41 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2019-11-20 20:03:42 | [Mutex] waiting for: [received:nodes:20fcb019-4ced-4fd6-98f6-dda1dee79bda:localhost] 2019-11-20 20:03:42 | [Mutex] received everything. 2019-11-20 20:03:42 | [Mutex] isItemNotified: received:node:20fcb019-4ced-4fd6-98f6-dda1dee79bda:localhost:node-851b602d-e0b1-405a-b26b-cfcdd2ba8e2f:Node 851b602d-e0b1-405a-b26b-cfcdd2ba8e2f :: false 2019-11-20 20:03:42 | [Mutex] waiting for: [received:nodes:fbbd8216-8a80-4713-9f1e-4d8fd6bfd34d:localhost] 2019-11-20 20:03:42 | [Mutex] received everything. 2019-11-20 20:03:42 | [Mutex] isItemNotified: received:node:fbbd8216-8a80-4713-9f1e-4d8fd6bfd34d:localhost:node-851b602d-e0b1-405a-b26b-cfcdd2ba8e2f:Node 851b602d-e0b1-405a-b26b-cfcdd2ba8e2f :: false |
publishItemsToNodes | 0.050s |
2019-11-20 20:03:40 |
2019-11-20 20:03:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-20 20:03:40 | ------------------------------------ 2019-11-20 20:03:40 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-851b602d-e0b1-405a-b26b-cfcdd2ba8e2f", "entry": "<test>item-222303be-e38a-48f0-93c2-934466fcf233</test>", "item-id": "item-222303be-e38a-48f0-93c2-934466fcf233" } 2019-11-20 20:03:40 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-222303be-e38a-48f0-93c2-934466fcf233" } 2019-11-20 20:03:40 | [Mutex] waiting for: [published:item:notifieditem-222303be-e38a-48f0-93c2-934466fcf233:admin@localhost] 2019-11-20 20:03:40 | [Mutex] received everything. 2019-11-20 20:03:40 | [Mutex] isItemNotified: published:item:notifieditem-222303be-e38a-48f0-93c2-934466fcf233:admin@localhost :: true |
retractItemsFromNodes | 0.055s |
2019-11-20 20:03:40 |
2019-11-20 20:03:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-20 20:03:40 | ------------------------------------ 2019-11-20 20:03:40 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-851b602d-e0b1-405a-b26b-cfcdd2ba8e2f", "item-id": "item-222303be-e38a-48f0-93c2-934466fcf233" } 2019-11-20 20:03:40 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-222303be-e38a-48f0-93c2-934466fcf233" } 2019-11-20 20:03:40 | [Mutex] received everything. 2019-11-20 20:03:40 | [Mutex] isItemNotified: retracted:item:notifieditem-222303be-e38a-48f0-93c2-934466fcf233:admin@localhost :: true |
retrieveItemsFromNodes | 0.060s |
2019-11-20 20:03:40 |
2019-11-20 20:03:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-20 20:03:40 | ------------------------------------ 2019-11-20 20:03:40 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-851b602d-e0b1-405a-b26b-cfcdd2ba8e2f", "item-id": "item-222303be-e38a-48f0-93c2-934466fcf233" } 2019-11-20 20:03:40 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-851b602d-e0b1-405a-b26b-cfcdd2ba8e2f", "item-id": "item-222303be-e38a-48f0-93c2-934466fcf233", "item": [ "<item id=\"item-222303be-e38a-48f0-93c2-934466fcf233\"><test>item-222303be-e38a-48f0-93c2-934466fcf233</test></item>" ] } 2019-11-20 20:03:40 | [Mutex] notify: [retrieved:item:item-222303be-e38a-48f0-93c2-934466fcf233:payload-matches:true:localhost] 2019-11-20 20:03:40 | [Mutex] received everything. 2019-11-20 20:03:40 | [Mutex] isItemNotified: retrieved:item:item-222303be-e38a-48f0-93c2-934466fcf233:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.055s |
2019-11-20 20:03:40 |
2019-11-20 20:03:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-20 20:03:40 | ------------------------------------ 2019-11-20 20:03:40 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@localhost" } 2019-11-20 20:03:40 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-851b602d-e0b1-405a-b26b-cfcdd2ba8e2f", "node-fbe8aed5-946c-4b87-9add-f5aa22147f3e" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2019-11-20 20:03:40 |
2019-11-20 20:03:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-20 20:03:40 | ------------------------------------ 2019-11-20 20:03:40 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@localhost", "node-pattern": "(?!node-851b602d-e0b1-405a-b26b-cfcdd2ba8e2f)" } 2019-11-20 20:03:40 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.013s |
2019-11-20 20:03:39 |
2019-11-20 20:03:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-20 20:03:39 | ------------------------------------ 2019-11-20 20:03:39 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-851b602d-e0b1-405a-b26b-cfcdd2ba8e2f", "jids": [ "admin@localhost" ] } 2019-11-20 20:03:39 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.083s |
2019-11-20 20:03:40 |
2019-11-20 20:03:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-20 20:03:40 | ------------------------------------ 2019-11-20 20:03:40 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-851b602d-e0b1-405a-b26b-cfcdd2ba8e2f", "jids": [ "admin@localhost" ] } 2019-11-20 20:03:40 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |