Test duration : 9.329s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.126s |
2021-03-21 22:56:30 |
2021-03-21 22:56:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-21 22:56:30 | ------------------------------------ 2021-03-21 22:56:30 | [Mutex] waiting for: [configured:node:node-042ce7bd-c8ec-4362-8d9f-3c06d93e18e4:node-94f92e0a-196f-46d9-8c7a-657d44838f8f] 2021-03-21 22:56:30 | [Mutex] received everything. 2021-03-21 22:56:30 | [Mutex] isItemNotified: configured:node:node-042ce7bd-c8ec-4362-8d9f-3c06d93e18e4:node-94f92e0a-196f-46d9-8c7a-657d44838f8f :: true 2021-03-21 22:56:31 | [Mutex] waiting for: [received:nodes:48dcf5dd-78c4-4e3d-8e08-75b73a0f4a1d:localhost] 2021-03-21 22:56:31 | [Mutex] received everything. 2021-03-21 22:56:31 | [Mutex] isItemNotified: received:node:48dcf5dd-78c4-4e3d-8e08-75b73a0f4a1d:localhost:node-042ce7bd-c8ec-4362-8d9f-3c06d93e18e4:Node 042ce7bd-c8ec-4362-8d9f-3c06d93e18e4 :: true 2021-03-21 22:56:31 | [Mutex] waiting for: [received:nodes:9d9434d4-ccda-48f5-a7d5-c76bbb6c17eb:localhost] 2021-03-21 22:56:31 | [Mutex] waiting for: [received:nodes:9d9434d4-ccda-48f5-a7d5-c76bbb6c17eb:localhost] 2021-03-21 22:56:31 | [Mutex] received everything. 2021-03-21 22:56:31 | [Mutex] isItemNotified: received:node:9d9434d4-ccda-48f5-a7d5-c76bbb6c17eb:localhost:node-042ce7bd-c8ec-4362-8d9f-3c06d93e18e4:Node 042ce7bd-c8ec-4362-8d9f-3c06d93e18e4 :: false |
createNodes | 1.763s |
2021-03-21 22:56:27 |
2021-03-21 22:56:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-21 22:56:27 | ------------------------------------ 2021-03-21 22:56:28 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-042ce7bd-c8ec-4362-8d9f-3c06d93e18e4", "pubsub#title": "Node 042ce7bd-c8ec-4362-8d9f-3c06d93e18e4" } 2021-03-21 22:56:28 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-03-21 22:56:29 | [Mutex] waiting for: [received:nodes:fade8b30-c7ef-4027-91ca-6f34695946da:localhost] 2021-03-21 22:56:29 | [Mutex] waiting for: [received:nodes:fade8b30-c7ef-4027-91ca-6f34695946da:localhost] 2021-03-21 22:56:29 | [Mutex] received everything. 2021-03-21 22:56:29 | [Mutex] isItemNotified: received:node:fade8b30-c7ef-4027-91ca-6f34695946da:localhost:node-042ce7bd-c8ec-4362-8d9f-3c06d93e18e4:Node 042ce7bd-c8ec-4362-8d9f-3c06d93e18e4 :: true |
createSubnodes | 1.031s |
2021-03-21 22:56:29 |
2021-03-21 22:56:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-21 22:56:29 | ------------------------------------ 2021-03-21 22:56:29 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-94f92e0a-196f-46d9-8c7a-657d44838f8f", "pubsub#title": "Node 94f92e0a-196f-46d9-8c7a-657d44838f8f" } 2021-03-21 22:56:29 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-03-21 22:56:30 | [Mutex] waiting for: [received:nodes:c28c80e5-58a7-4de4-a527-8269858c0a47:localhost] 2021-03-21 22:56:30 | [Mutex] received everything. 2021-03-21 22:56:30 | [Mutex] isItemNotified: received:node:c28c80e5-58a7-4de4-a527-8269858c0a47:localhost:node-94f92e0a-196f-46d9-8c7a-657d44838f8f:Node 94f92e0a-196f-46d9-8c7a-657d44838f8f :: true |
deleteNodes | 1.025s |
2021-03-21 22:56:35 |
2021-03-21 22:56:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-21 22:56:35 | ------------------------------------ 2021-03-21 22:56:35 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-94f92e0a-196f-46d9-8c7a-657d44838f8f" } 2021-03-21 22:56:35 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-03-21 22:56:36 | [Mutex] waiting for: [received:nodes:acc38e93-9ce8-408e-9390-b14c84295a21:localhost] 2021-03-21 22:56:36 | [Mutex] received everything. 2021-03-21 22:56:36 | [Mutex] isItemNotified: received:node:acc38e93-9ce8-408e-9390-b14c84295a21:localhost:node-94f92e0a-196f-46d9-8c7a-657d44838f8f:Node 94f92e0a-196f-46d9-8c7a-657d44838f8f :: false |
deleteSubnodes | 1.036s |
2021-03-21 22:56:33 |
2021-03-21 22:56:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-21 22:56:33 | ------------------------------------ 2021-03-21 22:56:33 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-042ce7bd-c8ec-4362-8d9f-3c06d93e18e4" } 2021-03-21 22:56:33 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-03-21 22:56:34 | [Mutex] waiting for: [received:nodes:c7ce987a-2e42-4bce-b2f1-d1281614550b:localhost] 2021-03-21 22:56:34 | [Mutex] received everything. 2021-03-21 22:56:34 | [Mutex] isItemNotified: received:node:c7ce987a-2e42-4bce-b2f1-d1281614550b:localhost:node-042ce7bd-c8ec-4362-8d9f-3c06d93e18e4:Node 042ce7bd-c8ec-4362-8d9f-3c06d93e18e4 :: false 2021-03-21 22:56:34 | [Mutex] waiting for: [received:nodes:67d95076-9c35-44ec-990f-9bd924004d3e:localhost] 2021-03-21 22:56:34 | [Mutex] received everything. 2021-03-21 22:56:34 | [Mutex] isItemNotified: received:node:67d95076-9c35-44ec-990f-9bd924004d3e:localhost:node-042ce7bd-c8ec-4362-8d9f-3c06d93e18e4:Node 042ce7bd-c8ec-4362-8d9f-3c06d93e18e4 :: false |
publishItemsToNodes | 0.039s |
2021-03-21 22:56:32 |
2021-03-21 22:56:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-21 22:56:32 | ------------------------------------ 2021-03-21 22:56:32 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-042ce7bd-c8ec-4362-8d9f-3c06d93e18e4", "entry": "<test>item-6950e8bf-bcfd-4658-afba-c17b02439f23</test>", "item-id": "item-6950e8bf-bcfd-4658-afba-c17b02439f23" } 2021-03-21 22:56:32 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-6950e8bf-bcfd-4658-afba-c17b02439f23" } 2021-03-21 22:56:32 | [Mutex] waiting for: [published:item:notifieditem-6950e8bf-bcfd-4658-afba-c17b02439f23:admin@test-domain.com] 2021-03-21 22:56:32 | [Mutex] received everything. 2021-03-21 22:56:32 | [Mutex] isItemNotified: published:item:notifieditem-6950e8bf-bcfd-4658-afba-c17b02439f23:admin@test-domain.com :: true |
retractItemsFromNodes | 0.091s |
2021-03-21 22:56:32 |
2021-03-21 22:56:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-21 22:56:32 | ------------------------------------ 2021-03-21 22:56:32 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-042ce7bd-c8ec-4362-8d9f-3c06d93e18e4", "item-id": "item-6950e8bf-bcfd-4658-afba-c17b02439f23" } 2021-03-21 22:56:32 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-6950e8bf-bcfd-4658-afba-c17b02439f23" } 2021-03-21 22:56:32 | [Mutex] received everything. 2021-03-21 22:56:32 | [Mutex] isItemNotified: retracted:item:notifieditem-6950e8bf-bcfd-4658-afba-c17b02439f23:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.095s |
2021-03-21 22:56:32 |
2021-03-21 22:56:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-21 22:56:32 | ------------------------------------ 2021-03-21 22:56:32 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-042ce7bd-c8ec-4362-8d9f-3c06d93e18e4", "item-id": "item-6950e8bf-bcfd-4658-afba-c17b02439f23" } 2021-03-21 22:56:32 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-042ce7bd-c8ec-4362-8d9f-3c06d93e18e4", "item-id": "item-6950e8bf-bcfd-4658-afba-c17b02439f23", "item": [ "<item id=\"item-6950e8bf-bcfd-4658-afba-c17b02439f23\"><test>item-6950e8bf-bcfd-4658-afba-c17b02439f23</test></item>" ] } 2021-03-21 22:56:32 | [Mutex] notify: [retrieved:item:item-6950e8bf-bcfd-4658-afba-c17b02439f23:payload-matches:true:localhost] 2021-03-21 22:56:32 | [Mutex] received everything. 2021-03-21 22:56:32 | [Mutex] isItemNotified: retrieved:item:item-6950e8bf-bcfd-4658-afba-c17b02439f23:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.055s |
2021-03-21 22:56:32 |
2021-03-21 22:56:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-21 22:56:32 | ------------------------------------ 2021-03-21 22:56:32 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-03-21 22:56:32 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-042ce7bd-c8ec-4362-8d9f-3c06d93e18e4", "node-94f92e0a-196f-46d9-8c7a-657d44838f8f" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2021-03-21 22:56:32 |
2021-03-21 22:56:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-21 22:56:32 | ------------------------------------ 2021-03-21 22:56:32 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-042ce7bd-c8ec-4362-8d9f-3c06d93e18e4)" } 2021-03-21 22:56:32 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.014s |
2021-03-21 22:56:31 |
2021-03-21 22:56:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-21 22:56:31 | ------------------------------------ 2021-03-21 22:56:31 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-042ce7bd-c8ec-4362-8d9f-3c06d93e18e4", "jids": [ "admin@test-domain.com" ] } 2021-03-21 22:56:31 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.155s |
2021-03-21 22:56:32 |
2021-03-21 22:56:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-21 22:56:32 | ------------------------------------ 2021-03-21 22:56:32 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-042ce7bd-c8ec-4362-8d9f-3c06d93e18e4", "jids": [ "admin@test-domain.com" ] } 2021-03-21 22:56:32 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |