Test duration : 8.922s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.090s |
2020-12-28 21:58:29 |
2020-12-28 21:58:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-12-28 21:58:29 | ------------------------------------ 2020-12-28 21:58:29 | [Mutex] waiting for: [configured:node:node-45a74fac-c705-4bcf-9bdb-6129b92e720f:node-18af74d2-f658-4f59-ac4c-e52a6a0052c6] 2020-12-28 21:58:29 | [Mutex] received everything. 2020-12-28 21:58:29 | [Mutex] isItemNotified: configured:node:node-45a74fac-c705-4bcf-9bdb-6129b92e720f:node-18af74d2-f658-4f59-ac4c-e52a6a0052c6 :: true 2020-12-28 21:58:30 | [Mutex] waiting for: [received:nodes:f3b59012-b8a2-4c0f-8e0e-2f01f34b1cdf:localhost] 2020-12-28 21:58:30 | [Mutex] received everything. 2020-12-28 21:58:30 | [Mutex] isItemNotified: received:node:f3b59012-b8a2-4c0f-8e0e-2f01f34b1cdf:localhost:node-45a74fac-c705-4bcf-9bdb-6129b92e720f:Node 45a74fac-c705-4bcf-9bdb-6129b92e720f :: true 2020-12-28 21:58:30 | [Mutex] waiting for: [received:nodes:4a16d85a-913d-4e1d-8f59-157c3e73a166:localhost] 2020-12-28 21:58:30 | [Mutex] received everything. 2020-12-28 21:58:30 | [Mutex] isItemNotified: received:node:4a16d85a-913d-4e1d-8f59-157c3e73a166:localhost:node-45a74fac-c705-4bcf-9bdb-6129b92e720f:Node 45a74fac-c705-4bcf-9bdb-6129b92e720f :: false |
createNodes | 1.580s |
2020-12-28 21:58:27 |
2020-12-28 21:58:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-12-28 21:58:27 | ------------------------------------ 2020-12-28 21:58:27 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-45a74fac-c705-4bcf-9bdb-6129b92e720f", "pubsub#title": "Node 45a74fac-c705-4bcf-9bdb-6129b92e720f" } 2020-12-28 21:58:27 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-12-28 21:58:28 | [Mutex] waiting for: [received:nodes:8c5bb17f-7957-4ca7-8b35-f7d0c4f58af2:localhost] 2020-12-28 21:58:28 | [Mutex] received everything. 2020-12-28 21:58:28 | [Mutex] isItemNotified: received:node:8c5bb17f-7957-4ca7-8b35-f7d0c4f58af2:localhost:node-45a74fac-c705-4bcf-9bdb-6129b92e720f:Node 45a74fac-c705-4bcf-9bdb-6129b92e720f :: true |
createSubnodes | 1.031s |
2020-12-28 21:58:28 |
2020-12-28 21:58:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-12-28 21:58:28 | ------------------------------------ 2020-12-28 21:58:28 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-18af74d2-f658-4f59-ac4c-e52a6a0052c6", "pubsub#title": "Node 18af74d2-f658-4f59-ac4c-e52a6a0052c6" } 2020-12-28 21:58:28 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-12-28 21:58:29 | [Mutex] waiting for: [received:nodes:9627fa34-d6b4-4df0-9d8f-7f74a0e556c8:localhost] 2020-12-28 21:58:29 | [Mutex] received everything. 2020-12-28 21:58:29 | [Mutex] isItemNotified: received:node:9627fa34-d6b4-4df0-9d8f-7f74a0e556c8:localhost:node-18af74d2-f658-4f59-ac4c-e52a6a0052c6:Node 18af74d2-f658-4f59-ac4c-e52a6a0052c6 :: true |
deleteNodes | 1.031s |
2020-12-28 21:58:34 |
2020-12-28 21:58:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-12-28 21:58:34 | ------------------------------------ 2020-12-28 21:58:34 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-18af74d2-f658-4f59-ac4c-e52a6a0052c6" } 2020-12-28 21:58:34 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-12-28 21:58:35 | [Mutex] waiting for: [received:nodes:e1e5a8cf-a269-4843-975f-882cf507bd27:localhost] 2020-12-28 21:58:35 | [Mutex] received everything. 2020-12-28 21:58:35 | [Mutex] isItemNotified: received:node:e1e5a8cf-a269-4843-975f-882cf507bd27:localhost:node-18af74d2-f658-4f59-ac4c-e52a6a0052c6:Node 18af74d2-f658-4f59-ac4c-e52a6a0052c6 :: false |
deleteSubnodes | 1.030s |
2020-12-28 21:58:33 |
2020-12-28 21:58:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-12-28 21:58:33 | ------------------------------------ 2020-12-28 21:58:33 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-45a74fac-c705-4bcf-9bdb-6129b92e720f" } 2020-12-28 21:58:33 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-12-28 21:58:34 | [Mutex] waiting for: [received:nodes:bb8df3c2-b3e2-4f31-b88f-505b99caa673:localhost] 2020-12-28 21:58:34 | [Mutex] waiting for: [received:nodes:bb8df3c2-b3e2-4f31-b88f-505b99caa673:localhost] 2020-12-28 21:58:34 | [Mutex] received everything. 2020-12-28 21:58:34 | [Mutex] isItemNotified: received:node:bb8df3c2-b3e2-4f31-b88f-505b99caa673:localhost:node-45a74fac-c705-4bcf-9bdb-6129b92e720f:Node 45a74fac-c705-4bcf-9bdb-6129b92e720f :: false 2020-12-28 21:58:34 | [Mutex] waiting for: [received:nodes:5d62eeea-9c38-46ed-93fb-07ad5d3fbd12:localhost] 2020-12-28 21:58:34 | [Mutex] received everything. 2020-12-28 21:58:34 | [Mutex] isItemNotified: received:node:5d62eeea-9c38-46ed-93fb-07ad5d3fbd12:localhost:node-45a74fac-c705-4bcf-9bdb-6129b92e720f:Node 45a74fac-c705-4bcf-9bdb-6129b92e720f :: false |
publishItemsToNodes | 0.056s |
2020-12-28 21:58:31 |
2020-12-28 21:58:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-12-28 21:58:31 | ------------------------------------ 2020-12-28 21:58:31 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-45a74fac-c705-4bcf-9bdb-6129b92e720f", "entry": "<test>item-a21b85d2-9019-46cd-8b88-75f10a474f08</test>", "item-id": "item-a21b85d2-9019-46cd-8b88-75f10a474f08" } 2020-12-28 21:58:31 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-a21b85d2-9019-46cd-8b88-75f10a474f08" } 2020-12-28 21:58:31 | [Mutex] waiting for: [published:item:notifieditem-a21b85d2-9019-46cd-8b88-75f10a474f08:admin@test-domain.com] 2020-12-28 21:58:31 | [Mutex] received everything. 2020-12-28 21:58:31 | [Mutex] isItemNotified: published:item:notifieditem-a21b85d2-9019-46cd-8b88-75f10a474f08:admin@test-domain.com :: true |
retractItemsFromNodes | 0.060s |
2020-12-28 21:58:32 |
2020-12-28 21:58:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-12-28 21:58:32 | ------------------------------------ 2020-12-28 21:58:32 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-45a74fac-c705-4bcf-9bdb-6129b92e720f", "item-id": "item-a21b85d2-9019-46cd-8b88-75f10a474f08" } 2020-12-28 21:58:32 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-a21b85d2-9019-46cd-8b88-75f10a474f08" } 2020-12-28 21:58:32 | [Mutex] received everything. 2020-12-28 21:58:32 | [Mutex] isItemNotified: retracted:item:notifieditem-a21b85d2-9019-46cd-8b88-75f10a474f08:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.095s |
2020-12-28 21:58:31 |
2020-12-28 21:58:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-12-28 21:58:31 | ------------------------------------ 2020-12-28 21:58:31 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-45a74fac-c705-4bcf-9bdb-6129b92e720f", "item-id": "item-a21b85d2-9019-46cd-8b88-75f10a474f08" } 2020-12-28 21:58:31 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-45a74fac-c705-4bcf-9bdb-6129b92e720f", "item-id": "item-a21b85d2-9019-46cd-8b88-75f10a474f08", "item": [ "<item id=\"item-a21b85d2-9019-46cd-8b88-75f10a474f08\"><test>item-a21b85d2-9019-46cd-8b88-75f10a474f08</test></item>" ] } 2020-12-28 21:58:31 | [Mutex] notify: [retrieved:item:item-a21b85d2-9019-46cd-8b88-75f10a474f08:payload-matches:true:localhost] 2020-12-28 21:58:31 | [Mutex] received everything. 2020-12-28 21:58:31 | [Mutex] isItemNotified: retrieved:item:item-a21b85d2-9019-46cd-8b88-75f10a474f08:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.059s |
2020-12-28 21:58:31 |
2020-12-28 21:58:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-12-28 21:58:31 | ------------------------------------ 2020-12-28 21:58:31 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-12-28 21:58:31 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-18af74d2-f658-4f59-ac4c-e52a6a0052c6", "node-45a74fac-c705-4bcf-9bdb-6129b92e720f" ] } |
retrieveUserSubscriptionsWithRegex | 0.048s |
2020-12-28 21:58:31 |
2020-12-28 21:58:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-12-28 21:58:31 | ------------------------------------ 2020-12-28 21:58:31 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-45a74fac-c705-4bcf-9bdb-6129b92e720f)" } 2020-12-28 21:58:32 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.016s |
2020-12-28 21:58:30 |
2020-12-28 21:58:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-12-28 21:58:30 | ------------------------------------ 2020-12-28 21:58:30 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-45a74fac-c705-4bcf-9bdb-6129b92e720f", "jids": [ "admin@test-domain.com" ] } 2020-12-28 21:58:30 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.067s |
2020-12-28 21:58:32 |
2020-12-28 21:58:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-12-28 21:58:32 | ------------------------------------ 2020-12-28 21:58:32 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-45a74fac-c705-4bcf-9bdb-6129b92e720f", "jids": [ "admin@test-domain.com" ] } 2020-12-28 21:58:32 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |