Test duration : 8.667s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.136s |
2022-07-06 22:33:15 |
2022-07-06 22:33:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-06 22:33:15 | ------------------------------------ 2022-07-06 22:33:15 | [Mutex] waiting for: [configured:node:node-027069de-d654-4d8b-bf53-cb8045706a40:node-d3bf9865-2f58-48e8-aa8f-ae9d7425119a] 2022-07-06 22:33:16 | [Mutex] received everything. 2022-07-06 22:33:16 | [Mutex] isItemNotified: configured:node:node-027069de-d654-4d8b-bf53-cb8045706a40:node-d3bf9865-2f58-48e8-aa8f-ae9d7425119a :: true 2022-07-06 22:33:17 | [Mutex] waiting for: [received:nodes:d033f1cb-9b6b-4bd0-acf8-7eaf9aec407d:localhost] 2022-07-06 22:33:17 | [Mutex] received everything. 2022-07-06 22:33:17 | [Mutex] isItemNotified: received:node:d033f1cb-9b6b-4bd0-acf8-7eaf9aec407d:localhost:node-027069de-d654-4d8b-bf53-cb8045706a40:Node 027069de-d654-4d8b-bf53-cb8045706a40 :: true 2022-07-06 22:33:17 | [Mutex] waiting for: [received:nodes:0b44e6a1-ce1a-497c-8a34-46e65335b7e2:localhost] 2022-07-06 22:33:17 | [Mutex] received everything. 2022-07-06 22:33:17 | [Mutex] isItemNotified: received:node:0b44e6a1-ce1a-497c-8a34-46e65335b7e2:localhost:node-027069de-d654-4d8b-bf53-cb8045706a40:Node 027069de-d654-4d8b-bf53-cb8045706a40 :: false |
createNodes | 1.554s |
2022-07-06 22:33:13 |
2022-07-06 22:33:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-06 22:33:13 | ------------------------------------ 2022-07-06 22:33:13 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-027069de-d654-4d8b-bf53-cb8045706a40", "pubsub#title": "Node 027069de-d654-4d8b-bf53-cb8045706a40" } 2022-07-06 22:33:13 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-06 22:33:14 | [Mutex] waiting for: [received:nodes:49415495-bf1e-41e8-87c3-ae94bf355435:localhost] 2022-07-06 22:33:14 | [Mutex] waiting for: [received:nodes:49415495-bf1e-41e8-87c3-ae94bf355435:localhost] 2022-07-06 22:33:14 | [Mutex] waiting for: [received:nodes:49415495-bf1e-41e8-87c3-ae94bf355435:localhost] 2022-07-06 22:33:14 | [Mutex] waiting for: [received:nodes:49415495-bf1e-41e8-87c3-ae94bf355435:localhost] 2022-07-06 22:33:14 | [Mutex] waiting for: [received:nodes:49415495-bf1e-41e8-87c3-ae94bf355435:localhost] 2022-07-06 22:33:14 | [Mutex] received everything. 2022-07-06 22:33:14 | [Mutex] isItemNotified: received:node:49415495-bf1e-41e8-87c3-ae94bf355435:localhost:node-027069de-d654-4d8b-bf53-cb8045706a40:Node 027069de-d654-4d8b-bf53-cb8045706a40 :: true |
createSubnodes | 1.024s |
2022-07-06 22:33:14 |
2022-07-06 22:33:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-06 22:33:14 | ------------------------------------ 2022-07-06 22:33:14 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-d3bf9865-2f58-48e8-aa8f-ae9d7425119a", "pubsub#title": "Node d3bf9865-2f58-48e8-aa8f-ae9d7425119a" } 2022-07-06 22:33:14 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-06 22:33:15 | [Mutex] waiting for: [received:nodes:a8a036fc-2c13-4ada-95ab-363fbd0716da:localhost] 2022-07-06 22:33:15 | [Mutex] waiting for: [received:nodes:a8a036fc-2c13-4ada-95ab-363fbd0716da:localhost] 2022-07-06 22:33:15 | [Mutex] received everything. 2022-07-06 22:33:15 | [Mutex] isItemNotified: received:node:a8a036fc-2c13-4ada-95ab-363fbd0716da:localhost:node-d3bf9865-2f58-48e8-aa8f-ae9d7425119a:Node d3bf9865-2f58-48e8-aa8f-ae9d7425119a :: true |
deleteNodes | 1.019s |
2022-07-06 22:33:20 |
2022-07-06 22:33:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-06 22:33:20 | ------------------------------------ 2022-07-06 22:33:20 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-d3bf9865-2f58-48e8-aa8f-ae9d7425119a" } 2022-07-06 22:33:20 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-06 22:33:21 | [Mutex] waiting for: [received:nodes:ffbc9062-4eb0-470e-96ea-4695f32e66a7:localhost] 2022-07-06 22:33:21 | [Mutex] received everything. 2022-07-06 22:33:21 | [Mutex] isItemNotified: received:node:ffbc9062-4eb0-470e-96ea-4695f32e66a7:localhost:node-d3bf9865-2f58-48e8-aa8f-ae9d7425119a:Node d3bf9865-2f58-48e8-aa8f-ae9d7425119a :: false |
deleteSubnodes | 1.023s |
2022-07-06 22:33:19 |
2022-07-06 22:33:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-06 22:33:19 | ------------------------------------ 2022-07-06 22:33:19 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-027069de-d654-4d8b-bf53-cb8045706a40" } 2022-07-06 22:33:19 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-06 22:33:20 | [Mutex] waiting for: [received:nodes:cb54ae8b-8445-48d8-84fb-3e9d1c344b39:localhost] 2022-07-06 22:33:20 | [Mutex] waiting for: [received:nodes:cb54ae8b-8445-48d8-84fb-3e9d1c344b39:localhost] 2022-07-06 22:33:20 | [Mutex] received everything. 2022-07-06 22:33:20 | [Mutex] isItemNotified: received:node:cb54ae8b-8445-48d8-84fb-3e9d1c344b39:localhost:node-027069de-d654-4d8b-bf53-cb8045706a40:Node 027069de-d654-4d8b-bf53-cb8045706a40 :: false 2022-07-06 22:33:20 | [Mutex] waiting for: [received:nodes:73b6189c-9500-44b0-9de6-d17597dd9dbb:localhost] 2022-07-06 22:33:20 | [Mutex] received everything. 2022-07-06 22:33:20 | [Mutex] isItemNotified: received:node:73b6189c-9500-44b0-9de6-d17597dd9dbb:localhost:node-027069de-d654-4d8b-bf53-cb8045706a40:Node 027069de-d654-4d8b-bf53-cb8045706a40 :: false |
publishItemsToNodes | 0.088s |
2022-07-06 22:33:18 |
2022-07-06 22:33:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-06 22:33:18 | ------------------------------------ 2022-07-06 22:33:18 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-027069de-d654-4d8b-bf53-cb8045706a40", "entry": "<test>item-6b760b52-d929-40eb-9b87-6ba42b6246d1</test>", "item-id": "item-6b760b52-d929-40eb-9b87-6ba42b6246d1" } 2022-07-06 22:33:18 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-6b760b52-d929-40eb-9b87-6ba42b6246d1" } 2022-07-06 22:33:18 | [Mutex] waiting for: [published:item:notifieditem-6b760b52-d929-40eb-9b87-6ba42b6246d1:admin@test-domain.com] 2022-07-06 22:33:18 | [Mutex] received everything. 2022-07-06 22:33:18 | [Mutex] isItemNotified: published:item:notifieditem-6b760b52-d929-40eb-9b87-6ba42b6246d1:admin@test-domain.com :: true |
retractItemsFromNodes | 0.056s |
2022-07-06 22:33:18 |
2022-07-06 22:33:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-06 22:33:18 | ------------------------------------ 2022-07-06 22:33:18 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-027069de-d654-4d8b-bf53-cb8045706a40", "item-id": "item-6b760b52-d929-40eb-9b87-6ba42b6246d1" } 2022-07-06 22:33:18 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-6b760b52-d929-40eb-9b87-6ba42b6246d1" } 2022-07-06 22:33:18 | [Mutex] waiting for: [retracted:item:notifieditem-6b760b52-d929-40eb-9b87-6ba42b6246d1:admin@test-domain.com] 2022-07-06 22:33:18 | [Mutex] received everything. 2022-07-06 22:33:18 | [Mutex] isItemNotified: retracted:item:notifieditem-6b760b52-d929-40eb-9b87-6ba42b6246d1:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.015s |
2022-07-06 22:33:18 |
2022-07-06 22:33:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-06 22:33:18 | ------------------------------------ 2022-07-06 22:33:18 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-027069de-d654-4d8b-bf53-cb8045706a40", "item-id": "item-6b760b52-d929-40eb-9b87-6ba42b6246d1" } 2022-07-06 22:33:18 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-027069de-d654-4d8b-bf53-cb8045706a40", "item-id": "item-6b760b52-d929-40eb-9b87-6ba42b6246d1", "item": [ "<item id=\"item-6b760b52-d929-40eb-9b87-6ba42b6246d1\"><test>item-6b760b52-d929-40eb-9b87-6ba42b6246d1</test></item>" ] } 2022-07-06 22:33:18 | [Mutex] notify: [retrieved:item:item-6b760b52-d929-40eb-9b87-6ba42b6246d1:payload-matches:true:localhost] 2022-07-06 22:33:18 | [Mutex] received everything. 2022-07-06 22:33:18 | [Mutex] isItemNotified: retrieved:item:item-6b760b52-d929-40eb-9b87-6ba42b6246d1:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.048s |
2022-07-06 22:33:18 |
2022-07-06 22:33:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-06 22:33:18 | ------------------------------------ 2022-07-06 22:33:18 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-07-06 22:33:18 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-027069de-d654-4d8b-bf53-cb8045706a40", "node-d3bf9865-2f58-48e8-aa8f-ae9d7425119a" ] } |
retrieveUserSubscriptionsWithRegex | 0.048s |
2022-07-06 22:33:18 |
2022-07-06 22:33:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-06 22:33:18 | ------------------------------------ 2022-07-06 22:33:18 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-027069de-d654-4d8b-bf53-cb8045706a40)" } 2022-07-06 22:33:18 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.012s |
2022-07-06 22:33:17 |
2022-07-06 22:33:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-06 22:33:17 | ------------------------------------ 2022-07-06 22:33:17 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-027069de-d654-4d8b-bf53-cb8045706a40", "jids": [ "admin@test-domain.com" ] } 2022-07-06 22:33:17 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.054s |
2022-07-06 22:33:18 |
2022-07-06 22:33:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-06 22:33:18 | ------------------------------------ 2022-07-06 22:33:18 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-027069de-d654-4d8b-bf53-cb8045706a40", "jids": [ "admin@test-domain.com" ] } 2022-07-06 22:33:18 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |