Test duration : 8.879s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.105s |
2021-06-25 08:17:56 |
2021-06-25 08:17:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-06-25 08:17:56 | ------------------------------------ 2021-06-25 08:17:56 | [Mutex] waiting for: [configured:node:node-8a8ec6da-d1fb-4bdd-877d-e633eede660e:node-ef683501-6a19-43ec-b317-bb06d526c63d] 2021-06-25 08:17:56 | [Mutex] received everything. 2021-06-25 08:17:56 | [Mutex] isItemNotified: configured:node:node-8a8ec6da-d1fb-4bdd-877d-e633eede660e:node-ef683501-6a19-43ec-b317-bb06d526c63d :: true 2021-06-25 08:17:57 | [Mutex] waiting for: [received:nodes:82a11fc2-cdb6-49d3-80c9-18dc2e0683e0:localhost] 2021-06-25 08:17:57 | [Mutex] waiting for: [received:nodes:82a11fc2-cdb6-49d3-80c9-18dc2e0683e0:localhost] 2021-06-25 08:17:57 | [Mutex] received everything. 2021-06-25 08:17:57 | [Mutex] isItemNotified: received:node:82a11fc2-cdb6-49d3-80c9-18dc2e0683e0:localhost:node-8a8ec6da-d1fb-4bdd-877d-e633eede660e:Node 8a8ec6da-d1fb-4bdd-877d-e633eede660e :: true 2021-06-25 08:17:57 | [Mutex] waiting for: [received:nodes:f404d66e-f871-4854-9243-08d314ba5d5a:localhost] 2021-06-25 08:17:57 | [Mutex] waiting for: [received:nodes:f404d66e-f871-4854-9243-08d314ba5d5a:localhost] 2021-06-25 08:17:57 | [Mutex] received everything. 2021-06-25 08:17:57 | [Mutex] isItemNotified: received:node:f404d66e-f871-4854-9243-08d314ba5d5a:localhost:node-8a8ec6da-d1fb-4bdd-877d-e633eede660e:Node 8a8ec6da-d1fb-4bdd-877d-e633eede660e :: false |
createNodes | 1.578s |
2021-06-25 08:17:53 |
2021-06-25 08:17:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-06-25 08:17:53 | ------------------------------------ 2021-06-25 08:17:54 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-8a8ec6da-d1fb-4bdd-877d-e633eede660e", "pubsub#title": "Node 8a8ec6da-d1fb-4bdd-877d-e633eede660e" } 2021-06-25 08:17:54 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-06-25 08:17:55 | [Mutex] waiting for: [received:nodes:75c50405-42b1-47a5-ae43-f12156630a76:localhost] 2021-06-25 08:17:55 | [Mutex] received everything. 2021-06-25 08:17:55 | [Mutex] isItemNotified: received:node:75c50405-42b1-47a5-ae43-f12156630a76:localhost:node-8a8ec6da-d1fb-4bdd-877d-e633eede660e:Node 8a8ec6da-d1fb-4bdd-877d-e633eede660e :: true |
createSubnodes | 1.030s |
2021-06-25 08:17:55 |
2021-06-25 08:17:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-06-25 08:17:55 | ------------------------------------ 2021-06-25 08:17:55 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-ef683501-6a19-43ec-b317-bb06d526c63d", "pubsub#title": "Node ef683501-6a19-43ec-b317-bb06d526c63d" } 2021-06-25 08:17:55 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-06-25 08:17:56 | [Mutex] waiting for: [received:nodes:5a10a14e-2a47-4c11-9c45-90054632cfaa:localhost] 2021-06-25 08:17:56 | [Mutex] received everything. 2021-06-25 08:17:56 | [Mutex] isItemNotified: received:node:5a10a14e-2a47-4c11-9c45-90054632cfaa:localhost:node-ef683501-6a19-43ec-b317-bb06d526c63d:Node ef683501-6a19-43ec-b317-bb06d526c63d :: true |
deleteNodes | 1.030s |
2021-06-25 08:18:01 |
2021-06-25 08:18:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-06-25 08:18:01 | ------------------------------------ 2021-06-25 08:18:01 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-ef683501-6a19-43ec-b317-bb06d526c63d" } 2021-06-25 08:18:01 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-06-25 08:18:02 | [Mutex] waiting for: [received:nodes:ee305f6d-df5b-4fcb-ac14-9868b6cb560a:localhost] 2021-06-25 08:18:02 | [Mutex] waiting for: [received:nodes:ee305f6d-df5b-4fcb-ac14-9868b6cb560a:localhost] 2021-06-25 08:18:02 | [Mutex] received everything. 2021-06-25 08:18:02 | [Mutex] isItemNotified: received:node:ee305f6d-df5b-4fcb-ac14-9868b6cb560a:localhost:node-ef683501-6a19-43ec-b317-bb06d526c63d:Node ef683501-6a19-43ec-b317-bb06d526c63d :: false |
deleteSubnodes | 1.027s |
2021-06-25 08:18:00 |
2021-06-25 08:18:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-06-25 08:18:00 | ------------------------------------ 2021-06-25 08:18:00 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-8a8ec6da-d1fb-4bdd-877d-e633eede660e" } 2021-06-25 08:18:00 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-06-25 08:18:01 | [Mutex] waiting for: [received:nodes:8693e7a2-6752-41cd-b5f7-4e338b70564f:localhost] 2021-06-25 08:18:01 | [Mutex] received everything. 2021-06-25 08:18:01 | [Mutex] isItemNotified: received:node:8693e7a2-6752-41cd-b5f7-4e338b70564f:localhost:node-8a8ec6da-d1fb-4bdd-877d-e633eede660e:Node 8a8ec6da-d1fb-4bdd-877d-e633eede660e :: false 2021-06-25 08:18:01 | [Mutex] waiting for: [received:nodes:0b736bcd-8d1b-48e4-85bd-47944ed3b4cd:localhost] 2021-06-25 08:18:01 | [Mutex] received everything. 2021-06-25 08:18:01 | [Mutex] isItemNotified: received:node:0b736bcd-8d1b-48e4-85bd-47944ed3b4cd:localhost:node-8a8ec6da-d1fb-4bdd-877d-e633eede660e:Node 8a8ec6da-d1fb-4bdd-877d-e633eede660e :: false |
publishItemsToNodes | 0.051s |
2021-06-25 08:17:58 |
2021-06-25 08:17:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-06-25 08:17:58 | ------------------------------------ 2021-06-25 08:17:58 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-8a8ec6da-d1fb-4bdd-877d-e633eede660e", "entry": "<test>item-4415ae86-05f8-4bb8-ad02-1209842a9ff1</test>", "item-id": "item-4415ae86-05f8-4bb8-ad02-1209842a9ff1" } 2021-06-25 08:17:58 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-4415ae86-05f8-4bb8-ad02-1209842a9ff1" } 2021-06-25 08:17:58 | [Mutex] waiting for: [published:item:notifieditem-4415ae86-05f8-4bb8-ad02-1209842a9ff1:admin@test-domain.com] 2021-06-25 08:17:58 | [Mutex] received everything. 2021-06-25 08:17:58 | [Mutex] isItemNotified: published:item:notifieditem-4415ae86-05f8-4bb8-ad02-1209842a9ff1:admin@test-domain.com :: true |
retractItemsFromNodes | 0.059s |
2021-06-25 08:17:58 |
2021-06-25 08:17:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-06-25 08:17:58 | ------------------------------------ 2021-06-25 08:17:58 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-8a8ec6da-d1fb-4bdd-877d-e633eede660e", "item-id": "item-4415ae86-05f8-4bb8-ad02-1209842a9ff1" } 2021-06-25 08:17:58 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-4415ae86-05f8-4bb8-ad02-1209842a9ff1" } 2021-06-25 08:17:58 | [Mutex] received everything. 2021-06-25 08:17:58 | [Mutex] isItemNotified: retracted:item:notifieditem-4415ae86-05f8-4bb8-ad02-1209842a9ff1:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.069s |
2021-06-25 08:17:58 |
2021-06-25 08:17:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-06-25 08:17:58 | ------------------------------------ 2021-06-25 08:17:58 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-8a8ec6da-d1fb-4bdd-877d-e633eede660e", "item-id": "item-4415ae86-05f8-4bb8-ad02-1209842a9ff1" } 2021-06-25 08:17:58 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-8a8ec6da-d1fb-4bdd-877d-e633eede660e", "item-id": "item-4415ae86-05f8-4bb8-ad02-1209842a9ff1", "item": [ "<item id=\"item-4415ae86-05f8-4bb8-ad02-1209842a9ff1\"><test>item-4415ae86-05f8-4bb8-ad02-1209842a9ff1</test></item>" ] } 2021-06-25 08:17:58 | [Mutex] notify: [retrieved:item:item-4415ae86-05f8-4bb8-ad02-1209842a9ff1:payload-matches:true:localhost] 2021-06-25 08:17:58 | [Mutex] received everything. 2021-06-25 08:17:58 | [Mutex] isItemNotified: retrieved:item:item-4415ae86-05f8-4bb8-ad02-1209842a9ff1:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2021-06-25 08:17:58 |
2021-06-25 08:17:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-06-25 08:17:58 | ------------------------------------ 2021-06-25 08:17:58 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-06-25 08:17:58 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-ef683501-6a19-43ec-b317-bb06d526c63d", "node-8a8ec6da-d1fb-4bdd-877d-e633eede660e" ] } |
retrieveUserSubscriptionsWithRegex | 0.052s |
2021-06-25 08:17:58 |
2021-06-25 08:17:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-06-25 08:17:58 | ------------------------------------ 2021-06-25 08:17:58 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-8a8ec6da-d1fb-4bdd-877d-e633eede660e)" } 2021-06-25 08:17:58 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.015s |
2021-06-25 08:17:57 |
2021-06-25 08:17:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-06-25 08:17:57 | ------------------------------------ 2021-06-25 08:17:57 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-8a8ec6da-d1fb-4bdd-877d-e633eede660e", "jids": [ "admin@test-domain.com" ] } 2021-06-25 08:17:57 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.063s |
2021-06-25 08:17:58 |
2021-06-25 08:17:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-06-25 08:17:58 | ------------------------------------ 2021-06-25 08:17:58 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-8a8ec6da-d1fb-4bdd-877d-e633eede660e", "jids": [ "admin@test-domain.com" ] } 2021-06-25 08:17:59 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |