Test duration : 9.208s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.127s |
2021-04-26 23:03:51 |
2021-04-26 23:03:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-26 23:03:51 | ------------------------------------ 2021-04-26 23:03:51 | [Mutex] waiting for: [configured:node:node-ec0efdf1-61cd-4682-b945-6694232e5425:node-024057ff-f395-41ea-9a55-61dd7f968701] 2021-04-26 23:03:51 | [Mutex] received everything. 2021-04-26 23:03:51 | [Mutex] isItemNotified: configured:node:node-ec0efdf1-61cd-4682-b945-6694232e5425:node-024057ff-f395-41ea-9a55-61dd7f968701 :: true 2021-04-26 23:03:52 | [Mutex] waiting for: [received:nodes:7a6ad9f2-29b3-4c50-82db-8b8e9f01c8b9:localhost] 2021-04-26 23:03:52 | [Mutex] received everything. 2021-04-26 23:03:52 | [Mutex] isItemNotified: received:node:7a6ad9f2-29b3-4c50-82db-8b8e9f01c8b9:localhost:node-ec0efdf1-61cd-4682-b945-6694232e5425:Node ec0efdf1-61cd-4682-b945-6694232e5425 :: true 2021-04-26 23:03:52 | [Mutex] waiting for: [received:nodes:74caf8f4-3348-4927-8e71-71cbda1924c6:localhost] 2021-04-26 23:03:52 | [Mutex] received everything. 2021-04-26 23:03:52 | [Mutex] isItemNotified: received:node:74caf8f4-3348-4927-8e71-71cbda1924c6:localhost:node-ec0efdf1-61cd-4682-b945-6694232e5425:Node ec0efdf1-61cd-4682-b945-6694232e5425 :: false |
createNodes | 1.731s |
2021-04-26 23:03:48 |
2021-04-26 23:03:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-26 23:03:48 | ------------------------------------ 2021-04-26 23:03:48 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-ec0efdf1-61cd-4682-b945-6694232e5425", "pubsub#title": "Node ec0efdf1-61cd-4682-b945-6694232e5425" } 2021-04-26 23:03:48 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-04-26 23:03:49 | [Mutex] waiting for: [received:nodes:5a85b7c5-b22b-4138-9a19-4975d60b6bf2:localhost] 2021-04-26 23:03:49 | [Mutex] received everything. 2021-04-26 23:03:49 | [Mutex] isItemNotified: received:node:5a85b7c5-b22b-4138-9a19-4975d60b6bf2:localhost:node-ec0efdf1-61cd-4682-b945-6694232e5425:Node ec0efdf1-61cd-4682-b945-6694232e5425 :: true |
createSubnodes | 1.037s |
2021-04-26 23:03:49 |
2021-04-26 23:03:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-26 23:03:49 | ------------------------------------ 2021-04-26 23:03:49 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-024057ff-f395-41ea-9a55-61dd7f968701", "pubsub#title": "Node 024057ff-f395-41ea-9a55-61dd7f968701" } 2021-04-26 23:03:50 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-04-26 23:03:51 | [Mutex] waiting for: [received:nodes:fba8aaa7-c19b-41d9-9b5d-b21b3ff398db:localhost] 2021-04-26 23:03:51 | [Mutex] received everything. 2021-04-26 23:03:51 | [Mutex] isItemNotified: received:node:fba8aaa7-c19b-41d9-9b5d-b21b3ff398db:localhost:node-024057ff-f395-41ea-9a55-61dd7f968701:Node 024057ff-f395-41ea-9a55-61dd7f968701 :: true |
deleteNodes | 1.025s |
2021-04-26 23:03:55 |
2021-04-26 23:03:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-26 23:03:55 | ------------------------------------ 2021-04-26 23:03:55 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-024057ff-f395-41ea-9a55-61dd7f968701" } 2021-04-26 23:03:55 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-04-26 23:03:56 | [Mutex] waiting for: [received:nodes:22f90eca-6bfe-4b57-b4b3-5fb697476e1d:localhost] 2021-04-26 23:03:56 | [Mutex] waiting for: [received:nodes:22f90eca-6bfe-4b57-b4b3-5fb697476e1d:localhost] 2021-04-26 23:03:56 | [Mutex] received everything. 2021-04-26 23:03:56 | [Mutex] isItemNotified: received:node:22f90eca-6bfe-4b57-b4b3-5fb697476e1d:localhost:node-024057ff-f395-41ea-9a55-61dd7f968701:Node 024057ff-f395-41ea-9a55-61dd7f968701 :: false |
deleteSubnodes | 1.032s |
2021-04-26 23:03:54 |
2021-04-26 23:03:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-26 23:03:54 | ------------------------------------ 2021-04-26 23:03:54 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-ec0efdf1-61cd-4682-b945-6694232e5425" } 2021-04-26 23:03:54 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-04-26 23:03:55 | [Mutex] waiting for: [received:nodes:725b6ff3-3947-4a70-9032-f5fe2a8f50dd:localhost] 2021-04-26 23:03:55 | [Mutex] waiting for: [received:nodes:725b6ff3-3947-4a70-9032-f5fe2a8f50dd:localhost] 2021-04-26 23:03:55 | [Mutex] received everything. 2021-04-26 23:03:55 | [Mutex] isItemNotified: received:node:725b6ff3-3947-4a70-9032-f5fe2a8f50dd:localhost:node-ec0efdf1-61cd-4682-b945-6694232e5425:Node ec0efdf1-61cd-4682-b945-6694232e5425 :: false 2021-04-26 23:03:55 | [Mutex] waiting for: [received:nodes:c80a9df9-2fb9-444b-b20e-8ef91d4d2d53:localhost] 2021-04-26 23:03:55 | [Mutex] received everything. 2021-04-26 23:03:55 | [Mutex] isItemNotified: received:node:c80a9df9-2fb9-444b-b20e-8ef91d4d2d53:localhost:node-ec0efdf1-61cd-4682-b945-6694232e5425:Node ec0efdf1-61cd-4682-b945-6694232e5425 :: false |
publishItemsToNodes | 0.099s |
2021-04-26 23:03:53 |
2021-04-26 23:03:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-26 23:03:53 | ------------------------------------ 2021-04-26 23:03:53 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-ec0efdf1-61cd-4682-b945-6694232e5425", "entry": "<test>item-c5907a36-321c-4eac-ab40-74a15527879f</test>", "item-id": "item-c5907a36-321c-4eac-ab40-74a15527879f" } 2021-04-26 23:03:53 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-c5907a36-321c-4eac-ab40-74a15527879f" } 2021-04-26 23:03:53 | [Mutex] received everything. 2021-04-26 23:03:53 | [Mutex] isItemNotified: published:item:notifieditem-c5907a36-321c-4eac-ab40-74a15527879f:admin@test-domain.com :: true |
retractItemsFromNodes | 0.063s |
2021-04-26 23:03:53 |
2021-04-26 23:03:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-26 23:03:53 | ------------------------------------ 2021-04-26 23:03:53 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-ec0efdf1-61cd-4682-b945-6694232e5425", "item-id": "item-c5907a36-321c-4eac-ab40-74a15527879f" } 2021-04-26 23:03:53 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-c5907a36-321c-4eac-ab40-74a15527879f" } 2021-04-26 23:03:53 | [Mutex] received everything. 2021-04-26 23:03:53 | [Mutex] isItemNotified: retracted:item:notifieditem-c5907a36-321c-4eac-ab40-74a15527879f:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.083s |
2021-04-26 23:03:53 |
2021-04-26 23:03:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-26 23:03:53 | ------------------------------------ 2021-04-26 23:03:53 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-ec0efdf1-61cd-4682-b945-6694232e5425", "item-id": "item-c5907a36-321c-4eac-ab40-74a15527879f" } 2021-04-26 23:03:53 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-ec0efdf1-61cd-4682-b945-6694232e5425", "item-id": "item-c5907a36-321c-4eac-ab40-74a15527879f", "item": [ "<item id=\"item-c5907a36-321c-4eac-ab40-74a15527879f\"><test>item-c5907a36-321c-4eac-ab40-74a15527879f</test></item>" ] } 2021-04-26 23:03:53 | [Mutex] notify: [retrieved:item:item-c5907a36-321c-4eac-ab40-74a15527879f:payload-matches:true:localhost] 2021-04-26 23:03:53 | [Mutex] received everything. 2021-04-26 23:03:53 | [Mutex] isItemNotified: retrieved:item:item-c5907a36-321c-4eac-ab40-74a15527879f:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2021-04-26 23:03:53 |
2021-04-26 23:03:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-26 23:03:53 | ------------------------------------ 2021-04-26 23:03:53 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-04-26 23:03:53 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-ec0efdf1-61cd-4682-b945-6694232e5425", "node-024057ff-f395-41ea-9a55-61dd7f968701" ] } |
retrieveUserSubscriptionsWithRegex | 0.055s |
2021-04-26 23:03:53 |
2021-04-26 23:03:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-26 23:03:53 | ------------------------------------ 2021-04-26 23:03:53 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-ec0efdf1-61cd-4682-b945-6694232e5425)" } 2021-04-26 23:03:53 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.017s |
2021-04-26 23:03:52 |
2021-04-26 23:03:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-26 23:03:52 | ------------------------------------ 2021-04-26 23:03:52 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-ec0efdf1-61cd-4682-b945-6694232e5425", "jids": [ "admin@test-domain.com" ] } 2021-04-26 23:03:52 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.087s |
2021-04-26 23:03:53 |
2021-04-26 23:03:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-26 23:03:53 | ------------------------------------ 2021-04-26 23:03:53 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-ec0efdf1-61cd-4682-b945-6694232e5425", "jids": [ "admin@test-domain.com" ] } 2021-04-26 23:03:53 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |