Test duration : 8.624s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.092s |
2023-07-05 23:40:09 |
2023-07-05 23:40:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-05 23:40:09 | ------------------------------------ 2023-07-05 23:40:09 | [Mutex] waiting for: [configured:node:node-369a1278-344a-45a5-bbf8-9355043d7645:node-b5e920b4-3c17-48ce-8151-e6d9b6fe353d] 2023-07-05 23:40:10 | [Mutex] received everything. 2023-07-05 23:40:10 | [Mutex] isItemNotified: configured:node:node-369a1278-344a-45a5-bbf8-9355043d7645:node-b5e920b4-3c17-48ce-8151-e6d9b6fe353d :: true 2023-07-05 23:40:11 | [Mutex] waiting for: [received:nodes:ddc48599-d32d-4e4e-99fb-510ec27fbbb6:localhost] 2023-07-05 23:40:11 | [Mutex] received everything. 2023-07-05 23:40:11 | [Mutex] isItemNotified: received:node:ddc48599-d32d-4e4e-99fb-510ec27fbbb6:localhost:node-369a1278-344a-45a5-bbf8-9355043d7645:Node 369a1278-344a-45a5-bbf8-9355043d7645 :: true 2023-07-05 23:40:11 | [Mutex] waiting for: [received:nodes:88b280ec-090c-488d-93b9-7f2bb3b6f85e:localhost] 2023-07-05 23:40:11 | [Mutex] waiting for: [received:nodes:88b280ec-090c-488d-93b9-7f2bb3b6f85e:localhost] 2023-07-05 23:40:11 | [Mutex] waiting for: [received:nodes:88b280ec-090c-488d-93b9-7f2bb3b6f85e:localhost] 2023-07-05 23:40:11 | [Mutex] waiting for: [received:nodes:88b280ec-090c-488d-93b9-7f2bb3b6f85e:localhost] 2023-07-05 23:40:11 | [Mutex] received everything. 2023-07-05 23:40:11 | [Mutex] isItemNotified: received:node:88b280ec-090c-488d-93b9-7f2bb3b6f85e:localhost:node-369a1278-344a-45a5-bbf8-9355043d7645:Node 369a1278-344a-45a5-bbf8-9355043d7645 :: false |
createNodes | 1.612s |
2023-07-05 23:40:07 |
2023-07-05 23:40:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-05 23:40:07 | ------------------------------------ 2023-07-05 23:40:07 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-369a1278-344a-45a5-bbf8-9355043d7645", "pubsub#title": "Node 369a1278-344a-45a5-bbf8-9355043d7645" } 2023-07-05 23:40:07 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2023-07-05 23:40:08 | [Mutex] waiting for: [received:nodes:7920ef54-cc66-40d7-819b-31c3d80fd4ab:localhost] 2023-07-05 23:40:08 | [Mutex] waiting for: [received:nodes:7920ef54-cc66-40d7-819b-31c3d80fd4ab:localhost] 2023-07-05 23:40:08 | [Mutex] waiting for: [received:nodes:7920ef54-cc66-40d7-819b-31c3d80fd4ab:localhost] 2023-07-05 23:40:08 | [Mutex] waiting for: [received:nodes:7920ef54-cc66-40d7-819b-31c3d80fd4ab:localhost] 2023-07-05 23:40:08 | [Mutex] received everything. 2023-07-05 23:40:08 | [Mutex] isItemNotified: received:node:7920ef54-cc66-40d7-819b-31c3d80fd4ab:localhost:node-369a1278-344a-45a5-bbf8-9355043d7645:Node 369a1278-344a-45a5-bbf8-9355043d7645 :: true |
createSubnodes | 1.021s |
2023-07-05 23:40:08 |
2023-07-05 23:40:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-05 23:40:08 | ------------------------------------ 2023-07-05 23:40:08 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-b5e920b4-3c17-48ce-8151-e6d9b6fe353d", "pubsub#title": "Node b5e920b4-3c17-48ce-8151-e6d9b6fe353d" } 2023-07-05 23:40:08 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2023-07-05 23:40:09 | [Mutex] waiting for: [received:nodes:e9eecf1f-4a7a-48ee-b78c-5aebd15c49c4:localhost] 2023-07-05 23:40:09 | [Mutex] waiting for: [received:nodes:e9eecf1f-4a7a-48ee-b78c-5aebd15c49c4:localhost] 2023-07-05 23:40:09 | [Mutex] waiting for: [received:nodes:e9eecf1f-4a7a-48ee-b78c-5aebd15c49c4:localhost] 2023-07-05 23:40:09 | [Mutex] waiting for: [received:nodes:e9eecf1f-4a7a-48ee-b78c-5aebd15c49c4:localhost] 2023-07-05 23:40:09 | [Mutex] received everything. 2023-07-05 23:40:09 | [Mutex] isItemNotified: received:node:e9eecf1f-4a7a-48ee-b78c-5aebd15c49c4:localhost:node-b5e920b4-3c17-48ce-8151-e6d9b6fe353d:Node b5e920b4-3c17-48ce-8151-e6d9b6fe353d :: true |
deleteNodes | 1.015s |
2023-07-05 23:40:14 |
2023-07-05 23:40:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-05 23:40:14 | ------------------------------------ 2023-07-05 23:40:14 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-b5e920b4-3c17-48ce-8151-e6d9b6fe353d" } 2023-07-05 23:40:14 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2023-07-05 23:40:15 | [Mutex] waiting for: [received:nodes:137b413f-ddfc-4328-89ea-8ccdd7f31f37:localhost] 2023-07-05 23:40:15 | [Mutex] waiting for: [received:nodes:137b413f-ddfc-4328-89ea-8ccdd7f31f37:localhost] 2023-07-05 23:40:15 | [Mutex] waiting for: [received:nodes:137b413f-ddfc-4328-89ea-8ccdd7f31f37:localhost] 2023-07-05 23:40:15 | [Mutex] received everything. 2023-07-05 23:40:15 | [Mutex] isItemNotified: received:node:137b413f-ddfc-4328-89ea-8ccdd7f31f37:localhost:node-b5e920b4-3c17-48ce-8151-e6d9b6fe353d:Node b5e920b4-3c17-48ce-8151-e6d9b6fe353d :: false |
deleteSubnodes | 1.026s |
2023-07-05 23:40:13 |
2023-07-05 23:40:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-05 23:40:13 | ------------------------------------ 2023-07-05 23:40:13 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-369a1278-344a-45a5-bbf8-9355043d7645" } 2023-07-05 23:40:13 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2023-07-05 23:40:14 | [Mutex] waiting for: [received:nodes:5b511823-4724-4761-b429-1f9cef189434:localhost] 2023-07-05 23:40:14 | [Mutex] waiting for: [received:nodes:5b511823-4724-4761-b429-1f9cef189434:localhost] 2023-07-05 23:40:14 | [Mutex] waiting for: [received:nodes:5b511823-4724-4761-b429-1f9cef189434:localhost] 2023-07-05 23:40:14 | [Mutex] waiting for: [received:nodes:5b511823-4724-4761-b429-1f9cef189434:localhost] 2023-07-05 23:40:14 | [Mutex] received everything. 2023-07-05 23:40:14 | [Mutex] isItemNotified: received:node:5b511823-4724-4761-b429-1f9cef189434:localhost:node-369a1278-344a-45a5-bbf8-9355043d7645:Node 369a1278-344a-45a5-bbf8-9355043d7645 :: false 2023-07-05 23:40:14 | [Mutex] waiting for: [received:nodes:456195da-8685-43a5-9546-edba42b0ea5c:localhost] 2023-07-05 23:40:14 | [Mutex] received everything. 2023-07-05 23:40:14 | [Mutex] isItemNotified: received:node:456195da-8685-43a5-9546-edba42b0ea5c:localhost:node-369a1278-344a-45a5-bbf8-9355043d7645:Node 369a1278-344a-45a5-bbf8-9355043d7645 :: false |
publishItemsToNodes | 0.072s |
2023-07-05 23:40:12 |
2023-07-05 23:40:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-05 23:40:12 | ------------------------------------ 2023-07-05 23:40:12 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-369a1278-344a-45a5-bbf8-9355043d7645", "entry": "<test>item-6bb4ea63-e3d0-4815-8456-f3d2f18d83dd</test>", "item-id": "item-6bb4ea63-e3d0-4815-8456-f3d2f18d83dd" } 2023-07-05 23:40:12 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-6bb4ea63-e3d0-4815-8456-f3d2f18d83dd" } 2023-07-05 23:40:12 | [Mutex] waiting for: [published:item:notifieditem-6bb4ea63-e3d0-4815-8456-f3d2f18d83dd:admin@test-domain.com] 2023-07-05 23:40:12 | [Mutex] received everything. 2023-07-05 23:40:12 | [Mutex] isItemNotified: published:item:notifieditem-6bb4ea63-e3d0-4815-8456-f3d2f18d83dd:admin@test-domain.com :: true |
retractItemsFromNodes | 0.051s |
2023-07-05 23:40:12 |
2023-07-05 23:40:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-05 23:40:12 | ------------------------------------ 2023-07-05 23:40:12 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-369a1278-344a-45a5-bbf8-9355043d7645", "item-id": "item-6bb4ea63-e3d0-4815-8456-f3d2f18d83dd" } 2023-07-05 23:40:12 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-6bb4ea63-e3d0-4815-8456-f3d2f18d83dd" } 2023-07-05 23:40:12 | [Mutex] received everything. 2023-07-05 23:40:12 | [Mutex] isItemNotified: retracted:item:notifieditem-6bb4ea63-e3d0-4815-8456-f3d2f18d83dd:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.015s |
2023-07-05 23:40:12 |
2023-07-05 23:40:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-05 23:40:12 | ------------------------------------ 2023-07-05 23:40:12 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-369a1278-344a-45a5-bbf8-9355043d7645", "item-id": "item-6bb4ea63-e3d0-4815-8456-f3d2f18d83dd" } 2023-07-05 23:40:12 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-369a1278-344a-45a5-bbf8-9355043d7645", "item-id": "item-6bb4ea63-e3d0-4815-8456-f3d2f18d83dd", "item": [ "<item id=\"item-6bb4ea63-e3d0-4815-8456-f3d2f18d83dd\"><test>item-6bb4ea63-e3d0-4815-8456-f3d2f18d83dd</test></item>" ] } 2023-07-05 23:40:12 | [Mutex] notify: [retrieved:item:item-6bb4ea63-e3d0-4815-8456-f3d2f18d83dd:payload-matches:true:localhost] 2023-07-05 23:40:12 | [Mutex] received everything. 2023-07-05 23:40:12 | [Mutex] isItemNotified: retrieved:item:item-6bb4ea63-e3d0-4815-8456-f3d2f18d83dd:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.049s |
2023-07-05 23:40:12 |
2023-07-05 23:40:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-05 23:40:12 | ------------------------------------ 2023-07-05 23:40:12 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2023-07-05 23:40:12 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-369a1278-344a-45a5-bbf8-9355043d7645", "node-b5e920b4-3c17-48ce-8151-e6d9b6fe353d" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2023-07-05 23:40:12 |
2023-07-05 23:40:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-05 23:40:12 | ------------------------------------ 2023-07-05 23:40:12 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-369a1278-344a-45a5-bbf8-9355043d7645)" } 2023-07-05 23:40:12 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.011s |
2023-07-05 23:40:11 |
2023-07-05 23:40:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-05 23:40:11 | ------------------------------------ 2023-07-05 23:40:11 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-369a1278-344a-45a5-bbf8-9355043d7645", "jids": [ "admin@test-domain.com" ] } 2023-07-05 23:40:11 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.075s |
2023-07-05 23:40:12 |
2023-07-05 23:40:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-05 23:40:12 | ------------------------------------ 2023-07-05 23:40:12 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-369a1278-344a-45a5-bbf8-9355043d7645", "jids": [ "admin@test-domain.com" ] } 2023-07-05 23:40:12 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |