Test duration : 8.602s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.114s |
2023-05-29 22:59:44 |
2023-05-29 22:59:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-05-29 22:59:44 | ------------------------------------ 2023-05-29 22:59:44 | [Mutex] waiting for: [configured:node:node-b9b9f150-d20b-4368-bd49-5d712e9addc3:node-da145ddf-b47a-49db-8e58-d52f0a8bdf82] 2023-05-29 22:59:45 | [Mutex] received everything. 2023-05-29 22:59:45 | [Mutex] isItemNotified: configured:node:node-b9b9f150-d20b-4368-bd49-5d712e9addc3:node-da145ddf-b47a-49db-8e58-d52f0a8bdf82 :: true 2023-05-29 22:59:46 | [Mutex] waiting for: [received:nodes:53277f41-4407-41da-a1a1-8239209f285b:localhost] 2023-05-29 22:59:46 | [Mutex] received everything. 2023-05-29 22:59:46 | [Mutex] isItemNotified: received:node:53277f41-4407-41da-a1a1-8239209f285b:localhost:node-b9b9f150-d20b-4368-bd49-5d712e9addc3:Node b9b9f150-d20b-4368-bd49-5d712e9addc3 :: true 2023-05-29 22:59:46 | [Mutex] waiting for: [received:nodes:a254b993-cdf8-4549-a4b4-74581e624afd:localhost] 2023-05-29 22:59:46 | [Mutex] waiting for: [received:nodes:a254b993-cdf8-4549-a4b4-74581e624afd:localhost] 2023-05-29 22:59:46 | [Mutex] waiting for: [received:nodes:a254b993-cdf8-4549-a4b4-74581e624afd:localhost] 2023-05-29 22:59:46 | [Mutex] waiting for: [received:nodes:a254b993-cdf8-4549-a4b4-74581e624afd:localhost] 2023-05-29 22:59:46 | [Mutex] received everything. 2023-05-29 22:59:46 | [Mutex] isItemNotified: received:node:a254b993-cdf8-4549-a4b4-74581e624afd:localhost:node-b9b9f150-d20b-4368-bd49-5d712e9addc3:Node b9b9f150-d20b-4368-bd49-5d712e9addc3 :: false |
createNodes | 1.640s |
2023-05-29 22:59:42 |
2023-05-29 22:59:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-05-29 22:59:42 | ------------------------------------ 2023-05-29 22:59:42 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-b9b9f150-d20b-4368-bd49-5d712e9addc3", "pubsub#title": "Node b9b9f150-d20b-4368-bd49-5d712e9addc3" } 2023-05-29 22:59:42 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2023-05-29 22:59:43 | [Mutex] waiting for: [received:nodes:936b7f6c-a4d7-46b5-9fb7-efb8fd0983e8:localhost] 2023-05-29 22:59:43 | [Mutex] waiting for: [received:nodes:936b7f6c-a4d7-46b5-9fb7-efb8fd0983e8:localhost] 2023-05-29 22:59:43 | [Mutex] waiting for: [received:nodes:936b7f6c-a4d7-46b5-9fb7-efb8fd0983e8:localhost] 2023-05-29 22:59:43 | [Mutex] waiting for: [received:nodes:936b7f6c-a4d7-46b5-9fb7-efb8fd0983e8:localhost] 2023-05-29 22:59:43 | [Mutex] received everything. 2023-05-29 22:59:43 | [Mutex] isItemNotified: received:node:936b7f6c-a4d7-46b5-9fb7-efb8fd0983e8:localhost:node-b9b9f150-d20b-4368-bd49-5d712e9addc3:Node b9b9f150-d20b-4368-bd49-5d712e9addc3 :: true |
createSubnodes | 1.018s |
2023-05-29 22:59:43 |
2023-05-29 22:59:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-05-29 22:59:43 | ------------------------------------ 2023-05-29 22:59:43 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-da145ddf-b47a-49db-8e58-d52f0a8bdf82", "pubsub#title": "Node da145ddf-b47a-49db-8e58-d52f0a8bdf82" } 2023-05-29 22:59:43 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2023-05-29 22:59:44 | [Mutex] waiting for: [received:nodes:8a36f97e-695e-4c79-9d30-2ab6bbdd2d97:localhost] 2023-05-29 22:59:44 | [Mutex] waiting for: [received:nodes:8a36f97e-695e-4c79-9d30-2ab6bbdd2d97:localhost] 2023-05-29 22:59:44 | [Mutex] waiting for: [received:nodes:8a36f97e-695e-4c79-9d30-2ab6bbdd2d97:localhost] 2023-05-29 22:59:44 | [Mutex] waiting for: [received:nodes:8a36f97e-695e-4c79-9d30-2ab6bbdd2d97:localhost] 2023-05-29 22:59:44 | [Mutex] waiting for: [received:nodes:8a36f97e-695e-4c79-9d30-2ab6bbdd2d97:localhost] 2023-05-29 22:59:44 | [Mutex] received everything. 2023-05-29 22:59:44 | [Mutex] isItemNotified: received:node:8a36f97e-695e-4c79-9d30-2ab6bbdd2d97:localhost:node-da145ddf-b47a-49db-8e58-d52f0a8bdf82:Node da145ddf-b47a-49db-8e58-d52f0a8bdf82 :: true |
deleteNodes | 1.017s |
2023-05-29 22:59:49 |
2023-05-29 22:59:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-05-29 22:59:49 | ------------------------------------ 2023-05-29 22:59:49 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-da145ddf-b47a-49db-8e58-d52f0a8bdf82" } 2023-05-29 22:59:49 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2023-05-29 22:59:50 | [Mutex] waiting for: [received:nodes:d8191de7-8e0a-4340-b2b8-2d593ab28d47:localhost] 2023-05-29 22:59:50 | [Mutex] waiting for: [received:nodes:d8191de7-8e0a-4340-b2b8-2d593ab28d47:localhost] 2023-05-29 22:59:50 | [Mutex] waiting for: [received:nodes:d8191de7-8e0a-4340-b2b8-2d593ab28d47:localhost] 2023-05-29 22:59:50 | [Mutex] received everything. 2023-05-29 22:59:50 | [Mutex] isItemNotified: received:node:d8191de7-8e0a-4340-b2b8-2d593ab28d47:localhost:node-da145ddf-b47a-49db-8e58-d52f0a8bdf82:Node da145ddf-b47a-49db-8e58-d52f0a8bdf82 :: false |
deleteSubnodes | 1.022s |
2023-05-29 22:59:48 |
2023-05-29 22:59:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-05-29 22:59:48 | ------------------------------------ 2023-05-29 22:59:48 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-b9b9f150-d20b-4368-bd49-5d712e9addc3" } 2023-05-29 22:59:48 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2023-05-29 22:59:49 | [Mutex] waiting for: [received:nodes:74422195-f34a-4c7a-9576-c398d92ea2fd:localhost] 2023-05-29 22:59:49 | [Mutex] waiting for: [received:nodes:74422195-f34a-4c7a-9576-c398d92ea2fd:localhost] 2023-05-29 22:59:49 | [Mutex] waiting for: [received:nodes:74422195-f34a-4c7a-9576-c398d92ea2fd:localhost] 2023-05-29 22:59:49 | [Mutex] waiting for: [received:nodes:74422195-f34a-4c7a-9576-c398d92ea2fd:localhost] 2023-05-29 22:59:49 | [Mutex] received everything. 2023-05-29 22:59:49 | [Mutex] isItemNotified: received:node:74422195-f34a-4c7a-9576-c398d92ea2fd:localhost:node-b9b9f150-d20b-4368-bd49-5d712e9addc3:Node b9b9f150-d20b-4368-bd49-5d712e9addc3 :: false 2023-05-29 22:59:49 | [Mutex] waiting for: [received:nodes:84ec8cfa-721a-4439-970e-99a1397230b2:localhost] 2023-05-29 22:59:49 | [Mutex] received everything. 2023-05-29 22:59:49 | [Mutex] isItemNotified: received:node:84ec8cfa-721a-4439-970e-99a1397230b2:localhost:node-b9b9f150-d20b-4368-bd49-5d712e9addc3:Node b9b9f150-d20b-4368-bd49-5d712e9addc3 :: false |
publishItemsToNodes | 0.039s |
2023-05-29 22:59:47 |
2023-05-29 22:59:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-05-29 22:59:47 | ------------------------------------ 2023-05-29 22:59:47 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-b9b9f150-d20b-4368-bd49-5d712e9addc3", "entry": "<test>item-7c4e7c2b-f2a2-47e9-b31e-31b3db483433</test>", "item-id": "item-7c4e7c2b-f2a2-47e9-b31e-31b3db483433" } 2023-05-29 22:59:47 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-7c4e7c2b-f2a2-47e9-b31e-31b3db483433" } 2023-05-29 22:59:47 | [Mutex] received everything. 2023-05-29 22:59:47 | [Mutex] isItemNotified: published:item:notifieditem-7c4e7c2b-f2a2-47e9-b31e-31b3db483433:admin@test-domain.com :: true |
retractItemsFromNodes | 0.052s |
2023-05-29 22:59:47 |
2023-05-29 22:59:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-05-29 22:59:47 | ------------------------------------ 2023-05-29 22:59:47 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-b9b9f150-d20b-4368-bd49-5d712e9addc3", "item-id": "item-7c4e7c2b-f2a2-47e9-b31e-31b3db483433" } 2023-05-29 22:59:47 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-7c4e7c2b-f2a2-47e9-b31e-31b3db483433" } 2023-05-29 22:59:47 | [Mutex] received everything. 2023-05-29 22:59:47 | [Mutex] isItemNotified: retracted:item:notifieditem-7c4e7c2b-f2a2-47e9-b31e-31b3db483433:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.060s |
2023-05-29 22:59:47 |
2023-05-29 22:59:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-05-29 22:59:47 | ------------------------------------ 2023-05-29 22:59:47 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-b9b9f150-d20b-4368-bd49-5d712e9addc3", "item-id": "item-7c4e7c2b-f2a2-47e9-b31e-31b3db483433" } 2023-05-29 22:59:47 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-b9b9f150-d20b-4368-bd49-5d712e9addc3", "item-id": "item-7c4e7c2b-f2a2-47e9-b31e-31b3db483433", "item": [ "<item id=\"item-7c4e7c2b-f2a2-47e9-b31e-31b3db483433\"><test>item-7c4e7c2b-f2a2-47e9-b31e-31b3db483433</test></item>" ] } 2023-05-29 22:59:47 | [Mutex] notify: [retrieved:item:item-7c4e7c2b-f2a2-47e9-b31e-31b3db483433:payload-matches:true:localhost] 2023-05-29 22:59:47 | [Mutex] received everything. 2023-05-29 22:59:47 | [Mutex] isItemNotified: retrieved:item:item-7c4e7c2b-f2a2-47e9-b31e-31b3db483433:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.047s |
2023-05-29 22:59:47 |
2023-05-29 22:59:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-05-29 22:59:47 | ------------------------------------ 2023-05-29 22:59:47 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2023-05-29 22:59:47 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-da145ddf-b47a-49db-8e58-d52f0a8bdf82", "test", "node-b9b9f150-d20b-4368-bd49-5d712e9addc3" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2023-05-29 22:59:47 |
2023-05-29 22:59:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-05-29 22:59:47 | ------------------------------------ 2023-05-29 22:59:47 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-b9b9f150-d20b-4368-bd49-5d712e9addc3)" } 2023-05-29 22:59:47 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.013s |
2023-05-29 22:59:46 |
2023-05-29 22:59:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-05-29 22:59:46 | ------------------------------------ 2023-05-29 22:59:46 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-b9b9f150-d20b-4368-bd49-5d712e9addc3", "jids": [ "admin@test-domain.com" ] } 2023-05-29 22:59:46 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.067s |
2023-05-29 22:59:47 |
2023-05-29 22:59:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-05-29 22:59:47 | ------------------------------------ 2023-05-29 22:59:47 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-b9b9f150-d20b-4368-bd49-5d712e9addc3", "jids": [ "admin@test-domain.com" ] } 2023-05-29 22:59:47 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |