Test duration : 8.958s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.159s |
2022-02-21 21:47:01 |
2022-02-21 21:47:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-21 21:47:01 | ------------------------------------ 2022-02-21 21:47:01 | [Mutex] waiting for: [configured:node:node-d9b49719-09b6-44ed-88b9-41b487c4894d:node-2c6643de-3081-4406-ba2a-29c427862988] 2022-02-21 21:47:01 | [Mutex] received everything. 2022-02-21 21:47:01 | [Mutex] isItemNotified: configured:node:node-d9b49719-09b6-44ed-88b9-41b487c4894d:node-2c6643de-3081-4406-ba2a-29c427862988 :: true 2022-02-21 21:47:02 | [Mutex] waiting for: [received:nodes:70599bbe-94ca-4fad-9171-da44bab8f0d0:localhost] 2022-02-21 21:47:02 | [Mutex] received everything. 2022-02-21 21:47:02 | [Mutex] isItemNotified: received:node:70599bbe-94ca-4fad-9171-da44bab8f0d0:localhost:node-d9b49719-09b6-44ed-88b9-41b487c4894d:Node d9b49719-09b6-44ed-88b9-41b487c4894d :: true 2022-02-21 21:47:02 | [Mutex] waiting for: [received:nodes:8b24a793-2093-45f9-aa32-8ec2e9792e0d:localhost] 2022-02-21 21:47:02 | [Mutex] waiting for: [received:nodes:8b24a793-2093-45f9-aa32-8ec2e9792e0d:localhost] 2022-02-21 21:47:02 | [Mutex] received everything. 2022-02-21 21:47:02 | [Mutex] isItemNotified: received:node:8b24a793-2093-45f9-aa32-8ec2e9792e0d:localhost:node-d9b49719-09b6-44ed-88b9-41b487c4894d:Node d9b49719-09b6-44ed-88b9-41b487c4894d :: false |
createNodes | 1.561s |
2022-02-21 21:46:58 |
2022-02-21 21:46:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-21 21:46:58 | ------------------------------------ 2022-02-21 21:46:59 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-d9b49719-09b6-44ed-88b9-41b487c4894d", "pubsub#title": "Node d9b49719-09b6-44ed-88b9-41b487c4894d" } 2022-02-21 21:46:59 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-21 21:47:00 | [Mutex] waiting for: [received:nodes:c4256d54-9753-4a54-a61c-1d5ac591aad5:localhost] 2022-02-21 21:47:00 | [Mutex] received everything. 2022-02-21 21:47:00 | [Mutex] isItemNotified: received:node:c4256d54-9753-4a54-a61c-1d5ac591aad5:localhost:node-d9b49719-09b6-44ed-88b9-41b487c4894d:Node d9b49719-09b6-44ed-88b9-41b487c4894d :: true |
createSubnodes | 1.040s |
2022-02-21 21:47:00 |
2022-02-21 21:47:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-21 21:47:00 | ------------------------------------ 2022-02-21 21:47:00 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-2c6643de-3081-4406-ba2a-29c427862988", "pubsub#title": "Node 2c6643de-3081-4406-ba2a-29c427862988" } 2022-02-21 21:47:00 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-21 21:47:01 | [Mutex] waiting for: [received:nodes:e08cdbb5-d80a-4e8e-b78d-758908a585e4:localhost] 2022-02-21 21:47:01 | [Mutex] received everything. 2022-02-21 21:47:01 | [Mutex] isItemNotified: received:node:e08cdbb5-d80a-4e8e-b78d-758908a585e4:localhost:node-2c6643de-3081-4406-ba2a-29c427862988:Node 2c6643de-3081-4406-ba2a-29c427862988 :: true |
deleteNodes | 1.033s |
2022-02-21 21:47:05 |
2022-02-21 21:47:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-21 21:47:05 | ------------------------------------ 2022-02-21 21:47:05 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-2c6643de-3081-4406-ba2a-29c427862988" } 2022-02-21 21:47:05 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-21 21:47:06 | [Mutex] waiting for: [received:nodes:b15e8dbf-30d3-4640-a86b-b45ae91c04f8:localhost] 2022-02-21 21:47:06 | [Mutex] received everything. 2022-02-21 21:47:06 | [Mutex] isItemNotified: received:node:b15e8dbf-30d3-4640-a86b-b45ae91c04f8:localhost:node-2c6643de-3081-4406-ba2a-29c427862988:Node 2c6643de-3081-4406-ba2a-29c427862988 :: false |
deleteSubnodes | 1.048s |
2022-02-21 21:47:04 |
2022-02-21 21:47:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-21 21:47:04 | ------------------------------------ 2022-02-21 21:47:04 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-d9b49719-09b6-44ed-88b9-41b487c4894d" } 2022-02-21 21:47:04 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-21 21:47:05 | [Mutex] waiting for: [received:nodes:5fcd0233-0823-4fc0-adbc-acf4cb14d588:localhost] 2022-02-21 21:47:05 | [Mutex] received everything. 2022-02-21 21:47:05 | [Mutex] isItemNotified: received:node:5fcd0233-0823-4fc0-adbc-acf4cb14d588:localhost:node-d9b49719-09b6-44ed-88b9-41b487c4894d:Node d9b49719-09b6-44ed-88b9-41b487c4894d :: false 2022-02-21 21:47:05 | [Mutex] waiting for: [received:nodes:887bf0a7-53b3-4016-a2b5-5ae423f7132e:localhost] 2022-02-21 21:47:05 | [Mutex] received everything. 2022-02-21 21:47:05 | [Mutex] isItemNotified: received:node:887bf0a7-53b3-4016-a2b5-5ae423f7132e:localhost:node-d9b49719-09b6-44ed-88b9-41b487c4894d:Node d9b49719-09b6-44ed-88b9-41b487c4894d :: false |
publishItemsToNodes | 0.045s |
2022-02-21 21:47:03 |
2022-02-21 21:47:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-21 21:47:03 | ------------------------------------ 2022-02-21 21:47:03 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-d9b49719-09b6-44ed-88b9-41b487c4894d", "entry": "<test>item-b059eb03-233a-4bf0-9434-8e3d888ed886</test>", "item-id": "item-b059eb03-233a-4bf0-9434-8e3d888ed886" } 2022-02-21 21:47:03 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-b059eb03-233a-4bf0-9434-8e3d888ed886" } 2022-02-21 21:47:03 | [Mutex] waiting for: [published:item:notifieditem-b059eb03-233a-4bf0-9434-8e3d888ed886:admin@test-domain.com] 2022-02-21 21:47:03 | [Mutex] received everything. 2022-02-21 21:47:03 | [Mutex] isItemNotified: published:item:notifieditem-b059eb03-233a-4bf0-9434-8e3d888ed886:admin@test-domain.com :: true |
retractItemsFromNodes | 0.081s |
2022-02-21 21:47:03 |
2022-02-21 21:47:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-21 21:47:03 | ------------------------------------ 2022-02-21 21:47:03 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-d9b49719-09b6-44ed-88b9-41b487c4894d", "item-id": "item-b059eb03-233a-4bf0-9434-8e3d888ed886" } 2022-02-21 21:47:03 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-b059eb03-233a-4bf0-9434-8e3d888ed886" } 2022-02-21 21:47:03 | [Mutex] received everything. 2022-02-21 21:47:03 | [Mutex] isItemNotified: retracted:item:notifieditem-b059eb03-233a-4bf0-9434-8e3d888ed886:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.074s |
2022-02-21 21:47:03 |
2022-02-21 21:47:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-21 21:47:03 | ------------------------------------ 2022-02-21 21:47:03 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-d9b49719-09b6-44ed-88b9-41b487c4894d", "item-id": "item-b059eb03-233a-4bf0-9434-8e3d888ed886" } 2022-02-21 21:47:03 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-d9b49719-09b6-44ed-88b9-41b487c4894d", "item-id": "item-b059eb03-233a-4bf0-9434-8e3d888ed886", "item": [ "<item id=\"item-b059eb03-233a-4bf0-9434-8e3d888ed886\"><test>item-b059eb03-233a-4bf0-9434-8e3d888ed886</test></item>" ] } 2022-02-21 21:47:03 | [Mutex] notify: [retrieved:item:item-b059eb03-233a-4bf0-9434-8e3d888ed886:payload-matches:true:localhost] 2022-02-21 21:47:03 | [Mutex] received everything. 2022-02-21 21:47:03 | [Mutex] isItemNotified: retrieved:item:item-b059eb03-233a-4bf0-9434-8e3d888ed886:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.057s |
2022-02-21 21:47:03 |
2022-02-21 21:47:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-21 21:47:03 | ------------------------------------ 2022-02-21 21:47:03 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-02-21 21:47:03 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-2c6643de-3081-4406-ba2a-29c427862988", "test", "node-d9b49719-09b6-44ed-88b9-41b487c4894d" ] } |
retrieveUserSubscriptionsWithRegex | 0.052s |
2022-02-21 21:47:03 |
2022-02-21 21:47:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-21 21:47:03 | ------------------------------------ 2022-02-21 21:47:03 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-d9b49719-09b6-44ed-88b9-41b487c4894d)" } 2022-02-21 21:47:03 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.017s |
2022-02-21 21:47:02 |
2022-02-21 21:47:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-21 21:47:02 | ------------------------------------ 2022-02-21 21:47:02 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-d9b49719-09b6-44ed-88b9-41b487c4894d", "jids": [ "admin@test-domain.com" ] } 2022-02-21 21:47:02 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.070s |
2022-02-21 21:47:03 |
2022-02-21 21:47:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-21 21:47:03 | ------------------------------------ 2022-02-21 21:47:03 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-d9b49719-09b6-44ed-88b9-41b487c4894d", "jids": [ "admin@test-domain.com" ] } 2022-02-21 21:47:03 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |