Test duration : 8.648s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.134s |
2022-09-20 23:07:34 |
2022-09-20 23:07:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-20 23:07:34 | ------------------------------------ 2022-09-20 23:07:34 | [Mutex] waiting for: [configured:node:node-091d2c07-1b1f-45c6-90d0-25832a85783f:node-d08a1d19-70af-490b-ae16-7c4dcc9a7693] 2022-09-20 23:07:34 | [Mutex] received everything. 2022-09-20 23:07:34 | [Mutex] isItemNotified: configured:node:node-091d2c07-1b1f-45c6-90d0-25832a85783f:node-d08a1d19-70af-490b-ae16-7c4dcc9a7693 :: true 2022-09-20 23:07:35 | [Mutex] waiting for: [received:nodes:aa9c81a9-1943-4909-942a-27006cf5316e:localhost] 2022-09-20 23:07:35 | [Mutex] received everything. 2022-09-20 23:07:35 | [Mutex] isItemNotified: received:node:aa9c81a9-1943-4909-942a-27006cf5316e:localhost:node-091d2c07-1b1f-45c6-90d0-25832a85783f:Node 091d2c07-1b1f-45c6-90d0-25832a85783f :: true 2022-09-20 23:07:35 | [Mutex] waiting for: [received:nodes:a6d6b6cc-364f-445c-9b3d-67abda6dc62b:localhost] 2022-09-20 23:07:35 | [Mutex] received everything. 2022-09-20 23:07:35 | [Mutex] isItemNotified: received:node:a6d6b6cc-364f-445c-9b3d-67abda6dc62b:localhost:node-091d2c07-1b1f-45c6-90d0-25832a85783f:Node 091d2c07-1b1f-45c6-90d0-25832a85783f :: false |
createNodes | 1.607s |
2022-09-20 23:07:32 |
2022-09-20 23:07:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-20 23:07:32 | ------------------------------------ 2022-09-20 23:07:32 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-091d2c07-1b1f-45c6-90d0-25832a85783f", "pubsub#title": "Node 091d2c07-1b1f-45c6-90d0-25832a85783f" } 2022-09-20 23:07:32 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-09-20 23:07:33 | [Mutex] waiting for: [received:nodes:569ceec6-f488-4bf3-942b-b853ae965dca:localhost] 2022-09-20 23:07:33 | [Mutex] received everything. 2022-09-20 23:07:33 | [Mutex] isItemNotified: received:node:569ceec6-f488-4bf3-942b-b853ae965dca:localhost:node-091d2c07-1b1f-45c6-90d0-25832a85783f:Node 091d2c07-1b1f-45c6-90d0-25832a85783f :: true |
createSubnodes | 1.022s |
2022-09-20 23:07:33 |
2022-09-20 23:07:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-20 23:07:33 | ------------------------------------ 2022-09-20 23:07:33 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-d08a1d19-70af-490b-ae16-7c4dcc9a7693", "pubsub#title": "Node d08a1d19-70af-490b-ae16-7c4dcc9a7693" } 2022-09-20 23:07:33 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-09-20 23:07:34 | [Mutex] waiting for: [received:nodes:a5ef2cce-06d2-4407-842a-4dffcecb71a4:localhost] 2022-09-20 23:07:34 | [Mutex] received everything. 2022-09-20 23:07:34 | [Mutex] isItemNotified: received:node:a5ef2cce-06d2-4407-842a-4dffcecb71a4:localhost:node-d08a1d19-70af-490b-ae16-7c4dcc9a7693:Node d08a1d19-70af-490b-ae16-7c4dcc9a7693 :: true |
deleteNodes | 1.018s |
2022-09-20 23:07:39 |
2022-09-20 23:07:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-20 23:07:39 | ------------------------------------ 2022-09-20 23:07:39 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-d08a1d19-70af-490b-ae16-7c4dcc9a7693" } 2022-09-20 23:07:39 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-09-20 23:07:40 | [Mutex] waiting for: [received:nodes:527e7084-c19b-4517-9547-e06ab6a21292:localhost] 2022-09-20 23:07:40 | [Mutex] received everything. 2022-09-20 23:07:40 | [Mutex] isItemNotified: received:node:527e7084-c19b-4517-9547-e06ab6a21292:localhost:node-d08a1d19-70af-490b-ae16-7c4dcc9a7693:Node d08a1d19-70af-490b-ae16-7c4dcc9a7693 :: false |
deleteSubnodes | 1.035s |
2022-09-20 23:07:38 |
2022-09-20 23:07:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-20 23:07:38 | ------------------------------------ 2022-09-20 23:07:38 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-091d2c07-1b1f-45c6-90d0-25832a85783f" } 2022-09-20 23:07:38 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-09-20 23:07:39 | [Mutex] waiting for: [received:nodes:22939864-455e-4f48-a394-f615bb9ed4b4:localhost] 2022-09-20 23:07:39 | [Mutex] received everything. 2022-09-20 23:07:39 | [Mutex] isItemNotified: received:node:22939864-455e-4f48-a394-f615bb9ed4b4:localhost:node-091d2c07-1b1f-45c6-90d0-25832a85783f:Node 091d2c07-1b1f-45c6-90d0-25832a85783f :: false 2022-09-20 23:07:39 | [Mutex] waiting for: [received:nodes:e9f55611-c275-4d80-b3cf-8c75a048f413:localhost] 2022-09-20 23:07:39 | [Mutex] received everything. 2022-09-20 23:07:39 | [Mutex] isItemNotified: received:node:e9f55611-c275-4d80-b3cf-8c75a048f413:localhost:node-091d2c07-1b1f-45c6-90d0-25832a85783f:Node 091d2c07-1b1f-45c6-90d0-25832a85783f :: false |
publishItemsToNodes | 0.033s |
2022-09-20 23:07:36 |
2022-09-20 23:07:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-20 23:07:36 | ------------------------------------ 2022-09-20 23:07:36 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-091d2c07-1b1f-45c6-90d0-25832a85783f", "entry": "<test>item-84d7527b-9395-4f82-8de9-316c119dab51</test>", "item-id": "item-84d7527b-9395-4f82-8de9-316c119dab51" } 2022-09-20 23:07:37 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-84d7527b-9395-4f82-8de9-316c119dab51" } 2022-09-20 23:07:37 | [Mutex] waiting for: [published:item:notifieditem-84d7527b-9395-4f82-8de9-316c119dab51:admin@test-domain.com] 2022-09-20 23:07:37 | [Mutex] received everything. 2022-09-20 23:07:37 | [Mutex] isItemNotified: published:item:notifieditem-84d7527b-9395-4f82-8de9-316c119dab51:admin@test-domain.com :: true |
retractItemsFromNodes | 0.055s |
2022-09-20 23:07:37 |
2022-09-20 23:07:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-20 23:07:37 | ------------------------------------ 2022-09-20 23:07:37 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-091d2c07-1b1f-45c6-90d0-25832a85783f", "item-id": "item-84d7527b-9395-4f82-8de9-316c119dab51" } 2022-09-20 23:07:37 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-84d7527b-9395-4f82-8de9-316c119dab51" } 2022-09-20 23:07:37 | [Mutex] received everything. 2022-09-20 23:07:37 | [Mutex] isItemNotified: retracted:item:notifieditem-84d7527b-9395-4f82-8de9-316c119dab51:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.070s |
2022-09-20 23:07:37 |
2022-09-20 23:07:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-20 23:07:37 | ------------------------------------ 2022-09-20 23:07:37 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-091d2c07-1b1f-45c6-90d0-25832a85783f", "item-id": "item-84d7527b-9395-4f82-8de9-316c119dab51" } 2022-09-20 23:07:37 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-091d2c07-1b1f-45c6-90d0-25832a85783f", "item-id": "item-84d7527b-9395-4f82-8de9-316c119dab51", "item": [ "<item id=\"item-84d7527b-9395-4f82-8de9-316c119dab51\"><test>item-84d7527b-9395-4f82-8de9-316c119dab51</test></item>" ] } 2022-09-20 23:07:37 | [Mutex] notify: [retrieved:item:item-84d7527b-9395-4f82-8de9-316c119dab51:payload-matches:true:localhost] 2022-09-20 23:07:37 | [Mutex] received everything. 2022-09-20 23:07:37 | [Mutex] isItemNotified: retrieved:item:item-84d7527b-9395-4f82-8de9-316c119dab51:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.047s |
2022-09-20 23:07:37 |
2022-09-20 23:07:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-20 23:07:37 | ------------------------------------ 2022-09-20 23:07:37 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-09-20 23:07:37 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-d08a1d19-70af-490b-ae16-7c4dcc9a7693", "test", "node-091d2c07-1b1f-45c6-90d0-25832a85783f" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2022-09-20 23:07:37 |
2022-09-20 23:07:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-20 23:07:37 | ------------------------------------ 2022-09-20 23:07:37 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-091d2c07-1b1f-45c6-90d0-25832a85783f)" } 2022-09-20 23:07:37 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.008s |
2022-09-20 23:07:35 |
2022-09-20 23:07:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-20 23:07:35 | ------------------------------------ 2022-09-20 23:07:35 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-091d2c07-1b1f-45c6-90d0-25832a85783f", "jids": [ "admin@test-domain.com" ] } 2022-09-20 23:07:35 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.075s |
2022-09-20 23:07:37 |
2022-09-20 23:07:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-20 23:07:37 | ------------------------------------ 2022-09-20 23:07:37 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-091d2c07-1b1f-45c6-90d0-25832a85783f", "jids": [ "admin@test-domain.com" ] } 2022-09-20 23:07:37 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |