Test duration : 8.508s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.105s |
2023-05-29 22:30:42 |
2023-05-29 22:30:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-05-29 22:30:42 | ------------------------------------ 2023-05-29 22:30:42 | [Mutex] waiting for: [configured:node:node-45af0c9f-1467-439c-9acd-f1c7d9ce7134:node-1168fa0d-69db-4876-94bf-e4f67e7660ee] 2023-05-29 22:30:42 | [Mutex] received everything. 2023-05-29 22:30:42 | [Mutex] isItemNotified: configured:node:node-45af0c9f-1467-439c-9acd-f1c7d9ce7134:node-1168fa0d-69db-4876-94bf-e4f67e7660ee :: true 2023-05-29 22:30:43 | [Mutex] waiting for: [received:nodes:1f35d6ed-8579-4e96-b64c-7264ce6b110b:localhost] 2023-05-29 22:30:43 | [Mutex] received everything. 2023-05-29 22:30:43 | [Mutex] isItemNotified: received:node:1f35d6ed-8579-4e96-b64c-7264ce6b110b:localhost:node-45af0c9f-1467-439c-9acd-f1c7d9ce7134:Node 45af0c9f-1467-439c-9acd-f1c7d9ce7134 :: true 2023-05-29 22:30:43 | [Mutex] waiting for: [received:nodes:9012a115-c484-4892-8916-2401ed62db94:localhost] 2023-05-29 22:30:43 | [Mutex] waiting for: [received:nodes:9012a115-c484-4892-8916-2401ed62db94:localhost] 2023-05-29 22:30:43 | [Mutex] waiting for: [received:nodes:9012a115-c484-4892-8916-2401ed62db94:localhost] 2023-05-29 22:30:43 | [Mutex] waiting for: [received:nodes:9012a115-c484-4892-8916-2401ed62db94:localhost] 2023-05-29 22:30:43 | [Mutex] received everything. 2023-05-29 22:30:43 | [Mutex] isItemNotified: received:node:9012a115-c484-4892-8916-2401ed62db94:localhost:node-45af0c9f-1467-439c-9acd-f1c7d9ce7134:Node 45af0c9f-1467-439c-9acd-f1c7d9ce7134 :: false |
createNodes | 1.507s |
2023-05-29 22:30:39 |
2023-05-29 22:30:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-05-29 22:30:39 | ------------------------------------ 2023-05-29 22:30:40 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-45af0c9f-1467-439c-9acd-f1c7d9ce7134", "pubsub#title": "Node 45af0c9f-1467-439c-9acd-f1c7d9ce7134" } 2023-05-29 22:30:40 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2023-05-29 22:30:41 | [Mutex] waiting for: [received:nodes:3aa85b37-6c86-467d-aa2d-5c4934d45d16:localhost] 2023-05-29 22:30:41 | [Mutex] waiting for: [received:nodes:3aa85b37-6c86-467d-aa2d-5c4934d45d16:localhost] 2023-05-29 22:30:41 | [Mutex] waiting for: [received:nodes:3aa85b37-6c86-467d-aa2d-5c4934d45d16:localhost] 2023-05-29 22:30:41 | [Mutex] waiting for: [received:nodes:3aa85b37-6c86-467d-aa2d-5c4934d45d16:localhost] 2023-05-29 22:30:41 | [Mutex] received everything. 2023-05-29 22:30:41 | [Mutex] isItemNotified: received:node:3aa85b37-6c86-467d-aa2d-5c4934d45d16:localhost:node-45af0c9f-1467-439c-9acd-f1c7d9ce7134:Node 45af0c9f-1467-439c-9acd-f1c7d9ce7134 :: true |
createSubnodes | 1.033s |
2023-05-29 22:30:41 |
2023-05-29 22:30:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-05-29 22:30:41 | ------------------------------------ 2023-05-29 22:30:41 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-1168fa0d-69db-4876-94bf-e4f67e7660ee", "pubsub#title": "Node 1168fa0d-69db-4876-94bf-e4f67e7660ee" } 2023-05-29 22:30:41 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2023-05-29 22:30:42 | [Mutex] waiting for: [received:nodes:f06ec68f-99ae-446e-b384-ffbb8c1bfbae:localhost] 2023-05-29 22:30:42 | [Mutex] received everything. 2023-05-29 22:30:42 | [Mutex] isItemNotified: received:node:f06ec68f-99ae-446e-b384-ffbb8c1bfbae:localhost:node-1168fa0d-69db-4876-94bf-e4f67e7660ee:Node 1168fa0d-69db-4876-94bf-e4f67e7660ee :: true |
deleteNodes | 1.016s |
2023-05-29 22:30:46 |
2023-05-29 22:30:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-05-29 22:30:46 | ------------------------------------ 2023-05-29 22:30:46 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-1168fa0d-69db-4876-94bf-e4f67e7660ee" } 2023-05-29 22:30:46 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2023-05-29 22:30:47 | [Mutex] waiting for: [received:nodes:e1c3ed39-d678-4ef1-a7ca-d52397cc8426:localhost] 2023-05-29 22:30:47 | [Mutex] waiting for: [received:nodes:e1c3ed39-d678-4ef1-a7ca-d52397cc8426:localhost] 2023-05-29 22:30:47 | [Mutex] waiting for: [received:nodes:e1c3ed39-d678-4ef1-a7ca-d52397cc8426:localhost] 2023-05-29 22:30:47 | [Mutex] received everything. 2023-05-29 22:30:47 | [Mutex] isItemNotified: received:node:e1c3ed39-d678-4ef1-a7ca-d52397cc8426:localhost:node-1168fa0d-69db-4876-94bf-e4f67e7660ee:Node 1168fa0d-69db-4876-94bf-e4f67e7660ee :: false |
deleteSubnodes | 1.023s |
2023-05-29 22:30:45 |
2023-05-29 22:30:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-05-29 22:30:45 | ------------------------------------ 2023-05-29 22:30:45 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-45af0c9f-1467-439c-9acd-f1c7d9ce7134" } 2023-05-29 22:30:45 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2023-05-29 22:30:46 | [Mutex] waiting for: [received:nodes:84a150f5-a48f-4de2-8ab7-4cd38d204dd6:localhost] 2023-05-29 22:30:46 | [Mutex] received everything. 2023-05-29 22:30:46 | [Mutex] isItemNotified: received:node:84a150f5-a48f-4de2-8ab7-4cd38d204dd6:localhost:node-45af0c9f-1467-439c-9acd-f1c7d9ce7134:Node 45af0c9f-1467-439c-9acd-f1c7d9ce7134 :: false 2023-05-29 22:30:46 | [Mutex] waiting for: [received:nodes:e72770e7-83bf-4bd1-b63c-bc84b62d6616:localhost] 2023-05-29 22:30:46 | [Mutex] received everything. 2023-05-29 22:30:46 | [Mutex] isItemNotified: received:node:e72770e7-83bf-4bd1-b63c-bc84b62d6616:localhost:node-45af0c9f-1467-439c-9acd-f1c7d9ce7134:Node 45af0c9f-1467-439c-9acd-f1c7d9ce7134 :: false |
publishItemsToNodes | 0.043s |
2023-05-29 22:30:44 |
2023-05-29 22:30:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-05-29 22:30:44 | ------------------------------------ 2023-05-29 22:30:44 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-45af0c9f-1467-439c-9acd-f1c7d9ce7134", "entry": "<test>item-f9b0cf6c-e0ff-420c-aacf-51caa8ce7fd6</test>", "item-id": "item-f9b0cf6c-e0ff-420c-aacf-51caa8ce7fd6" } 2023-05-29 22:30:44 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-f9b0cf6c-e0ff-420c-aacf-51caa8ce7fd6" } 2023-05-29 22:30:44 | [Mutex] waiting for: [published:item:notifieditem-f9b0cf6c-e0ff-420c-aacf-51caa8ce7fd6:admin@test-domain.com] 2023-05-29 22:30:44 | [Mutex] received everything. 2023-05-29 22:30:44 | [Mutex] isItemNotified: published:item:notifieditem-f9b0cf6c-e0ff-420c-aacf-51caa8ce7fd6:admin@test-domain.com :: true |
retractItemsFromNodes | 0.051s |
2023-05-29 22:30:44 |
2023-05-29 22:30:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-05-29 22:30:44 | ------------------------------------ 2023-05-29 22:30:44 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-45af0c9f-1467-439c-9acd-f1c7d9ce7134", "item-id": "item-f9b0cf6c-e0ff-420c-aacf-51caa8ce7fd6" } 2023-05-29 22:30:44 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-f9b0cf6c-e0ff-420c-aacf-51caa8ce7fd6" } 2023-05-29 22:30:44 | [Mutex] received everything. 2023-05-29 22:30:44 | [Mutex] isItemNotified: retracted:item:notifieditem-f9b0cf6c-e0ff-420c-aacf-51caa8ce7fd6:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.079s |
2023-05-29 22:30:44 |
2023-05-29 22:30:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-05-29 22:30:44 | ------------------------------------ 2023-05-29 22:30:44 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-45af0c9f-1467-439c-9acd-f1c7d9ce7134", "item-id": "item-f9b0cf6c-e0ff-420c-aacf-51caa8ce7fd6" } 2023-05-29 22:30:44 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-45af0c9f-1467-439c-9acd-f1c7d9ce7134", "item-id": "item-f9b0cf6c-e0ff-420c-aacf-51caa8ce7fd6", "item": [ "<item id=\"item-f9b0cf6c-e0ff-420c-aacf-51caa8ce7fd6\"><test>item-f9b0cf6c-e0ff-420c-aacf-51caa8ce7fd6</test></item>" ] } 2023-05-29 22:30:44 | [Mutex] notify: [retrieved:item:item-f9b0cf6c-e0ff-420c-aacf-51caa8ce7fd6:payload-matches:true:localhost] 2023-05-29 22:30:44 | [Mutex] received everything. 2023-05-29 22:30:44 | [Mutex] isItemNotified: retrieved:item:item-f9b0cf6c-e0ff-420c-aacf-51caa8ce7fd6:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2023-05-29 22:30:44 |
2023-05-29 22:30:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-05-29 22:30:44 | ------------------------------------ 2023-05-29 22:30:44 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2023-05-29 22:30:44 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-1168fa0d-69db-4876-94bf-e4f67e7660ee", "node-45af0c9f-1467-439c-9acd-f1c7d9ce7134" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2023-05-29 22:30:44 |
2023-05-29 22:30:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-05-29 22:30:44 | ------------------------------------ 2023-05-29 22:30:44 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-45af0c9f-1467-439c-9acd-f1c7d9ce7134)" } 2023-05-29 22:30:44 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.020s |
2023-05-29 22:30:43 |
2023-05-29 22:30:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-05-29 22:30:43 | ------------------------------------ 2023-05-29 22:30:43 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-45af0c9f-1467-439c-9acd-f1c7d9ce7134", "jids": [ "admin@test-domain.com" ] } 2023-05-29 22:30:43 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.079s |
2023-05-29 22:30:44 |
2023-05-29 22:30:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-05-29 22:30:44 | ------------------------------------ 2023-05-29 22:30:44 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-45af0c9f-1467-439c-9acd-f1c7d9ce7134", "jids": [ "admin@test-domain.com" ] } 2023-05-29 22:30:44 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |