Test duration : 8.612s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.099s |
2022-06-17 22:52:28 |
2022-06-17 22:52:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-17 22:52:28 | ------------------------------------ 2022-06-17 22:52:28 | [Mutex] waiting for: [configured:node:node-034e4cf7-e494-4f3e-867d-87fde68aec64:node-971b4140-3f37-4503-8f5c-59028fc40863] 2022-06-17 22:52:28 | [Mutex] received everything. 2022-06-17 22:52:28 | [Mutex] isItemNotified: configured:node:node-034e4cf7-e494-4f3e-867d-87fde68aec64:node-971b4140-3f37-4503-8f5c-59028fc40863 :: true 2022-06-17 22:52:29 | [Mutex] waiting for: [received:nodes:73765d55-7906-439f-897d-b8a564c25fef:localhost] 2022-06-17 22:52:29 | [Mutex] received everything. 2022-06-17 22:52:29 | [Mutex] isItemNotified: received:node:73765d55-7906-439f-897d-b8a564c25fef:localhost:node-034e4cf7-e494-4f3e-867d-87fde68aec64:Node 034e4cf7-e494-4f3e-867d-87fde68aec64 :: true 2022-06-17 22:52:29 | [Mutex] waiting for: [received:nodes:b503b558-4f8c-491d-8ae4-2dba9359451d:localhost] 2022-06-17 22:52:29 | [Mutex] waiting for: [received:nodes:b503b558-4f8c-491d-8ae4-2dba9359451d:localhost] 2022-06-17 22:52:29 | [Mutex] received everything. 2022-06-17 22:52:29 | [Mutex] isItemNotified: received:node:b503b558-4f8c-491d-8ae4-2dba9359451d:localhost:node-034e4cf7-e494-4f3e-867d-87fde68aec64:Node 034e4cf7-e494-4f3e-867d-87fde68aec64 :: false |
createNodes | 1.589s |
2022-06-17 22:52:25 |
2022-06-17 22:52:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-17 22:52:25 | ------------------------------------ 2022-06-17 22:52:26 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-034e4cf7-e494-4f3e-867d-87fde68aec64", "pubsub#title": "Node 034e4cf7-e494-4f3e-867d-87fde68aec64" } 2022-06-17 22:52:26 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-06-17 22:52:27 | [Mutex] waiting for: [received:nodes:d4f906bb-2223-405c-ba57-b787ca1bbfab:localhost] 2022-06-17 22:52:27 | [Mutex] received everything. 2022-06-17 22:52:27 | [Mutex] isItemNotified: received:node:d4f906bb-2223-405c-ba57-b787ca1bbfab:localhost:node-034e4cf7-e494-4f3e-867d-87fde68aec64:Node 034e4cf7-e494-4f3e-867d-87fde68aec64 :: true |
createSubnodes | 1.024s |
2022-06-17 22:52:27 |
2022-06-17 22:52:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-17 22:52:27 | ------------------------------------ 2022-06-17 22:52:27 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-971b4140-3f37-4503-8f5c-59028fc40863", "pubsub#title": "Node 971b4140-3f37-4503-8f5c-59028fc40863" } 2022-06-17 22:52:27 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-06-17 22:52:28 | [Mutex] waiting for: [received:nodes:4a1236e6-2bd3-4a21-b320-4a1699a2fbdb:localhost] 2022-06-17 22:52:28 | [Mutex] received everything. 2022-06-17 22:52:28 | [Mutex] isItemNotified: received:node:4a1236e6-2bd3-4a21-b320-4a1699a2fbdb:localhost:node-971b4140-3f37-4503-8f5c-59028fc40863:Node 971b4140-3f37-4503-8f5c-59028fc40863 :: true |
deleteNodes | 1.027s |
2022-06-17 22:52:32 |
2022-06-17 22:52:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-17 22:52:32 | ------------------------------------ 2022-06-17 22:52:32 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-971b4140-3f37-4503-8f5c-59028fc40863" } 2022-06-17 22:52:32 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-06-17 22:52:33 | [Mutex] waiting for: [received:nodes:12e4eb6a-33ba-4f36-8139-00ecd9ae39c0:localhost] 2022-06-17 22:52:33 | [Mutex] waiting for: [received:nodes:12e4eb6a-33ba-4f36-8139-00ecd9ae39c0:localhost] 2022-06-17 22:52:33 | [Mutex] waiting for: [received:nodes:12e4eb6a-33ba-4f36-8139-00ecd9ae39c0:localhost] 2022-06-17 22:52:33 | [Mutex] received everything. 2022-06-17 22:52:33 | [Mutex] isItemNotified: received:node:12e4eb6a-33ba-4f36-8139-00ecd9ae39c0:localhost:node-971b4140-3f37-4503-8f5c-59028fc40863:Node 971b4140-3f37-4503-8f5c-59028fc40863 :: false |
deleteSubnodes | 1.025s |
2022-06-17 22:52:31 |
2022-06-17 22:52:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-17 22:52:31 | ------------------------------------ 2022-06-17 22:52:31 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-034e4cf7-e494-4f3e-867d-87fde68aec64" } 2022-06-17 22:52:31 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-06-17 22:52:32 | [Mutex] waiting for: [received:nodes:95f5c9d0-952a-4ada-9b56-429498f1612b:localhost] 2022-06-17 22:52:32 | [Mutex] received everything. 2022-06-17 22:52:32 | [Mutex] isItemNotified: received:node:95f5c9d0-952a-4ada-9b56-429498f1612b:localhost:node-034e4cf7-e494-4f3e-867d-87fde68aec64:Node 034e4cf7-e494-4f3e-867d-87fde68aec64 :: false 2022-06-17 22:52:32 | [Mutex] waiting for: [received:nodes:d0f60fff-4b7f-4366-a3cd-f3e9d39f1981:localhost] 2022-06-17 22:52:32 | [Mutex] received everything. 2022-06-17 22:52:32 | [Mutex] isItemNotified: received:node:d0f60fff-4b7f-4366-a3cd-f3e9d39f1981:localhost:node-034e4cf7-e494-4f3e-867d-87fde68aec64:Node 034e4cf7-e494-4f3e-867d-87fde68aec64 :: false |
publishItemsToNodes | 0.029s |
2022-06-17 22:52:30 |
2022-06-17 22:52:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-17 22:52:30 | ------------------------------------ 2022-06-17 22:52:30 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-034e4cf7-e494-4f3e-867d-87fde68aec64", "entry": "<test>item-37dd30f4-99f0-4e5a-a15b-c6ea9c0bb389</test>", "item-id": "item-37dd30f4-99f0-4e5a-a15b-c6ea9c0bb389" } 2022-06-17 22:52:30 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-37dd30f4-99f0-4e5a-a15b-c6ea9c0bb389" } 2022-06-17 22:52:30 | [Mutex] waiting for: [published:item:notifieditem-37dd30f4-99f0-4e5a-a15b-c6ea9c0bb389:admin@test-domain.com] 2022-06-17 22:52:30 | [Mutex] received everything. 2022-06-17 22:52:30 | [Mutex] isItemNotified: published:item:notifieditem-37dd30f4-99f0-4e5a-a15b-c6ea9c0bb389:admin@test-domain.com :: true |
retractItemsFromNodes | 0.052s |
2022-06-17 22:52:30 |
2022-06-17 22:52:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-17 22:52:30 | ------------------------------------ 2022-06-17 22:52:30 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-034e4cf7-e494-4f3e-867d-87fde68aec64", "item-id": "item-37dd30f4-99f0-4e5a-a15b-c6ea9c0bb389" } 2022-06-17 22:52:30 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-37dd30f4-99f0-4e5a-a15b-c6ea9c0bb389" } 2022-06-17 22:52:30 | [Mutex] waiting for: [retracted:item:notifieditem-37dd30f4-99f0-4e5a-a15b-c6ea9c0bb389:admin@test-domain.com] 2022-06-17 22:52:30 | [Mutex] received everything. 2022-06-17 22:52:30 | [Mutex] isItemNotified: retracted:item:notifieditem-37dd30f4-99f0-4e5a-a15b-c6ea9c0bb389:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.110s |
2022-06-17 22:52:30 |
2022-06-17 22:52:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-17 22:52:30 | ------------------------------------ 2022-06-17 22:52:30 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-034e4cf7-e494-4f3e-867d-87fde68aec64", "item-id": "item-37dd30f4-99f0-4e5a-a15b-c6ea9c0bb389" } 2022-06-17 22:52:30 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-034e4cf7-e494-4f3e-867d-87fde68aec64", "item-id": "item-37dd30f4-99f0-4e5a-a15b-c6ea9c0bb389", "item": [ "<item id=\"item-37dd30f4-99f0-4e5a-a15b-c6ea9c0bb389\"><test>item-37dd30f4-99f0-4e5a-a15b-c6ea9c0bb389</test></item>" ] } 2022-06-17 22:52:30 | [Mutex] notify: [retrieved:item:item-37dd30f4-99f0-4e5a-a15b-c6ea9c0bb389:payload-matches:true:localhost] 2022-06-17 22:52:30 | [Mutex] received everything. 2022-06-17 22:52:30 | [Mutex] isItemNotified: retrieved:item:item-37dd30f4-99f0-4e5a-a15b-c6ea9c0bb389:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.047s |
2022-06-17 22:52:30 |
2022-06-17 22:52:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-17 22:52:30 | ------------------------------------ 2022-06-17 22:52:30 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-06-17 22:52:30 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-971b4140-3f37-4503-8f5c-59028fc40863", "node-034e4cf7-e494-4f3e-867d-87fde68aec64" ] } |
retrieveUserSubscriptionsWithRegex | 0.048s |
2022-06-17 22:52:30 |
2022-06-17 22:52:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-17 22:52:30 | ------------------------------------ 2022-06-17 22:52:30 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-034e4cf7-e494-4f3e-867d-87fde68aec64)" } 2022-06-17 22:52:30 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.010s |
2022-06-17 22:52:29 |
2022-06-17 22:52:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-17 22:52:29 | ------------------------------------ 2022-06-17 22:52:29 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-034e4cf7-e494-4f3e-867d-87fde68aec64", "jids": [ "admin@test-domain.com" ] } 2022-06-17 22:52:29 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.049s |
2022-06-17 22:52:30 |
2022-06-17 22:52:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-17 22:52:30 | ------------------------------------ 2022-06-17 22:52:30 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-034e4cf7-e494-4f3e-867d-87fde68aec64", "jids": [ "admin@test-domain.com" ] } 2022-06-17 22:52:30 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |