Test duration : 9.014s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.103s |
2021-05-27 10:30:50 |
2021-05-27 10:30:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-27 10:30:50 | ------------------------------------ 2021-05-27 10:30:50 | [Mutex] waiting for: [configured:node:node-1985f240-0cce-4b9f-ae02-7613aa4f71b6:node-ddde54ec-41a5-4f0e-8c69-bfc23ec0f26c] 2021-05-27 10:30:50 | [Mutex] received everything. 2021-05-27 10:30:50 | [Mutex] isItemNotified: configured:node:node-1985f240-0cce-4b9f-ae02-7613aa4f71b6:node-ddde54ec-41a5-4f0e-8c69-bfc23ec0f26c :: true 2021-05-27 10:30:51 | [Mutex] waiting for: [received:nodes:127500b1-e640-4f02-875e-fe8c3011880f:localhost] 2021-05-27 10:30:51 | [Mutex] received everything. 2021-05-27 10:30:51 | [Mutex] isItemNotified: received:node:127500b1-e640-4f02-875e-fe8c3011880f:localhost:node-1985f240-0cce-4b9f-ae02-7613aa4f71b6:Node 1985f240-0cce-4b9f-ae02-7613aa4f71b6 :: true 2021-05-27 10:30:51 | [Mutex] waiting for: [received:nodes:1d314f79-1d40-40ec-8d0d-0afee68e944b:localhost] 2021-05-27 10:30:51 | [Mutex] received everything. 2021-05-27 10:30:51 | [Mutex] isItemNotified: received:node:1d314f79-1d40-40ec-8d0d-0afee68e944b:localhost:node-1985f240-0cce-4b9f-ae02-7613aa4f71b6:Node 1985f240-0cce-4b9f-ae02-7613aa4f71b6 :: false |
createNodes | 1.712s |
2021-05-27 10:30:47 |
2021-05-27 10:30:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-27 10:30:47 | ------------------------------------ 2021-05-27 10:30:47 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-1985f240-0cce-4b9f-ae02-7613aa4f71b6", "pubsub#title": "Node 1985f240-0cce-4b9f-ae02-7613aa4f71b6" } 2021-05-27 10:30:48 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-05-27 10:30:49 | [Mutex] waiting for: [received:nodes:7621ebd6-0039-4d30-8cd8-c9e58972ccbc:localhost] 2021-05-27 10:30:49 | [Mutex] received everything. 2021-05-27 10:30:49 | [Mutex] isItemNotified: received:node:7621ebd6-0039-4d30-8cd8-c9e58972ccbc:localhost:node-1985f240-0cce-4b9f-ae02-7613aa4f71b6:Node 1985f240-0cce-4b9f-ae02-7613aa4f71b6 :: true |
createSubnodes | 1.027s |
2021-05-27 10:30:49 |
2021-05-27 10:30:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-27 10:30:49 | ------------------------------------ 2021-05-27 10:30: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-ddde54ec-41a5-4f0e-8c69-bfc23ec0f26c", "pubsub#title": "Node ddde54ec-41a5-4f0e-8c69-bfc23ec0f26c" } 2021-05-27 10:30:49 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-05-27 10:30:50 | [Mutex] waiting for: [received:nodes:45f52975-729a-4c4b-9454-fd3d9b95e6a0:localhost] 2021-05-27 10:30:50 | [Mutex] received everything. 2021-05-27 10:30:50 | [Mutex] isItemNotified: received:node:45f52975-729a-4c4b-9454-fd3d9b95e6a0:localhost:node-ddde54ec-41a5-4f0e-8c69-bfc23ec0f26c:Node ddde54ec-41a5-4f0e-8c69-bfc23ec0f26c :: true |
deleteNodes | 1.022s |
2021-05-27 10:30:54 |
2021-05-27 10:30:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-27 10:30:54 | ------------------------------------ 2021-05-27 10:30:54 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-ddde54ec-41a5-4f0e-8c69-bfc23ec0f26c" } 2021-05-27 10:30:54 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-05-27 10:30:55 | [Mutex] waiting for: [received:nodes:9f5ccd59-80d5-4d21-99e7-5edf0862f8d4:localhost] 2021-05-27 10:30:55 | [Mutex] received everything. 2021-05-27 10:30:55 | [Mutex] isItemNotified: received:node:9f5ccd59-80d5-4d21-99e7-5edf0862f8d4:localhost:node-ddde54ec-41a5-4f0e-8c69-bfc23ec0f26c:Node ddde54ec-41a5-4f0e-8c69-bfc23ec0f26c :: false |
deleteSubnodes | 1.025s |
2021-05-27 10:30:53 |
2021-05-27 10:30:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-27 10:30:53 | ------------------------------------ 2021-05-27 10:30:53 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-1985f240-0cce-4b9f-ae02-7613aa4f71b6" } 2021-05-27 10:30:53 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-05-27 10:30:54 | [Mutex] waiting for: [received:nodes:4c0db29b-7fa9-4b94-a236-cb34a6eb359f:localhost] 2021-05-27 10:30:54 | [Mutex] received everything. 2021-05-27 10:30:54 | [Mutex] isItemNotified: received:node:4c0db29b-7fa9-4b94-a236-cb34a6eb359f:localhost:node-1985f240-0cce-4b9f-ae02-7613aa4f71b6:Node 1985f240-0cce-4b9f-ae02-7613aa4f71b6 :: false 2021-05-27 10:30:54 | [Mutex] waiting for: [received:nodes:799de3f7-5674-44c2-bac8-aa440338faeb:localhost] 2021-05-27 10:30:54 | [Mutex] received everything. 2021-05-27 10:30:54 | [Mutex] isItemNotified: received:node:799de3f7-5674-44c2-bac8-aa440338faeb:localhost:node-1985f240-0cce-4b9f-ae02-7613aa4f71b6:Node 1985f240-0cce-4b9f-ae02-7613aa4f71b6 :: false |
publishItemsToNodes | 0.033s |
2021-05-27 10:30:52 |
2021-05-27 10:30:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-27 10:30:52 | ------------------------------------ 2021-05-27 10:30:52 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-1985f240-0cce-4b9f-ae02-7613aa4f71b6", "entry": "<test>item-b75407d2-7794-46a1-bdfc-3684d77a74ee</test>", "item-id": "item-b75407d2-7794-46a1-bdfc-3684d77a74ee" } 2021-05-27 10:30:52 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-b75407d2-7794-46a1-bdfc-3684d77a74ee" } 2021-05-27 10:30:52 | [Mutex] waiting for: [published:item:notifieditem-b75407d2-7794-46a1-bdfc-3684d77a74ee:admin@test-domain.com] 2021-05-27 10:30:52 | [Mutex] received everything. 2021-05-27 10:30:52 | [Mutex] isItemNotified: published:item:notifieditem-b75407d2-7794-46a1-bdfc-3684d77a74ee:admin@test-domain.com :: true |
retractItemsFromNodes | 0.109s |
2021-05-27 10:30:52 |
2021-05-27 10:30:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-27 10:30:52 | ------------------------------------ 2021-05-27 10:30:52 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-1985f240-0cce-4b9f-ae02-7613aa4f71b6", "item-id": "item-b75407d2-7794-46a1-bdfc-3684d77a74ee" } 2021-05-27 10:30:52 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-b75407d2-7794-46a1-bdfc-3684d77a74ee" } 2021-05-27 10:30:52 | [Mutex] waiting for: [retracted:item:notifieditem-b75407d2-7794-46a1-bdfc-3684d77a74ee:admin@test-domain.com] 2021-05-27 10:30:52 | [Mutex] received everything. 2021-05-27 10:30:52 | [Mutex] isItemNotified: retracted:item:notifieditem-b75407d2-7794-46a1-bdfc-3684d77a74ee:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.080s |
2021-05-27 10:30:52 |
2021-05-27 10:30:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-27 10:30:52 | ------------------------------------ 2021-05-27 10:30:52 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-1985f240-0cce-4b9f-ae02-7613aa4f71b6", "item-id": "item-b75407d2-7794-46a1-bdfc-3684d77a74ee" } 2021-05-27 10:30:52 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-1985f240-0cce-4b9f-ae02-7613aa4f71b6", "item-id": "item-b75407d2-7794-46a1-bdfc-3684d77a74ee", "item": [ "<item id=\"item-b75407d2-7794-46a1-bdfc-3684d77a74ee\"><test>item-b75407d2-7794-46a1-bdfc-3684d77a74ee</test></item>" ] } 2021-05-27 10:30:52 | [Mutex] notify: [retrieved:item:item-b75407d2-7794-46a1-bdfc-3684d77a74ee:payload-matches:true:localhost] 2021-05-27 10:30:52 | [Mutex] received everything. 2021-05-27 10:30:52 | [Mutex] isItemNotified: retrieved:item:item-b75407d2-7794-46a1-bdfc-3684d77a74ee:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.047s |
2021-05-27 10:30:52 |
2021-05-27 10:30:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-27 10:30:52 | ------------------------------------ 2021-05-27 10:30:52 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-05-27 10:30:52 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-ddde54ec-41a5-4f0e-8c69-bfc23ec0f26c", "node-1985f240-0cce-4b9f-ae02-7613aa4f71b6" ] } |
retrieveUserSubscriptionsWithRegex | 0.048s |
2021-05-27 10:30:52 |
2021-05-27 10:30:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-27 10:30:52 | ------------------------------------ 2021-05-27 10:30:52 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-1985f240-0cce-4b9f-ae02-7613aa4f71b6)" } 2021-05-27 10:30:52 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.013s |
2021-05-27 10:30:51 |
2021-05-27 10:30:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-27 10:30:51 | ------------------------------------ 2021-05-27 10:30:51 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-1985f240-0cce-4b9f-ae02-7613aa4f71b6", "jids": [ "admin@test-domain.com" ] } 2021-05-27 10:30:51 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.046s |
2021-05-27 10:30:52 |
2021-05-27 10:30:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-27 10:30:52 | ------------------------------------ 2021-05-27 10:30:52 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-1985f240-0cce-4b9f-ae02-7613aa4f71b6", "jids": [ "admin@test-domain.com" ] } 2021-05-27 10:30:52 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |