Test duration : 8.707s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.109s |
2022-07-22 23:00:34 |
2022-07-22 23:00:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-22 23:00:34 | ------------------------------------ 2022-07-22 23:00:34 | [Mutex] waiting for: [configured:node:node-8ab18fc1-eebe-4bfb-a45d-3dba420ea9a5:node-3ae24cee-0012-4dc4-8042-c55190fabafc] 2022-07-22 23:00:34 | [Mutex] received everything. 2022-07-22 23:00:34 | [Mutex] isItemNotified: configured:node:node-8ab18fc1-eebe-4bfb-a45d-3dba420ea9a5:node-3ae24cee-0012-4dc4-8042-c55190fabafc :: true 2022-07-22 23:00:35 | [Mutex] waiting for: [received:nodes:74ebda7d-b552-420a-a474-2ca64b8ba440:localhost] 2022-07-22 23:00:35 | [Mutex] received everything. 2022-07-22 23:00:35 | [Mutex] isItemNotified: received:node:74ebda7d-b552-420a-a474-2ca64b8ba440:localhost:node-8ab18fc1-eebe-4bfb-a45d-3dba420ea9a5:Node 8ab18fc1-eebe-4bfb-a45d-3dba420ea9a5 :: true 2022-07-22 23:00:35 | [Mutex] waiting for: [received:nodes:ce79e02a-f979-421f-9af4-2ea4b94502bc:localhost] 2022-07-22 23:00:35 | [Mutex] received everything. 2022-07-22 23:00:35 | [Mutex] isItemNotified: received:node:ce79e02a-f979-421f-9af4-2ea4b94502bc:localhost:node-8ab18fc1-eebe-4bfb-a45d-3dba420ea9a5:Node 8ab18fc1-eebe-4bfb-a45d-3dba420ea9a5 :: false |
createNodes | 1.591s |
2022-07-22 23:00:32 |
2022-07-22 23:00:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-22 23:00:32 | ------------------------------------ 2022-07-22 23:00:32 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-8ab18fc1-eebe-4bfb-a45d-3dba420ea9a5", "pubsub#title": "Node 8ab18fc1-eebe-4bfb-a45d-3dba420ea9a5" } 2022-07-22 23:00:32 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-22 23:00:33 | [Mutex] waiting for: [received:nodes:c81eda82-cd5d-4b15-8cd4-bf02c6155200:localhost] 2022-07-22 23:00:33 | [Mutex] received everything. 2022-07-22 23:00:33 | [Mutex] isItemNotified: received:node:c81eda82-cd5d-4b15-8cd4-bf02c6155200:localhost:node-8ab18fc1-eebe-4bfb-a45d-3dba420ea9a5:Node 8ab18fc1-eebe-4bfb-a45d-3dba420ea9a5 :: true |
createSubnodes | 1.025s |
2022-07-22 23:00:33 |
2022-07-22 23:00:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-22 23:00:33 | ------------------------------------ 2022-07-22 23:00:33 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-3ae24cee-0012-4dc4-8042-c55190fabafc", "pubsub#title": "Node 3ae24cee-0012-4dc4-8042-c55190fabafc" } 2022-07-22 23:00:33 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-22 23:00:34 | [Mutex] waiting for: [received:nodes:e6a829ff-2289-4403-8e32-d80874175c3a:localhost] 2022-07-22 23:00:34 | [Mutex] received everything. 2022-07-22 23:00:34 | [Mutex] isItemNotified: received:node:e6a829ff-2289-4403-8e32-d80874175c3a:localhost:node-3ae24cee-0012-4dc4-8042-c55190fabafc:Node 3ae24cee-0012-4dc4-8042-c55190fabafc :: true |
deleteNodes | 1.022s |
2022-07-22 23:00:39 |
2022-07-22 23:00:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-22 23:00:39 | ------------------------------------ 2022-07-22 23:00:39 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-3ae24cee-0012-4dc4-8042-c55190fabafc" } 2022-07-22 23:00:39 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-22 23:00:40 | [Mutex] waiting for: [received:nodes:1b40baab-438e-4397-a153-e2f5c22acf6a:localhost] 2022-07-22 23:00:40 | [Mutex] received everything. 2022-07-22 23:00:40 | [Mutex] isItemNotified: received:node:1b40baab-438e-4397-a153-e2f5c22acf6a:localhost:node-3ae24cee-0012-4dc4-8042-c55190fabafc:Node 3ae24cee-0012-4dc4-8042-c55190fabafc :: false |
deleteSubnodes | 1.027s |
2022-07-22 23:00:38 |
2022-07-22 23:00:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-22 23:00:38 | ------------------------------------ 2022-07-22 23:00:38 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-8ab18fc1-eebe-4bfb-a45d-3dba420ea9a5" } 2022-07-22 23:00:38 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-22 23:00:39 | [Mutex] waiting for: [received:nodes:76c54b2d-6395-48f6-9d49-7cfddffb4668:localhost] 2022-07-22 23:00:39 | [Mutex] received everything. 2022-07-22 23:00:39 | [Mutex] isItemNotified: received:node:76c54b2d-6395-48f6-9d49-7cfddffb4668:localhost:node-8ab18fc1-eebe-4bfb-a45d-3dba420ea9a5:Node 8ab18fc1-eebe-4bfb-a45d-3dba420ea9a5 :: false 2022-07-22 23:00:39 | [Mutex] waiting for: [received:nodes:19bb71d5-4f89-43a0-8288-0739d5b3edbd:localhost] 2022-07-22 23:00:39 | [Mutex] received everything. 2022-07-22 23:00:39 | [Mutex] isItemNotified: received:node:19bb71d5-4f89-43a0-8288-0739d5b3edbd:localhost:node-8ab18fc1-eebe-4bfb-a45d-3dba420ea9a5:Node 8ab18fc1-eebe-4bfb-a45d-3dba420ea9a5 :: false |
publishItemsToNodes | 0.053s |
2022-07-22 23:00:36 |
2022-07-22 23:00:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-22 23:00:36 | ------------------------------------ 2022-07-22 23:00:36 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-8ab18fc1-eebe-4bfb-a45d-3dba420ea9a5", "entry": "<test>item-4e286d09-a100-4cc0-98a1-0f7882147c7d</test>", "item-id": "item-4e286d09-a100-4cc0-98a1-0f7882147c7d" } 2022-07-22 23:00:36 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-4e286d09-a100-4cc0-98a1-0f7882147c7d" } 2022-07-22 23:00:36 | [Mutex] waiting for: [published:item:notifieditem-4e286d09-a100-4cc0-98a1-0f7882147c7d:admin@test-domain.com] 2022-07-22 23:00:36 | [Mutex] received everything. 2022-07-22 23:00:36 | [Mutex] isItemNotified: published:item:notifieditem-4e286d09-a100-4cc0-98a1-0f7882147c7d:admin@test-domain.com :: true |
retractItemsFromNodes | 0.065s |
2022-07-22 23:00:37 |
2022-07-22 23:00:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-22 23:00:37 | ------------------------------------ 2022-07-22 23:00:37 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-8ab18fc1-eebe-4bfb-a45d-3dba420ea9a5", "item-id": "item-4e286d09-a100-4cc0-98a1-0f7882147c7d" } 2022-07-22 23:00:37 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-4e286d09-a100-4cc0-98a1-0f7882147c7d" } 2022-07-22 23:00:37 | [Mutex] waiting for: [retracted:item:notifieditem-4e286d09-a100-4cc0-98a1-0f7882147c7d:admin@test-domain.com] 2022-07-22 23:00:37 | [Mutex] received everything. 2022-07-22 23:00:37 | [Mutex] isItemNotified: retracted:item:notifieditem-4e286d09-a100-4cc0-98a1-0f7882147c7d:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.052s |
2022-07-22 23:00:36 |
2022-07-22 23:00:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-22 23:00:36 | ------------------------------------ 2022-07-22 23:00:36 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-8ab18fc1-eebe-4bfb-a45d-3dba420ea9a5", "item-id": "item-4e286d09-a100-4cc0-98a1-0f7882147c7d" } 2022-07-22 23:00:36 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-8ab18fc1-eebe-4bfb-a45d-3dba420ea9a5", "item-id": "item-4e286d09-a100-4cc0-98a1-0f7882147c7d", "item": [ "<item id=\"item-4e286d09-a100-4cc0-98a1-0f7882147c7d\"><test>item-4e286d09-a100-4cc0-98a1-0f7882147c7d</test></item>" ] } 2022-07-22 23:00:36 | [Mutex] notify: [retrieved:item:item-4e286d09-a100-4cc0-98a1-0f7882147c7d:payload-matches:true:localhost] 2022-07-22 23:00:36 | [Mutex] received everything. 2022-07-22 23:00:36 | [Mutex] isItemNotified: retrieved:item:item-4e286d09-a100-4cc0-98a1-0f7882147c7d:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2022-07-22 23:00:36 |
2022-07-22 23:00:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-22 23:00:36 | ------------------------------------ 2022-07-22 23:00:36 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-07-22 23:00:36 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-3ae24cee-0012-4dc4-8042-c55190fabafc", "node-8ab18fc1-eebe-4bfb-a45d-3dba420ea9a5" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2022-07-22 23:00:36 |
2022-07-22 23:00:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-22 23:00:36 | ------------------------------------ 2022-07-22 23:00:36 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-8ab18fc1-eebe-4bfb-a45d-3dba420ea9a5)" } 2022-07-22 23:00:37 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.013s |
2022-07-22 23:00:35 |
2022-07-22 23:00:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-22 23:00:35 | ------------------------------------ 2022-07-22 23:00:35 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-8ab18fc1-eebe-4bfb-a45d-3dba420ea9a5", "jids": [ "admin@test-domain.com" ] } 2022-07-22 23:00:35 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.057s |
2022-07-22 23:00:37 |
2022-07-22 23:00:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-22 23:00:37 | ------------------------------------ 2022-07-22 23:00:37 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-8ab18fc1-eebe-4bfb-a45d-3dba420ea9a5", "jids": [ "admin@test-domain.com" ] } 2022-07-22 23:00:37 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |