Test duration : 8.621s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.098s |
2022-08-28 22:33:56 |
2022-08-28 22:33:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-28 22:33:56 | ------------------------------------ 2022-08-28 22:33:56 | [Mutex] waiting for: [configured:node:node-2c3a8d25-0df1-4bcf-8a17-945a3dbed8d9:node-a55901bf-e69d-4f2c-9cc3-0a27e7977a46] 2022-08-28 22:33:56 | [Mutex] received everything. 2022-08-28 22:33:56 | [Mutex] isItemNotified: configured:node:node-2c3a8d25-0df1-4bcf-8a17-945a3dbed8d9:node-a55901bf-e69d-4f2c-9cc3-0a27e7977a46 :: true 2022-08-28 22:33:57 | [Mutex] waiting for: [received:nodes:c8a8e42c-c006-42a5-8d5f-0650eb615cbc:localhost] 2022-08-28 22:33:57 | [Mutex] received everything. 2022-08-28 22:33:57 | [Mutex] isItemNotified: received:node:c8a8e42c-c006-42a5-8d5f-0650eb615cbc:localhost:node-2c3a8d25-0df1-4bcf-8a17-945a3dbed8d9:Node 2c3a8d25-0df1-4bcf-8a17-945a3dbed8d9 :: true 2022-08-28 22:33:57 | [Mutex] waiting for: [received:nodes:7d9193a4-863a-4ca3-9d48-78697dc406ab:localhost] 2022-08-28 22:33:57 | [Mutex] received everything. 2022-08-28 22:33:57 | [Mutex] isItemNotified: received:node:7d9193a4-863a-4ca3-9d48-78697dc406ab:localhost:node-2c3a8d25-0df1-4bcf-8a17-945a3dbed8d9:Node 2c3a8d25-0df1-4bcf-8a17-945a3dbed8d9 :: false |
createNodes | 1.544s |
2022-08-28 22:33:53 |
2022-08-28 22:33:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-28 22:33:53 | ------------------------------------ 2022-08-28 22:33:54 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-2c3a8d25-0df1-4bcf-8a17-945a3dbed8d9", "pubsub#title": "Node 2c3a8d25-0df1-4bcf-8a17-945a3dbed8d9" } 2022-08-28 22:33:54 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-28 22:33:55 | [Mutex] waiting for: [received:nodes:b298627c-c207-456f-823d-bde38515d174:localhost] 2022-08-28 22:33:55 | [Mutex] received everything. 2022-08-28 22:33:55 | [Mutex] isItemNotified: received:node:b298627c-c207-456f-823d-bde38515d174:localhost:node-2c3a8d25-0df1-4bcf-8a17-945a3dbed8d9:Node 2c3a8d25-0df1-4bcf-8a17-945a3dbed8d9 :: true |
createSubnodes | 1.023s |
2022-08-28 22:33:55 |
2022-08-28 22:33:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-28 22:33:55 | ------------------------------------ 2022-08-28 22:33:55 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-a55901bf-e69d-4f2c-9cc3-0a27e7977a46", "pubsub#title": "Node a55901bf-e69d-4f2c-9cc3-0a27e7977a46" } 2022-08-28 22:33:55 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-28 22:33:56 | [Mutex] waiting for: [received:nodes:da179ec6-6258-4796-a9f8-f16808b0a7ec:localhost] 2022-08-28 22:33:56 | [Mutex] waiting for: [received:nodes:da179ec6-6258-4796-a9f8-f16808b0a7ec:localhost] 2022-08-28 22:33:56 | [Mutex] received everything. 2022-08-28 22:33:56 | [Mutex] isItemNotified: received:node:da179ec6-6258-4796-a9f8-f16808b0a7ec:localhost:node-a55901bf-e69d-4f2c-9cc3-0a27e7977a46:Node a55901bf-e69d-4f2c-9cc3-0a27e7977a46 :: true |
deleteNodes | 1.016s |
2022-08-28 22:34:00 |
2022-08-28 22:34:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-28 22:34:00 | ------------------------------------ 2022-08-28 22:34:00 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-a55901bf-e69d-4f2c-9cc3-0a27e7977a46" } 2022-08-28 22:34:00 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-28 22:34:01 | [Mutex] waiting for: [received:nodes:24a51c12-2ec5-4452-8eee-4c687a36d25e:localhost] 2022-08-28 22:34:01 | [Mutex] waiting for: [received:nodes:24a51c12-2ec5-4452-8eee-4c687a36d25e:localhost] 2022-08-28 22:34:01 | [Mutex] received everything. 2022-08-28 22:34:01 | [Mutex] isItemNotified: received:node:24a51c12-2ec5-4452-8eee-4c687a36d25e:localhost:node-a55901bf-e69d-4f2c-9cc3-0a27e7977a46:Node a55901bf-e69d-4f2c-9cc3-0a27e7977a46 :: false |
deleteSubnodes | 1.026s |
2022-08-28 22:33:59 |
2022-08-28 22:33:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-28 22:33:59 | ------------------------------------ 2022-08-28 22:33:59 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-2c3a8d25-0df1-4bcf-8a17-945a3dbed8d9" } 2022-08-28 22:33:59 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-28 22:34:00 | [Mutex] waiting for: [received:nodes:40a46c72-fcd2-4baa-9db0-e69a5541779a:localhost] 2022-08-28 22:34:00 | [Mutex] received everything. 2022-08-28 22:34:00 | [Mutex] isItemNotified: received:node:40a46c72-fcd2-4baa-9db0-e69a5541779a:localhost:node-2c3a8d25-0df1-4bcf-8a17-945a3dbed8d9:Node 2c3a8d25-0df1-4bcf-8a17-945a3dbed8d9 :: false 2022-08-28 22:34:00 | [Mutex] waiting for: [received:nodes:db7aaf8d-9669-488d-b73e-c978963a3fc5:localhost] 2022-08-28 22:34:00 | [Mutex] received everything. 2022-08-28 22:34:00 | [Mutex] isItemNotified: received:node:db7aaf8d-9669-488d-b73e-c978963a3fc5:localhost:node-2c3a8d25-0df1-4bcf-8a17-945a3dbed8d9:Node 2c3a8d25-0df1-4bcf-8a17-945a3dbed8d9 :: false |
publishItemsToNodes | 0.038s |
2022-08-28 22:33:58 |
2022-08-28 22:33:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-28 22:33:58 | ------------------------------------ 2022-08-28 22:33:58 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-2c3a8d25-0df1-4bcf-8a17-945a3dbed8d9", "entry": "<test>item-8d2ae8c7-214c-47ff-bbfc-5c133cc69bf6</test>", "item-id": "item-8d2ae8c7-214c-47ff-bbfc-5c133cc69bf6" } 2022-08-28 22:33:58 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-8d2ae8c7-214c-47ff-bbfc-5c133cc69bf6" } 2022-08-28 22:33:58 | [Mutex] waiting for: [published:item:notifieditem-8d2ae8c7-214c-47ff-bbfc-5c133cc69bf6:admin@test-domain.com] 2022-08-28 22:33:58 | [Mutex] received everything. 2022-08-28 22:33:58 | [Mutex] isItemNotified: published:item:notifieditem-8d2ae8c7-214c-47ff-bbfc-5c133cc69bf6:admin@test-domain.com :: true |
retractItemsFromNodes | 0.059s |
2022-08-28 22:33:58 |
2022-08-28 22:33:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-28 22:33:58 | ------------------------------------ 2022-08-28 22:33:58 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-2c3a8d25-0df1-4bcf-8a17-945a3dbed8d9", "item-id": "item-8d2ae8c7-214c-47ff-bbfc-5c133cc69bf6" } 2022-08-28 22:33:58 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-8d2ae8c7-214c-47ff-bbfc-5c133cc69bf6" } 2022-08-28 22:33:58 | [Mutex] received everything. 2022-08-28 22:33:58 | [Mutex] isItemNotified: retracted:item:notifieditem-8d2ae8c7-214c-47ff-bbfc-5c133cc69bf6:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.057s |
2022-08-28 22:33:58 |
2022-08-28 22:33:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-28 22:33:58 | ------------------------------------ 2022-08-28 22:33:58 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-2c3a8d25-0df1-4bcf-8a17-945a3dbed8d9", "item-id": "item-8d2ae8c7-214c-47ff-bbfc-5c133cc69bf6" } 2022-08-28 22:33:58 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-2c3a8d25-0df1-4bcf-8a17-945a3dbed8d9", "item-id": "item-8d2ae8c7-214c-47ff-bbfc-5c133cc69bf6", "item": [ "<item id=\"item-8d2ae8c7-214c-47ff-bbfc-5c133cc69bf6\"><test>item-8d2ae8c7-214c-47ff-bbfc-5c133cc69bf6</test></item>" ] } 2022-08-28 22:33:58 | [Mutex] notify: [retrieved:item:item-8d2ae8c7-214c-47ff-bbfc-5c133cc69bf6:payload-matches:true:localhost] 2022-08-28 22:33:58 | [Mutex] received everything. 2022-08-28 22:33:58 | [Mutex] isItemNotified: retrieved:item:item-8d2ae8c7-214c-47ff-bbfc-5c133cc69bf6:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.111s |
2022-08-28 22:33:58 |
2022-08-28 22:33:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-28 22:33:58 | ------------------------------------ 2022-08-28 22:33:58 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-08-28 22:33:58 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-2c3a8d25-0df1-4bcf-8a17-945a3dbed8d9", "node-a55901bf-e69d-4f2c-9cc3-0a27e7977a46" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2022-08-28 22:33:58 |
2022-08-28 22:33:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-28 22:33:58 | ------------------------------------ 2022-08-28 22:33:58 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-2c3a8d25-0df1-4bcf-8a17-945a3dbed8d9)" } 2022-08-28 22:33:58 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.010s |
2022-08-28 22:33:57 |
2022-08-28 22:33:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-28 22:33:57 | ------------------------------------ 2022-08-28 22:33:57 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-2c3a8d25-0df1-4bcf-8a17-945a3dbed8d9", "jids": [ "admin@test-domain.com" ] } 2022-08-28 22:33:57 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.087s |
2022-08-28 22:33:58 |
2022-08-28 22:33:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-28 22:33:58 | ------------------------------------ 2022-08-28 22:33:58 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-2c3a8d25-0df1-4bcf-8a17-945a3dbed8d9", "jids": [ "admin@test-domain.com" ] } 2022-08-28 22:33:58 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |