Test duration : 9.005s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.122s |
2022-02-25 21:46:37 |
2022-02-25 21:46:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-25 21:46:37 | ------------------------------------ 2022-02-25 21:46:37 | [Mutex] waiting for: [configured:node:node-9fa2bd11-82cb-41d1-8d94-7e7785c095ca:node-3574b538-bf01-47b9-81b1-962e1c56eec5] 2022-02-25 21:46:37 | [Mutex] received everything. 2022-02-25 21:46:37 | [Mutex] isItemNotified: configured:node:node-9fa2bd11-82cb-41d1-8d94-7e7785c095ca:node-3574b538-bf01-47b9-81b1-962e1c56eec5 :: true 2022-02-25 21:46:38 | [Mutex] waiting for: [received:nodes:7f525cbd-b302-44e4-80ee-24aaddad120f:localhost] 2022-02-25 21:46:38 | [Mutex] received everything. 2022-02-25 21:46:38 | [Mutex] isItemNotified: received:node:7f525cbd-b302-44e4-80ee-24aaddad120f:localhost:node-9fa2bd11-82cb-41d1-8d94-7e7785c095ca:Node 9fa2bd11-82cb-41d1-8d94-7e7785c095ca :: true 2022-02-25 21:46:38 | [Mutex] waiting for: [received:nodes:a74236be-12dc-4c9c-b71a-f1c229ba239f:localhost] 2022-02-25 21:46:38 | [Mutex] waiting for: [received:nodes:a74236be-12dc-4c9c-b71a-f1c229ba239f:localhost] 2022-02-25 21:46:38 | [Mutex] waiting for: [received:nodes:a74236be-12dc-4c9c-b71a-f1c229ba239f:localhost] 2022-02-25 21:46:38 | [Mutex] received everything. 2022-02-25 21:46:38 | [Mutex] isItemNotified: received:node:a74236be-12dc-4c9c-b71a-f1c229ba239f:localhost:node-9fa2bd11-82cb-41d1-8d94-7e7785c095ca:Node 9fa2bd11-82cb-41d1-8d94-7e7785c095ca :: false |
createNodes | 1.561s |
2022-02-25 21:46:35 |
2022-02-25 21:46:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-25 21:46:35 | ------------------------------------ 2022-02-25 21:46:35 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-9fa2bd11-82cb-41d1-8d94-7e7785c095ca", "pubsub#title": "Node 9fa2bd11-82cb-41d1-8d94-7e7785c095ca" } 2022-02-25 21:46:35 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-25 21:46:36 | [Mutex] waiting for: [received:nodes:7ccfcae9-206a-406d-aed6-27d22753b5a6:localhost] 2022-02-25 21:46:36 | [Mutex] waiting for: [received:nodes:7ccfcae9-206a-406d-aed6-27d22753b5a6:localhost] 2022-02-25 21:46:36 | [Mutex] received everything. 2022-02-25 21:46:36 | [Mutex] isItemNotified: received:node:7ccfcae9-206a-406d-aed6-27d22753b5a6:localhost:node-9fa2bd11-82cb-41d1-8d94-7e7785c095ca:Node 9fa2bd11-82cb-41d1-8d94-7e7785c095ca :: true |
createSubnodes | 1.032s |
2022-02-25 21:46:36 |
2022-02-25 21:46:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-25 21:46:36 | ------------------------------------ 2022-02-25 21:46:36 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-3574b538-bf01-47b9-81b1-962e1c56eec5", "pubsub#title": "Node 3574b538-bf01-47b9-81b1-962e1c56eec5" } 2022-02-25 21:46:36 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-25 21:46:37 | [Mutex] waiting for: [received:nodes:d5a11c89-f397-4e6a-90e7-e5d281c00247:localhost] 2022-02-25 21:46:37 | [Mutex] waiting for: [received:nodes:d5a11c89-f397-4e6a-90e7-e5d281c00247:localhost] 2022-02-25 21:46:37 | [Mutex] received everything. 2022-02-25 21:46:37 | [Mutex] isItemNotified: received:node:d5a11c89-f397-4e6a-90e7-e5d281c00247:localhost:node-3574b538-bf01-47b9-81b1-962e1c56eec5:Node 3574b538-bf01-47b9-81b1-962e1c56eec5 :: true |
deleteNodes | 1.032s |
2022-02-25 21:46:42 |
2022-02-25 21:46:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-25 21:46:42 | ------------------------------------ 2022-02-25 21:46:42 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-3574b538-bf01-47b9-81b1-962e1c56eec5" } 2022-02-25 21:46:42 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-25 21:46:43 | [Mutex] waiting for: [received:nodes:7382acc6-940a-415e-a170-10c36f5ff35a:localhost] 2022-02-25 21:46:43 | [Mutex] waiting for: [received:nodes:7382acc6-940a-415e-a170-10c36f5ff35a:localhost] 2022-02-25 21:46:43 | [Mutex] received everything. 2022-02-25 21:46:43 | [Mutex] isItemNotified: received:node:7382acc6-940a-415e-a170-10c36f5ff35a:localhost:node-3574b538-bf01-47b9-81b1-962e1c56eec5:Node 3574b538-bf01-47b9-81b1-962e1c56eec5 :: false |
deleteSubnodes | 1.032s |
2022-02-25 21:46:41 |
2022-02-25 21:46:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-25 21:46:41 | ------------------------------------ 2022-02-25 21:46:41 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-9fa2bd11-82cb-41d1-8d94-7e7785c095ca" } 2022-02-25 21:46:41 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-25 21:46:42 | [Mutex] waiting for: [received:nodes:036a5401-76fb-4358-8ad0-271d15c6ed56:localhost] 2022-02-25 21:46:42 | [Mutex] waiting for: [received:nodes:036a5401-76fb-4358-8ad0-271d15c6ed56:localhost] 2022-02-25 21:46:42 | [Mutex] received everything. 2022-02-25 21:46:42 | [Mutex] isItemNotified: received:node:036a5401-76fb-4358-8ad0-271d15c6ed56:localhost:node-9fa2bd11-82cb-41d1-8d94-7e7785c095ca:Node 9fa2bd11-82cb-41d1-8d94-7e7785c095ca :: false 2022-02-25 21:46:42 | [Mutex] waiting for: [received:nodes:bde37e3f-9a55-4c4c-b048-00c9326b4572:localhost] 2022-02-25 21:46:42 | [Mutex] received everything. 2022-02-25 21:46:42 | [Mutex] isItemNotified: received:node:bde37e3f-9a55-4c4c-b048-00c9326b4572:localhost:node-9fa2bd11-82cb-41d1-8d94-7e7785c095ca:Node 9fa2bd11-82cb-41d1-8d94-7e7785c095ca :: false |
publishItemsToNodes | 0.095s |
2022-02-25 21:46:39 |
2022-02-25 21:46:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-25 21:46:39 | ------------------------------------ 2022-02-25 21:46:39 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-9fa2bd11-82cb-41d1-8d94-7e7785c095ca", "entry": "<test>item-1cac490c-4b9c-4465-9c78-43340d86f606</test>", "item-id": "item-1cac490c-4b9c-4465-9c78-43340d86f606" } 2022-02-25 21:46:39 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-1cac490c-4b9c-4465-9c78-43340d86f606" } 2022-02-25 21:46:39 | [Mutex] waiting for: [published:item:notifieditem-1cac490c-4b9c-4465-9c78-43340d86f606:admin@test-domain.com] 2022-02-25 21:46:39 | [Mutex] received everything. 2022-02-25 21:46:39 | [Mutex] isItemNotified: published:item:notifieditem-1cac490c-4b9c-4465-9c78-43340d86f606:admin@test-domain.com :: true |
retractItemsFromNodes | 0.067s |
2022-02-25 21:46:40 |
2022-02-25 21:46:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-25 21:46:40 | ------------------------------------ 2022-02-25 21:46:40 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-9fa2bd11-82cb-41d1-8d94-7e7785c095ca", "item-id": "item-1cac490c-4b9c-4465-9c78-43340d86f606" } 2022-02-25 21:46:40 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-1cac490c-4b9c-4465-9c78-43340d86f606" } 2022-02-25 21:46:40 | [Mutex] received everything. 2022-02-25 21:46:40 | [Mutex] isItemNotified: retracted:item:notifieditem-1cac490c-4b9c-4465-9c78-43340d86f606:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.035s |
2022-02-25 21:46:39 |
2022-02-25 21:46:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-25 21:46:39 | ------------------------------------ 2022-02-25 21:46:39 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-9fa2bd11-82cb-41d1-8d94-7e7785c095ca", "item-id": "item-1cac490c-4b9c-4465-9c78-43340d86f606" } 2022-02-25 21:46:39 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-9fa2bd11-82cb-41d1-8d94-7e7785c095ca", "item-id": "item-1cac490c-4b9c-4465-9c78-43340d86f606", "item": [ "<item id=\"item-1cac490c-4b9c-4465-9c78-43340d86f606\"><test>item-1cac490c-4b9c-4465-9c78-43340d86f606</test></item>" ] } 2022-02-25 21:46:39 | [Mutex] notify: [retrieved:item:item-1cac490c-4b9c-4465-9c78-43340d86f606:payload-matches:true:localhost] 2022-02-25 21:46:39 | [Mutex] received everything. 2022-02-25 21:46:39 | [Mutex] isItemNotified: retrieved:item:item-1cac490c-4b9c-4465-9c78-43340d86f606:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.076s |
2022-02-25 21:46:39 |
2022-02-25 21:46:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-25 21:46:39 | ------------------------------------ 2022-02-25 21:46:39 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-02-25 21:46:39 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-9fa2bd11-82cb-41d1-8d94-7e7785c095ca", "node-3574b538-bf01-47b9-81b1-962e1c56eec5" ] } |
retrieveUserSubscriptionsWithRegex | 0.052s |
2022-02-25 21:46:39 |
2022-02-25 21:46:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-25 21:46:39 | ------------------------------------ 2022-02-25 21:46:39 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-9fa2bd11-82cb-41d1-8d94-7e7785c095ca)" } 2022-02-25 21:46:40 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.013s |
2022-02-25 21:46:38 |
2022-02-25 21:46:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-25 21:46:38 | ------------------------------------ 2022-02-25 21:46:38 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-9fa2bd11-82cb-41d1-8d94-7e7785c095ca", "jids": [ "admin@test-domain.com" ] } 2022-02-25 21:46:38 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.091s |
2022-02-25 21:46:40 |
2022-02-25 21:46:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-25 21:46:40 | ------------------------------------ 2022-02-25 21:46:40 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-9fa2bd11-82cb-41d1-8d94-7e7785c095ca", "jids": [ "admin@test-domain.com" ] } 2022-02-25 21:46:40 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |