Test duration : 9.061s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.148s |
2020-10-01 22:58:12 |
2020-10-01 22:58:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-01 22:58:12 | ------------------------------------ 2020-10-01 22:58:12 | [Mutex] waiting for: [configured:node:node-412592de-ccc9-4ac9-9fe5-e22ea1a854a0:node-c09520b6-8dda-4c63-b72b-19e0a9311a82] 2020-10-01 22:58:12 | [Mutex] received everything. 2020-10-01 22:58:12 | [Mutex] isItemNotified: configured:node:node-412592de-ccc9-4ac9-9fe5-e22ea1a854a0:node-c09520b6-8dda-4c63-b72b-19e0a9311a82 :: true 2020-10-01 22:58:13 | [Mutex] waiting for: [received:nodes:518a8e32-bcf0-4a9c-931c-ebd8678edb23:localhost] 2020-10-01 22:58:13 | [Mutex] waiting for: [received:nodes:518a8e32-bcf0-4a9c-931c-ebd8678edb23:localhost] 2020-10-01 22:58:13 | [Mutex] received everything. 2020-10-01 22:58:13 | [Mutex] isItemNotified: received:node:518a8e32-bcf0-4a9c-931c-ebd8678edb23:localhost:node-412592de-ccc9-4ac9-9fe5-e22ea1a854a0:Node 412592de-ccc9-4ac9-9fe5-e22ea1a854a0 :: true 2020-10-01 22:58:13 | [Mutex] waiting for: [received:nodes:c9094d52-7c36-4668-8a63-61bb300fbaf4:localhost] 2020-10-01 22:58:13 | [Mutex] waiting for: [received:nodes:c9094d52-7c36-4668-8a63-61bb300fbaf4:localhost] 2020-10-01 22:58:13 | [Mutex] waiting for: [received:nodes:c9094d52-7c36-4668-8a63-61bb300fbaf4:localhost] 2020-10-01 22:58:13 | [Mutex] waiting for: [received:nodes:c9094d52-7c36-4668-8a63-61bb300fbaf4:localhost] 2020-10-01 22:58:13 | [Mutex] received everything. 2020-10-01 22:58:13 | [Mutex] isItemNotified: received:node:c9094d52-7c36-4668-8a63-61bb300fbaf4:localhost:node-412592de-ccc9-4ac9-9fe5-e22ea1a854a0:Node 412592de-ccc9-4ac9-9fe5-e22ea1a854a0 :: false |
createNodes | 1.673s |
2020-10-01 22:58:09 |
2020-10-01 22:58:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-01 22:58:09 | ------------------------------------ 2020-10-01 22:58:10 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-412592de-ccc9-4ac9-9fe5-e22ea1a854a0", "pubsub#title": "Node 412592de-ccc9-4ac9-9fe5-e22ea1a854a0" } 2020-10-01 22:58:10 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-10-01 22:58:11 | [Mutex] waiting for: [received:nodes:6e9a5d76-8605-44e7-b4e9-664b5be4a0b9:localhost] 2020-10-01 22:58:11 | [Mutex] received everything. 2020-10-01 22:58:11 | [Mutex] isItemNotified: received:node:6e9a5d76-8605-44e7-b4e9-664b5be4a0b9:localhost:node-412592de-ccc9-4ac9-9fe5-e22ea1a854a0:Node 412592de-ccc9-4ac9-9fe5-e22ea1a854a0 :: true |
createSubnodes | 1.030s |
2020-10-01 22:58:11 |
2020-10-01 22:58:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-01 22:58:11 | ------------------------------------ 2020-10-01 22:58:11 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-c09520b6-8dda-4c63-b72b-19e0a9311a82", "pubsub#title": "Node c09520b6-8dda-4c63-b72b-19e0a9311a82" } 2020-10-01 22:58:11 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-10-01 22:58:12 | [Mutex] waiting for: [received:nodes:cfbabf97-01a9-49a4-bfb8-45641ef9dd57:localhost] 2020-10-01 22:58:12 | [Mutex] received everything. 2020-10-01 22:58:12 | [Mutex] isItemNotified: received:node:cfbabf97-01a9-49a4-bfb8-45641ef9dd57:localhost:node-c09520b6-8dda-4c63-b72b-19e0a9311a82:Node c09520b6-8dda-4c63-b72b-19e0a9311a82 :: true |
deleteNodes | 1.027s |
2020-10-01 22:58:16 |
2020-10-01 22:58:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-01 22:58:16 | ------------------------------------ 2020-10-01 22:58:16 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-c09520b6-8dda-4c63-b72b-19e0a9311a82" } 2020-10-01 22:58:16 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-10-01 22:58:17 | [Mutex] waiting for: [received:nodes:12044915-cdc7-472f-b311-9bff9bd97205:localhost] 2020-10-01 22:58:17 | [Mutex] received everything. 2020-10-01 22:58:17 | [Mutex] isItemNotified: received:node:12044915-cdc7-472f-b311-9bff9bd97205:localhost:node-c09520b6-8dda-4c63-b72b-19e0a9311a82:Node c09520b6-8dda-4c63-b72b-19e0a9311a82 :: false |
deleteSubnodes | 1.028s |
2020-10-01 22:58:15 |
2020-10-01 22:58:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-01 22:58:15 | ------------------------------------ 2020-10-01 22:58:15 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-412592de-ccc9-4ac9-9fe5-e22ea1a854a0" } 2020-10-01 22:58:15 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-10-01 22:58:16 | [Mutex] waiting for: [received:nodes:1dde460b-4af9-491a-9ba6-454dec2c32b5:localhost] 2020-10-01 22:58:16 | [Mutex] waiting for: [received:nodes:1dde460b-4af9-491a-9ba6-454dec2c32b5:localhost] 2020-10-01 22:58:16 | [Mutex] received everything. 2020-10-01 22:58:16 | [Mutex] isItemNotified: received:node:1dde460b-4af9-491a-9ba6-454dec2c32b5:localhost:node-412592de-ccc9-4ac9-9fe5-e22ea1a854a0:Node 412592de-ccc9-4ac9-9fe5-e22ea1a854a0 :: false 2020-10-01 22:58:16 | [Mutex] waiting for: [received:nodes:768b520e-43d8-4fde-90d3-4580a599a835:localhost] 2020-10-01 22:58:16 | [Mutex] received everything. 2020-10-01 22:58:16 | [Mutex] isItemNotified: received:node:768b520e-43d8-4fde-90d3-4580a599a835:localhost:node-412592de-ccc9-4ac9-9fe5-e22ea1a854a0:Node 412592de-ccc9-4ac9-9fe5-e22ea1a854a0 :: false |
publishItemsToNodes | 0.033s |
2020-10-01 22:58:14 |
2020-10-01 22:58:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-01 22:58:14 | ------------------------------------ 2020-10-01 22:58:14 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-412592de-ccc9-4ac9-9fe5-e22ea1a854a0", "entry": "<test>item-7373940e-1011-458f-b5de-c74976a02b53</test>", "item-id": "item-7373940e-1011-458f-b5de-c74976a02b53" } 2020-10-01 22:58:14 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-7373940e-1011-458f-b5de-c74976a02b53" } 2020-10-01 22:58:14 | [Mutex] received everything. 2020-10-01 22:58:14 | [Mutex] isItemNotified: published:item:notifieditem-7373940e-1011-458f-b5de-c74976a02b53:admin@test-domain.com :: true |
retractItemsFromNodes | 0.068s |
2020-10-01 22:58:14 |
2020-10-01 22:58:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-01 22:58:14 | ------------------------------------ 2020-10-01 22:58:14 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-412592de-ccc9-4ac9-9fe5-e22ea1a854a0", "item-id": "item-7373940e-1011-458f-b5de-c74976a02b53" } 2020-10-01 22:58:14 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-7373940e-1011-458f-b5de-c74976a02b53" } 2020-10-01 22:58:14 | [Mutex] received everything. 2020-10-01 22:58:14 | [Mutex] isItemNotified: retracted:item:notifieditem-7373940e-1011-458f-b5de-c74976a02b53:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.078s |
2020-10-01 22:58:14 |
2020-10-01 22:58:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-01 22:58:14 | ------------------------------------ 2020-10-01 22:58:14 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-412592de-ccc9-4ac9-9fe5-e22ea1a854a0", "item-id": "item-7373940e-1011-458f-b5de-c74976a02b53" } 2020-10-01 22:58:14 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-412592de-ccc9-4ac9-9fe5-e22ea1a854a0", "item-id": "item-7373940e-1011-458f-b5de-c74976a02b53", "item": [ "<item id=\"item-7373940e-1011-458f-b5de-c74976a02b53\"><test>item-7373940e-1011-458f-b5de-c74976a02b53</test></item>" ] } 2020-10-01 22:58:14 | [Mutex] notify: [retrieved:item:item-7373940e-1011-458f-b5de-c74976a02b53:payload-matches:true:localhost] 2020-10-01 22:58:14 | [Mutex] received everything. 2020-10-01 22:58:14 | [Mutex] isItemNotified: retrieved:item:item-7373940e-1011-458f-b5de-c74976a02b53:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2020-10-01 22:58:14 |
2020-10-01 22:58:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-01 22:58:14 | ------------------------------------ 2020-10-01 22:58:14 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-10-01 22:58:14 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-c09520b6-8dda-4c63-b72b-19e0a9311a82", "node-412592de-ccc9-4ac9-9fe5-e22ea1a854a0" ] } |
retrieveUserSubscriptionsWithRegex | 0.052s |
2020-10-01 22:58:14 |
2020-10-01 22:58:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-01 22:58:14 | ------------------------------------ 2020-10-01 22:58:14 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-412592de-ccc9-4ac9-9fe5-e22ea1a854a0)" } 2020-10-01 22:58:14 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.016s |
2020-10-01 22:58:13 |
2020-10-01 22:58:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-01 22:58:13 | ------------------------------------ 2020-10-01 22:58:13 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-412592de-ccc9-4ac9-9fe5-e22ea1a854a0", "jids": [ "admin@test-domain.com" ] } 2020-10-01 22:58:13 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.055s |
2020-10-01 22:58:14 |
2020-10-01 22:58:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-01 22:58:14 | ------------------------------------ 2020-10-01 22:58:14 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-412592de-ccc9-4ac9-9fe5-e22ea1a854a0", "jids": [ "admin@test-domain.com" ] } 2020-10-01 22:58:14 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |