Test duration : 8.646s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.109s |
2023-05-24 22:31:10 |
2023-05-24 22:31:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-05-24 22:31:10 | ------------------------------------ 2023-05-24 22:31:10 | [Mutex] waiting for: [configured:node:node-d5faa38c-adce-4ae8-aa68-ce5c21c2e00a:node-cf88371d-5bb3-4343-8a7e-ed8227c44fbb] 2023-05-24 22:31:10 | [Mutex] received everything. 2023-05-24 22:31:10 | [Mutex] isItemNotified: configured:node:node-d5faa38c-adce-4ae8-aa68-ce5c21c2e00a:node-cf88371d-5bb3-4343-8a7e-ed8227c44fbb :: true 2023-05-24 22:31:11 | [Mutex] waiting for: [received:nodes:f7deb1c9-9404-492b-a4c9-bf4825619a48:localhost] 2023-05-24 22:31:11 | [Mutex] received everything. 2023-05-24 22:31:11 | [Mutex] isItemNotified: received:node:f7deb1c9-9404-492b-a4c9-bf4825619a48:localhost:node-d5faa38c-adce-4ae8-aa68-ce5c21c2e00a:Node d5faa38c-adce-4ae8-aa68-ce5c21c2e00a :: true 2023-05-24 22:31:11 | [Mutex] waiting for: [received:nodes:e9ab5ddd-df79-44a1-9b9d-1d11142dee74:localhost] 2023-05-24 22:31:11 | [Mutex] received everything. 2023-05-24 22:31:11 | [Mutex] isItemNotified: received:node:e9ab5ddd-df79-44a1-9b9d-1d11142dee74:localhost:node-d5faa38c-adce-4ae8-aa68-ce5c21c2e00a:Node d5faa38c-adce-4ae8-aa68-ce5c21c2e00a :: false |
createNodes | 1.647s |
2023-05-24 22:31:07 |
2023-05-24 22:31:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-05-24 22:31:07 | ------------------------------------ 2023-05-24 22:31: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-d5faa38c-adce-4ae8-aa68-ce5c21c2e00a", "pubsub#title": "Node d5faa38c-adce-4ae8-aa68-ce5c21c2e00a" } 2023-05-24 22:31:08 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2023-05-24 22:31:09 | [Mutex] waiting for: [received:nodes:647272ce-e881-41bf-90fa-9add6a117eda:localhost] 2023-05-24 22:31:09 | [Mutex] waiting for: [received:nodes:647272ce-e881-41bf-90fa-9add6a117eda:localhost] 2023-05-24 22:31:09 | [Mutex] waiting for: [received:nodes:647272ce-e881-41bf-90fa-9add6a117eda:localhost] 2023-05-24 22:31:09 | [Mutex] waiting for: [received:nodes:647272ce-e881-41bf-90fa-9add6a117eda:localhost] 2023-05-24 22:31:09 | [Mutex] received everything. 2023-05-24 22:31:09 | [Mutex] isItemNotified: received:node:647272ce-e881-41bf-90fa-9add6a117eda:localhost:node-d5faa38c-adce-4ae8-aa68-ce5c21c2e00a:Node d5faa38c-adce-4ae8-aa68-ce5c21c2e00a :: true |
createSubnodes | 1.030s |
2023-05-24 22:31:09 |
2023-05-24 22:31:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-05-24 22:31:09 | ------------------------------------ 2023-05-24 22:31: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-cf88371d-5bb3-4343-8a7e-ed8227c44fbb", "pubsub#title": "Node cf88371d-5bb3-4343-8a7e-ed8227c44fbb" } 2023-05-24 22:31:09 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2023-05-24 22:31:10 | [Mutex] waiting for: [received:nodes:c4a4daa1-f9a1-43c1-aa0b-f85c7bf60ef5:localhost] 2023-05-24 22:31:10 | [Mutex] waiting for: [received:nodes:c4a4daa1-f9a1-43c1-aa0b-f85c7bf60ef5:localhost] 2023-05-24 22:31:10 | [Mutex] waiting for: [received:nodes:c4a4daa1-f9a1-43c1-aa0b-f85c7bf60ef5:localhost] 2023-05-24 22:31:10 | [Mutex] waiting for: [received:nodes:c4a4daa1-f9a1-43c1-aa0b-f85c7bf60ef5:localhost] 2023-05-24 22:31:10 | [Mutex] received everything. 2023-05-24 22:31:10 | [Mutex] isItemNotified: received:node:c4a4daa1-f9a1-43c1-aa0b-f85c7bf60ef5:localhost:node-cf88371d-5bb3-4343-8a7e-ed8227c44fbb:Node cf88371d-5bb3-4343-8a7e-ed8227c44fbb :: true |
deleteNodes | 1.020s |
2023-05-24 22:31:14 |
2023-05-24 22:31:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-05-24 22:31:14 | ------------------------------------ 2023-05-24 22:31:14 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-cf88371d-5bb3-4343-8a7e-ed8227c44fbb" } 2023-05-24 22:31:14 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2023-05-24 22:31:15 | [Mutex] waiting for: [received:nodes:a42d8d76-2270-4f63-8f51-6f0097ac14fa:localhost] 2023-05-24 22:31:15 | [Mutex] waiting for: [received:nodes:a42d8d76-2270-4f63-8f51-6f0097ac14fa:localhost] 2023-05-24 22:31:15 | [Mutex] waiting for: [received:nodes:a42d8d76-2270-4f63-8f51-6f0097ac14fa:localhost] 2023-05-24 22:31:15 | [Mutex] received everything. 2023-05-24 22:31:15 | [Mutex] isItemNotified: received:node:a42d8d76-2270-4f63-8f51-6f0097ac14fa:localhost:node-cf88371d-5bb3-4343-8a7e-ed8227c44fbb:Node cf88371d-5bb3-4343-8a7e-ed8227c44fbb :: false |
deleteSubnodes | 1.025s |
2023-05-24 22:31:13 |
2023-05-24 22:31:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-05-24 22:31:13 | ------------------------------------ 2023-05-24 22:31:13 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-d5faa38c-adce-4ae8-aa68-ce5c21c2e00a" } 2023-05-24 22:31:13 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2023-05-24 22:31:14 | [Mutex] waiting for: [received:nodes:c50fddb2-83aa-4f55-a31e-5be94f7a1003:localhost] 2023-05-24 22:31:14 | [Mutex] waiting for: [received:nodes:c50fddb2-83aa-4f55-a31e-5be94f7a1003:localhost] 2023-05-24 22:31:14 | [Mutex] waiting for: [received:nodes:c50fddb2-83aa-4f55-a31e-5be94f7a1003:localhost] 2023-05-24 22:31:14 | [Mutex] received everything. 2023-05-24 22:31:14 | [Mutex] isItemNotified: received:node:c50fddb2-83aa-4f55-a31e-5be94f7a1003:localhost:node-d5faa38c-adce-4ae8-aa68-ce5c21c2e00a:Node d5faa38c-adce-4ae8-aa68-ce5c21c2e00a :: false 2023-05-24 22:31:14 | [Mutex] waiting for: [received:nodes:1f720dd2-bbdb-499d-af27-eda58d39de77:localhost] 2023-05-24 22:31:14 | [Mutex] received everything. 2023-05-24 22:31:14 | [Mutex] isItemNotified: received:node:1f720dd2-bbdb-499d-af27-eda58d39de77:localhost:node-d5faa38c-adce-4ae8-aa68-ce5c21c2e00a:Node d5faa38c-adce-4ae8-aa68-ce5c21c2e00a :: false |
publishItemsToNodes | 0.045s |
2023-05-24 22:31:12 |
2023-05-24 22:31:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-05-24 22:31:12 | ------------------------------------ 2023-05-24 22:31:12 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-d5faa38c-adce-4ae8-aa68-ce5c21c2e00a", "entry": "<test>item-6c5995e5-b1e2-40d7-8a32-288d7d0a8f68</test>", "item-id": "item-6c5995e5-b1e2-40d7-8a32-288d7d0a8f68" } 2023-05-24 22:31:12 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-6c5995e5-b1e2-40d7-8a32-288d7d0a8f68" } 2023-05-24 22:31:12 | [Mutex] waiting for: [published:item:notifieditem-6c5995e5-b1e2-40d7-8a32-288d7d0a8f68:admin@test-domain.com] 2023-05-24 22:31:12 | [Mutex] received everything. 2023-05-24 22:31:12 | [Mutex] isItemNotified: published:item:notifieditem-6c5995e5-b1e2-40d7-8a32-288d7d0a8f68:admin@test-domain.com :: true |
retractItemsFromNodes | 0.055s |
2023-05-24 22:31:12 |
2023-05-24 22:31:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-05-24 22:31:12 | ------------------------------------ 2023-05-24 22:31:12 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-d5faa38c-adce-4ae8-aa68-ce5c21c2e00a", "item-id": "item-6c5995e5-b1e2-40d7-8a32-288d7d0a8f68" } 2023-05-24 22:31:12 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-6c5995e5-b1e2-40d7-8a32-288d7d0a8f68" } 2023-05-24 22:31:12 | [Mutex] received everything. 2023-05-24 22:31:12 | [Mutex] isItemNotified: retracted:item:notifieditem-6c5995e5-b1e2-40d7-8a32-288d7d0a8f68:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.083s |
2023-05-24 22:31:12 |
2023-05-24 22:31:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-05-24 22:31:12 | ------------------------------------ 2023-05-24 22:31:12 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-d5faa38c-adce-4ae8-aa68-ce5c21c2e00a", "item-id": "item-6c5995e5-b1e2-40d7-8a32-288d7d0a8f68" } 2023-05-24 22:31:12 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-d5faa38c-adce-4ae8-aa68-ce5c21c2e00a", "item-id": "item-6c5995e5-b1e2-40d7-8a32-288d7d0a8f68", "item": [ "<item id=\"item-6c5995e5-b1e2-40d7-8a32-288d7d0a8f68\"><test>item-6c5995e5-b1e2-40d7-8a32-288d7d0a8f68</test></item>" ] } 2023-05-24 22:31:12 | [Mutex] notify: [retrieved:item:item-6c5995e5-b1e2-40d7-8a32-288d7d0a8f68:payload-matches:true:localhost] 2023-05-24 22:31:12 | [Mutex] received everything. 2023-05-24 22:31:12 | [Mutex] isItemNotified: retrieved:item:item-6c5995e5-b1e2-40d7-8a32-288d7d0a8f68:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.047s |
2023-05-24 22:31:12 |
2023-05-24 22:31:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-05-24 22:31:12 | ------------------------------------ 2023-05-24 22:31:12 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2023-05-24 22:31:12 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-cf88371d-5bb3-4343-8a7e-ed8227c44fbb", "test", "node-d5faa38c-adce-4ae8-aa68-ce5c21c2e00a" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2023-05-24 22:31:12 |
2023-05-24 22:31:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-05-24 22:31:12 | ------------------------------------ 2023-05-24 22:31:12 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-d5faa38c-adce-4ae8-aa68-ce5c21c2e00a)" } 2023-05-24 22:31:12 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.014s |
2023-05-24 22:31:11 |
2023-05-24 22:31:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-05-24 22:31:11 | ------------------------------------ 2023-05-24 22:31:11 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-d5faa38c-adce-4ae8-aa68-ce5c21c2e00a", "jids": [ "admin@test-domain.com" ] } 2023-05-24 22:31:11 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.076s |
2023-05-24 22:31:12 |
2023-05-24 22:31:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-05-24 22:31:12 | ------------------------------------ 2023-05-24 22:31:12 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-d5faa38c-adce-4ae8-aa68-ce5c21c2e00a", "jids": [ "admin@test-domain.com" ] } 2023-05-24 22:31:12 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |