Test duration : 8.665s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.109s |
2022-05-24 22:48:48 |
2022-05-24 22:48:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-24 22:48:48 | ------------------------------------ 2022-05-24 22:48:48 | [Mutex] waiting for: [configured:node:node-4dcc7c17-b0bf-4eea-bbb7-7e86a5193809:node-9c566da1-db55-4dd1-8cb8-df6226eb97b0] 2022-05-24 22:48:48 | [Mutex] received everything. 2022-05-24 22:48:48 | [Mutex] isItemNotified: configured:node:node-4dcc7c17-b0bf-4eea-bbb7-7e86a5193809:node-9c566da1-db55-4dd1-8cb8-df6226eb97b0 :: true 2022-05-24 22:48:49 | [Mutex] waiting for: [received:nodes:74c60695-8401-4702-9b06-cea472979daf:localhost] 2022-05-24 22:48:49 | [Mutex] received everything. 2022-05-24 22:48:49 | [Mutex] isItemNotified: received:node:74c60695-8401-4702-9b06-cea472979daf:localhost:node-4dcc7c17-b0bf-4eea-bbb7-7e86a5193809:Node 4dcc7c17-b0bf-4eea-bbb7-7e86a5193809 :: true 2022-05-24 22:48:49 | [Mutex] waiting for: [received:nodes:117602be-e39d-4f8b-b106-8faf88fdc724:localhost] 2022-05-24 22:48:49 | [Mutex] received everything. 2022-05-24 22:48:49 | [Mutex] isItemNotified: received:node:117602be-e39d-4f8b-b106-8faf88fdc724:localhost:node-4dcc7c17-b0bf-4eea-bbb7-7e86a5193809:Node 4dcc7c17-b0bf-4eea-bbb7-7e86a5193809 :: false |
createNodes | 1.596s |
2022-05-24 22:48:45 |
2022-05-24 22:48:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-24 22:48:45 | ------------------------------------ 2022-05-24 22:48:46 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-4dcc7c17-b0bf-4eea-bbb7-7e86a5193809", "pubsub#title": "Node 4dcc7c17-b0bf-4eea-bbb7-7e86a5193809" } 2022-05-24 22:48:46 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-24 22:48:47 | [Mutex] waiting for: [received:nodes:9939eee2-2a50-4205-ba5f-00d2d023ba03:localhost] 2022-05-24 22:48:47 | [Mutex] received everything. 2022-05-24 22:48:47 | [Mutex] isItemNotified: received:node:9939eee2-2a50-4205-ba5f-00d2d023ba03:localhost:node-4dcc7c17-b0bf-4eea-bbb7-7e86a5193809:Node 4dcc7c17-b0bf-4eea-bbb7-7e86a5193809 :: true |
createSubnodes | 1.024s |
2022-05-24 22:48:47 |
2022-05-24 22:48:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-24 22:48:47 | ------------------------------------ 2022-05-24 22:48:47 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-9c566da1-db55-4dd1-8cb8-df6226eb97b0", "pubsub#title": "Node 9c566da1-db55-4dd1-8cb8-df6226eb97b0" } 2022-05-24 22:48:47 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-24 22:48:48 | [Mutex] waiting for: [received:nodes:e8841954-7059-4a3d-897e-32accf3ce3a7:localhost] 2022-05-24 22:48:48 | [Mutex] received everything. 2022-05-24 22:48:48 | [Mutex] isItemNotified: received:node:e8841954-7059-4a3d-897e-32accf3ce3a7:localhost:node-9c566da1-db55-4dd1-8cb8-df6226eb97b0:Node 9c566da1-db55-4dd1-8cb8-df6226eb97b0 :: true |
deleteNodes | 1.019s |
2022-05-24 22:48:52 |
2022-05-24 22:48:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-24 22:48:52 | ------------------------------------ 2022-05-24 22:48:52 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-9c566da1-db55-4dd1-8cb8-df6226eb97b0" } 2022-05-24 22:48:52 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-24 22:48:53 | [Mutex] waiting for: [received:nodes:f1251394-b758-4a2d-b2d7-f162e8f9983c:localhost] 2022-05-24 22:48:53 | [Mutex] waiting for: [received:nodes:f1251394-b758-4a2d-b2d7-f162e8f9983c:localhost] 2022-05-24 22:48:53 | [Mutex] received everything. 2022-05-24 22:48:53 | [Mutex] isItemNotified: received:node:f1251394-b758-4a2d-b2d7-f162e8f9983c:localhost:node-9c566da1-db55-4dd1-8cb8-df6226eb97b0:Node 9c566da1-db55-4dd1-8cb8-df6226eb97b0 :: false |
deleteSubnodes | 1.031s |
2022-05-24 22:48:51 |
2022-05-24 22:48:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-24 22:48:51 | ------------------------------------ 2022-05-24 22:48:51 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-4dcc7c17-b0bf-4eea-bbb7-7e86a5193809" } 2022-05-24 22:48:51 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-24 22:48:52 | [Mutex] waiting for: [received:nodes:bc890eff-a101-4ae9-9f99-2a6cc39112a8:localhost] 2022-05-24 22:48:52 | [Mutex] received everything. 2022-05-24 22:48:52 | [Mutex] isItemNotified: received:node:bc890eff-a101-4ae9-9f99-2a6cc39112a8:localhost:node-4dcc7c17-b0bf-4eea-bbb7-7e86a5193809:Node 4dcc7c17-b0bf-4eea-bbb7-7e86a5193809 :: false 2022-05-24 22:48:52 | [Mutex] waiting for: [received:nodes:429a4a7b-ca53-4d80-97bf-2b6002b90d7f:localhost] 2022-05-24 22:48:52 | [Mutex] received everything. 2022-05-24 22:48:52 | [Mutex] isItemNotified: received:node:429a4a7b-ca53-4d80-97bf-2b6002b90d7f:localhost:node-4dcc7c17-b0bf-4eea-bbb7-7e86a5193809:Node 4dcc7c17-b0bf-4eea-bbb7-7e86a5193809 :: false |
publishItemsToNodes | 0.030s |
2022-05-24 22:48:50 |
2022-05-24 22:48:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-24 22:48:50 | ------------------------------------ 2022-05-24 22:48:50 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-4dcc7c17-b0bf-4eea-bbb7-7e86a5193809", "entry": "<test>item-1da8d36b-d732-469a-a601-211b605ab2ab</test>", "item-id": "item-1da8d36b-d732-469a-a601-211b605ab2ab" } 2022-05-24 22:48:50 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-1da8d36b-d732-469a-a601-211b605ab2ab" } 2022-05-24 22:48:50 | [Mutex] waiting for: [published:item:notifieditem-1da8d36b-d732-469a-a601-211b605ab2ab:admin@test-domain.com] 2022-05-24 22:48:50 | [Mutex] received everything. 2022-05-24 22:48:50 | [Mutex] isItemNotified: published:item:notifieditem-1da8d36b-d732-469a-a601-211b605ab2ab:admin@test-domain.com :: true |
retractItemsFromNodes | 0.053s |
2022-05-24 22:48:50 |
2022-05-24 22:48:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-24 22:48:50 | ------------------------------------ 2022-05-24 22:48:50 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-4dcc7c17-b0bf-4eea-bbb7-7e86a5193809", "item-id": "item-1da8d36b-d732-469a-a601-211b605ab2ab" } 2022-05-24 22:48:50 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-1da8d36b-d732-469a-a601-211b605ab2ab" } 2022-05-24 22:48:50 | [Mutex] received everything. 2022-05-24 22:48:50 | [Mutex] isItemNotified: retracted:item:notifieditem-1da8d36b-d732-469a-a601-211b605ab2ab:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.063s |
2022-05-24 22:48:50 |
2022-05-24 22:48:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-24 22:48:50 | ------------------------------------ 2022-05-24 22:48:50 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-4dcc7c17-b0bf-4eea-bbb7-7e86a5193809", "item-id": "item-1da8d36b-d732-469a-a601-211b605ab2ab" } 2022-05-24 22:48:50 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-4dcc7c17-b0bf-4eea-bbb7-7e86a5193809", "item-id": "item-1da8d36b-d732-469a-a601-211b605ab2ab", "item": [ "<item id=\"item-1da8d36b-d732-469a-a601-211b605ab2ab\"><test>item-1da8d36b-d732-469a-a601-211b605ab2ab</test></item>" ] } 2022-05-24 22:48:50 | [Mutex] notify: [retrieved:item:item-1da8d36b-d732-469a-a601-211b605ab2ab:payload-matches:true:localhost] 2022-05-24 22:48:50 | [Mutex] received everything. 2022-05-24 22:48:50 | [Mutex] isItemNotified: retrieved:item:item-1da8d36b-d732-469a-a601-211b605ab2ab:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.047s |
2022-05-24 22:48:50 |
2022-05-24 22:48:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-24 22:48:50 | ------------------------------------ 2022-05-24 22:48:50 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-05-24 22:48:50 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-4dcc7c17-b0bf-4eea-bbb7-7e86a5193809", "node-9c566da1-db55-4dd1-8cb8-df6226eb97b0", "test" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2022-05-24 22:48:50 |
2022-05-24 22:48:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-24 22:48:50 | ------------------------------------ 2022-05-24 22:48:50 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-4dcc7c17-b0bf-4eea-bbb7-7e86a5193809)" } 2022-05-24 22:48:50 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.014s |
2022-05-24 22:48:49 |
2022-05-24 22:48:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-24 22:48:49 | ------------------------------------ 2022-05-24 22:48:49 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-4dcc7c17-b0bf-4eea-bbb7-7e86a5193809", "jids": [ "admin@test-domain.com" ] } 2022-05-24 22:48:49 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.071s |
2022-05-24 22:48:50 |
2022-05-24 22:48:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-24 22:48:50 | ------------------------------------ 2022-05-24 22:48:50 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-4dcc7c17-b0bf-4eea-bbb7-7e86a5193809", "jids": [ "admin@test-domain.com" ] } 2022-05-24 22:48:50 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |