Test duration : 8.684s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.114s |
2022-09-27 23:02:43 |
2022-09-27 23:02:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-27 23:02:43 | ------------------------------------ 2022-09-27 23:02:43 | [Mutex] waiting for: [configured:node:node-ae7105b6-f52c-40ba-9d1a-0a3c1c74e630:node-758ec920-f8ab-4500-ab99-d85a1a2e3a00] 2022-09-27 23:02:43 | [Mutex] received everything. 2022-09-27 23:02:43 | [Mutex] isItemNotified: configured:node:node-ae7105b6-f52c-40ba-9d1a-0a3c1c74e630:node-758ec920-f8ab-4500-ab99-d85a1a2e3a00 :: true 2022-09-27 23:02:44 | [Mutex] waiting for: [received:nodes:a99500ec-0e6c-438f-9f34-04f64592cb8c:localhost] 2022-09-27 23:02:44 | [Mutex] received everything. 2022-09-27 23:02:44 | [Mutex] isItemNotified: received:node:a99500ec-0e6c-438f-9f34-04f64592cb8c:localhost:node-ae7105b6-f52c-40ba-9d1a-0a3c1c74e630:Node ae7105b6-f52c-40ba-9d1a-0a3c1c74e630 :: true 2022-09-27 23:02:44 | [Mutex] waiting for: [received:nodes:6914f16a-bc05-4cb4-a115-d2cefe810695:localhost] 2022-09-27 23:02:44 | [Mutex] received everything. 2022-09-27 23:02:44 | [Mutex] isItemNotified: received:node:6914f16a-bc05-4cb4-a115-d2cefe810695:localhost:node-ae7105b6-f52c-40ba-9d1a-0a3c1c74e630:Node ae7105b6-f52c-40ba-9d1a-0a3c1c74e630 :: false |
createNodes | 1.594s |
2022-09-27 23:02:40 |
2022-09-27 23:02:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-27 23:02:40 | ------------------------------------ 2022-09-27 23:02:41 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-ae7105b6-f52c-40ba-9d1a-0a3c1c74e630", "pubsub#title": "Node ae7105b6-f52c-40ba-9d1a-0a3c1c74e630" } 2022-09-27 23:02:41 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-09-27 23:02:42 | [Mutex] waiting for: [received:nodes:702aee8e-d5c6-4ef5-8bf0-4adbaf4c89a7:localhost] 2022-09-27 23:02:42 | [Mutex] received everything. 2022-09-27 23:02:42 | [Mutex] isItemNotified: received:node:702aee8e-d5c6-4ef5-8bf0-4adbaf4c89a7:localhost:node-ae7105b6-f52c-40ba-9d1a-0a3c1c74e630:Node ae7105b6-f52c-40ba-9d1a-0a3c1c74e630 :: true |
createSubnodes | 1.022s |
2022-09-27 23:02:42 |
2022-09-27 23:02:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-27 23:02:42 | ------------------------------------ 2022-09-27 23:02:42 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-758ec920-f8ab-4500-ab99-d85a1a2e3a00", "pubsub#title": "Node 758ec920-f8ab-4500-ab99-d85a1a2e3a00" } 2022-09-27 23:02:42 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-09-27 23:02:43 | [Mutex] waiting for: [received:nodes:50af2568-766b-4d4c-bc7e-e0bf20b4a9d4:localhost] 2022-09-27 23:02:43 | [Mutex] received everything. 2022-09-27 23:02:43 | [Mutex] isItemNotified: received:node:50af2568-766b-4d4c-bc7e-e0bf20b4a9d4:localhost:node-758ec920-f8ab-4500-ab99-d85a1a2e3a00:Node 758ec920-f8ab-4500-ab99-d85a1a2e3a00 :: true |
deleteNodes | 1.026s |
2022-09-27 23:02:47 |
2022-09-27 23:02:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-27 23:02:47 | ------------------------------------ 2022-09-27 23:02:47 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-758ec920-f8ab-4500-ab99-d85a1a2e3a00" } 2022-09-27 23:02:47 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-09-27 23:02:49 | [Mutex] waiting for: [received:nodes:0c6c375f-c302-45b0-9dc3-fc94e0a2c369:localhost] 2022-09-27 23:02:49 | [Mutex] waiting for: [received:nodes:0c6c375f-c302-45b0-9dc3-fc94e0a2c369:localhost] 2022-09-27 23:02:49 | [Mutex] received everything. 2022-09-27 23:02:49 | [Mutex] isItemNotified: received:node:0c6c375f-c302-45b0-9dc3-fc94e0a2c369:localhost:node-758ec920-f8ab-4500-ab99-d85a1a2e3a00:Node 758ec920-f8ab-4500-ab99-d85a1a2e3a00 :: false |
deleteSubnodes | 1.030s |
2022-09-27 23:02:46 |
2022-09-27 23:02:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-27 23:02:46 | ------------------------------------ 2022-09-27 23:02:46 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-ae7105b6-f52c-40ba-9d1a-0a3c1c74e630" } 2022-09-27 23:02:46 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-09-27 23:02:47 | [Mutex] waiting for: [received:nodes:356aa14c-5b4a-48ac-88ee-249ccb6f4277:localhost] 2022-09-27 23:02:47 | [Mutex] received everything. 2022-09-27 23:02:47 | [Mutex] isItemNotified: received:node:356aa14c-5b4a-48ac-88ee-249ccb6f4277:localhost:node-ae7105b6-f52c-40ba-9d1a-0a3c1c74e630:Node ae7105b6-f52c-40ba-9d1a-0a3c1c74e630 :: false 2022-09-27 23:02:47 | [Mutex] waiting for: [received:nodes:dfddf1d2-d6c2-4c63-98b1-fc040b3deb50:localhost] 2022-09-27 23:02:47 | [Mutex] received everything. 2022-09-27 23:02:47 | [Mutex] isItemNotified: received:node:dfddf1d2-d6c2-4c63-98b1-fc040b3deb50:localhost:node-ae7105b6-f52c-40ba-9d1a-0a3c1c74e630:Node ae7105b6-f52c-40ba-9d1a-0a3c1c74e630 :: false |
publishItemsToNodes | 0.041s |
2022-09-27 23:02:45 |
2022-09-27 23:02:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-27 23:02:45 | ------------------------------------ 2022-09-27 23:02:45 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-ae7105b6-f52c-40ba-9d1a-0a3c1c74e630", "entry": "<test>item-89de39e5-ba1f-44ac-82d1-d9a89f126d76</test>", "item-id": "item-89de39e5-ba1f-44ac-82d1-d9a89f126d76" } 2022-09-27 23:02:45 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-89de39e5-ba1f-44ac-82d1-d9a89f126d76" } 2022-09-27 23:02:45 | [Mutex] waiting for: [published:item:notifieditem-89de39e5-ba1f-44ac-82d1-d9a89f126d76:admin@test-domain.com] 2022-09-27 23:02:45 | [Mutex] received everything. 2022-09-27 23:02:45 | [Mutex] isItemNotified: published:item:notifieditem-89de39e5-ba1f-44ac-82d1-d9a89f126d76:admin@test-domain.com :: true |
retractItemsFromNodes | 0.055s |
2022-09-27 23:02:45 |
2022-09-27 23:02:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-27 23:02:45 | ------------------------------------ 2022-09-27 23:02:45 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-ae7105b6-f52c-40ba-9d1a-0a3c1c74e630", "item-id": "item-89de39e5-ba1f-44ac-82d1-d9a89f126d76" } 2022-09-27 23:02:45 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-89de39e5-ba1f-44ac-82d1-d9a89f126d76" } 2022-09-27 23:02:45 | [Mutex] received everything. 2022-09-27 23:02:45 | [Mutex] isItemNotified: retracted:item:notifieditem-89de39e5-ba1f-44ac-82d1-d9a89f126d76:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.095s |
2022-09-27 23:02:45 |
2022-09-27 23:02:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-27 23:02:45 | ------------------------------------ 2022-09-27 23:02:45 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-ae7105b6-f52c-40ba-9d1a-0a3c1c74e630", "item-id": "item-89de39e5-ba1f-44ac-82d1-d9a89f126d76" } 2022-09-27 23:02:45 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-ae7105b6-f52c-40ba-9d1a-0a3c1c74e630", "item-id": "item-89de39e5-ba1f-44ac-82d1-d9a89f126d76", "item": [ "<item id=\"item-89de39e5-ba1f-44ac-82d1-d9a89f126d76\"><test>item-89de39e5-ba1f-44ac-82d1-d9a89f126d76</test></item>" ] } 2022-09-27 23:02:45 | [Mutex] notify: [retrieved:item:item-89de39e5-ba1f-44ac-82d1-d9a89f126d76:payload-matches:true:localhost] 2022-09-27 23:02:45 | [Mutex] received everything. 2022-09-27 23:02:45 | [Mutex] isItemNotified: retrieved:item:item-89de39e5-ba1f-44ac-82d1-d9a89f126d76:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.046s |
2022-09-27 23:02:45 |
2022-09-27 23:02:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-27 23:02:45 | ------------------------------------ 2022-09-27 23:02:45 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-09-27 23:02:45 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-758ec920-f8ab-4500-ab99-d85a1a2e3a00", "test", "node-ae7105b6-f52c-40ba-9d1a-0a3c1c74e630" ] } |
retrieveUserSubscriptionsWithRegex | 0.048s |
2022-09-27 23:02:45 |
2022-09-27 23:02:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-27 23:02:45 | ------------------------------------ 2022-09-27 23:02:45 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-ae7105b6-f52c-40ba-9d1a-0a3c1c74e630)" } 2022-09-27 23:02:45 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.010s |
2022-09-27 23:02:44 |
2022-09-27 23:02:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-27 23:02:44 | ------------------------------------ 2022-09-27 23:02:44 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-ae7105b6-f52c-40ba-9d1a-0a3c1c74e630", "jids": [ "admin@test-domain.com" ] } 2022-09-27 23:02:44 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.054s |
2022-09-27 23:02:45 |
2022-09-27 23:02:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-27 23:02:45 | ------------------------------------ 2022-09-27 23:02:45 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-ae7105b6-f52c-40ba-9d1a-0a3c1c74e630", "jids": [ "admin@test-domain.com" ] } 2022-09-27 23:02:45 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |