Test duration : 8.959s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.125s |
2020-08-26 23:18:00 |
2020-08-26 23:18:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-26 23:18:00 | ------------------------------------ 2020-08-26 23:18:00 | [Mutex] waiting for: [configured:node:node-21758035-c2a0-4272-b212-4e7f43981cc4:node-abcecdd1-8e84-4383-9ce4-4dacb6f0aa78] 2020-08-26 23:18:00 | [Mutex] received everything. 2020-08-26 23:18:00 | [Mutex] isItemNotified: configured:node:node-21758035-c2a0-4272-b212-4e7f43981cc4:node-abcecdd1-8e84-4383-9ce4-4dacb6f0aa78 :: true 2020-08-26 23:18:01 | [Mutex] waiting for: [received:nodes:f030d3b4-74ed-458c-920d-a8e71dbfe9c0:localhost] 2020-08-26 23:18:01 | [Mutex] received everything. 2020-08-26 23:18:01 | [Mutex] isItemNotified: received:node:f030d3b4-74ed-458c-920d-a8e71dbfe9c0:localhost:node-21758035-c2a0-4272-b212-4e7f43981cc4:Node 21758035-c2a0-4272-b212-4e7f43981cc4 :: true 2020-08-26 23:18:01 | [Mutex] waiting for: [received:nodes:c6dc6961-be63-4c94-9940-8c5748b63e64:localhost] 2020-08-26 23:18:01 | [Mutex] received everything. 2020-08-26 23:18:01 | [Mutex] isItemNotified: received:node:c6dc6961-be63-4c94-9940-8c5748b63e64:localhost:node-21758035-c2a0-4272-b212-4e7f43981cc4:Node 21758035-c2a0-4272-b212-4e7f43981cc4 :: false |
createNodes | 1.649s |
2020-08-26 23:17:57 |
2020-08-26 23:17:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-26 23:17:57 | ------------------------------------ 2020-08-26 23:17:58 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-21758035-c2a0-4272-b212-4e7f43981cc4", "pubsub#title": "Node 21758035-c2a0-4272-b212-4e7f43981cc4" } 2020-08-26 23:17:58 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-08-26 23:17:59 | [Mutex] waiting for: [received:nodes:f4d39b5d-539b-475e-8a1f-3934aca5286f:localhost] 2020-08-26 23:17:59 | [Mutex] received everything. 2020-08-26 23:17:59 | [Mutex] isItemNotified: received:node:f4d39b5d-539b-475e-8a1f-3934aca5286f:localhost:node-21758035-c2a0-4272-b212-4e7f43981cc4:Node 21758035-c2a0-4272-b212-4e7f43981cc4 :: true |
createSubnodes | 1.031s |
2020-08-26 23:17:59 |
2020-08-26 23:17:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-26 23:17:59 | ------------------------------------ 2020-08-26 23:17:59 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-abcecdd1-8e84-4383-9ce4-4dacb6f0aa78", "pubsub#title": "Node abcecdd1-8e84-4383-9ce4-4dacb6f0aa78" } 2020-08-26 23:17:59 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-08-26 23:18:00 | [Mutex] waiting for: [received:nodes:a65f5494-8e01-4e41-a6d1-ec94ceb0e48f:localhost] 2020-08-26 23:18:00 | [Mutex] received everything. 2020-08-26 23:18:00 | [Mutex] isItemNotified: received:node:a65f5494-8e01-4e41-a6d1-ec94ceb0e48f:localhost:node-abcecdd1-8e84-4383-9ce4-4dacb6f0aa78:Node abcecdd1-8e84-4383-9ce4-4dacb6f0aa78 :: true |
deleteNodes | 1.023s |
2020-08-26 23:18:04 |
2020-08-26 23:18:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-26 23:18:04 | ------------------------------------ 2020-08-26 23:18:04 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-abcecdd1-8e84-4383-9ce4-4dacb6f0aa78" } 2020-08-26 23:18:04 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-08-26 23:18:05 | [Mutex] waiting for: [received:nodes:478941d4-c3fe-44f7-a6c0-559e28f0faa3:localhost] 2020-08-26 23:18:05 | [Mutex] received everything. 2020-08-26 23:18:05 | [Mutex] isItemNotified: received:node:478941d4-c3fe-44f7-a6c0-559e28f0faa3:localhost:node-abcecdd1-8e84-4383-9ce4-4dacb6f0aa78:Node abcecdd1-8e84-4383-9ce4-4dacb6f0aa78 :: false |
deleteSubnodes | 1.030s |
2020-08-26 23:18:03 |
2020-08-26 23:18:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-26 23:18:03 | ------------------------------------ 2020-08-26 23:18:03 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-21758035-c2a0-4272-b212-4e7f43981cc4" } 2020-08-26 23:18:03 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-08-26 23:18:04 | [Mutex] waiting for: [received:nodes:3e443426-c7e9-4f1e-9c13-b6ad628c7ddf:localhost] 2020-08-26 23:18:04 | [Mutex] received everything. 2020-08-26 23:18:04 | [Mutex] isItemNotified: received:node:3e443426-c7e9-4f1e-9c13-b6ad628c7ddf:localhost:node-21758035-c2a0-4272-b212-4e7f43981cc4:Node 21758035-c2a0-4272-b212-4e7f43981cc4 :: false 2020-08-26 23:18:04 | [Mutex] waiting for: [received:nodes:f046176e-69a0-40ea-b821-cc5cc8577865:localhost] 2020-08-26 23:18:04 | [Mutex] received everything. 2020-08-26 23:18:04 | [Mutex] isItemNotified: received:node:f046176e-69a0-40ea-b821-cc5cc8577865:localhost:node-21758035-c2a0-4272-b212-4e7f43981cc4:Node 21758035-c2a0-4272-b212-4e7f43981cc4 :: false |
publishItemsToNodes | 0.041s |
2020-08-26 23:18:02 |
2020-08-26 23:18:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-26 23:18:02 | ------------------------------------ 2020-08-26 23:18:02 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-21758035-c2a0-4272-b212-4e7f43981cc4", "entry": "<test>item-9e76dcc1-867f-4de8-a9f1-b5e61d1c2c96</test>", "item-id": "item-9e76dcc1-867f-4de8-a9f1-b5e61d1c2c96" } 2020-08-26 23:18:02 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-9e76dcc1-867f-4de8-a9f1-b5e61d1c2c96" } 2020-08-26 23:18:02 | [Mutex] received everything. 2020-08-26 23:18:02 | [Mutex] isItemNotified: published:item:notifieditem-9e76dcc1-867f-4de8-a9f1-b5e61d1c2c96:admin@test-domain.com :: true |
retractItemsFromNodes | 0.091s |
2020-08-26 23:18:02 |
2020-08-26 23:18:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-26 23:18:02 | ------------------------------------ 2020-08-26 23:18:02 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-21758035-c2a0-4272-b212-4e7f43981cc4", "item-id": "item-9e76dcc1-867f-4de8-a9f1-b5e61d1c2c96" } 2020-08-26 23:18:02 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-9e76dcc1-867f-4de8-a9f1-b5e61d1c2c96" } 2020-08-26 23:18:02 | [Mutex] received everything. 2020-08-26 23:18:02 | [Mutex] isItemNotified: retracted:item:notifieditem-9e76dcc1-867f-4de8-a9f1-b5e61d1c2c96:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.065s |
2020-08-26 23:18:02 |
2020-08-26 23:18:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-26 23:18:02 | ------------------------------------ 2020-08-26 23:18:02 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-21758035-c2a0-4272-b212-4e7f43981cc4", "item-id": "item-9e76dcc1-867f-4de8-a9f1-b5e61d1c2c96" } 2020-08-26 23:18:02 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-21758035-c2a0-4272-b212-4e7f43981cc4", "item-id": "item-9e76dcc1-867f-4de8-a9f1-b5e61d1c2c96", "item": [ "<item id=\"item-9e76dcc1-867f-4de8-a9f1-b5e61d1c2c96\"><test>item-9e76dcc1-867f-4de8-a9f1-b5e61d1c2c96</test></item>" ] } 2020-08-26 23:18:02 | [Mutex] notify: [retrieved:item:item-9e76dcc1-867f-4de8-a9f1-b5e61d1c2c96:payload-matches:true:localhost] 2020-08-26 23:18:02 | [Mutex] received everything. 2020-08-26 23:18:02 | [Mutex] isItemNotified: retrieved:item:item-9e76dcc1-867f-4de8-a9f1-b5e61d1c2c96:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.050s |
2020-08-26 23:18:02 |
2020-08-26 23:18:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-26 23:18:02 | ------------------------------------ 2020-08-26 23:18:02 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-08-26 23:18:02 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-21758035-c2a0-4272-b212-4e7f43981cc4", "node-abcecdd1-8e84-4383-9ce4-4dacb6f0aa78" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2020-08-26 23:18:02 |
2020-08-26 23:18:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-26 23:18:02 | ------------------------------------ 2020-08-26 23:18:02 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-21758035-c2a0-4272-b212-4e7f43981cc4)" } 2020-08-26 23:18:02 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.011s |
2020-08-26 23:18:01 |
2020-08-26 23:18:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-26 23:18:01 | ------------------------------------ 2020-08-26 23:18:01 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-21758035-c2a0-4272-b212-4e7f43981cc4", "jids": [ "admin@test-domain.com" ] } 2020-08-26 23:18:01 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.055s |
2020-08-26 23:18:02 |
2020-08-26 23:18:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-26 23:18:02 | ------------------------------------ 2020-08-26 23:18:02 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-21758035-c2a0-4272-b212-4e7f43981cc4", "jids": [ "admin@test-domain.com" ] } 2020-08-26 23:18:02 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |