Test duration : 8.664s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.141s |
2023-07-06 22:45:09 |
2023-07-06 22:45:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-06 22:45:09 | ------------------------------------ 2023-07-06 22:45:09 | [Mutex] waiting for: [configured:node:node-ea5c846a-0761-4789-ac34-85cc35e0717e:node-ed2a4a4e-b93d-4eb0-88ad-2167e253ef4a] 2023-07-06 22:45:09 | [Mutex] received everything. 2023-07-06 22:45:09 | [Mutex] isItemNotified: configured:node:node-ea5c846a-0761-4789-ac34-85cc35e0717e:node-ed2a4a4e-b93d-4eb0-88ad-2167e253ef4a :: true 2023-07-06 22:45:10 | [Mutex] waiting for: [received:nodes:79554f45-7f08-400d-940c-4453e5d35680:localhost] 2023-07-06 22:45:10 | [Mutex] received everything. 2023-07-06 22:45:10 | [Mutex] isItemNotified: received:node:79554f45-7f08-400d-940c-4453e5d35680:localhost:node-ea5c846a-0761-4789-ac34-85cc35e0717e:Node ea5c846a-0761-4789-ac34-85cc35e0717e :: true 2023-07-06 22:45:10 | [Mutex] waiting for: [received:nodes:7cd13305-178b-4ba6-8f42-c236d84794db:localhost] 2023-07-06 22:45:10 | [Mutex] waiting for: [received:nodes:7cd13305-178b-4ba6-8f42-c236d84794db:localhost] 2023-07-06 22:45:10 | [Mutex] waiting for: [received:nodes:7cd13305-178b-4ba6-8f42-c236d84794db:localhost] 2023-07-06 22:45:10 | [Mutex] waiting for: [received:nodes:7cd13305-178b-4ba6-8f42-c236d84794db:localhost] 2023-07-06 22:45:10 | [Mutex] received everything. 2023-07-06 22:45:10 | [Mutex] isItemNotified: received:node:7cd13305-178b-4ba6-8f42-c236d84794db:localhost:node-ea5c846a-0761-4789-ac34-85cc35e0717e:Node ea5c846a-0761-4789-ac34-85cc35e0717e :: false |
createNodes | 1.680s |
2023-07-06 22:45:06 |
2023-07-06 22:45:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-06 22:45:06 | ------------------------------------ 2023-07-06 22:45:07 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-ea5c846a-0761-4789-ac34-85cc35e0717e", "pubsub#title": "Node ea5c846a-0761-4789-ac34-85cc35e0717e" } 2023-07-06 22:45:07 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2023-07-06 22:45:08 | [Mutex] waiting for: [received:nodes:a7bca285-898d-4568-86f1-f55cf7edf790:localhost] 2023-07-06 22:45:08 | [Mutex] waiting for: [received:nodes:a7bca285-898d-4568-86f1-f55cf7edf790:localhost] 2023-07-06 22:45:08 | [Mutex] waiting for: [received:nodes:a7bca285-898d-4568-86f1-f55cf7edf790:localhost] 2023-07-06 22:45:08 | [Mutex] received everything. 2023-07-06 22:45:08 | [Mutex] isItemNotified: received:node:a7bca285-898d-4568-86f1-f55cf7edf790:localhost:node-ea5c846a-0761-4789-ac34-85cc35e0717e:Node ea5c846a-0761-4789-ac34-85cc35e0717e :: true |
createSubnodes | 1.038s |
2023-07-06 22:45:08 |
2023-07-06 22:45:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-06 22:45:08 | ------------------------------------ 2023-07-06 22:45:08 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-ed2a4a4e-b93d-4eb0-88ad-2167e253ef4a", "pubsub#title": "Node ed2a4a4e-b93d-4eb0-88ad-2167e253ef4a" } 2023-07-06 22:45:08 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2023-07-06 22:45:09 | [Mutex] waiting for: [received:nodes:d48da247-fbb2-4b37-8180-2bee91b73764:localhost] 2023-07-06 22:45:09 | [Mutex] waiting for: [received:nodes:d48da247-fbb2-4b37-8180-2bee91b73764:localhost] 2023-07-06 22:45:09 | [Mutex] waiting for: [received:nodes:d48da247-fbb2-4b37-8180-2bee91b73764:localhost] 2023-07-06 22:45:09 | [Mutex] waiting for: [received:nodes:d48da247-fbb2-4b37-8180-2bee91b73764:localhost] 2023-07-06 22:45:09 | [Mutex] received everything. 2023-07-06 22:45:09 | [Mutex] isItemNotified: received:node:d48da247-fbb2-4b37-8180-2bee91b73764:localhost:node-ed2a4a4e-b93d-4eb0-88ad-2167e253ef4a:Node ed2a4a4e-b93d-4eb0-88ad-2167e253ef4a :: true |
deleteNodes | 1.029s |
2023-07-06 22:45:13 |
2023-07-06 22:45:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-06 22:45:13 | ------------------------------------ 2023-07-06 22:45:13 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-ed2a4a4e-b93d-4eb0-88ad-2167e253ef4a" } 2023-07-06 22:45:13 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2023-07-06 22:45:14 | [Mutex] waiting for: [received:nodes:56f2649d-6212-4b20-a5b2-bb7d81b035fa:localhost] 2023-07-06 22:45:14 | [Mutex] waiting for: [received:nodes:56f2649d-6212-4b20-a5b2-bb7d81b035fa:localhost] 2023-07-06 22:45:14 | [Mutex] received everything. 2023-07-06 22:45:14 | [Mutex] isItemNotified: received:node:56f2649d-6212-4b20-a5b2-bb7d81b035fa:localhost:node-ed2a4a4e-b93d-4eb0-88ad-2167e253ef4a:Node ed2a4a4e-b93d-4eb0-88ad-2167e253ef4a :: false |
deleteSubnodes | 1.026s |
2023-07-06 22:45:12 |
2023-07-06 22:45:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-06 22:45:12 | ------------------------------------ 2023-07-06 22:45:12 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-ea5c846a-0761-4789-ac34-85cc35e0717e" } 2023-07-06 22:45:12 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2023-07-06 22:45:13 | [Mutex] waiting for: [received:nodes:61ec2884-53cc-4ef9-ab84-9c014b24a142:localhost] 2023-07-06 22:45:13 | [Mutex] waiting for: [received:nodes:61ec2884-53cc-4ef9-ab84-9c014b24a142:localhost] 2023-07-06 22:45:13 | [Mutex] waiting for: [received:nodes:61ec2884-53cc-4ef9-ab84-9c014b24a142:localhost] 2023-07-06 22:45:13 | [Mutex] received everything. 2023-07-06 22:45:13 | [Mutex] isItemNotified: received:node:61ec2884-53cc-4ef9-ab84-9c014b24a142:localhost:node-ea5c846a-0761-4789-ac34-85cc35e0717e:Node ea5c846a-0761-4789-ac34-85cc35e0717e :: false 2023-07-06 22:45:13 | [Mutex] waiting for: [received:nodes:5240ced4-4b27-4794-b521-ab709ec22938:localhost] 2023-07-06 22:45:13 | [Mutex] received everything. 2023-07-06 22:45:13 | [Mutex] isItemNotified: received:node:5240ced4-4b27-4794-b521-ab709ec22938:localhost:node-ea5c846a-0761-4789-ac34-85cc35e0717e:Node ea5c846a-0761-4789-ac34-85cc35e0717e :: false |
publishItemsToNodes | 0.049s |
2023-07-06 22:45:11 |
2023-07-06 22:45:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-06 22:45:11 | ------------------------------------ 2023-07-06 22:45:11 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-ea5c846a-0761-4789-ac34-85cc35e0717e", "entry": "<test>item-657f26ad-bba7-4645-9a1a-15814b76fd23</test>", "item-id": "item-657f26ad-bba7-4645-9a1a-15814b76fd23" } 2023-07-06 22:45:11 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-657f26ad-bba7-4645-9a1a-15814b76fd23" } 2023-07-06 22:45:11 | [Mutex] waiting for: [published:item:notifieditem-657f26ad-bba7-4645-9a1a-15814b76fd23:admin@test-domain.com] 2023-07-06 22:45:11 | [Mutex] received everything. 2023-07-06 22:45:11 | [Mutex] isItemNotified: published:item:notifieditem-657f26ad-bba7-4645-9a1a-15814b76fd23:admin@test-domain.com :: true |
retractItemsFromNodes | 0.055s |
2023-07-06 22:45:11 |
2023-07-06 22:45:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-06 22:45:11 | ------------------------------------ 2023-07-06 22:45:11 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-ea5c846a-0761-4789-ac34-85cc35e0717e", "item-id": "item-657f26ad-bba7-4645-9a1a-15814b76fd23" } 2023-07-06 22:45:11 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-657f26ad-bba7-4645-9a1a-15814b76fd23" } 2023-07-06 22:45:11 | [Mutex] received everything. 2023-07-06 22:45:11 | [Mutex] isItemNotified: retracted:item:notifieditem-657f26ad-bba7-4645-9a1a-15814b76fd23:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.034s |
2023-07-06 22:45:11 |
2023-07-06 22:45:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-06 22:45:11 | ------------------------------------ 2023-07-06 22:45:11 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-ea5c846a-0761-4789-ac34-85cc35e0717e", "item-id": "item-657f26ad-bba7-4645-9a1a-15814b76fd23" } 2023-07-06 22:45:11 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-ea5c846a-0761-4789-ac34-85cc35e0717e", "item-id": "item-657f26ad-bba7-4645-9a1a-15814b76fd23", "item": [ "<item id=\"item-657f26ad-bba7-4645-9a1a-15814b76fd23\"><test>item-657f26ad-bba7-4645-9a1a-15814b76fd23</test></item>" ] } 2023-07-06 22:45:11 | [Mutex] notify: [retrieved:item:item-657f26ad-bba7-4645-9a1a-15814b76fd23:payload-matches:true:localhost] 2023-07-06 22:45:11 | [Mutex] received everything. 2023-07-06 22:45:11 | [Mutex] isItemNotified: retrieved:item:item-657f26ad-bba7-4645-9a1a-15814b76fd23:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.050s |
2023-07-06 22:45:11 |
2023-07-06 22:45:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-06 22:45:11 | ------------------------------------ 2023-07-06 22:45:11 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2023-07-06 22:45:11 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-ea5c846a-0761-4789-ac34-85cc35e0717e", "test", "node-ed2a4a4e-b93d-4eb0-88ad-2167e253ef4a" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2023-07-06 22:45:11 |
2023-07-06 22:45:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-06 22:45:11 | ------------------------------------ 2023-07-06 22:45:11 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-ea5c846a-0761-4789-ac34-85cc35e0717e)" } 2023-07-06 22:45:11 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.017s |
2023-07-06 22:45:10 |
2023-07-06 22:45:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-06 22:45:10 | ------------------------------------ 2023-07-06 22:45:10 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-ea5c846a-0761-4789-ac34-85cc35e0717e", "jids": [ "admin@test-domain.com" ] } 2023-07-06 22:45:10 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.059s |
2023-07-06 22:45:11 |
2023-07-06 22:45:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-06 22:45:11 | ------------------------------------ 2023-07-06 22:45:11 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-ea5c846a-0761-4789-ac34-85cc35e0717e", "jids": [ "admin@test-domain.com" ] } 2023-07-06 22:45:11 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |