Test duration : 9.095s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.115s |
2020-09-01 18:53:20 |
2020-09-01 18:53:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-01 18:53:20 | ------------------------------------ 2020-09-01 18:53:20 | [Mutex] waiting for: [configured:node:node-126b3295-1c41-4ce9-9e96-eb3dc4bd945b:node-67eb5b65-face-4df0-867d-57ced7a2d9ba] 2020-09-01 18:53:20 | [Mutex] received everything. 2020-09-01 18:53:20 | [Mutex] isItemNotified: configured:node:node-126b3295-1c41-4ce9-9e96-eb3dc4bd945b:node-67eb5b65-face-4df0-867d-57ced7a2d9ba :: true 2020-09-01 18:53:21 | [Mutex] waiting for: [received:nodes:3c97d30b-b717-4d6d-9dc7-04b8a700e93b:localhost] 2020-09-01 18:53:21 | [Mutex] received everything. 2020-09-01 18:53:21 | [Mutex] isItemNotified: received:node:3c97d30b-b717-4d6d-9dc7-04b8a700e93b:localhost:node-126b3295-1c41-4ce9-9e96-eb3dc4bd945b:Node 126b3295-1c41-4ce9-9e96-eb3dc4bd945b :: true 2020-09-01 18:53:21 | [Mutex] waiting for: [received:nodes:797e2736-72df-4bb9-b98e-760a4d75e1fc:localhost] 2020-09-01 18:53:21 | [Mutex] received everything. 2020-09-01 18:53:21 | [Mutex] isItemNotified: received:node:797e2736-72df-4bb9-b98e-760a4d75e1fc:localhost:node-126b3295-1c41-4ce9-9e96-eb3dc4bd945b:Node 126b3295-1c41-4ce9-9e96-eb3dc4bd945b :: false |
createNodes | 1.776s |
2020-09-01 18:53:17 |
2020-09-01 18:53:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-01 18:53:17 | ------------------------------------ 2020-09-01 18:53:18 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-126b3295-1c41-4ce9-9e96-eb3dc4bd945b", "pubsub#title": "Node 126b3295-1c41-4ce9-9e96-eb3dc4bd945b" } 2020-09-01 18:53:18 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-01 18:53:19 | [Mutex] waiting for: [received:nodes:951c53d6-f3fa-4d32-bb6a-297f35f18a0a:localhost] 2020-09-01 18:53:19 | [Mutex] received everything. 2020-09-01 18:53:19 | [Mutex] isItemNotified: received:node:951c53d6-f3fa-4d32-bb6a-297f35f18a0a:localhost:node-126b3295-1c41-4ce9-9e96-eb3dc4bd945b:Node 126b3295-1c41-4ce9-9e96-eb3dc4bd945b :: true |
createSubnodes | 1.027s |
2020-09-01 18:53:19 |
2020-09-01 18:53:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-01 18:53:19 | ------------------------------------ 2020-09-01 18:53:19 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-67eb5b65-face-4df0-867d-57ced7a2d9ba", "pubsub#title": "Node 67eb5b65-face-4df0-867d-57ced7a2d9ba" } 2020-09-01 18:53:19 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-01 18:53:20 | [Mutex] waiting for: [received:nodes:8d21943c-2b5d-4464-a50f-9e0a6eeb48f6:localhost] 2020-09-01 18:53:20 | [Mutex] received everything. 2020-09-01 18:53:20 | [Mutex] isItemNotified: received:node:8d21943c-2b5d-4464-a50f-9e0a6eeb48f6:localhost:node-67eb5b65-face-4df0-867d-57ced7a2d9ba:Node 67eb5b65-face-4df0-867d-57ced7a2d9ba :: true |
deleteNodes | 1.023s |
2020-09-01 18:53:25 |
2020-09-01 18:53:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-01 18:53:25 | ------------------------------------ 2020-09-01 18:53:25 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-67eb5b65-face-4df0-867d-57ced7a2d9ba" } 2020-09-01 18:53:25 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-01 18:53:26 | [Mutex] waiting for: [received:nodes:8af56df4-f845-496e-8df5-37ac18c6e443:localhost] 2020-09-01 18:53:26 | [Mutex] received everything. 2020-09-01 18:53:26 | [Mutex] isItemNotified: received:node:8af56df4-f845-496e-8df5-37ac18c6e443:localhost:node-67eb5b65-face-4df0-867d-57ced7a2d9ba:Node 67eb5b65-face-4df0-867d-57ced7a2d9ba :: false |
deleteSubnodes | 1.030s |
2020-09-01 18:53:24 |
2020-09-01 18:53:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-01 18:53:24 | ------------------------------------ 2020-09-01 18:53:24 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-126b3295-1c41-4ce9-9e96-eb3dc4bd945b" } 2020-09-01 18:53:24 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-01 18:53:25 | [Mutex] waiting for: [received:nodes:153b41d4-4dce-4efd-a2ad-d0ed94e10680:localhost] 2020-09-01 18:53:25 | [Mutex] received everything. 2020-09-01 18:53:25 | [Mutex] isItemNotified: received:node:153b41d4-4dce-4efd-a2ad-d0ed94e10680:localhost:node-126b3295-1c41-4ce9-9e96-eb3dc4bd945b:Node 126b3295-1c41-4ce9-9e96-eb3dc4bd945b :: false 2020-09-01 18:53:25 | [Mutex] waiting for: [received:nodes:c6966f79-240e-4a8a-90a1-1d1f2ec4d253:localhost] 2020-09-01 18:53:25 | [Mutex] received everything. 2020-09-01 18:53:25 | [Mutex] isItemNotified: received:node:c6966f79-240e-4a8a-90a1-1d1f2ec4d253:localhost:node-126b3295-1c41-4ce9-9e96-eb3dc4bd945b:Node 126b3295-1c41-4ce9-9e96-eb3dc4bd945b :: false |
publishItemsToNodes | 0.069s |
2020-09-01 18:53:22 |
2020-09-01 18:53:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-01 18:53:22 | ------------------------------------ 2020-09-01 18:53:22 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-126b3295-1c41-4ce9-9e96-eb3dc4bd945b", "entry": "<test>item-03bef993-90ca-4e4d-bc04-b82036836bc8</test>", "item-id": "item-03bef993-90ca-4e4d-bc04-b82036836bc8" } 2020-09-01 18:53:22 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-03bef993-90ca-4e4d-bc04-b82036836bc8" } 2020-09-01 18:53:22 | [Mutex] waiting for: [published:item:notifieditem-03bef993-90ca-4e4d-bc04-b82036836bc8:admin@test-domain.com] 2020-09-01 18:53:22 | [Mutex] received everything. 2020-09-01 18:53:22 | [Mutex] isItemNotified: published:item:notifieditem-03bef993-90ca-4e4d-bc04-b82036836bc8:admin@test-domain.com :: true |
retractItemsFromNodes | 0.055s |
2020-09-01 18:53:23 |
2020-09-01 18:53:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-01 18:53:23 | ------------------------------------ 2020-09-01 18:53:23 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-126b3295-1c41-4ce9-9e96-eb3dc4bd945b", "item-id": "item-03bef993-90ca-4e4d-bc04-b82036836bc8" } 2020-09-01 18:53:23 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-03bef993-90ca-4e4d-bc04-b82036836bc8" } 2020-09-01 18:53:23 | [Mutex] received everything. 2020-09-01 18:53:23 | [Mutex] isItemNotified: retracted:item:notifieditem-03bef993-90ca-4e4d-bc04-b82036836bc8:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.029s |
2020-09-01 18:53:22 |
2020-09-01 18:53:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-01 18:53:22 | ------------------------------------ 2020-09-01 18:53:22 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-126b3295-1c41-4ce9-9e96-eb3dc4bd945b", "item-id": "item-03bef993-90ca-4e4d-bc04-b82036836bc8" } 2020-09-01 18:53:23 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-126b3295-1c41-4ce9-9e96-eb3dc4bd945b", "item-id": "item-03bef993-90ca-4e4d-bc04-b82036836bc8", "item": [ "<item id=\"item-03bef993-90ca-4e4d-bc04-b82036836bc8\"><test>item-03bef993-90ca-4e4d-bc04-b82036836bc8</test></item>" ] } 2020-09-01 18:53:23 | [Mutex] notify: [retrieved:item:item-03bef993-90ca-4e4d-bc04-b82036836bc8:payload-matches:true:localhost] 2020-09-01 18:53:23 | [Mutex] received everything. 2020-09-01 18:53:23 | [Mutex] isItemNotified: retrieved:item:item-03bef993-90ca-4e4d-bc04-b82036836bc8:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.069s |
2020-09-01 18:53:23 |
2020-09-01 18:53:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-01 18:53:23 | ------------------------------------ 2020-09-01 18:53:23 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-09-01 18:53:23 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-126b3295-1c41-4ce9-9e96-eb3dc4bd945b", "node-67eb5b65-face-4df0-867d-57ced7a2d9ba" ] } |
retrieveUserSubscriptionsWithRegex | 0.059s |
2020-09-01 18:53:23 |
2020-09-01 18:53:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-01 18:53:23 | ------------------------------------ 2020-09-01 18:53:23 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-126b3295-1c41-4ce9-9e96-eb3dc4bd945b)" } 2020-09-01 18:53:23 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.016s |
2020-09-01 18:53:21 |
2020-09-01 18:53:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-01 18:53:21 | ------------------------------------ 2020-09-01 18:53:21 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-126b3295-1c41-4ce9-9e96-eb3dc4bd945b", "jids": [ "admin@test-domain.com" ] } 2020-09-01 18:53:21 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.083s |
2020-09-01 18:53:23 |
2020-09-01 18:53:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-01 18:53:23 | ------------------------------------ 2020-09-01 18:53:23 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-126b3295-1c41-4ce9-9e96-eb3dc4bd945b", "jids": [ "admin@test-domain.com" ] } 2020-09-01 18:53:23 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |