Test duration : 9.159s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.109s |
2020-10-29 22:57:36 |
2020-10-29 22:57:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-29 22:57:36 | ------------------------------------ 2020-10-29 22:57:36 | [Mutex] waiting for: [configured:node:node-8dcd091a-29bf-4b8e-9925-c68d045df35a:node-1ba82c33-42d3-446a-b4a3-d16815b6d22d] 2020-10-29 22:57:36 | [Mutex] received everything. 2020-10-29 22:57:36 | [Mutex] isItemNotified: configured:node:node-8dcd091a-29bf-4b8e-9925-c68d045df35a:node-1ba82c33-42d3-446a-b4a3-d16815b6d22d :: true 2020-10-29 22:57:37 | [Mutex] waiting for: [received:nodes:0a886174-74ff-48bd-851a-02370a089a2c:localhost] 2020-10-29 22:57:37 | [Mutex] received everything. 2020-10-29 22:57:37 | [Mutex] isItemNotified: received:node:0a886174-74ff-48bd-851a-02370a089a2c:localhost:node-8dcd091a-29bf-4b8e-9925-c68d045df35a:Node 8dcd091a-29bf-4b8e-9925-c68d045df35a :: true 2020-10-29 22:57:37 | [Mutex] waiting for: [received:nodes:15e2af3b-063f-4fde-8c86-9d8af87c3788:localhost] 2020-10-29 22:57:37 | [Mutex] received everything. 2020-10-29 22:57:37 | [Mutex] isItemNotified: received:node:15e2af3b-063f-4fde-8c86-9d8af87c3788:localhost:node-8dcd091a-29bf-4b8e-9925-c68d045df35a:Node 8dcd091a-29bf-4b8e-9925-c68d045df35a :: false |
createNodes | 1.801s |
2020-10-29 22:57:33 |
2020-10-29 22:57:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-29 22:57:33 | ------------------------------------ 2020-10-29 22:57:34 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-8dcd091a-29bf-4b8e-9925-c68d045df35a", "pubsub#title": "Node 8dcd091a-29bf-4b8e-9925-c68d045df35a" } 2020-10-29 22:57:34 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-10-29 22:57:35 | [Mutex] waiting for: [received:nodes:22508300-ed80-4961-80fd-e2e232bd4b6a:localhost] 2020-10-29 22:57:35 | [Mutex] received everything. 2020-10-29 22:57:35 | [Mutex] isItemNotified: received:node:22508300-ed80-4961-80fd-e2e232bd4b6a:localhost:node-8dcd091a-29bf-4b8e-9925-c68d045df35a:Node 8dcd091a-29bf-4b8e-9925-c68d045df35a :: true |
createSubnodes | 1.028s |
2020-10-29 22:57:35 |
2020-10-29 22:57:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-29 22:57:35 | ------------------------------------ 2020-10-29 22:57:35 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-1ba82c33-42d3-446a-b4a3-d16815b6d22d", "pubsub#title": "Node 1ba82c33-42d3-446a-b4a3-d16815b6d22d" } 2020-10-29 22:57:35 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-10-29 22:57:36 | [Mutex] waiting for: [received:nodes:80f107e5-a3fd-4648-a8e8-9086bd3f780f:localhost] 2020-10-29 22:57:36 | [Mutex] received everything. 2020-10-29 22:57:36 | [Mutex] isItemNotified: received:node:80f107e5-a3fd-4648-a8e8-9086bd3f780f:localhost:node-1ba82c33-42d3-446a-b4a3-d16815b6d22d:Node 1ba82c33-42d3-446a-b4a3-d16815b6d22d :: true |
deleteNodes | 1.023s |
2020-10-29 22:57:41 |
2020-10-29 22:57:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-29 22:57:41 | ------------------------------------ 2020-10-29 22:57:41 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-1ba82c33-42d3-446a-b4a3-d16815b6d22d" } 2020-10-29 22:57:41 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-10-29 22:57:42 | [Mutex] waiting for: [received:nodes:d4b717c4-a989-4916-9a5b-2ca81c1515e5:localhost] 2020-10-29 22:57:42 | [Mutex] received everything. 2020-10-29 22:57:42 | [Mutex] isItemNotified: received:node:d4b717c4-a989-4916-9a5b-2ca81c1515e5:localhost:node-1ba82c33-42d3-446a-b4a3-d16815b6d22d:Node 1ba82c33-42d3-446a-b4a3-d16815b6d22d :: false |
deleteSubnodes | 1.024s |
2020-10-29 22:57:40 |
2020-10-29 22:57:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-29 22:57:40 | ------------------------------------ 2020-10-29 22:57:40 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-8dcd091a-29bf-4b8e-9925-c68d045df35a" } 2020-10-29 22:57:40 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-10-29 22:57:41 | [Mutex] waiting for: [received:nodes:c15e2b43-3103-422a-8888-594a296a45f7:localhost] 2020-10-29 22:57:41 | [Mutex] received everything. 2020-10-29 22:57:41 | [Mutex] isItemNotified: received:node:c15e2b43-3103-422a-8888-594a296a45f7:localhost:node-8dcd091a-29bf-4b8e-9925-c68d045df35a:Node 8dcd091a-29bf-4b8e-9925-c68d045df35a :: false 2020-10-29 22:57:41 | [Mutex] waiting for: [received:nodes:ee52806b-8918-4231-a385-b72b2b5bbcee:localhost] 2020-10-29 22:57:41 | [Mutex] received everything. 2020-10-29 22:57:41 | [Mutex] isItemNotified: received:node:ee52806b-8918-4231-a385-b72b2b5bbcee:localhost:node-8dcd091a-29bf-4b8e-9925-c68d045df35a:Node 8dcd091a-29bf-4b8e-9925-c68d045df35a :: false |
publishItemsToNodes | 0.117s |
2020-10-29 22:57:38 |
2020-10-29 22:57:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-29 22:57:38 | ------------------------------------ 2020-10-29 22:57:38 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-8dcd091a-29bf-4b8e-9925-c68d045df35a", "entry": "<test>item-dc64024f-31e7-4dfb-9d20-202221515286</test>", "item-id": "item-dc64024f-31e7-4dfb-9d20-202221515286" } 2020-10-29 22:57:38 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-dc64024f-31e7-4dfb-9d20-202221515286" } 2020-10-29 22:57:38 | [Mutex] waiting for: [published:item:notifieditem-dc64024f-31e7-4dfb-9d20-202221515286:admin@test-domain.com] 2020-10-29 22:57:38 | [Mutex] received everything. 2020-10-29 22:57:38 | [Mutex] isItemNotified: published:item:notifieditem-dc64024f-31e7-4dfb-9d20-202221515286:admin@test-domain.com :: true |
retractItemsFromNodes | 0.059s |
2020-10-29 22:57:38 |
2020-10-29 22:57:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-29 22:57:38 | ------------------------------------ 2020-10-29 22:57:38 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-8dcd091a-29bf-4b8e-9925-c68d045df35a", "item-id": "item-dc64024f-31e7-4dfb-9d20-202221515286" } 2020-10-29 22:57:38 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-dc64024f-31e7-4dfb-9d20-202221515286" } 2020-10-29 22:57:38 | [Mutex] received everything. 2020-10-29 22:57:38 | [Mutex] isItemNotified: retracted:item:notifieditem-dc64024f-31e7-4dfb-9d20-202221515286:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.051s |
2020-10-29 22:57:38 |
2020-10-29 22:57:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-29 22:57:38 | ------------------------------------ 2020-10-29 22:57:38 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-8dcd091a-29bf-4b8e-9925-c68d045df35a", "item-id": "item-dc64024f-31e7-4dfb-9d20-202221515286" } 2020-10-29 22:57:38 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-8dcd091a-29bf-4b8e-9925-c68d045df35a", "item-id": "item-dc64024f-31e7-4dfb-9d20-202221515286", "item": [ "<item id=\"item-dc64024f-31e7-4dfb-9d20-202221515286\"><test>item-dc64024f-31e7-4dfb-9d20-202221515286</test></item>" ] } 2020-10-29 22:57:38 | [Mutex] notify: [retrieved:item:item-dc64024f-31e7-4dfb-9d20-202221515286:payload-matches:true:localhost] 2020-10-29 22:57:38 | [Mutex] received everything. 2020-10-29 22:57:38 | [Mutex] isItemNotified: retrieved:item:item-dc64024f-31e7-4dfb-9d20-202221515286:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.049s |
2020-10-29 22:57:38 |
2020-10-29 22:57:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-29 22:57:38 | ------------------------------------ 2020-10-29 22:57:38 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-10-29 22:57:38 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-1ba82c33-42d3-446a-b4a3-d16815b6d22d", "node-8dcd091a-29bf-4b8e-9925-c68d045df35a" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2020-10-29 22:57:38 |
2020-10-29 22:57:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-29 22:57:38 | ------------------------------------ 2020-10-29 22:57:38 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-8dcd091a-29bf-4b8e-9925-c68d045df35a)" } 2020-10-29 22:57:38 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.012s |
2020-10-29 22:57:37 |
2020-10-29 22:57:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-29 22:57:37 | ------------------------------------ 2020-10-29 22:57:37 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-8dcd091a-29bf-4b8e-9925-c68d045df35a", "jids": [ "admin@test-domain.com" ] } 2020-10-29 22:57:37 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.084s |
2020-10-29 22:57:38 |
2020-10-29 22:57:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-29 22:57:38 | ------------------------------------ 2020-10-29 22:57:38 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-8dcd091a-29bf-4b8e-9925-c68d045df35a", "jids": [ "admin@test-domain.com" ] } 2020-10-29 22:57:39 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |