Test duration : 8.627s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.148s |
2023-02-27 21:29:25 |
2023-02-27 21:29:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-02-27 21:29:25 | ------------------------------------ 2023-02-27 21:29:25 | [Mutex] waiting for: [configured:node:node-0e4dc6ee-efb3-447f-ba3e-39dbdbf56c75:node-f68aaa67-a856-4643-88b5-6a3d42eb2919] 2023-02-27 21:29:25 | [Mutex] received everything. 2023-02-27 21:29:25 | [Mutex] isItemNotified: configured:node:node-0e4dc6ee-efb3-447f-ba3e-39dbdbf56c75:node-f68aaa67-a856-4643-88b5-6a3d42eb2919 :: true 2023-02-27 21:29:26 | [Mutex] waiting for: [received:nodes:2fb9f1c2-0bfa-4944-b34c-74661275e4d6:localhost] 2023-02-27 21:29:26 | [Mutex] received everything. 2023-02-27 21:29:26 | [Mutex] isItemNotified: received:node:2fb9f1c2-0bfa-4944-b34c-74661275e4d6:localhost:node-0e4dc6ee-efb3-447f-ba3e-39dbdbf56c75:Node 0e4dc6ee-efb3-447f-ba3e-39dbdbf56c75 :: true 2023-02-27 21:29:26 | [Mutex] waiting for: [received:nodes:970db36a-6746-465a-9745-ab4e55bb19bc:localhost] 2023-02-27 21:29:26 | [Mutex] waiting for: [received:nodes:970db36a-6746-465a-9745-ab4e55bb19bc:localhost] 2023-02-27 21:29:26 | [Mutex] received everything. 2023-02-27 21:29:26 | [Mutex] isItemNotified: received:node:970db36a-6746-465a-9745-ab4e55bb19bc:localhost:node-0e4dc6ee-efb3-447f-ba3e-39dbdbf56c75:Node 0e4dc6ee-efb3-447f-ba3e-39dbdbf56c75 :: false |
createNodes | 1.559s |
2023-02-27 21:29:23 |
2023-02-27 21:29:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-02-27 21:29:23 | ------------------------------------ 2023-02-27 21:29:23 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-0e4dc6ee-efb3-447f-ba3e-39dbdbf56c75", "pubsub#title": "Node 0e4dc6ee-efb3-447f-ba3e-39dbdbf56c75" } 2023-02-27 21:29:23 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2023-02-27 21:29:24 | [Mutex] waiting for: [received:nodes:3466c2fe-ffc4-43b2-a29f-47e88a46d624:localhost] 2023-02-27 21:29:24 | [Mutex] received everything. 2023-02-27 21:29:24 | [Mutex] isItemNotified: received:node:3466c2fe-ffc4-43b2-a29f-47e88a46d624:localhost:node-0e4dc6ee-efb3-447f-ba3e-39dbdbf56c75:Node 0e4dc6ee-efb3-447f-ba3e-39dbdbf56c75 :: true |
createSubnodes | 1.024s |
2023-02-27 21:29:24 |
2023-02-27 21:29:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-02-27 21:29:24 | ------------------------------------ 2023-02-27 21:29:24 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-f68aaa67-a856-4643-88b5-6a3d42eb2919", "pubsub#title": "Node f68aaa67-a856-4643-88b5-6a3d42eb2919" } 2023-02-27 21:29:24 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2023-02-27 21:29:25 | [Mutex] waiting for: [received:nodes:c581dea7-273e-431b-8bb9-fd18acf532fd:localhost] 2023-02-27 21:29:25 | [Mutex] waiting for: [received:nodes:c581dea7-273e-431b-8bb9-fd18acf532fd:localhost] 2023-02-27 21:29:25 | [Mutex] received everything. 2023-02-27 21:29:25 | [Mutex] isItemNotified: received:node:c581dea7-273e-431b-8bb9-fd18acf532fd:localhost:node-f68aaa67-a856-4643-88b5-6a3d42eb2919:Node f68aaa67-a856-4643-88b5-6a3d42eb2919 :: true |
deleteNodes | 1.020s |
2023-02-27 21:29:30 |
2023-02-27 21:29:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-02-27 21:29:30 | ------------------------------------ 2023-02-27 21:29:30 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-f68aaa67-a856-4643-88b5-6a3d42eb2919" } 2023-02-27 21:29:30 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2023-02-27 21:29:31 | [Mutex] waiting for: [received:nodes:cea8dddf-57aa-45bc-a119-9ccbd72e0256:localhost] 2023-02-27 21:29:31 | [Mutex] waiting for: [received:nodes:cea8dddf-57aa-45bc-a119-9ccbd72e0256:localhost] 2023-02-27 21:29:31 | [Mutex] waiting for: [received:nodes:cea8dddf-57aa-45bc-a119-9ccbd72e0256:localhost] 2023-02-27 21:29:31 | [Mutex] received everything. 2023-02-27 21:29:31 | [Mutex] isItemNotified: received:node:cea8dddf-57aa-45bc-a119-9ccbd72e0256:localhost:node-f68aaa67-a856-4643-88b5-6a3d42eb2919:Node f68aaa67-a856-4643-88b5-6a3d42eb2919 :: false |
deleteSubnodes | 1.030s |
2023-02-27 21:29:29 |
2023-02-27 21:29:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-02-27 21:29:29 | ------------------------------------ 2023-02-27 21:29:29 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-0e4dc6ee-efb3-447f-ba3e-39dbdbf56c75" } 2023-02-27 21:29:29 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2023-02-27 21:29:30 | [Mutex] waiting for: [received:nodes:2d737fd0-dcf7-41a8-8217-02ed8da5c3a8:localhost] 2023-02-27 21:29:30 | [Mutex] received everything. 2023-02-27 21:29:30 | [Mutex] isItemNotified: received:node:2d737fd0-dcf7-41a8-8217-02ed8da5c3a8:localhost:node-0e4dc6ee-efb3-447f-ba3e-39dbdbf56c75:Node 0e4dc6ee-efb3-447f-ba3e-39dbdbf56c75 :: false 2023-02-27 21:29:30 | [Mutex] waiting for: [received:nodes:8b7c4027-eb84-4cc0-bc77-c68f0dc05d34:localhost] 2023-02-27 21:29:30 | [Mutex] received everything. 2023-02-27 21:29:30 | [Mutex] isItemNotified: received:node:8b7c4027-eb84-4cc0-bc77-c68f0dc05d34:localhost:node-0e4dc6ee-efb3-447f-ba3e-39dbdbf56c75:Node 0e4dc6ee-efb3-447f-ba3e-39dbdbf56c75 :: false |
publishItemsToNodes | 0.051s |
2023-02-27 21:29:27 |
2023-02-27 21:29:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-02-27 21:29:27 | ------------------------------------ 2023-02-27 21:29:27 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-0e4dc6ee-efb3-447f-ba3e-39dbdbf56c75", "entry": "<test>item-6f9b9ca1-bb5a-4d6a-94bc-767563582e29</test>", "item-id": "item-6f9b9ca1-bb5a-4d6a-94bc-767563582e29" } 2023-02-27 21:29:27 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-6f9b9ca1-bb5a-4d6a-94bc-767563582e29" } 2023-02-27 21:29:27 | [Mutex] waiting for: [published:item:notifieditem-6f9b9ca1-bb5a-4d6a-94bc-767563582e29:admin@test-domain.com] 2023-02-27 21:29:27 | [Mutex] received everything. 2023-02-27 21:29:27 | [Mutex] isItemNotified: published:item:notifieditem-6f9b9ca1-bb5a-4d6a-94bc-767563582e29:admin@test-domain.com :: true |
retractItemsFromNodes | 0.065s |
2023-02-27 21:29:28 |
2023-02-27 21:29:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-02-27 21:29:28 | ------------------------------------ 2023-02-27 21:29:28 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-0e4dc6ee-efb3-447f-ba3e-39dbdbf56c75", "item-id": "item-6f9b9ca1-bb5a-4d6a-94bc-767563582e29" } 2023-02-27 21:29:28 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-6f9b9ca1-bb5a-4d6a-94bc-767563582e29" } 2023-02-27 21:29:28 | [Mutex] received everything. 2023-02-27 21:29:28 | [Mutex] isItemNotified: retracted:item:notifieditem-6f9b9ca1-bb5a-4d6a-94bc-767563582e29:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.083s |
2023-02-27 21:29:27 |
2023-02-27 21:29:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-02-27 21:29:27 | ------------------------------------ 2023-02-27 21:29:27 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-0e4dc6ee-efb3-447f-ba3e-39dbdbf56c75", "item-id": "item-6f9b9ca1-bb5a-4d6a-94bc-767563582e29" } 2023-02-27 21:29:27 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-0e4dc6ee-efb3-447f-ba3e-39dbdbf56c75", "item-id": "item-6f9b9ca1-bb5a-4d6a-94bc-767563582e29", "item": [ "<item id=\"item-6f9b9ca1-bb5a-4d6a-94bc-767563582e29\"><test>item-6f9b9ca1-bb5a-4d6a-94bc-767563582e29</test></item>" ] } 2023-02-27 21:29:27 | [Mutex] notify: [retrieved:item:item-6f9b9ca1-bb5a-4d6a-94bc-767563582e29:payload-matches:true:localhost] 2023-02-27 21:29:27 | [Mutex] received everything. 2023-02-27 21:29:27 | [Mutex] isItemNotified: retrieved:item:item-6f9b9ca1-bb5a-4d6a-94bc-767563582e29:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.047s |
2023-02-27 21:29:27 |
2023-02-27 21:29:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-02-27 21:29:27 | ------------------------------------ 2023-02-27 21:29:27 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2023-02-27 21:29:27 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-0e4dc6ee-efb3-447f-ba3e-39dbdbf56c75", "node-f68aaa67-a856-4643-88b5-6a3d42eb2919" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2023-02-27 21:29:27 |
2023-02-27 21:29:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-02-27 21:29:27 | ------------------------------------ 2023-02-27 21:29:27 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-0e4dc6ee-efb3-447f-ba3e-39dbdbf56c75)" } 2023-02-27 21:29:28 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.010s |
2023-02-27 21:29:26 |
2023-02-27 21:29:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-02-27 21:29:26 | ------------------------------------ 2023-02-27 21:29:26 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-0e4dc6ee-efb3-447f-ba3e-39dbdbf56c75", "jids": [ "admin@test-domain.com" ] } 2023-02-27 21:29:26 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.056s |
2023-02-27 21:29:28 |
2023-02-27 21:29:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-02-27 21:29:28 | ------------------------------------ 2023-02-27 21:29:28 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-0e4dc6ee-efb3-447f-ba3e-39dbdbf56c75", "jids": [ "admin@test-domain.com" ] } 2023-02-27 21:29:28 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |