Test duration : 8.652s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.089s |
2022-07-24 23:04:53 |
2022-07-24 23:04:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-24 23:04:53 | ------------------------------------ 2022-07-24 23:04:53 | [Mutex] waiting for: [configured:node:node-dc6fcae1-508b-46f9-8ca8-af801fbed92c:node-d50b5fcb-5388-4c40-b8f5-7645b4a640e9] 2022-07-24 23:04:53 | [Mutex] received everything. 2022-07-24 23:04:53 | [Mutex] isItemNotified: configured:node:node-dc6fcae1-508b-46f9-8ca8-af801fbed92c:node-d50b5fcb-5388-4c40-b8f5-7645b4a640e9 :: true 2022-07-24 23:04:54 | [Mutex] waiting for: [received:nodes:bbb9395c-eb4d-4e22-a879-d35634760223:localhost] 2022-07-24 23:04:54 | [Mutex] received everything. 2022-07-24 23:04:54 | [Mutex] isItemNotified: received:node:bbb9395c-eb4d-4e22-a879-d35634760223:localhost:node-dc6fcae1-508b-46f9-8ca8-af801fbed92c:Node dc6fcae1-508b-46f9-8ca8-af801fbed92c :: true 2022-07-24 23:04:54 | [Mutex] waiting for: [received:nodes:d529ea07-a3a1-4733-a6c2-bf8fc1ba7ed0:localhost] 2022-07-24 23:04:54 | [Mutex] waiting for: [received:nodes:d529ea07-a3a1-4733-a6c2-bf8fc1ba7ed0:localhost] 2022-07-24 23:04:54 | [Mutex] received everything. 2022-07-24 23:04:54 | [Mutex] isItemNotified: received:node:d529ea07-a3a1-4733-a6c2-bf8fc1ba7ed0:localhost:node-dc6fcae1-508b-46f9-8ca8-af801fbed92c:Node dc6fcae1-508b-46f9-8ca8-af801fbed92c :: false |
createNodes | 1.584s |
2022-07-24 23:04:51 |
2022-07-24 23:04:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-24 23:04:51 | ------------------------------------ 2022-07-24 23:04:51 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-dc6fcae1-508b-46f9-8ca8-af801fbed92c", "pubsub#title": "Node dc6fcae1-508b-46f9-8ca8-af801fbed92c" } 2022-07-24 23:04:51 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-24 23:04:52 | [Mutex] waiting for: [received:nodes:7b5f7c5d-d4c6-402c-82c4-09070c6f7a08:localhost] 2022-07-24 23:04:52 | [Mutex] received everything. 2022-07-24 23:04:52 | [Mutex] isItemNotified: received:node:7b5f7c5d-d4c6-402c-82c4-09070c6f7a08:localhost:node-dc6fcae1-508b-46f9-8ca8-af801fbed92c:Node dc6fcae1-508b-46f9-8ca8-af801fbed92c :: true |
createSubnodes | 1.024s |
2022-07-24 23:04:52 |
2022-07-24 23:04:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-24 23:04:52 | ------------------------------------ 2022-07-24 23:04:52 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-d50b5fcb-5388-4c40-b8f5-7645b4a640e9", "pubsub#title": "Node d50b5fcb-5388-4c40-b8f5-7645b4a640e9" } 2022-07-24 23:04:52 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-24 23:04:53 | [Mutex] waiting for: [received:nodes:4ae59ca6-69f9-4056-b9e3-e7b466d44029:localhost] 2022-07-24 23:04:53 | [Mutex] received everything. 2022-07-24 23:04:53 | [Mutex] isItemNotified: received:node:4ae59ca6-69f9-4056-b9e3-e7b466d44029:localhost:node-d50b5fcb-5388-4c40-b8f5-7645b4a640e9:Node d50b5fcb-5388-4c40-b8f5-7645b4a640e9 :: true |
deleteNodes | 1.023s |
2022-07-24 23:04:58 |
2022-07-24 23:04:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-24 23:04:58 | ------------------------------------ 2022-07-24 23:04:58 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-d50b5fcb-5388-4c40-b8f5-7645b4a640e9" } 2022-07-24 23:04:58 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-24 23:04:59 | [Mutex] waiting for: [received:nodes:43ceb180-3080-4df5-bbca-d1b8e7e19268:localhost] 2022-07-24 23:04:59 | [Mutex] waiting for: [received:nodes:43ceb180-3080-4df5-bbca-d1b8e7e19268:localhost] 2022-07-24 23:04:59 | [Mutex] received everything. 2022-07-24 23:04:59 | [Mutex] isItemNotified: received:node:43ceb180-3080-4df5-bbca-d1b8e7e19268:localhost:node-d50b5fcb-5388-4c40-b8f5-7645b4a640e9:Node d50b5fcb-5388-4c40-b8f5-7645b4a640e9 :: false |
deleteSubnodes | 1.027s |
2022-07-24 23:04:57 |
2022-07-24 23:04:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-24 23:04:57 | ------------------------------------ 2022-07-24 23:04:57 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-dc6fcae1-508b-46f9-8ca8-af801fbed92c" } 2022-07-24 23:04:57 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-24 23:04:58 | [Mutex] waiting for: [received:nodes:e45ca8f2-c2ce-4e44-8cd4-9e604937df5f:localhost] 2022-07-24 23:04:58 | [Mutex] received everything. 2022-07-24 23:04:58 | [Mutex] isItemNotified: received:node:e45ca8f2-c2ce-4e44-8cd4-9e604937df5f:localhost:node-dc6fcae1-508b-46f9-8ca8-af801fbed92c:Node dc6fcae1-508b-46f9-8ca8-af801fbed92c :: false 2022-07-24 23:04:58 | [Mutex] waiting for: [received:nodes:cc5acb12-00a3-499d-b221-311a13141401:localhost] 2022-07-24 23:04:58 | [Mutex] received everything. 2022-07-24 23:04:58 | [Mutex] isItemNotified: received:node:cc5acb12-00a3-499d-b221-311a13141401:localhost:node-dc6fcae1-508b-46f9-8ca8-af801fbed92c:Node dc6fcae1-508b-46f9-8ca8-af801fbed92c :: false |
publishItemsToNodes | 0.053s |
2022-07-24 23:04:55 |
2022-07-24 23:04:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-24 23:04:55 | ------------------------------------ 2022-07-24 23:04:55 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-dc6fcae1-508b-46f9-8ca8-af801fbed92c", "entry": "<test>item-b9535372-1e8a-4ccc-b8d5-0564599af590</test>", "item-id": "item-b9535372-1e8a-4ccc-b8d5-0564599af590" } 2022-07-24 23:04:55 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-b9535372-1e8a-4ccc-b8d5-0564599af590" } 2022-07-24 23:04:55 | [Mutex] waiting for: [published:item:notifieditem-b9535372-1e8a-4ccc-b8d5-0564599af590:admin@test-domain.com] 2022-07-24 23:04:55 | [Mutex] received everything. 2022-07-24 23:04:55 | [Mutex] isItemNotified: published:item:notifieditem-b9535372-1e8a-4ccc-b8d5-0564599af590:admin@test-domain.com :: true |
retractItemsFromNodes | 0.051s |
2022-07-24 23:04:56 |
2022-07-24 23:04:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-24 23:04:56 | ------------------------------------ 2022-07-24 23:04:56 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-dc6fcae1-508b-46f9-8ca8-af801fbed92c", "item-id": "item-b9535372-1e8a-4ccc-b8d5-0564599af590" } 2022-07-24 23:04:56 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-b9535372-1e8a-4ccc-b8d5-0564599af590" } 2022-07-24 23:04:56 | [Mutex] received everything. 2022-07-24 23:04:56 | [Mutex] isItemNotified: retracted:item:notifieditem-b9535372-1e8a-4ccc-b8d5-0564599af590:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.021s |
2022-07-24 23:04:55 |
2022-07-24 23:04:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-24 23:04:55 | ------------------------------------ 2022-07-24 23:04:55 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-dc6fcae1-508b-46f9-8ca8-af801fbed92c", "item-id": "item-b9535372-1e8a-4ccc-b8d5-0564599af590" } 2022-07-24 23:04:55 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-dc6fcae1-508b-46f9-8ca8-af801fbed92c", "item-id": "item-b9535372-1e8a-4ccc-b8d5-0564599af590", "item": [ "<item id=\"item-b9535372-1e8a-4ccc-b8d5-0564599af590\"><test>item-b9535372-1e8a-4ccc-b8d5-0564599af590</test></item>" ] } 2022-07-24 23:04:55 | [Mutex] notify: [retrieved:item:item-b9535372-1e8a-4ccc-b8d5-0564599af590:payload-matches:true:localhost] 2022-07-24 23:04:55 | [Mutex] received everything. 2022-07-24 23:04:55 | [Mutex] isItemNotified: retrieved:item:item-b9535372-1e8a-4ccc-b8d5-0564599af590:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.066s |
2022-07-24 23:04:55 |
2022-07-24 23:04:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-24 23:04:55 | ------------------------------------ 2022-07-24 23:04:55 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-07-24 23:04:55 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-d50b5fcb-5388-4c40-b8f5-7645b4a640e9", "node-dc6fcae1-508b-46f9-8ca8-af801fbed92c" ] } |
retrieveUserSubscriptionsWithRegex | 0.048s |
2022-07-24 23:04:55 |
2022-07-24 23:04:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-24 23:04:55 | ------------------------------------ 2022-07-24 23:04:55 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-dc6fcae1-508b-46f9-8ca8-af801fbed92c)" } 2022-07-24 23:04:56 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.008s |
2022-07-24 23:04:54 |
2022-07-24 23:04:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-24 23:04:54 | ------------------------------------ 2022-07-24 23:04:54 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-dc6fcae1-508b-46f9-8ca8-af801fbed92c", "jids": [ "admin@test-domain.com" ] } 2022-07-24 23:04:54 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.075s |
2022-07-24 23:04:56 |
2022-07-24 23:04:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-24 23:04:56 | ------------------------------------ 2022-07-24 23:04:56 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-dc6fcae1-508b-46f9-8ca8-af801fbed92c", "jids": [ "admin@test-domain.com" ] } 2022-07-24 23:04:56 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |