Test duration : 9.048s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.095s |
2020-09-20 23:58:15 |
2020-09-20 23:58:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-20 23:58:15 | ------------------------------------ 2020-09-20 23:58:15 | [Mutex] waiting for: [configured:node:node-49449b9d-df7f-4426-a908-3a0643728dea:node-a83e1da5-c1a4-40c1-9fef-61f669c34c2a] 2020-09-20 23:58:15 | [Mutex] received everything. 2020-09-20 23:58:15 | [Mutex] isItemNotified: configured:node:node-49449b9d-df7f-4426-a908-3a0643728dea:node-a83e1da5-c1a4-40c1-9fef-61f669c34c2a :: true 2020-09-20 23:58:16 | [Mutex] waiting for: [received:nodes:80695220-d998-4a0f-ada5-7f9a0cdb32d8:localhost] 2020-09-20 23:58:16 | [Mutex] received everything. 2020-09-20 23:58:16 | [Mutex] isItemNotified: received:node:80695220-d998-4a0f-ada5-7f9a0cdb32d8:localhost:node-49449b9d-df7f-4426-a908-3a0643728dea:Node 49449b9d-df7f-4426-a908-3a0643728dea :: true 2020-09-20 23:58:16 | [Mutex] waiting for: [received:nodes:64cd2ec4-0442-465a-9da6-f5d1d8ca82f0:localhost] 2020-09-20 23:58:16 | [Mutex] waiting for: [received:nodes:64cd2ec4-0442-465a-9da6-f5d1d8ca82f0:localhost] 2020-09-20 23:58:16 | [Mutex] received everything. 2020-09-20 23:58:16 | [Mutex] isItemNotified: received:node:64cd2ec4-0442-465a-9da6-f5d1d8ca82f0:localhost:node-49449b9d-df7f-4426-a908-3a0643728dea:Node 49449b9d-df7f-4426-a908-3a0643728dea :: false |
createNodes | 1.727s |
2020-09-20 23:58:12 |
2020-09-20 23:58:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-20 23:58:12 | ------------------------------------ 2020-09-20 23:58:12 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-49449b9d-df7f-4426-a908-3a0643728dea", "pubsub#title": "Node 49449b9d-df7f-4426-a908-3a0643728dea" } 2020-09-20 23:58:13 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-20 23:58:14 | [Mutex] waiting for: [received:nodes:bbe1044e-0b43-42f8-83ca-8e63f3587a58:localhost] 2020-09-20 23:58:14 | [Mutex] received everything. 2020-09-20 23:58:14 | [Mutex] isItemNotified: received:node:bbe1044e-0b43-42f8-83ca-8e63f3587a58:localhost:node-49449b9d-df7f-4426-a908-3a0643728dea:Node 49449b9d-df7f-4426-a908-3a0643728dea :: true |
createSubnodes | 1.027s |
2020-09-20 23:58:14 |
2020-09-20 23:58:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-20 23:58:14 | ------------------------------------ 2020-09-20 23:58:14 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-a83e1da5-c1a4-40c1-9fef-61f669c34c2a", "pubsub#title": "Node a83e1da5-c1a4-40c1-9fef-61f669c34c2a" } 2020-09-20 23:58:14 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-20 23:58:15 | [Mutex] waiting for: [received:nodes:6a7b4bb8-fae2-46e0-81a3-be5c4167bc28:localhost] 2020-09-20 23:58:15 | [Mutex] received everything. 2020-09-20 23:58:15 | [Mutex] isItemNotified: received:node:6a7b4bb8-fae2-46e0-81a3-be5c4167bc28:localhost:node-a83e1da5-c1a4-40c1-9fef-61f669c34c2a:Node a83e1da5-c1a4-40c1-9fef-61f669c34c2a :: true |
deleteNodes | 1.022s |
2020-09-20 23:58:19 |
2020-09-20 23:58:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-20 23:58:19 | ------------------------------------ 2020-09-20 23:58:19 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-a83e1da5-c1a4-40c1-9fef-61f669c34c2a" } 2020-09-20 23:58:19 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-20 23:58:20 | [Mutex] waiting for: [received:nodes:b28c459c-ba66-4480-9d0a-07d1440e0766:localhost] 2020-09-20 23:58:20 | [Mutex] waiting for: [received:nodes:b28c459c-ba66-4480-9d0a-07d1440e0766:localhost] 2020-09-20 23:58:20 | [Mutex] received everything. 2020-09-20 23:58:20 | [Mutex] isItemNotified: received:node:b28c459c-ba66-4480-9d0a-07d1440e0766:localhost:node-a83e1da5-c1a4-40c1-9fef-61f669c34c2a:Node a83e1da5-c1a4-40c1-9fef-61f669c34c2a :: false |
deleteSubnodes | 1.025s |
2020-09-20 23:58:18 |
2020-09-20 23:58:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-20 23:58:18 | ------------------------------------ 2020-09-20 23:58:18 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-49449b9d-df7f-4426-a908-3a0643728dea" } 2020-09-20 23:58:18 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-20 23:58:19 | [Mutex] waiting for: [received:nodes:64865c4b-1a67-4409-9156-55a7bc9ebfc4:localhost] 2020-09-20 23:58:19 | [Mutex] received everything. 2020-09-20 23:58:19 | [Mutex] isItemNotified: received:node:64865c4b-1a67-4409-9156-55a7bc9ebfc4:localhost:node-49449b9d-df7f-4426-a908-3a0643728dea:Node 49449b9d-df7f-4426-a908-3a0643728dea :: false 2020-09-20 23:58:19 | [Mutex] waiting for: [received:nodes:c47d3ca3-ca24-4bb3-8aae-ca4f3f7e5cb4:localhost] 2020-09-20 23:58:19 | [Mutex] received everything. 2020-09-20 23:58:19 | [Mutex] isItemNotified: received:node:c47d3ca3-ca24-4bb3-8aae-ca4f3f7e5cb4:localhost:node-49449b9d-df7f-4426-a908-3a0643728dea:Node 49449b9d-df7f-4426-a908-3a0643728dea :: false |
publishItemsToNodes | 0.035s |
2020-09-20 23:58:17 |
2020-09-20 23:58:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-20 23:58:17 | ------------------------------------ 2020-09-20 23:58:17 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-49449b9d-df7f-4426-a908-3a0643728dea", "entry": "<test>item-447bac7b-60e3-4aca-9662-9efe2353efc4</test>", "item-id": "item-447bac7b-60e3-4aca-9662-9efe2353efc4" } 2020-09-20 23:58:17 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-447bac7b-60e3-4aca-9662-9efe2353efc4" } 2020-09-20 23:58:17 | [Mutex] waiting for: [published:item:notifieditem-447bac7b-60e3-4aca-9662-9efe2353efc4:admin@test-domain.com] 2020-09-20 23:58:17 | [Mutex] received everything. 2020-09-20 23:58:17 | [Mutex] isItemNotified: published:item:notifieditem-447bac7b-60e3-4aca-9662-9efe2353efc4:admin@test-domain.com :: true |
retractItemsFromNodes | 0.060s |
2020-09-20 23:58:17 |
2020-09-20 23:58:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-20 23:58:17 | ------------------------------------ 2020-09-20 23:58:17 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-49449b9d-df7f-4426-a908-3a0643728dea", "item-id": "item-447bac7b-60e3-4aca-9662-9efe2353efc4" } 2020-09-20 23:58:17 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-447bac7b-60e3-4aca-9662-9efe2353efc4" } 2020-09-20 23:58:17 | [Mutex] received everything. 2020-09-20 23:58:17 | [Mutex] isItemNotified: retracted:item:notifieditem-447bac7b-60e3-4aca-9662-9efe2353efc4:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.067s |
2020-09-20 23:58:17 |
2020-09-20 23:58:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-20 23:58:17 | ------------------------------------ 2020-09-20 23:58:17 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-49449b9d-df7f-4426-a908-3a0643728dea", "item-id": "item-447bac7b-60e3-4aca-9662-9efe2353efc4" } 2020-09-20 23:58:17 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-49449b9d-df7f-4426-a908-3a0643728dea", "item-id": "item-447bac7b-60e3-4aca-9662-9efe2353efc4", "item": [ "<item id=\"item-447bac7b-60e3-4aca-9662-9efe2353efc4\"><test>item-447bac7b-60e3-4aca-9662-9efe2353efc4</test></item>" ] } 2020-09-20 23:58:17 | [Mutex] notify: [retrieved:item:item-447bac7b-60e3-4aca-9662-9efe2353efc4:payload-matches:true:localhost] 2020-09-20 23:58:17 | [Mutex] received everything. 2020-09-20 23:58:17 | [Mutex] isItemNotified: retrieved:item:item-447bac7b-60e3-4aca-9662-9efe2353efc4:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.050s |
2020-09-20 23:58:17 |
2020-09-20 23:58:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-20 23:58:17 | ------------------------------------ 2020-09-20 23:58:17 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-09-20 23:58:17 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-a83e1da5-c1a4-40c1-9fef-61f669c34c2a", "test", "node-49449b9d-df7f-4426-a908-3a0643728dea" ] } |
retrieveUserSubscriptionsWithRegex | 0.048s |
2020-09-20 23:58:17 |
2020-09-20 23:58:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-20 23:58:17 | ------------------------------------ 2020-09-20 23:58:17 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-49449b9d-df7f-4426-a908-3a0643728dea)" } 2020-09-20 23:58:17 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.008s |
2020-09-20 23:58:16 |
2020-09-20 23:58:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-20 23:58:16 | ------------------------------------ 2020-09-20 23:58:16 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-49449b9d-df7f-4426-a908-3a0643728dea", "jids": [ "admin@test-domain.com" ] } 2020-09-20 23:58:16 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.056s |
2020-09-20 23:58:17 |
2020-09-20 23:58:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-20 23:58:17 | ------------------------------------ 2020-09-20 23:58:17 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-49449b9d-df7f-4426-a908-3a0643728dea", "jids": [ "admin@test-domain.com" ] } 2020-09-20 23:58:17 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |