Test duration : 8.989s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.096s |
2020-10-09 23:03:26 |
2020-10-09 23:03:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-09 23:03:26 | ------------------------------------ 2020-10-09 23:03:26 | [Mutex] waiting for: [configured:node:node-deaad1e0-050b-42ac-b3da-125c73bf2d22:node-43e33f47-40f5-43f6-a52b-012e9666b6f8] 2020-10-09 23:03:26 | [Mutex] received everything. 2020-10-09 23:03:26 | [Mutex] isItemNotified: configured:node:node-deaad1e0-050b-42ac-b3da-125c73bf2d22:node-43e33f47-40f5-43f6-a52b-012e9666b6f8 :: true 2020-10-09 23:03:27 | [Mutex] waiting for: [received:nodes:60fe13da-9e4e-4044-b460-24eaa2fbc59c:localhost] 2020-10-09 23:03:27 | [Mutex] received everything. 2020-10-09 23:03:27 | [Mutex] isItemNotified: received:node:60fe13da-9e4e-4044-b460-24eaa2fbc59c:localhost:node-deaad1e0-050b-42ac-b3da-125c73bf2d22:Node deaad1e0-050b-42ac-b3da-125c73bf2d22 :: true 2020-10-09 23:03:27 | [Mutex] waiting for: [received:nodes:8513d8c9-9a23-4586-879f-7a52c2d40b49:localhost] 2020-10-09 23:03:27 | [Mutex] waiting for: [received:nodes:8513d8c9-9a23-4586-879f-7a52c2d40b49:localhost] 2020-10-09 23:03:27 | [Mutex] waiting for: [received:nodes:8513d8c9-9a23-4586-879f-7a52c2d40b49:localhost] 2020-10-09 23:03:27 | [Mutex] received everything. 2020-10-09 23:03:27 | [Mutex] isItemNotified: received:node:8513d8c9-9a23-4586-879f-7a52c2d40b49:localhost:node-deaad1e0-050b-42ac-b3da-125c73bf2d22:Node deaad1e0-050b-42ac-b3da-125c73bf2d22 :: false |
createNodes | 1.550s |
2020-10-09 23:03:23 |
2020-10-09 23:03:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-09 23:03:23 | ------------------------------------ 2020-10-09 23:03:24 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-deaad1e0-050b-42ac-b3da-125c73bf2d22", "pubsub#title": "Node deaad1e0-050b-42ac-b3da-125c73bf2d22" } 2020-10-09 23:03:24 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-10-09 23:03:25 | [Mutex] waiting for: [received:nodes:86a07f86-28b0-48d6-8c3c-b36f18a9fc59:localhost] 2020-10-09 23:03:25 | [Mutex] received everything. 2020-10-09 23:03:25 | [Mutex] isItemNotified: received:node:86a07f86-28b0-48d6-8c3c-b36f18a9fc59:localhost:node-deaad1e0-050b-42ac-b3da-125c73bf2d22:Node deaad1e0-050b-42ac-b3da-125c73bf2d22 :: true |
createSubnodes | 1.043s |
2020-10-09 23:03:25 |
2020-10-09 23:03:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-09 23:03:25 | ------------------------------------ 2020-10-09 23:03:25 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-43e33f47-40f5-43f6-a52b-012e9666b6f8", "pubsub#title": "Node 43e33f47-40f5-43f6-a52b-012e9666b6f8" } 2020-10-09 23:03:25 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-10-09 23:03:26 | [Mutex] waiting for: [received:nodes:91f56108-82ab-4a43-be3b-9dfdef1926c5:localhost] 2020-10-09 23:03:26 | [Mutex] received everything. 2020-10-09 23:03:26 | [Mutex] isItemNotified: received:node:91f56108-82ab-4a43-be3b-9dfdef1926c5:localhost:node-43e33f47-40f5-43f6-a52b-012e9666b6f8:Node 43e33f47-40f5-43f6-a52b-012e9666b6f8 :: true |
deleteNodes | 1.032s |
2020-10-09 23:03:30 |
2020-10-09 23:03:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-09 23:03:30 | ------------------------------------ 2020-10-09 23:03:30 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-43e33f47-40f5-43f6-a52b-012e9666b6f8" } 2020-10-09 23:03:30 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-10-09 23:03:31 | [Mutex] waiting for: [received:nodes:59b43842-2924-4caa-a50e-8be682e65999:localhost] 2020-10-09 23:03:31 | [Mutex] received everything. 2020-10-09 23:03:31 | [Mutex] isItemNotified: received:node:59b43842-2924-4caa-a50e-8be682e65999:localhost:node-43e33f47-40f5-43f6-a52b-012e9666b6f8:Node 43e33f47-40f5-43f6-a52b-012e9666b6f8 :: false |
deleteSubnodes | 1.027s |
2020-10-09 23:03:29 |
2020-10-09 23:03:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-09 23:03:29 | ------------------------------------ 2020-10-09 23:03:29 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-deaad1e0-050b-42ac-b3da-125c73bf2d22" } 2020-10-09 23:03:29 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-10-09 23:03:30 | [Mutex] waiting for: [received:nodes:6aa3eac7-a78e-45c0-93c7-5a8d89cb1ae7:localhost] 2020-10-09 23:03:30 | [Mutex] waiting for: [received:nodes:6aa3eac7-a78e-45c0-93c7-5a8d89cb1ae7:localhost] 2020-10-09 23:03:30 | [Mutex] received everything. 2020-10-09 23:03:30 | [Mutex] isItemNotified: received:node:6aa3eac7-a78e-45c0-93c7-5a8d89cb1ae7:localhost:node-deaad1e0-050b-42ac-b3da-125c73bf2d22:Node deaad1e0-050b-42ac-b3da-125c73bf2d22 :: false 2020-10-09 23:03:30 | [Mutex] waiting for: [received:nodes:244245fb-c57e-4d00-a482-548d29052f96:localhost] 2020-10-09 23:03:30 | [Mutex] received everything. 2020-10-09 23:03:30 | [Mutex] isItemNotified: received:node:244245fb-c57e-4d00-a482-548d29052f96:localhost:node-deaad1e0-050b-42ac-b3da-125c73bf2d22:Node deaad1e0-050b-42ac-b3da-125c73bf2d22 :: false |
publishItemsToNodes | 0.049s |
2020-10-09 23:03:28 |
2020-10-09 23:03:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-09 23:03:28 | ------------------------------------ 2020-10-09 23:03:28 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-deaad1e0-050b-42ac-b3da-125c73bf2d22", "entry": "<test>item-dacb85c5-3def-42dc-85b5-dc646d733a30</test>", "item-id": "item-dacb85c5-3def-42dc-85b5-dc646d733a30" } 2020-10-09 23:03:28 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-dacb85c5-3def-42dc-85b5-dc646d733a30" } 2020-10-09 23:03:28 | [Mutex] waiting for: [published:item:notifieditem-dacb85c5-3def-42dc-85b5-dc646d733a30:admin@test-domain.com] 2020-10-09 23:03:28 | [Mutex] received everything. 2020-10-09 23:03:28 | [Mutex] isItemNotified: published:item:notifieditem-dacb85c5-3def-42dc-85b5-dc646d733a30:admin@test-domain.com :: true |
retractItemsFromNodes | 0.072s |
2020-10-09 23:03:28 |
2020-10-09 23:03:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-09 23:03:28 | ------------------------------------ 2020-10-09 23:03:28 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-deaad1e0-050b-42ac-b3da-125c73bf2d22", "item-id": "item-dacb85c5-3def-42dc-85b5-dc646d733a30" } 2020-10-09 23:03:28 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-dacb85c5-3def-42dc-85b5-dc646d733a30" } 2020-10-09 23:03:28 | [Mutex] received everything. 2020-10-09 23:03:28 | [Mutex] isItemNotified: retracted:item:notifieditem-dacb85c5-3def-42dc-85b5-dc646d733a30:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.026s |
2020-10-09 23:03:28 |
2020-10-09 23:03:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-09 23:03:28 | ------------------------------------ 2020-10-09 23:03:28 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-deaad1e0-050b-42ac-b3da-125c73bf2d22", "item-id": "item-dacb85c5-3def-42dc-85b5-dc646d733a30" } 2020-10-09 23:03:28 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-deaad1e0-050b-42ac-b3da-125c73bf2d22", "item-id": "item-dacb85c5-3def-42dc-85b5-dc646d733a30", "item": [ "<item id=\"item-dacb85c5-3def-42dc-85b5-dc646d733a30\"><test>item-dacb85c5-3def-42dc-85b5-dc646d733a30</test></item>" ] } 2020-10-09 23:03:28 | [Mutex] notify: [retrieved:item:item-dacb85c5-3def-42dc-85b5-dc646d733a30:payload-matches:true:localhost] 2020-10-09 23:03:28 | [Mutex] received everything. 2020-10-09 23:03:28 | [Mutex] isItemNotified: retrieved:item:item-dacb85c5-3def-42dc-85b5-dc646d733a30:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.089s |
2020-10-09 23:03:28 |
2020-10-09 23:03:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-09 23:03:28 | ------------------------------------ 2020-10-09 23:03:28 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-10-09 23:03:28 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-43e33f47-40f5-43f6-a52b-012e9666b6f8", "node-deaad1e0-050b-42ac-b3da-125c73bf2d22" ] } |
retrieveUserSubscriptionsWithRegex | 0.056s |
2020-10-09 23:03:28 |
2020-10-09 23:03:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-09 23:03:28 | ------------------------------------ 2020-10-09 23:03:28 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-deaad1e0-050b-42ac-b3da-125c73bf2d22)" } 2020-10-09 23:03:28 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.011s |
2020-10-09 23:03:27 |
2020-10-09 23:03:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-09 23:03:27 | ------------------------------------ 2020-10-09 23:03:27 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-deaad1e0-050b-42ac-b3da-125c73bf2d22", "jids": [ "admin@test-domain.com" ] } 2020-10-09 23:03:27 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.064s |
2020-10-09 23:03:28 |
2020-10-09 23:03:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-09 23:03:28 | ------------------------------------ 2020-10-09 23:03:28 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-deaad1e0-050b-42ac-b3da-125c73bf2d22", "jids": [ "admin@test-domain.com" ] } 2020-10-09 23:03:28 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |