Test duration : 9.011s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.118s |
2020-09-01 20:19:57 |
2020-09-01 20:19:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-01 20:19:57 | ------------------------------------ 2020-09-01 20:19:57 | [Mutex] waiting for: [configured:node:node-889ae0b3-902a-4f5d-8334-af8a17f9d6c8:node-bc00b48a-0755-49cf-8fe0-f54b2592cfc7] 2020-09-01 20:19:57 | [Mutex] received everything. 2020-09-01 20:19:57 | [Mutex] isItemNotified: configured:node:node-889ae0b3-902a-4f5d-8334-af8a17f9d6c8:node-bc00b48a-0755-49cf-8fe0-f54b2592cfc7 :: true 2020-09-01 20:19:58 | [Mutex] waiting for: [received:nodes:d1a6da8d-81a0-4420-86d8-d890dd1e82f9:localhost] 2020-09-01 20:19:58 | [Mutex] waiting for: [received:nodes:d1a6da8d-81a0-4420-86d8-d890dd1e82f9:localhost] 2020-09-01 20:19:58 | [Mutex] received everything. 2020-09-01 20:19:58 | [Mutex] isItemNotified: received:node:d1a6da8d-81a0-4420-86d8-d890dd1e82f9:localhost:node-889ae0b3-902a-4f5d-8334-af8a17f9d6c8:Node 889ae0b3-902a-4f5d-8334-af8a17f9d6c8 :: true 2020-09-01 20:19:58 | [Mutex] waiting for: [received:nodes:69633c10-d35a-455f-8534-df0800cd09e9:localhost] 2020-09-01 20:19:58 | [Mutex] waiting for: [received:nodes:69633c10-d35a-455f-8534-df0800cd09e9:localhost] 2020-09-01 20:19:58 | [Mutex] received everything. 2020-09-01 20:19:58 | [Mutex] isItemNotified: received:node:69633c10-d35a-455f-8534-df0800cd09e9:localhost:node-889ae0b3-902a-4f5d-8334-af8a17f9d6c8:Node 889ae0b3-902a-4f5d-8334-af8a17f9d6c8 :: false |
createNodes | 1.562s |
2020-09-01 20:19:55 |
2020-09-01 20:19:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-01 20:19:55 | ------------------------------------ 2020-09-01 20:19:55 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-889ae0b3-902a-4f5d-8334-af8a17f9d6c8", "pubsub#title": "Node 889ae0b3-902a-4f5d-8334-af8a17f9d6c8" } 2020-09-01 20:19:55 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-01 20:19:56 | [Mutex] waiting for: [received:nodes:176f385f-736e-46ab-b5f7-f551ab9c4440:localhost] 2020-09-01 20:19:56 | [Mutex] received everything. 2020-09-01 20:19:56 | [Mutex] isItemNotified: received:node:176f385f-736e-46ab-b5f7-f551ab9c4440:localhost:node-889ae0b3-902a-4f5d-8334-af8a17f9d6c8:Node 889ae0b3-902a-4f5d-8334-af8a17f9d6c8 :: true |
createSubnodes | 1.027s |
2020-09-01 20:19:56 |
2020-09-01 20:19:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-01 20:19:56 | ------------------------------------ 2020-09-01 20:19:56 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-bc00b48a-0755-49cf-8fe0-f54b2592cfc7", "pubsub#title": "Node bc00b48a-0755-49cf-8fe0-f54b2592cfc7" } 2020-09-01 20:19:56 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-01 20:19:57 | [Mutex] waiting for: [received:nodes:ad3eb3a0-d8ee-4f0b-8885-3e290aa79ff0:localhost] 2020-09-01 20:19:57 | [Mutex] received everything. 2020-09-01 20:19:57 | [Mutex] isItemNotified: received:node:ad3eb3a0-d8ee-4f0b-8885-3e290aa79ff0:localhost:node-bc00b48a-0755-49cf-8fe0-f54b2592cfc7:Node bc00b48a-0755-49cf-8fe0-f54b2592cfc7 :: true |
deleteNodes | 1.023s |
2020-09-01 20:20:02 |
2020-09-01 20:20:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-01 20:20:02 | ------------------------------------ 2020-09-01 20:20:02 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-bc00b48a-0755-49cf-8fe0-f54b2592cfc7" } 2020-09-01 20:20:02 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-01 20:20:03 | [Mutex] waiting for: [received:nodes:3786eedd-355a-481e-8292-cf6e6421ced8:localhost] 2020-09-01 20:20:03 | [Mutex] received everything. 2020-09-01 20:20:03 | [Mutex] isItemNotified: received:node:3786eedd-355a-481e-8292-cf6e6421ced8:localhost:node-bc00b48a-0755-49cf-8fe0-f54b2592cfc7:Node bc00b48a-0755-49cf-8fe0-f54b2592cfc7 :: false |
deleteSubnodes | 1.027s |
2020-09-01 20:20:01 |
2020-09-01 20:20:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-01 20:20:01 | ------------------------------------ 2020-09-01 20:20:01 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-889ae0b3-902a-4f5d-8334-af8a17f9d6c8" } 2020-09-01 20:20:01 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-01 20:20:02 | [Mutex] waiting for: [received:nodes:a9195089-dba2-45c2-a62f-ddb9d78f563d:localhost] 2020-09-01 20:20:02 | [Mutex] received everything. 2020-09-01 20:20:02 | [Mutex] isItemNotified: received:node:a9195089-dba2-45c2-a62f-ddb9d78f563d:localhost:node-889ae0b3-902a-4f5d-8334-af8a17f9d6c8:Node 889ae0b3-902a-4f5d-8334-af8a17f9d6c8 :: false 2020-09-01 20:20:02 | [Mutex] waiting for: [received:nodes:870ac2b7-9e25-44a8-82b3-e31999489d26:localhost] 2020-09-01 20:20:02 | [Mutex] received everything. 2020-09-01 20:20:02 | [Mutex] isItemNotified: received:node:870ac2b7-9e25-44a8-82b3-e31999489d26:localhost:node-889ae0b3-902a-4f5d-8334-af8a17f9d6c8:Node 889ae0b3-902a-4f5d-8334-af8a17f9d6c8 :: false |
publishItemsToNodes | 0.084s |
2020-09-01 20:19:59 |
2020-09-01 20:19:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-01 20:19:59 | ------------------------------------ 2020-09-01 20:19:59 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-889ae0b3-902a-4f5d-8334-af8a17f9d6c8", "entry": "<test>item-4c8ddad9-4624-42df-a16c-8d116dff9c41</test>", "item-id": "item-4c8ddad9-4624-42df-a16c-8d116dff9c41" } 2020-09-01 20:19:59 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-4c8ddad9-4624-42df-a16c-8d116dff9c41" } 2020-09-01 20:19:59 | [Mutex] received everything. 2020-09-01 20:19:59 | [Mutex] isItemNotified: published:item:notifieditem-4c8ddad9-4624-42df-a16c-8d116dff9c41:admin@test-domain.com :: true |
retractItemsFromNodes | 0.059s |
2020-09-01 20:20:00 |
2020-09-01 20:20:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-01 20:20:00 | ------------------------------------ 2020-09-01 20:20:00 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-889ae0b3-902a-4f5d-8334-af8a17f9d6c8", "item-id": "item-4c8ddad9-4624-42df-a16c-8d116dff9c41" } 2020-09-01 20:20:00 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-4c8ddad9-4624-42df-a16c-8d116dff9c41" } 2020-09-01 20:20:00 | [Mutex] received everything. 2020-09-01 20:20:00 | [Mutex] isItemNotified: retracted:item:notifieditem-4c8ddad9-4624-42df-a16c-8d116dff9c41:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.061s |
2020-09-01 20:19:59 |
2020-09-01 20:19:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-01 20:19:59 | ------------------------------------ 2020-09-01 20:19:59 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-889ae0b3-902a-4f5d-8334-af8a17f9d6c8", "item-id": "item-4c8ddad9-4624-42df-a16c-8d116dff9c41" } 2020-09-01 20:19:59 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-889ae0b3-902a-4f5d-8334-af8a17f9d6c8", "item-id": "item-4c8ddad9-4624-42df-a16c-8d116dff9c41", "item": [ "<item id=\"item-4c8ddad9-4624-42df-a16c-8d116dff9c41\"><test>item-4c8ddad9-4624-42df-a16c-8d116dff9c41</test></item>" ] } 2020-09-01 20:19:59 | [Mutex] notify: [retrieved:item:item-4c8ddad9-4624-42df-a16c-8d116dff9c41:payload-matches:true:localhost] 2020-09-01 20:19:59 | [Mutex] received everything. 2020-09-01 20:19:59 | [Mutex] isItemNotified: retrieved:item:item-4c8ddad9-4624-42df-a16c-8d116dff9c41:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.059s |
2020-09-01 20:19:59 |
2020-09-01 20:19:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-01 20:19:59 | ------------------------------------ 2020-09-01 20:19:59 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-09-01 20:19:59 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-889ae0b3-902a-4f5d-8334-af8a17f9d6c8", "node-bc00b48a-0755-49cf-8fe0-f54b2592cfc7" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2020-09-01 20:19:59 |
2020-09-01 20:19:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-01 20:19:59 | ------------------------------------ 2020-09-01 20:19:59 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-889ae0b3-902a-4f5d-8334-af8a17f9d6c8)" } 2020-09-01 20:20:00 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.013s |
2020-09-01 20:19:58 |
2020-09-01 20:19:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-01 20:19:58 | ------------------------------------ 2020-09-01 20:19:58 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-889ae0b3-902a-4f5d-8334-af8a17f9d6c8", "jids": [ "admin@test-domain.com" ] } 2020-09-01 20:19:58 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.077s |
2020-09-01 20:20:00 |
2020-09-01 20:20:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-01 20:20:00 | ------------------------------------ 2020-09-01 20:20:00 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-889ae0b3-902a-4f5d-8334-af8a17f9d6c8", "jids": [ "admin@test-domain.com" ] } 2020-09-01 20:20:00 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |