Test duration : 9.097s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.095s |
2020-09-18 00:48:12 |
2020-09-18 00:48:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-18 00:48:12 | ------------------------------------ 2020-09-18 00:48:12 | [Mutex] waiting for: [configured:node:node-2f4fda24-7cf0-4313-bfa7-9504863d4ea8:node-d1bc7b75-33f1-400e-b282-9f8ccbee3db4] 2020-09-18 00:48:12 | [Mutex] received everything. 2020-09-18 00:48:12 | [Mutex] isItemNotified: configured:node:node-2f4fda24-7cf0-4313-bfa7-9504863d4ea8:node-d1bc7b75-33f1-400e-b282-9f8ccbee3db4 :: true 2020-09-18 00:48:13 | [Mutex] waiting for: [received:nodes:ba4783f7-9445-4f3a-9455-5940f29db809:localhost] 2020-09-18 00:48:13 | [Mutex] received everything. 2020-09-18 00:48:13 | [Mutex] isItemNotified: received:node:ba4783f7-9445-4f3a-9455-5940f29db809:localhost:node-2f4fda24-7cf0-4313-bfa7-9504863d4ea8:Node 2f4fda24-7cf0-4313-bfa7-9504863d4ea8 :: true 2020-09-18 00:48:13 | [Mutex] waiting for: [received:nodes:39add1bd-cccd-48bc-9190-8b472efc85d7:localhost] 2020-09-18 00:48:13 | [Mutex] waiting for: [received:nodes:39add1bd-cccd-48bc-9190-8b472efc85d7:localhost] 2020-09-18 00:48:13 | [Mutex] received everything. 2020-09-18 00:48:13 | [Mutex] isItemNotified: received:node:39add1bd-cccd-48bc-9190-8b472efc85d7:localhost:node-2f4fda24-7cf0-4313-bfa7-9504863d4ea8:Node 2f4fda24-7cf0-4313-bfa7-9504863d4ea8 :: false |
createNodes | 1.777s |
2020-09-18 00:48:09 |
2020-09-18 00:48:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-18 00:48:09 | ------------------------------------ 2020-09-18 00:48: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-2f4fda24-7cf0-4313-bfa7-9504863d4ea8", "pubsub#title": "Node 2f4fda24-7cf0-4313-bfa7-9504863d4ea8" } 2020-09-18 00:48:10 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-18 00:48:11 | [Mutex] waiting for: [received:nodes:38065662-09e1-4fc2-91d4-79f3c3d896b4:localhost] 2020-09-18 00:48:11 | [Mutex] waiting for: [received:nodes:38065662-09e1-4fc2-91d4-79f3c3d896b4:localhost] 2020-09-18 00:48:11 | [Mutex] received everything. 2020-09-18 00:48:11 | [Mutex] isItemNotified: received:node:38065662-09e1-4fc2-91d4-79f3c3d896b4:localhost:node-2f4fda24-7cf0-4313-bfa7-9504863d4ea8:Node 2f4fda24-7cf0-4313-bfa7-9504863d4ea8 :: true |
createSubnodes | 1.036s |
2020-09-18 00:48:11 |
2020-09-18 00:48:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-18 00:48:11 | ------------------------------------ 2020-09-18 00:48: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-d1bc7b75-33f1-400e-b282-9f8ccbee3db4", "pubsub#title": "Node d1bc7b75-33f1-400e-b282-9f8ccbee3db4" } 2020-09-18 00:48:11 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-18 00:48:12 | [Mutex] waiting for: [received:nodes:bc0e537a-730a-4670-8cf4-d4feec84a93d:localhost] 2020-09-18 00:48:12 | [Mutex] waiting for: [received:nodes:bc0e537a-730a-4670-8cf4-d4feec84a93d:localhost] 2020-09-18 00:48:12 | [Mutex] waiting for: [received:nodes:bc0e537a-730a-4670-8cf4-d4feec84a93d:localhost] 2020-09-18 00:48:12 | [Mutex] waiting for: [received:nodes:bc0e537a-730a-4670-8cf4-d4feec84a93d:localhost] 2020-09-18 00:48:12 | [Mutex] received everything. 2020-09-18 00:48:12 | [Mutex] isItemNotified: received:node:bc0e537a-730a-4670-8cf4-d4feec84a93d:localhost:node-d1bc7b75-33f1-400e-b282-9f8ccbee3db4:Node d1bc7b75-33f1-400e-b282-9f8ccbee3db4 :: true |
deleteNodes | 1.029s |
2020-09-18 00:48:16 |
2020-09-18 00:48:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-18 00:48:16 | ------------------------------------ 2020-09-18 00:48:16 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-d1bc7b75-33f1-400e-b282-9f8ccbee3db4" } 2020-09-18 00:48:16 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-18 00:48:17 | [Mutex] waiting for: [received:nodes:30c27741-7319-417c-9f8c-20ce21528116:localhost] 2020-09-18 00:48:17 | [Mutex] received everything. 2020-09-18 00:48:17 | [Mutex] isItemNotified: received:node:30c27741-7319-417c-9f8c-20ce21528116:localhost:node-d1bc7b75-33f1-400e-b282-9f8ccbee3db4:Node d1bc7b75-33f1-400e-b282-9f8ccbee3db4 :: false |
deleteSubnodes | 1.025s |
2020-09-18 00:48:15 |
2020-09-18 00:48:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-18 00:48:15 | ------------------------------------ 2020-09-18 00:48:15 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-2f4fda24-7cf0-4313-bfa7-9504863d4ea8" } 2020-09-18 00:48:15 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-18 00:48:16 | [Mutex] waiting for: [received:nodes:f895bd27-102b-40d0-b591-58601aada486:localhost] 2020-09-18 00:48:16 | [Mutex] received everything. 2020-09-18 00:48:16 | [Mutex] isItemNotified: received:node:f895bd27-102b-40d0-b591-58601aada486:localhost:node-2f4fda24-7cf0-4313-bfa7-9504863d4ea8:Node 2f4fda24-7cf0-4313-bfa7-9504863d4ea8 :: false 2020-09-18 00:48:16 | [Mutex] waiting for: [received:nodes:3b903a8d-a502-4264-a39a-8d8c546b10a3:localhost] 2020-09-18 00:48:16 | [Mutex] received everything. 2020-09-18 00:48:16 | [Mutex] isItemNotified: received:node:3b903a8d-a502-4264-a39a-8d8c546b10a3:localhost:node-2f4fda24-7cf0-4313-bfa7-9504863d4ea8:Node 2f4fda24-7cf0-4313-bfa7-9504863d4ea8 :: false |
publishItemsToNodes | 0.041s |
2020-09-18 00:48:14 |
2020-09-18 00:48:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-18 00:48:14 | ------------------------------------ 2020-09-18 00:48:14 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-2f4fda24-7cf0-4313-bfa7-9504863d4ea8", "entry": "<test>item-d32d4f83-6a4e-4927-bd2d-b97cb8017345</test>", "item-id": "item-d32d4f83-6a4e-4927-bd2d-b97cb8017345" } 2020-09-18 00:48:14 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-d32d4f83-6a4e-4927-bd2d-b97cb8017345" } 2020-09-18 00:48:14 | [Mutex] waiting for: [published:item:notifieditem-d32d4f83-6a4e-4927-bd2d-b97cb8017345:admin@test-domain.com] 2020-09-18 00:48:14 | [Mutex] received everything. 2020-09-18 00:48:14 | [Mutex] isItemNotified: published:item:notifieditem-d32d4f83-6a4e-4927-bd2d-b97cb8017345:admin@test-domain.com :: true |
retractItemsFromNodes | 0.067s |
2020-09-18 00:48:14 |
2020-09-18 00:48:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-18 00:48:14 | ------------------------------------ 2020-09-18 00:48:14 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-2f4fda24-7cf0-4313-bfa7-9504863d4ea8", "item-id": "item-d32d4f83-6a4e-4927-bd2d-b97cb8017345" } 2020-09-18 00:48:14 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-d32d4f83-6a4e-4927-bd2d-b97cb8017345" } 2020-09-18 00:48:14 | [Mutex] received everything. 2020-09-18 00:48:14 | [Mutex] isItemNotified: retracted:item:notifieditem-d32d4f83-6a4e-4927-bd2d-b97cb8017345:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.072s |
2020-09-18 00:48:14 |
2020-09-18 00:48:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-18 00:48:14 | ------------------------------------ 2020-09-18 00:48:14 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-2f4fda24-7cf0-4313-bfa7-9504863d4ea8", "item-id": "item-d32d4f83-6a4e-4927-bd2d-b97cb8017345" } 2020-09-18 00:48:14 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-2f4fda24-7cf0-4313-bfa7-9504863d4ea8", "item-id": "item-d32d4f83-6a4e-4927-bd2d-b97cb8017345", "item": [ "<item id=\"item-d32d4f83-6a4e-4927-bd2d-b97cb8017345\"><test>item-d32d4f83-6a4e-4927-bd2d-b97cb8017345</test></item>" ] } 2020-09-18 00:48:14 | [Mutex] notify: [retrieved:item:item-d32d4f83-6a4e-4927-bd2d-b97cb8017345:payload-matches:true:localhost] 2020-09-18 00:48:14 | [Mutex] received everything. 2020-09-18 00:48:14 | [Mutex] isItemNotified: retrieved:item:item-d32d4f83-6a4e-4927-bd2d-b97cb8017345:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.076s |
2020-09-18 00:48:14 |
2020-09-18 00:48:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-18 00:48:14 | ------------------------------------ 2020-09-18 00:48:14 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-09-18 00:48:14 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-2f4fda24-7cf0-4313-bfa7-9504863d4ea8", "test", "node-d1bc7b75-33f1-400e-b282-9f8ccbee3db4" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2020-09-18 00:48:14 |
2020-09-18 00:48:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-18 00:48:14 | ------------------------------------ 2020-09-18 00:48:14 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-2f4fda24-7cf0-4313-bfa7-9504863d4ea8)" } 2020-09-18 00:48:14 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.012s |
2020-09-18 00:48:13 |
2020-09-18 00:48:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-18 00:48:13 | ------------------------------------ 2020-09-18 00:48:13 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-2f4fda24-7cf0-4313-bfa7-9504863d4ea8", "jids": [ "admin@test-domain.com" ] } 2020-09-18 00:48:13 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.059s |
2020-09-18 00:48:14 |
2020-09-18 00:48:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-18 00:48:14 | ------------------------------------ 2020-09-18 00:48:14 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-2f4fda24-7cf0-4313-bfa7-9504863d4ea8", "jids": [ "admin@test-domain.com" ] } 2020-09-18 00:48:14 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |