Test duration : 8.682s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.102s |
2023-11-04 23:57:58 |
2023-11-04 23:57:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-11-04 23:57:58 | ------------------------------------ 2023-11-04 23:57:58 | [Mutex] waiting for: [configured:node:node-0092031b-2750-4301-ae5c-6999544aa2f2:node-a9d79a01-2f36-47bf-a4af-54856b919f05] 2023-11-04 23:57:58 | [Mutex] received everything. 2023-11-04 23:57:58 | [Mutex] isItemNotified: configured:node:node-0092031b-2750-4301-ae5c-6999544aa2f2:node-a9d79a01-2f36-47bf-a4af-54856b919f05 :: true 2023-11-04 23:57:59 | [Mutex] waiting for: [received:nodes:1bab8950-e10c-4773-b1f8-96fa9ce8beac:localhost] 2023-11-04 23:57:59 | [Mutex] received everything. 2023-11-04 23:57:59 | [Mutex] isItemNotified: received:node:1bab8950-e10c-4773-b1f8-96fa9ce8beac:localhost:node-0092031b-2750-4301-ae5c-6999544aa2f2:Node 0092031b-2750-4301-ae5c-6999544aa2f2 :: true 2023-11-04 23:57:59 | [Mutex] waiting for: [received:nodes:8059a62f-5281-4e24-9c15-b202f2bd74cb:localhost] 2023-11-04 23:57:59 | [Mutex] waiting for: [received:nodes:8059a62f-5281-4e24-9c15-b202f2bd74cb:localhost] 2023-11-04 23:57:59 | [Mutex] waiting for: [received:nodes:8059a62f-5281-4e24-9c15-b202f2bd74cb:localhost] 2023-11-04 23:57:59 | [Mutex] waiting for: [received:nodes:8059a62f-5281-4e24-9c15-b202f2bd74cb:localhost] 2023-11-04 23:57:59 | [Mutex] received everything. 2023-11-04 23:57:59 | [Mutex] isItemNotified: received:node:8059a62f-5281-4e24-9c15-b202f2bd74cb:localhost:node-0092031b-2750-4301-ae5c-6999544aa2f2:Node 0092031b-2750-4301-ae5c-6999544aa2f2 :: false |
createNodes | 1.647s |
2023-11-04 23:57:55 |
2023-11-04 23:57:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-11-04 23:57:55 | ------------------------------------ 2023-11-04 23:57:56 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-0092031b-2750-4301-ae5c-6999544aa2f2", "pubsub#title": "Node 0092031b-2750-4301-ae5c-6999544aa2f2" } 2023-11-04 23:57:56 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2023-11-04 23:57:57 | [Mutex] waiting for: [received:nodes:f3e5b267-9057-4b3f-83e0-3e921508a895:localhost] 2023-11-04 23:57:57 | [Mutex] waiting for: [received:nodes:f3e5b267-9057-4b3f-83e0-3e921508a895:localhost] 2023-11-04 23:57:57 | [Mutex] waiting for: [received:nodes:f3e5b267-9057-4b3f-83e0-3e921508a895:localhost] 2023-11-04 23:57:57 | [Mutex] received everything. 2023-11-04 23:57:57 | [Mutex] isItemNotified: received:node:f3e5b267-9057-4b3f-83e0-3e921508a895:localhost:node-0092031b-2750-4301-ae5c-6999544aa2f2:Node 0092031b-2750-4301-ae5c-6999544aa2f2 :: true |
createSubnodes | 1.035s |
2023-11-04 23:57:57 |
2023-11-04 23:57:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-11-04 23:57:57 | ------------------------------------ 2023-11-04 23:57:57 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-a9d79a01-2f36-47bf-a4af-54856b919f05", "pubsub#title": "Node a9d79a01-2f36-47bf-a4af-54856b919f05" } 2023-11-04 23:57:57 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2023-11-04 23:57:58 | [Mutex] waiting for: [received:nodes:3acae1ee-8b0f-4b91-b8f8-4b27fa21a82d:localhost] 2023-11-04 23:57:58 | [Mutex] waiting for: [received:nodes:3acae1ee-8b0f-4b91-b8f8-4b27fa21a82d:localhost] 2023-11-04 23:57:58 | [Mutex] waiting for: [received:nodes:3acae1ee-8b0f-4b91-b8f8-4b27fa21a82d:localhost] 2023-11-04 23:57:58 | [Mutex] waiting for: [received:nodes:3acae1ee-8b0f-4b91-b8f8-4b27fa21a82d:localhost] 2023-11-04 23:57:58 | [Mutex] received everything. 2023-11-04 23:57:58 | [Mutex] isItemNotified: received:node:3acae1ee-8b0f-4b91-b8f8-4b27fa21a82d:localhost:node-a9d79a01-2f36-47bf-a4af-54856b919f05:Node a9d79a01-2f36-47bf-a4af-54856b919f05 :: true |
deleteNodes | 1.029s |
2023-11-04 23:58:03 |
2023-11-04 23:58:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-11-04 23:58:03 | ------------------------------------ 2023-11-04 23:58:03 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-a9d79a01-2f36-47bf-a4af-54856b919f05" } 2023-11-04 23:58:03 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2023-11-04 23:58:04 | [Mutex] waiting for: [received:nodes:25367b04-5ef1-468c-a331-3c2ca33adc60:localhost] 2023-11-04 23:58:04 | [Mutex] waiting for: [received:nodes:25367b04-5ef1-468c-a331-3c2ca33adc60:localhost] 2023-11-04 23:58:04 | [Mutex] waiting for: [received:nodes:25367b04-5ef1-468c-a331-3c2ca33adc60:localhost] 2023-11-04 23:58:04 | [Mutex] received everything. 2023-11-04 23:58:04 | [Mutex] isItemNotified: received:node:25367b04-5ef1-468c-a331-3c2ca33adc60:localhost:node-a9d79a01-2f36-47bf-a4af-54856b919f05:Node a9d79a01-2f36-47bf-a4af-54856b919f05 :: false |
deleteSubnodes | 1.025s |
2023-11-04 23:58:01 |
2023-11-04 23:58:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-11-04 23:58:01 | ------------------------------------ 2023-11-04 23:58:01 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-0092031b-2750-4301-ae5c-6999544aa2f2" } 2023-11-04 23:58:01 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2023-11-04 23:58:02 | [Mutex] waiting for: [received:nodes:3127456f-4a8a-4bbd-b9c0-0b07cbd9e918:localhost] 2023-11-04 23:58:02 | [Mutex] waiting for: [received:nodes:3127456f-4a8a-4bbd-b9c0-0b07cbd9e918:localhost] 2023-11-04 23:58:02 | [Mutex] waiting for: [received:nodes:3127456f-4a8a-4bbd-b9c0-0b07cbd9e918:localhost] 2023-11-04 23:58:02 | [Mutex] received everything. 2023-11-04 23:58:02 | [Mutex] isItemNotified: received:node:3127456f-4a8a-4bbd-b9c0-0b07cbd9e918:localhost:node-0092031b-2750-4301-ae5c-6999544aa2f2:Node 0092031b-2750-4301-ae5c-6999544aa2f2 :: false 2023-11-04 23:58:02 | [Mutex] waiting for: [received:nodes:da7ba72f-9edc-4abd-9bac-20d490746924:localhost] 2023-11-04 23:58:03 | [Mutex] received everything. 2023-11-04 23:58:03 | [Mutex] isItemNotified: received:node:da7ba72f-9edc-4abd-9bac-20d490746924:localhost:node-0092031b-2750-4301-ae5c-6999544aa2f2:Node 0092031b-2750-4301-ae5c-6999544aa2f2 :: false |
publishItemsToNodes | 0.054s |
2023-11-04 23:58:00 |
2023-11-04 23:58:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-11-04 23:58:00 | ------------------------------------ 2023-11-04 23:58:00 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-0092031b-2750-4301-ae5c-6999544aa2f2", "entry": "<test>item-3a7ddec3-0cce-44bf-babd-a1a1b25126a7</test>", "item-id": "item-3a7ddec3-0cce-44bf-babd-a1a1b25126a7" } 2023-11-04 23:58:00 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-3a7ddec3-0cce-44bf-babd-a1a1b25126a7" } 2023-11-04 23:58:00 | [Mutex] waiting for: [published:item:notifieditem-3a7ddec3-0cce-44bf-babd-a1a1b25126a7:admin@test-domain.com] 2023-11-04 23:58:00 | [Mutex] received everything. 2023-11-04 23:58:00 | [Mutex] isItemNotified: published:item:notifieditem-3a7ddec3-0cce-44bf-babd-a1a1b25126a7:admin@test-domain.com :: true |
retractItemsFromNodes | 0.063s |
2023-11-04 23:58:00 |
2023-11-04 23:58:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-11-04 23:58:00 | ------------------------------------ 2023-11-04 23:58:00 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-0092031b-2750-4301-ae5c-6999544aa2f2", "item-id": "item-3a7ddec3-0cce-44bf-babd-a1a1b25126a7" } 2023-11-04 23:58:00 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-3a7ddec3-0cce-44bf-babd-a1a1b25126a7" } 2023-11-04 23:58:00 | [Mutex] received everything. 2023-11-04 23:58:00 | [Mutex] isItemNotified: retracted:item:notifieditem-3a7ddec3-0cce-44bf-babd-a1a1b25126a7:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.028s |
2023-11-04 23:58:00 |
2023-11-04 23:58:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-11-04 23:58:00 | ------------------------------------ 2023-11-04 23:58:00 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-0092031b-2750-4301-ae5c-6999544aa2f2", "item-id": "item-3a7ddec3-0cce-44bf-babd-a1a1b25126a7" } 2023-11-04 23:58:00 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-0092031b-2750-4301-ae5c-6999544aa2f2", "item-id": "item-3a7ddec3-0cce-44bf-babd-a1a1b25126a7", "item": [ "<item id=\"item-3a7ddec3-0cce-44bf-babd-a1a1b25126a7\"><test>item-3a7ddec3-0cce-44bf-babd-a1a1b25126a7</test></item>" ] } 2023-11-04 23:58:00 | [Mutex] notify: [retrieved:item:item-3a7ddec3-0cce-44bf-babd-a1a1b25126a7:payload-matches:true:localhost] 2023-11-04 23:58:00 | [Mutex] received everything. 2023-11-04 23:58:00 | [Mutex] isItemNotified: retrieved:item:item-3a7ddec3-0cce-44bf-babd-a1a1b25126a7:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.071s |
2023-11-04 23:58:00 |
2023-11-04 23:58:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-11-04 23:58:00 | ------------------------------------ 2023-11-04 23:58:00 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2023-11-04 23:58:00 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-a9d79a01-2f36-47bf-a4af-54856b919f05", "test", "node-0092031b-2750-4301-ae5c-6999544aa2f2" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2023-11-04 23:58:00 |
2023-11-04 23:58:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-11-04 23:58:00 | ------------------------------------ 2023-11-04 23:58:00 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-0092031b-2750-4301-ae5c-6999544aa2f2)" } 2023-11-04 23:58:00 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.013s |
2023-11-04 23:57:59 |
2023-11-04 23:57:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-11-04 23:57:59 | ------------------------------------ 2023-11-04 23:57:59 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-0092031b-2750-4301-ae5c-6999544aa2f2", "jids": [ "admin@test-domain.com" ] } 2023-11-04 23:57:59 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.074s |
2023-11-04 23:58:00 |
2023-11-04 23:58:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-11-04 23:58:00 | ------------------------------------ 2023-11-04 23:58:00 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-0092031b-2750-4301-ae5c-6999544aa2f2", "jids": [ "admin@test-domain.com" ] } 2023-11-04 23:58:00 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |