Test duration : 8.627s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.108s |
2022-11-16 21:33:57 |
2022-11-16 21:33:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-11-16 21:33:57 | ------------------------------------ 2022-11-16 21:33:57 | [Mutex] waiting for: [configured:node:node-09702888-91fe-4faa-91bd-5b829bb41d5f:node-f1d967fe-94a1-4533-8ca6-9d5563e81e14] 2022-11-16 21:33:57 | [Mutex] received everything. 2022-11-16 21:33:57 | [Mutex] isItemNotified: configured:node:node-09702888-91fe-4faa-91bd-5b829bb41d5f:node-f1d967fe-94a1-4533-8ca6-9d5563e81e14 :: true 2022-11-16 21:33:58 | [Mutex] waiting for: [received:nodes:dc4cba4d-58e9-4f8e-908e-5a92447e70f8:localhost] 2022-11-16 21:33:58 | [Mutex] received everything. 2022-11-16 21:33:58 | [Mutex] isItemNotified: received:node:dc4cba4d-58e9-4f8e-908e-5a92447e70f8:localhost:node-09702888-91fe-4faa-91bd-5b829bb41d5f:Node 09702888-91fe-4faa-91bd-5b829bb41d5f :: true 2022-11-16 21:33:58 | [Mutex] waiting for: [received:nodes:ac4c22e9-49e3-4e72-9828-0fe4d1064bae:localhost] 2022-11-16 21:33:58 | [Mutex] received everything. 2022-11-16 21:33:58 | [Mutex] isItemNotified: received:node:ac4c22e9-49e3-4e72-9828-0fe4d1064bae:localhost:node-09702888-91fe-4faa-91bd-5b829bb41d5f:Node 09702888-91fe-4faa-91bd-5b829bb41d5f :: false |
createNodes | 1.590s |
2022-11-16 21:33:54 |
2022-11-16 21:33:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-11-16 21:33:54 | ------------------------------------ 2022-11-16 21:33:55 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-09702888-91fe-4faa-91bd-5b829bb41d5f", "pubsub#title": "Node 09702888-91fe-4faa-91bd-5b829bb41d5f" } 2022-11-16 21:33:55 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-11-16 21:33:56 | [Mutex] waiting for: [received:nodes:82730de5-af77-4833-9541-b532bbb7abed:localhost] 2022-11-16 21:33:56 | [Mutex] received everything. 2022-11-16 21:33:56 | [Mutex] isItemNotified: received:node:82730de5-af77-4833-9541-b532bbb7abed:localhost:node-09702888-91fe-4faa-91bd-5b829bb41d5f:Node 09702888-91fe-4faa-91bd-5b829bb41d5f :: true |
createSubnodes | 1.025s |
2022-11-16 21:33:56 |
2022-11-16 21:33:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-11-16 21:33:56 | ------------------------------------ 2022-11-16 21:33:56 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-f1d967fe-94a1-4533-8ca6-9d5563e81e14", "pubsub#title": "Node f1d967fe-94a1-4533-8ca6-9d5563e81e14" } 2022-11-16 21:33:56 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-11-16 21:33:57 | [Mutex] waiting for: [received:nodes:2bcef50e-22dd-48af-a479-11a3c13fc7fc:localhost] 2022-11-16 21:33:57 | [Mutex] received everything. 2022-11-16 21:33:57 | [Mutex] isItemNotified: received:node:2bcef50e-22dd-48af-a479-11a3c13fc7fc:localhost:node-f1d967fe-94a1-4533-8ca6-9d5563e81e14:Node f1d967fe-94a1-4533-8ca6-9d5563e81e14 :: true |
deleteNodes | 1.022s |
2022-11-16 21:34:01 |
2022-11-16 21:34:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-11-16 21:34:01 | ------------------------------------ 2022-11-16 21:34:01 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-f1d967fe-94a1-4533-8ca6-9d5563e81e14" } 2022-11-16 21:34:01 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-11-16 21:34:02 | [Mutex] waiting for: [received:nodes:fd3d266e-2b0c-485e-862b-c4845d4ed85a:localhost] 2022-11-16 21:34:02 | [Mutex] waiting for: [received:nodes:fd3d266e-2b0c-485e-862b-c4845d4ed85a:localhost] 2022-11-16 21:34:02 | [Mutex] waiting for: [received:nodes:fd3d266e-2b0c-485e-862b-c4845d4ed85a:localhost] 2022-11-16 21:34:02 | [Mutex] received everything. 2022-11-16 21:34:02 | [Mutex] isItemNotified: received:node:fd3d266e-2b0c-485e-862b-c4845d4ed85a:localhost:node-f1d967fe-94a1-4533-8ca6-9d5563e81e14:Node f1d967fe-94a1-4533-8ca6-9d5563e81e14 :: false |
deleteSubnodes | 1.029s |
2022-11-16 21:34:00 |
2022-11-16 21:34:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-11-16 21:34:00 | ------------------------------------ 2022-11-16 21:34:00 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-09702888-91fe-4faa-91bd-5b829bb41d5f" } 2022-11-16 21:34:00 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-11-16 21:34:01 | [Mutex] waiting for: [received:nodes:e57846e3-cbbe-4f04-96c9-53da82ad9383:localhost] 2022-11-16 21:34:01 | [Mutex] waiting for: [received:nodes:e57846e3-cbbe-4f04-96c9-53da82ad9383:localhost] 2022-11-16 21:34:01 | [Mutex] received everything. 2022-11-16 21:34:01 | [Mutex] isItemNotified: received:node:e57846e3-cbbe-4f04-96c9-53da82ad9383:localhost:node-09702888-91fe-4faa-91bd-5b829bb41d5f:Node 09702888-91fe-4faa-91bd-5b829bb41d5f :: false 2022-11-16 21:34:01 | [Mutex] waiting for: [received:nodes:e337ea52-2e81-4a0c-abd1-baa2541f04cf:localhost] 2022-11-16 21:34:01 | [Mutex] received everything. 2022-11-16 21:34:01 | [Mutex] isItemNotified: received:node:e337ea52-2e81-4a0c-abd1-baa2541f04cf:localhost:node-09702888-91fe-4faa-91bd-5b829bb41d5f:Node 09702888-91fe-4faa-91bd-5b829bb41d5f :: false |
publishItemsToNodes | 0.026s |
2022-11-16 21:33:59 |
2022-11-16 21:33:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-11-16 21:33:59 | ------------------------------------ 2022-11-16 21:33:59 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-09702888-91fe-4faa-91bd-5b829bb41d5f", "entry": "<test>item-00f8bfd0-7ed4-4e32-8bbe-af87af9dfe66</test>", "item-id": "item-00f8bfd0-7ed4-4e32-8bbe-af87af9dfe66" } 2022-11-16 21:33:59 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-00f8bfd0-7ed4-4e32-8bbe-af87af9dfe66" } 2022-11-16 21:33:59 | [Mutex] waiting for: [published:item:notifieditem-00f8bfd0-7ed4-4e32-8bbe-af87af9dfe66:admin@test-domain.com] 2022-11-16 21:33:59 | [Mutex] received everything. 2022-11-16 21:33:59 | [Mutex] isItemNotified: published:item:notifieditem-00f8bfd0-7ed4-4e32-8bbe-af87af9dfe66:admin@test-domain.com :: true |
retractItemsFromNodes | 0.122s |
2022-11-16 21:33:59 |
2022-11-16 21:33:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-11-16 21:33:59 | ------------------------------------ 2022-11-16 21:33:59 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-09702888-91fe-4faa-91bd-5b829bb41d5f", "item-id": "item-00f8bfd0-7ed4-4e32-8bbe-af87af9dfe66" } 2022-11-16 21:33:59 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-00f8bfd0-7ed4-4e32-8bbe-af87af9dfe66" } 2022-11-16 21:33:59 | [Mutex] waiting for: [retracted:item:notifieditem-00f8bfd0-7ed4-4e32-8bbe-af87af9dfe66:admin@test-domain.com] 2022-11-16 21:33:59 | [Mutex] received everything. 2022-11-16 21:33:59 | [Mutex] isItemNotified: retracted:item:notifieditem-00f8bfd0-7ed4-4e32-8bbe-af87af9dfe66:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.075s |
2022-11-16 21:33:59 |
2022-11-16 21:33:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-11-16 21:33:59 | ------------------------------------ 2022-11-16 21:33:59 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-09702888-91fe-4faa-91bd-5b829bb41d5f", "item-id": "item-00f8bfd0-7ed4-4e32-8bbe-af87af9dfe66" } 2022-11-16 21:33:59 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-09702888-91fe-4faa-91bd-5b829bb41d5f", "item-id": "item-00f8bfd0-7ed4-4e32-8bbe-af87af9dfe66", "item": [ "<item id=\"item-00f8bfd0-7ed4-4e32-8bbe-af87af9dfe66\"><test>item-00f8bfd0-7ed4-4e32-8bbe-af87af9dfe66</test></item>" ] } 2022-11-16 21:33:59 | [Mutex] notify: [retrieved:item:item-00f8bfd0-7ed4-4e32-8bbe-af87af9dfe66:payload-matches:true:localhost] 2022-11-16 21:33:59 | [Mutex] received everything. 2022-11-16 21:33:59 | [Mutex] isItemNotified: retrieved:item:item-00f8bfd0-7ed4-4e32-8bbe-af87af9dfe66:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.058s |
2022-11-16 21:33:59 |
2022-11-16 21:33:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-11-16 21:33:59 | ------------------------------------ 2022-11-16 21:33:59 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-11-16 21:33:59 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-09702888-91fe-4faa-91bd-5b829bb41d5f", "test", "node-f1d967fe-94a1-4533-8ca6-9d5563e81e14" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2022-11-16 21:33:59 |
2022-11-16 21:33:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-11-16 21:33:59 | ------------------------------------ 2022-11-16 21:33:59 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-09702888-91fe-4faa-91bd-5b829bb41d5f)" } 2022-11-16 21:33:59 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.013s |
2022-11-16 21:33:58 |
2022-11-16 21:33:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-11-16 21:33:58 | ------------------------------------ 2022-11-16 21:33:58 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-09702888-91fe-4faa-91bd-5b829bb41d5f", "jids": [ "admin@test-domain.com" ] } 2022-11-16 21:33:58 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.009s |
2022-11-16 21:33:59 |
2022-11-16 21:33:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-11-16 21:33:59 | ------------------------------------ 2022-11-16 21:33:59 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-09702888-91fe-4faa-91bd-5b829bb41d5f", "jids": [ "admin@test-domain.com" ] } 2022-11-16 21:33:59 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |