Test duration : 9.058s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.120s |
2022-02-14 22:02:51 |
2022-02-14 22:02:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-14 22:02:51 | ------------------------------------ 2022-02-14 22:02:51 | [Mutex] waiting for: [configured:node:node-ed34c0e7-11d2-4d2f-9f23-9335f806ba62:node-35d78eea-e19e-45d1-b79e-a929f906720e] 2022-02-14 22:02:52 | [Mutex] received everything. 2022-02-14 22:02:52 | [Mutex] isItemNotified: configured:node:node-ed34c0e7-11d2-4d2f-9f23-9335f806ba62:node-35d78eea-e19e-45d1-b79e-a929f906720e :: true 2022-02-14 22:02:53 | [Mutex] waiting for: [received:nodes:5bf96c10-f72c-4a9e-a466-02a293a92676:localhost] 2022-02-14 22:02:53 | [Mutex] waiting for: [received:nodes:5bf96c10-f72c-4a9e-a466-02a293a92676:localhost] 2022-02-14 22:02:53 | [Mutex] received everything. 2022-02-14 22:02:53 | [Mutex] isItemNotified: received:node:5bf96c10-f72c-4a9e-a466-02a293a92676:localhost:node-ed34c0e7-11d2-4d2f-9f23-9335f806ba62:Node ed34c0e7-11d2-4d2f-9f23-9335f806ba62 :: true 2022-02-14 22:02:53 | [Mutex] waiting for: [received:nodes:a297b395-e8c0-49be-82cf-58db13fad676:localhost] 2022-02-14 22:02:53 | [Mutex] received everything. 2022-02-14 22:02:53 | [Mutex] isItemNotified: received:node:a297b395-e8c0-49be-82cf-58db13fad676:localhost:node-ed34c0e7-11d2-4d2f-9f23-9335f806ba62:Node ed34c0e7-11d2-4d2f-9f23-9335f806ba62 :: false |
createNodes | 1.716s |
2022-02-14 22:02:49 |
2022-02-14 22:02:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-14 22:02:49 | ------------------------------------ 2022-02-14 22:02:49 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-ed34c0e7-11d2-4d2f-9f23-9335f806ba62", "pubsub#title": "Node ed34c0e7-11d2-4d2f-9f23-9335f806ba62" } 2022-02-14 22:02:49 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-14 22:02:50 | [Mutex] waiting for: [received:nodes:f32bdba1-595b-4f71-8163-09de38a5a41b:localhost] 2022-02-14 22:02:50 | [Mutex] waiting for: [received:nodes:f32bdba1-595b-4f71-8163-09de38a5a41b:localhost] 2022-02-14 22:02:50 | [Mutex] waiting for: [received:nodes:f32bdba1-595b-4f71-8163-09de38a5a41b:localhost] 2022-02-14 22:02:50 | [Mutex] received everything. 2022-02-14 22:02:50 | [Mutex] isItemNotified: received:node:f32bdba1-595b-4f71-8163-09de38a5a41b:localhost:node-ed34c0e7-11d2-4d2f-9f23-9335f806ba62:Node ed34c0e7-11d2-4d2f-9f23-9335f806ba62 :: true |
createSubnodes | 1.033s |
2022-02-14 22:02:50 |
2022-02-14 22:02:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-14 22:02:50 | ------------------------------------ 2022-02-14 22:02:50 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-35d78eea-e19e-45d1-b79e-a929f906720e", "pubsub#title": "Node 35d78eea-e19e-45d1-b79e-a929f906720e" } 2022-02-14 22:02:50 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-14 22:02:51 | [Mutex] waiting for: [received:nodes:0d0a7c2c-5c44-4065-abef-93ab13762f73:localhost] 2022-02-14 22:02:51 | [Mutex] waiting for: [received:nodes:0d0a7c2c-5c44-4065-abef-93ab13762f73:localhost] 2022-02-14 22:02:51 | [Mutex] received everything. 2022-02-14 22:02:51 | [Mutex] isItemNotified: received:node:0d0a7c2c-5c44-4065-abef-93ab13762f73:localhost:node-35d78eea-e19e-45d1-b79e-a929f906720e:Node 35d78eea-e19e-45d1-b79e-a929f906720e :: true |
deleteNodes | 1.034s |
2022-02-14 22:02:56 |
2022-02-14 22:02:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-14 22:02:56 | ------------------------------------ 2022-02-14 22:02:56 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-35d78eea-e19e-45d1-b79e-a929f906720e" } 2022-02-14 22:02:56 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-14 22:02:57 | [Mutex] waiting for: [received:nodes:aca5ca60-70f6-4f8e-89be-efb46846ddc2:localhost] 2022-02-14 22:02:57 | [Mutex] received everything. 2022-02-14 22:02:57 | [Mutex] isItemNotified: received:node:aca5ca60-70f6-4f8e-89be-efb46846ddc2:localhost:node-35d78eea-e19e-45d1-b79e-a929f906720e:Node 35d78eea-e19e-45d1-b79e-a929f906720e :: false |
deleteSubnodes | 1.032s |
2022-02-14 22:02:55 |
2022-02-14 22:02:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-14 22:02:55 | ------------------------------------ 2022-02-14 22:02:55 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-ed34c0e7-11d2-4d2f-9f23-9335f806ba62" } 2022-02-14 22:02:55 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-14 22:02:56 | [Mutex] waiting for: [received:nodes:03182bba-fee1-411e-812b-a34c1e2dc5ca:localhost] 2022-02-14 22:02:56 | [Mutex] received everything. 2022-02-14 22:02:56 | [Mutex] isItemNotified: received:node:03182bba-fee1-411e-812b-a34c1e2dc5ca:localhost:node-ed34c0e7-11d2-4d2f-9f23-9335f806ba62:Node ed34c0e7-11d2-4d2f-9f23-9335f806ba62 :: false 2022-02-14 22:02:56 | [Mutex] waiting for: [received:nodes:ce9c1264-0cfe-4572-a68c-18f25961c5c6:localhost] 2022-02-14 22:02:56 | [Mutex] received everything. 2022-02-14 22:02:56 | [Mutex] isItemNotified: received:node:ce9c1264-0cfe-4572-a68c-18f25961c5c6:localhost:node-ed34c0e7-11d2-4d2f-9f23-9335f806ba62:Node ed34c0e7-11d2-4d2f-9f23-9335f806ba62 :: false |
publishItemsToNodes | 0.057s |
2022-02-14 22:02:54 |
2022-02-14 22:02:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-14 22:02:54 | ------------------------------------ 2022-02-14 22:02:54 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-ed34c0e7-11d2-4d2f-9f23-9335f806ba62", "entry": "<test>item-df26aecd-7e5f-45f0-babe-42a1df96015b</test>", "item-id": "item-df26aecd-7e5f-45f0-babe-42a1df96015b" } 2022-02-14 22:02:54 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-df26aecd-7e5f-45f0-babe-42a1df96015b" } 2022-02-14 22:02:54 | [Mutex] waiting for: [published:item:notifieditem-df26aecd-7e5f-45f0-babe-42a1df96015b:admin@test-domain.com] 2022-02-14 22:02:54 | [Mutex] received everything. 2022-02-14 22:02:54 | [Mutex] isItemNotified: published:item:notifieditem-df26aecd-7e5f-45f0-babe-42a1df96015b:admin@test-domain.com :: true |
retractItemsFromNodes | 0.101s |
2022-02-14 22:02:54 |
2022-02-14 22:02:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-14 22:02:54 | ------------------------------------ 2022-02-14 22:02:54 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-ed34c0e7-11d2-4d2f-9f23-9335f806ba62", "item-id": "item-df26aecd-7e5f-45f0-babe-42a1df96015b" } 2022-02-14 22:02:54 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-df26aecd-7e5f-45f0-babe-42a1df96015b" } 2022-02-14 22:02:54 | [Mutex] waiting for: [retracted:item:notifieditem-df26aecd-7e5f-45f0-babe-42a1df96015b:admin@test-domain.com] 2022-02-14 22:02:54 | [Mutex] received everything. 2022-02-14 22:02:54 | [Mutex] isItemNotified: retracted:item:notifieditem-df26aecd-7e5f-45f0-babe-42a1df96015b:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.019s |
2022-02-14 22:02:54 |
2022-02-14 22:02:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-14 22:02:54 | ------------------------------------ 2022-02-14 22:02:54 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-ed34c0e7-11d2-4d2f-9f23-9335f806ba62", "item-id": "item-df26aecd-7e5f-45f0-babe-42a1df96015b" } 2022-02-14 22:02:54 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-ed34c0e7-11d2-4d2f-9f23-9335f806ba62", "item-id": "item-df26aecd-7e5f-45f0-babe-42a1df96015b", "item": [ "<item id=\"item-df26aecd-7e5f-45f0-babe-42a1df96015b\"><test>item-df26aecd-7e5f-45f0-babe-42a1df96015b</test></item>" ] } 2022-02-14 22:02:54 | [Mutex] notify: [retrieved:item:item-df26aecd-7e5f-45f0-babe-42a1df96015b:payload-matches:true:localhost] 2022-02-14 22:02:54 | [Mutex] received everything. 2022-02-14 22:02:54 | [Mutex] isItemNotified: retrieved:item:item-df26aecd-7e5f-45f0-babe-42a1df96015b:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.071s |
2022-02-14 22:02:54 |
2022-02-14 22:02:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-14 22:02:54 | ------------------------------------ 2022-02-14 22:02:54 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-02-14 22:02:54 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-ed34c0e7-11d2-4d2f-9f23-9335f806ba62", "node-35d78eea-e19e-45d1-b79e-a929f906720e" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2022-02-14 22:02:54 |
2022-02-14 22:02:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-14 22:02:54 | ------------------------------------ 2022-02-14 22:02:54 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-ed34c0e7-11d2-4d2f-9f23-9335f806ba62)" } 2022-02-14 22:02:54 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.012s |
2022-02-14 22:02:53 |
2022-02-14 22:02:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-14 22:02:53 | ------------------------------------ 2022-02-14 22:02:53 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-ed34c0e7-11d2-4d2f-9f23-9335f806ba62", "jids": [ "admin@test-domain.com" ] } 2022-02-14 22:02:53 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.053s |
2022-02-14 22:02:54 |
2022-02-14 22:02:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-14 22:02:54 | ------------------------------------ 2022-02-14 22:02:54 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-ed34c0e7-11d2-4d2f-9f23-9335f806ba62", "jids": [ "admin@test-domain.com" ] } 2022-02-14 22:02:54 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |