Test duration : 8.742s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.090s |
2022-06-25 22:53:10 |
2022-06-25 22:53:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-25 22:53:10 | ------------------------------------ 2022-06-25 22:53:10 | [Mutex] waiting for: [configured:node:node-b7d22613-60e2-49ff-bb1f-7960afd26c37:node-c9e6aa32-d445-44b3-93f8-159a890f4793] 2022-06-25 22:53:10 | [Mutex] received everything. 2022-06-25 22:53:10 | [Mutex] isItemNotified: configured:node:node-b7d22613-60e2-49ff-bb1f-7960afd26c37:node-c9e6aa32-d445-44b3-93f8-159a890f4793 :: true 2022-06-25 22:53:11 | [Mutex] waiting for: [received:nodes:c29155eb-a358-46b3-b90e-095d922f0805:localhost] 2022-06-25 22:53:11 | [Mutex] received everything. 2022-06-25 22:53:11 | [Mutex] isItemNotified: received:node:c29155eb-a358-46b3-b90e-095d922f0805:localhost:node-b7d22613-60e2-49ff-bb1f-7960afd26c37:Node b7d22613-60e2-49ff-bb1f-7960afd26c37 :: true 2022-06-25 22:53:11 | [Mutex] waiting for: [received:nodes:ef915451-a639-4ec3-bf3e-028a887a18a3:localhost] 2022-06-25 22:53:11 | [Mutex] waiting for: [received:nodes:ef915451-a639-4ec3-bf3e-028a887a18a3:localhost] 2022-06-25 22:53:11 | [Mutex] received everything. 2022-06-25 22:53:11 | [Mutex] isItemNotified: received:node:ef915451-a639-4ec3-bf3e-028a887a18a3:localhost:node-b7d22613-60e2-49ff-bb1f-7960afd26c37:Node b7d22613-60e2-49ff-bb1f-7960afd26c37 :: false |
createNodes | 1.650s |
2022-06-25 22:53:07 |
2022-06-25 22:53:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-25 22:53:07 | ------------------------------------ 2022-06-25 22:53:08 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-b7d22613-60e2-49ff-bb1f-7960afd26c37", "pubsub#title": "Node b7d22613-60e2-49ff-bb1f-7960afd26c37" } 2022-06-25 22:53:08 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-06-25 22:53:09 | [Mutex] waiting for: [received:nodes:08ae8747-02f6-4ac5-b552-7dce280a1ee8:localhost] 2022-06-25 22:53:09 | [Mutex] received everything. 2022-06-25 22:53:09 | [Mutex] isItemNotified: received:node:08ae8747-02f6-4ac5-b552-7dce280a1ee8:localhost:node-b7d22613-60e2-49ff-bb1f-7960afd26c37:Node b7d22613-60e2-49ff-bb1f-7960afd26c37 :: true |
createSubnodes | 1.040s |
2022-06-25 22:53:09 |
2022-06-25 22:53:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-25 22:53:09 | ------------------------------------ 2022-06-25 22:53:09 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-c9e6aa32-d445-44b3-93f8-159a890f4793", "pubsub#title": "Node c9e6aa32-d445-44b3-93f8-159a890f4793" } 2022-06-25 22:53:09 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-06-25 22:53:10 | [Mutex] waiting for: [received:nodes:ba86572f-cbe1-4eb6-a26f-35c59b8cb60b:localhost] 2022-06-25 22:53:10 | [Mutex] waiting for: [received:nodes:ba86572f-cbe1-4eb6-a26f-35c59b8cb60b:localhost] 2022-06-25 22:53:10 | [Mutex] received everything. 2022-06-25 22:53:10 | [Mutex] isItemNotified: received:node:ba86572f-cbe1-4eb6-a26f-35c59b8cb60b:localhost:node-c9e6aa32-d445-44b3-93f8-159a890f4793:Node c9e6aa32-d445-44b3-93f8-159a890f4793 :: true |
deleteNodes | 1.035s |
2022-06-25 22:53:14 |
2022-06-25 22:53:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-25 22:53:14 | ------------------------------------ 2022-06-25 22:53:14 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-c9e6aa32-d445-44b3-93f8-159a890f4793" } 2022-06-25 22:53:14 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-06-25 22:53:15 | [Mutex] waiting for: [received:nodes:0d4281e8-8f87-4576-ad4d-2d89f9cabe39:localhost] 2022-06-25 22:53:15 | [Mutex] waiting for: [received:nodes:0d4281e8-8f87-4576-ad4d-2d89f9cabe39:localhost] 2022-06-25 22:53:15 | [Mutex] waiting for: [received:nodes:0d4281e8-8f87-4576-ad4d-2d89f9cabe39:localhost] 2022-06-25 22:53:15 | [Mutex] received everything. 2022-06-25 22:53:15 | [Mutex] isItemNotified: received:node:0d4281e8-8f87-4576-ad4d-2d89f9cabe39:localhost:node-c9e6aa32-d445-44b3-93f8-159a890f4793:Node c9e6aa32-d445-44b3-93f8-159a890f4793 :: false |
deleteSubnodes | 1.028s |
2022-06-25 22:53:13 |
2022-06-25 22:53:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-25 22:53:13 | ------------------------------------ 2022-06-25 22:53:13 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-b7d22613-60e2-49ff-bb1f-7960afd26c37" } 2022-06-25 22:53:13 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-06-25 22:53:14 | [Mutex] waiting for: [received:nodes:cd47f582-8809-4efc-be20-fe636af0425f:localhost] 2022-06-25 22:53:14 | [Mutex] waiting for: [received:nodes:cd47f582-8809-4efc-be20-fe636af0425f:localhost] 2022-06-25 22:53:14 | [Mutex] waiting for: [received:nodes:cd47f582-8809-4efc-be20-fe636af0425f:localhost] 2022-06-25 22:53:14 | [Mutex] received everything. 2022-06-25 22:53:14 | [Mutex] isItemNotified: received:node:cd47f582-8809-4efc-be20-fe636af0425f:localhost:node-b7d22613-60e2-49ff-bb1f-7960afd26c37:Node b7d22613-60e2-49ff-bb1f-7960afd26c37 :: false 2022-06-25 22:53:14 | [Mutex] waiting for: [received:nodes:4e18cbf7-4918-427a-89a0-a4869a2978ae:localhost] 2022-06-25 22:53:14 | [Mutex] received everything. 2022-06-25 22:53:14 | [Mutex] isItemNotified: received:node:4e18cbf7-4918-427a-89a0-a4869a2978ae:localhost:node-b7d22613-60e2-49ff-bb1f-7960afd26c37:Node b7d22613-60e2-49ff-bb1f-7960afd26c37 :: false |
publishItemsToNodes | 0.108s |
2022-06-25 22:53:12 |
2022-06-25 22:53:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-25 22:53:12 | ------------------------------------ 2022-06-25 22:53:12 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-b7d22613-60e2-49ff-bb1f-7960afd26c37", "entry": "<test>item-5d4af766-a05b-4c29-8572-fc5325c3e347</test>", "item-id": "item-5d4af766-a05b-4c29-8572-fc5325c3e347" } 2022-06-25 22:53:12 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-5d4af766-a05b-4c29-8572-fc5325c3e347" } 2022-06-25 22:53:12 | [Mutex] waiting for: [published:item:notifieditem-5d4af766-a05b-4c29-8572-fc5325c3e347:admin@test-domain.com] 2022-06-25 22:53:12 | [Mutex] received everything. 2022-06-25 22:53:12 | [Mutex] isItemNotified: published:item:notifieditem-5d4af766-a05b-4c29-8572-fc5325c3e347:admin@test-domain.com :: true |
retractItemsFromNodes | 0.055s |
2022-06-25 22:53:12 |
2022-06-25 22:53:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-25 22:53:12 | ------------------------------------ 2022-06-25 22:53:12 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-b7d22613-60e2-49ff-bb1f-7960afd26c37", "item-id": "item-5d4af766-a05b-4c29-8572-fc5325c3e347" } 2022-06-25 22:53:12 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-5d4af766-a05b-4c29-8572-fc5325c3e347" } 2022-06-25 22:53:12 | [Mutex] received everything. 2022-06-25 22:53:12 | [Mutex] isItemNotified: retracted:item:notifieditem-5d4af766-a05b-4c29-8572-fc5325c3e347:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.041s |
2022-06-25 22:53:12 |
2022-06-25 22:53:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-25 22:53:12 | ------------------------------------ 2022-06-25 22:53:12 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-b7d22613-60e2-49ff-bb1f-7960afd26c37", "item-id": "item-5d4af766-a05b-4c29-8572-fc5325c3e347" } 2022-06-25 22:53:12 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-b7d22613-60e2-49ff-bb1f-7960afd26c37", "item-id": "item-5d4af766-a05b-4c29-8572-fc5325c3e347", "item": [ "<item id=\"item-5d4af766-a05b-4c29-8572-fc5325c3e347\"><test>item-5d4af766-a05b-4c29-8572-fc5325c3e347</test></item>" ] } 2022-06-25 22:53:12 | [Mutex] notify: [retrieved:item:item-5d4af766-a05b-4c29-8572-fc5325c3e347:payload-matches:true:localhost] 2022-06-25 22:53:12 | [Mutex] received everything. 2022-06-25 22:53:12 | [Mutex] isItemNotified: retrieved:item:item-5d4af766-a05b-4c29-8572-fc5325c3e347:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.050s |
2022-06-25 22:53:12 |
2022-06-25 22:53:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-25 22:53:12 | ------------------------------------ 2022-06-25 22:53:12 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-06-25 22:53:12 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-c9e6aa32-d445-44b3-93f8-159a890f4793", "node-b7d22613-60e2-49ff-bb1f-7960afd26c37" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2022-06-25 22:53:12 |
2022-06-25 22:53:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-25 22:53:12 | ------------------------------------ 2022-06-25 22:53:12 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-b7d22613-60e2-49ff-bb1f-7960afd26c37)" } 2022-06-25 22:53:12 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.012s |
2022-06-25 22:53:11 |
2022-06-25 22:53:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-25 22:53:11 | ------------------------------------ 2022-06-25 22:53:11 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-b7d22613-60e2-49ff-bb1f-7960afd26c37", "jids": [ "admin@test-domain.com" ] } 2022-06-25 22:53:11 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.078s |
2022-06-25 22:53:12 |
2022-06-25 22:53:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-25 22:53:12 | ------------------------------------ 2022-06-25 22:53:12 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-b7d22613-60e2-49ff-bb1f-7960afd26c37", "jids": [ "admin@test-domain.com" ] } 2022-06-25 22:53:12 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |