Test duration : 8.992s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.122s |
2021-09-30 22:27:42 |
2021-09-30 22:27:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-30 22:27:42 | ------------------------------------ 2021-09-30 22:27:42 | [Mutex] waiting for: [configured:node:node-8ff64e6f-7bc3-40d5-9c33-f5a9aab08118:node-9ab5c284-aa70-40a5-b78c-9885965ce110] 2021-09-30 22:27:42 | [Mutex] received everything. 2021-09-30 22:27:42 | [Mutex] isItemNotified: configured:node:node-8ff64e6f-7bc3-40d5-9c33-f5a9aab08118:node-9ab5c284-aa70-40a5-b78c-9885965ce110 :: true 2021-09-30 22:27:43 | [Mutex] waiting for: [received:nodes:59c1f039-7a2e-43d7-b881-6b18ac5fa845:localhost] 2021-09-30 22:27:43 | [Mutex] received everything. 2021-09-30 22:27:43 | [Mutex] isItemNotified: received:node:59c1f039-7a2e-43d7-b881-6b18ac5fa845:localhost:node-8ff64e6f-7bc3-40d5-9c33-f5a9aab08118:Node 8ff64e6f-7bc3-40d5-9c33-f5a9aab08118 :: true 2021-09-30 22:27:43 | [Mutex] waiting for: [received:nodes:d4314181-a9ab-4b20-bc20-19539ec34b12:localhost] 2021-09-30 22:27:43 | [Mutex] waiting for: [received:nodes:d4314181-a9ab-4b20-bc20-19539ec34b12:localhost] 2021-09-30 22:27:43 | [Mutex] received everything. 2021-09-30 22:27:43 | [Mutex] isItemNotified: received:node:d4314181-a9ab-4b20-bc20-19539ec34b12:localhost:node-8ff64e6f-7bc3-40d5-9c33-f5a9aab08118:Node 8ff64e6f-7bc3-40d5-9c33-f5a9aab08118 :: false |
createNodes | 1.708s |
2021-09-30 22:27:39 |
2021-09-30 22:27:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-30 22:27:39 | ------------------------------------ 2021-09-30 22:27:40 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-8ff64e6f-7bc3-40d5-9c33-f5a9aab08118", "pubsub#title": "Node 8ff64e6f-7bc3-40d5-9c33-f5a9aab08118" } 2021-09-30 22:27:40 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-09-30 22:27:41 | [Mutex] waiting for: [received:nodes:57fca473-7dd1-4d1d-b6b8-76aa52e8a6e7:localhost] 2021-09-30 22:27:41 | [Mutex] received everything. 2021-09-30 22:27:41 | [Mutex] isItemNotified: received:node:57fca473-7dd1-4d1d-b6b8-76aa52e8a6e7:localhost:node-8ff64e6f-7bc3-40d5-9c33-f5a9aab08118:Node 8ff64e6f-7bc3-40d5-9c33-f5a9aab08118 :: true |
createSubnodes | 1.040s |
2021-09-30 22:27:41 |
2021-09-30 22:27:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-30 22:27:41 | ------------------------------------ 2021-09-30 22:27:41 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-9ab5c284-aa70-40a5-b78c-9885965ce110", "pubsub#title": "Node 9ab5c284-aa70-40a5-b78c-9885965ce110" } 2021-09-30 22:27:41 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-09-30 22:27:42 | [Mutex] waiting for: [received:nodes:581f6ca8-d6ab-44d0-8c69-6db0bc44ad12:localhost] 2021-09-30 22:27:42 | [Mutex] received everything. 2021-09-30 22:27:42 | [Mutex] isItemNotified: received:node:581f6ca8-d6ab-44d0-8c69-6db0bc44ad12:localhost:node-9ab5c284-aa70-40a5-b78c-9885965ce110:Node 9ab5c284-aa70-40a5-b78c-9885965ce110 :: true |
deleteNodes | 1.029s |
2021-09-30 22:27:46 |
2021-09-30 22:27:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-30 22:27:46 | ------------------------------------ 2021-09-30 22:27:46 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-9ab5c284-aa70-40a5-b78c-9885965ce110" } 2021-09-30 22:27:46 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-09-30 22:27:47 | [Mutex] waiting for: [received:nodes:d03cd802-c8df-4fdb-bb3e-b366659c4db8:localhost] 2021-09-30 22:27:47 | [Mutex] received everything. 2021-09-30 22:27:47 | [Mutex] isItemNotified: received:node:d03cd802-c8df-4fdb-bb3e-b366659c4db8:localhost:node-9ab5c284-aa70-40a5-b78c-9885965ce110:Node 9ab5c284-aa70-40a5-b78c-9885965ce110 :: false |
deleteSubnodes | 1.032s |
2021-09-30 22:27:45 |
2021-09-30 22:27:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-30 22:27:45 | ------------------------------------ 2021-09-30 22:27:45 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-8ff64e6f-7bc3-40d5-9c33-f5a9aab08118" } 2021-09-30 22:27:45 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-09-30 22:27:46 | [Mutex] waiting for: [received:nodes:38968443-d280-48db-a652-22989dd2f86b:localhost] 2021-09-30 22:27:46 | [Mutex] received everything. 2021-09-30 22:27:46 | [Mutex] isItemNotified: received:node:38968443-d280-48db-a652-22989dd2f86b:localhost:node-8ff64e6f-7bc3-40d5-9c33-f5a9aab08118:Node 8ff64e6f-7bc3-40d5-9c33-f5a9aab08118 :: false 2021-09-30 22:27:46 | [Mutex] waiting for: [received:nodes:dad26482-d812-42a9-8d8b-fbea11acae82:localhost] 2021-09-30 22:27:46 | [Mutex] received everything. 2021-09-30 22:27:46 | [Mutex] isItemNotified: received:node:dad26482-d812-42a9-8d8b-fbea11acae82:localhost:node-8ff64e6f-7bc3-40d5-9c33-f5a9aab08118:Node 8ff64e6f-7bc3-40d5-9c33-f5a9aab08118 :: false |
publishItemsToNodes | 0.066s |
2021-09-30 22:27:44 |
2021-09-30 22:27:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-30 22:27:44 | ------------------------------------ 2021-09-30 22:27:44 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-8ff64e6f-7bc3-40d5-9c33-f5a9aab08118", "entry": "<test>item-8ec369ee-d595-40ab-98c0-eb1cc6a2d639</test>", "item-id": "item-8ec369ee-d595-40ab-98c0-eb1cc6a2d639" } 2021-09-30 22:27:44 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-8ec369ee-d595-40ab-98c0-eb1cc6a2d639" } 2021-09-30 22:27:44 | [Mutex] waiting for: [published:item:notifieditem-8ec369ee-d595-40ab-98c0-eb1cc6a2d639:admin@test-domain.com] 2021-09-30 22:27:44 | [Mutex] received everything. 2021-09-30 22:27:44 | [Mutex] isItemNotified: published:item:notifieditem-8ec369ee-d595-40ab-98c0-eb1cc6a2d639:admin@test-domain.com :: true |
retractItemsFromNodes | 0.065s |
2021-09-30 22:27:44 |
2021-09-30 22:27:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-30 22:27:44 | ------------------------------------ 2021-09-30 22:27:44 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-8ff64e6f-7bc3-40d5-9c33-f5a9aab08118", "item-id": "item-8ec369ee-d595-40ab-98c0-eb1cc6a2d639" } 2021-09-30 22:27:44 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-8ec369ee-d595-40ab-98c0-eb1cc6a2d639" } 2021-09-30 22:27:44 | [Mutex] waiting for: [retracted:item:notifieditem-8ec369ee-d595-40ab-98c0-eb1cc6a2d639:admin@test-domain.com] 2021-09-30 22:27:44 | [Mutex] received everything. 2021-09-30 22:27:44 | [Mutex] isItemNotified: retracted:item:notifieditem-8ec369ee-d595-40ab-98c0-eb1cc6a2d639:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.028s |
2021-09-30 22:27:44 |
2021-09-30 22:27:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-30 22:27:44 | ------------------------------------ 2021-09-30 22:27:44 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-8ff64e6f-7bc3-40d5-9c33-f5a9aab08118", "item-id": "item-8ec369ee-d595-40ab-98c0-eb1cc6a2d639" } 2021-09-30 22:27:44 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-8ff64e6f-7bc3-40d5-9c33-f5a9aab08118", "item-id": "item-8ec369ee-d595-40ab-98c0-eb1cc6a2d639", "item": [ "<item id=\"item-8ec369ee-d595-40ab-98c0-eb1cc6a2d639\"><test>item-8ec369ee-d595-40ab-98c0-eb1cc6a2d639</test></item>" ] } 2021-09-30 22:27:44 | [Mutex] notify: [retrieved:item:item-8ec369ee-d595-40ab-98c0-eb1cc6a2d639:payload-matches:true:localhost] 2021-09-30 22:27:44 | [Mutex] received everything. 2021-09-30 22:27:44 | [Mutex] isItemNotified: retrieved:item:item-8ec369ee-d595-40ab-98c0-eb1cc6a2d639:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.054s |
2021-09-30 22:27:44 |
2021-09-30 22:27:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-30 22:27:44 | ------------------------------------ 2021-09-30 22:27:44 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-09-30 22:27:44 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-8ff64e6f-7bc3-40d5-9c33-f5a9aab08118", "node-9ab5c284-aa70-40a5-b78c-9885965ce110" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2021-09-30 22:27:44 |
2021-09-30 22:27:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-30 22:27:44 | ------------------------------------ 2021-09-30 22:27:44 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-8ff64e6f-7bc3-40d5-9c33-f5a9aab08118)" } 2021-09-30 22:27:44 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.015s |
2021-09-30 22:27:43 |
2021-09-30 22:27:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-30 22:27:43 | ------------------------------------ 2021-09-30 22:27:43 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-8ff64e6f-7bc3-40d5-9c33-f5a9aab08118", "jids": [ "admin@test-domain.com" ] } 2021-09-30 22:27:43 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.069s |
2021-09-30 22:27:44 |
2021-09-30 22:27:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-30 22:27:44 | ------------------------------------ 2021-09-30 22:27:44 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-8ff64e6f-7bc3-40d5-9c33-f5a9aab08118", "jids": [ "admin@test-domain.com" ] } 2021-09-30 22:27:44 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |