Test duration : 8.693s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.102s |
2023-11-05 22:47:04 |
2023-11-05 22:47:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-11-05 22:47:04 | ------------------------------------ 2023-11-05 22:47:04 | [Mutex] waiting for: [configured:node:node-dcdf0a35-5122-4eb6-be57-e606b658cf20:node-8ef59b98-a1db-4793-b330-fb5d9a7afc41] 2023-11-05 22:47:04 | [Mutex] received everything. 2023-11-05 22:47:04 | [Mutex] isItemNotified: configured:node:node-dcdf0a35-5122-4eb6-be57-e606b658cf20:node-8ef59b98-a1db-4793-b330-fb5d9a7afc41 :: true 2023-11-05 22:47:05 | [Mutex] waiting for: [received:nodes:02202b68-3958-4532-b49c-62741151ee53:localhost] 2023-11-05 22:47:05 | [Mutex] received everything. 2023-11-05 22:47:05 | [Mutex] isItemNotified: received:node:02202b68-3958-4532-b49c-62741151ee53:localhost:node-dcdf0a35-5122-4eb6-be57-e606b658cf20:Node dcdf0a35-5122-4eb6-be57-e606b658cf20 :: true 2023-11-05 22:47:05 | [Mutex] waiting for: [received:nodes:c63d0040-95ca-4812-8f6d-12e21f1dc0e1:localhost] 2023-11-05 22:47:05 | [Mutex] waiting for: [received:nodes:c63d0040-95ca-4812-8f6d-12e21f1dc0e1:localhost] 2023-11-05 22:47:05 | [Mutex] waiting for: [received:nodes:c63d0040-95ca-4812-8f6d-12e21f1dc0e1:localhost] 2023-11-05 22:47:05 | [Mutex] waiting for: [received:nodes:c63d0040-95ca-4812-8f6d-12e21f1dc0e1:localhost] 2023-11-05 22:47:05 | [Mutex] received everything. 2023-11-05 22:47:05 | [Mutex] isItemNotified: received:node:c63d0040-95ca-4812-8f6d-12e21f1dc0e1:localhost:node-dcdf0a35-5122-4eb6-be57-e606b658cf20:Node dcdf0a35-5122-4eb6-be57-e606b658cf20 :: false |
createNodes | 1.723s |
2023-11-05 22:47:01 |
2023-11-05 22:47:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-11-05 22:47:01 | ------------------------------------ 2023-11-05 22:47:02 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-dcdf0a35-5122-4eb6-be57-e606b658cf20", "pubsub#title": "Node dcdf0a35-5122-4eb6-be57-e606b658cf20" } 2023-11-05 22:47:02 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2023-11-05 22:47:03 | [Mutex] waiting for: [received:nodes:07390221-2b6d-4be9-80b8-6f1bd48de4b9:localhost] 2023-11-05 22:47:03 | [Mutex] waiting for: [received:nodes:07390221-2b6d-4be9-80b8-6f1bd48de4b9:localhost] 2023-11-05 22:47:03 | [Mutex] waiting for: [received:nodes:07390221-2b6d-4be9-80b8-6f1bd48de4b9:localhost] 2023-11-05 22:47:03 | [Mutex] waiting for: [received:nodes:07390221-2b6d-4be9-80b8-6f1bd48de4b9:localhost] 2023-11-05 22:47:03 | [Mutex] received everything. 2023-11-05 22:47:03 | [Mutex] isItemNotified: received:node:07390221-2b6d-4be9-80b8-6f1bd48de4b9:localhost:node-dcdf0a35-5122-4eb6-be57-e606b658cf20:Node dcdf0a35-5122-4eb6-be57-e606b658cf20 :: true |
createSubnodes | 1.021s |
2023-11-05 22:47:03 |
2023-11-05 22:47:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-11-05 22:47:03 | ------------------------------------ 2023-11-05 22:47:03 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-8ef59b98-a1db-4793-b330-fb5d9a7afc41", "pubsub#title": "Node 8ef59b98-a1db-4793-b330-fb5d9a7afc41" } 2023-11-05 22:47:03 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2023-11-05 22:47:04 | [Mutex] waiting for: [received:nodes:1554cbce-a0a3-4783-a35b-347522dfb308:localhost] 2023-11-05 22:47:04 | [Mutex] waiting for: [received:nodes:1554cbce-a0a3-4783-a35b-347522dfb308:localhost] 2023-11-05 22:47:04 | [Mutex] waiting for: [received:nodes:1554cbce-a0a3-4783-a35b-347522dfb308:localhost] 2023-11-05 22:47:04 | [Mutex] waiting for: [received:nodes:1554cbce-a0a3-4783-a35b-347522dfb308:localhost] 2023-11-05 22:47:04 | [Mutex] received everything. 2023-11-05 22:47:04 | [Mutex] isItemNotified: received:node:1554cbce-a0a3-4783-a35b-347522dfb308:localhost:node-8ef59b98-a1db-4793-b330-fb5d9a7afc41:Node 8ef59b98-a1db-4793-b330-fb5d9a7afc41 :: true |
deleteNodes | 1.021s |
2023-11-05 22:47:08 |
2023-11-05 22:47:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-11-05 22:47:08 | ------------------------------------ 2023-11-05 22:47:08 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-8ef59b98-a1db-4793-b330-fb5d9a7afc41" } 2023-11-05 22:47:08 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2023-11-05 22:47:09 | [Mutex] waiting for: [received:nodes:614f16fe-d1b0-4b2a-b70b-ff6dbec04489:localhost] 2023-11-05 22:47:09 | [Mutex] received everything. 2023-11-05 22:47:09 | [Mutex] isItemNotified: received:node:614f16fe-d1b0-4b2a-b70b-ff6dbec04489:localhost:node-8ef59b98-a1db-4793-b330-fb5d9a7afc41:Node 8ef59b98-a1db-4793-b330-fb5d9a7afc41 :: false |
deleteSubnodes | 1.023s |
2023-11-05 22:47:07 |
2023-11-05 22:47:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-11-05 22:47:07 | ------------------------------------ 2023-11-05 22:47:07 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-dcdf0a35-5122-4eb6-be57-e606b658cf20" } 2023-11-05 22:47:07 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2023-11-05 22:47:08 | [Mutex] waiting for: [received:nodes:d47667b4-d583-4294-8f2e-faca2aaa6416:localhost] 2023-11-05 22:47:08 | [Mutex] waiting for: [received:nodes:d47667b4-d583-4294-8f2e-faca2aaa6416:localhost] 2023-11-05 22:47:08 | [Mutex] waiting for: [received:nodes:d47667b4-d583-4294-8f2e-faca2aaa6416:localhost] 2023-11-05 22:47:08 | [Mutex] waiting for: [received:nodes:d47667b4-d583-4294-8f2e-faca2aaa6416:localhost] 2023-11-05 22:47:08 | [Mutex] received everything. 2023-11-05 22:47:08 | [Mutex] isItemNotified: received:node:d47667b4-d583-4294-8f2e-faca2aaa6416:localhost:node-dcdf0a35-5122-4eb6-be57-e606b658cf20:Node dcdf0a35-5122-4eb6-be57-e606b658cf20 :: false 2023-11-05 22:47:08 | [Mutex] waiting for: [received:nodes:28ae0e73-411e-4e05-b4bd-919a7073df01:localhost] 2023-11-05 22:47:08 | [Mutex] received everything. 2023-11-05 22:47:08 | [Mutex] isItemNotified: received:node:28ae0e73-411e-4e05-b4bd-919a7073df01:localhost:node-dcdf0a35-5122-4eb6-be57-e606b658cf20:Node dcdf0a35-5122-4eb6-be57-e606b658cf20 :: false |
publishItemsToNodes | 0.030s |
2023-11-05 22:47:06 |
2023-11-05 22:47:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-11-05 22:47:06 | ------------------------------------ 2023-11-05 22:47:06 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-dcdf0a35-5122-4eb6-be57-e606b658cf20", "entry": "<test>item-24dd066b-755e-411c-8b75-ca3f72fee83c</test>", "item-id": "item-24dd066b-755e-411c-8b75-ca3f72fee83c" } 2023-11-05 22:47:06 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-24dd066b-755e-411c-8b75-ca3f72fee83c" } 2023-11-05 22:47:06 | [Mutex] waiting for: [published:item:notifieditem-24dd066b-755e-411c-8b75-ca3f72fee83c:admin@test-domain.com] 2023-11-05 22:47:06 | [Mutex] received everything. 2023-11-05 22:47:06 | [Mutex] isItemNotified: published:item:notifieditem-24dd066b-755e-411c-8b75-ca3f72fee83c:admin@test-domain.com :: true |
retractItemsFromNodes | 0.107s |
2023-11-05 22:47:06 |
2023-11-05 22:47:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-11-05 22:47:06 | ------------------------------------ 2023-11-05 22:47:06 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-dcdf0a35-5122-4eb6-be57-e606b658cf20", "item-id": "item-24dd066b-755e-411c-8b75-ca3f72fee83c" } 2023-11-05 22:47:06 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-24dd066b-755e-411c-8b75-ca3f72fee83c" } 2023-11-05 22:47:06 | [Mutex] waiting for: [retracted:item:notifieditem-24dd066b-755e-411c-8b75-ca3f72fee83c:admin@test-domain.com] 2023-11-05 22:47:06 | [Mutex] received everything. 2023-11-05 22:47:06 | [Mutex] isItemNotified: retracted:item:notifieditem-24dd066b-755e-411c-8b75-ca3f72fee83c:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.086s |
2023-11-05 22:47:06 |
2023-11-05 22:47:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-11-05 22:47:06 | ------------------------------------ 2023-11-05 22:47:06 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-dcdf0a35-5122-4eb6-be57-e606b658cf20", "item-id": "item-24dd066b-755e-411c-8b75-ca3f72fee83c" } 2023-11-05 22:47:06 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-dcdf0a35-5122-4eb6-be57-e606b658cf20", "item-id": "item-24dd066b-755e-411c-8b75-ca3f72fee83c", "item": [ "<item id=\"item-24dd066b-755e-411c-8b75-ca3f72fee83c\"><test>item-24dd066b-755e-411c-8b75-ca3f72fee83c</test></item>" ] } 2023-11-05 22:47:06 | [Mutex] notify: [retrieved:item:item-24dd066b-755e-411c-8b75-ca3f72fee83c:payload-matches:true:localhost] 2023-11-05 22:47:06 | [Mutex] received everything. 2023-11-05 22:47:06 | [Mutex] isItemNotified: retrieved:item:item-24dd066b-755e-411c-8b75-ca3f72fee83c:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.047s |
2023-11-05 22:47:06 |
2023-11-05 22:47:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-11-05 22:47:06 | ------------------------------------ 2023-11-05 22:47:06 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2023-11-05 22:47:06 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-dcdf0a35-5122-4eb6-be57-e606b658cf20", "node-8ef59b98-a1db-4793-b330-fb5d9a7afc41" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2023-11-05 22:47:06 |
2023-11-05 22:47:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-11-05 22:47:06 | ------------------------------------ 2023-11-05 22:47:06 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-dcdf0a35-5122-4eb6-be57-e606b658cf20)" } 2023-11-05 22:47:06 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.009s |
2023-11-05 22:47:05 |
2023-11-05 22:47:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-11-05 22:47:05 | ------------------------------------ 2023-11-05 22:47:05 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-dcdf0a35-5122-4eb6-be57-e606b658cf20", "jids": [ "admin@test-domain.com" ] } 2023-11-05 22:47:05 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.033s |
2023-11-05 22:47:06 |
2023-11-05 22:47:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-11-05 22:47:06 | ------------------------------------ 2023-11-05 22:47:06 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-dcdf0a35-5122-4eb6-be57-e606b658cf20", "jids": [ "admin@test-domain.com" ] } 2023-11-05 22:47:06 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |