Test duration : 8.810s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.097s |
2022-05-09 22:37:51 |
2022-05-09 22:37:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-09 22:37:51 | ------------------------------------ 2022-05-09 22:37:51 | [Mutex] waiting for: [configured:node:node-ea0ffd0a-72ac-4d79-8593-71fe997b85af:node-72557b65-cba0-4dd2-9084-251f879062b6] 2022-05-09 22:37:51 | [Mutex] received everything. 2022-05-09 22:37:51 | [Mutex] isItemNotified: configured:node:node-ea0ffd0a-72ac-4d79-8593-71fe997b85af:node-72557b65-cba0-4dd2-9084-251f879062b6 :: true 2022-05-09 22:37:52 | [Mutex] waiting for: [received:nodes:d5c213a4-08c3-4b36-9b40-4d29ec981dd9:localhost] 2022-05-09 22:37:52 | [Mutex] received everything. 2022-05-09 22:37:52 | [Mutex] isItemNotified: received:node:d5c213a4-08c3-4b36-9b40-4d29ec981dd9:localhost:node-ea0ffd0a-72ac-4d79-8593-71fe997b85af:Node ea0ffd0a-72ac-4d79-8593-71fe997b85af :: true 2022-05-09 22:37:52 | [Mutex] waiting for: [received:nodes:cb38f666-2564-423d-863c-f4a74b418b13:localhost] 2022-05-09 22:37:52 | [Mutex] received everything. 2022-05-09 22:37:52 | [Mutex] isItemNotified: received:node:cb38f666-2564-423d-863c-f4a74b418b13:localhost:node-ea0ffd0a-72ac-4d79-8593-71fe997b85af:Node ea0ffd0a-72ac-4d79-8593-71fe997b85af :: false |
createNodes | 1.610s |
2022-05-09 22:37:48 |
2022-05-09 22:37:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-09 22:37:48 | ------------------------------------ 2022-05-09 22:37:49 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-ea0ffd0a-72ac-4d79-8593-71fe997b85af", "pubsub#title": "Node ea0ffd0a-72ac-4d79-8593-71fe997b85af" } 2022-05-09 22:37:49 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-09 22:37:50 | [Mutex] waiting for: [received:nodes:c3977928-70c2-4848-aebf-172f893c39ab:localhost] 2022-05-09 22:37:50 | [Mutex] received everything. 2022-05-09 22:37:50 | [Mutex] isItemNotified: received:node:c3977928-70c2-4848-aebf-172f893c39ab:localhost:node-ea0ffd0a-72ac-4d79-8593-71fe997b85af:Node ea0ffd0a-72ac-4d79-8593-71fe997b85af :: true |
createSubnodes | 1.027s |
2022-05-09 22:37:50 |
2022-05-09 22:37:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-09 22:37:50 | ------------------------------------ 2022-05-09 22:37:50 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-72557b65-cba0-4dd2-9084-251f879062b6", "pubsub#title": "Node 72557b65-cba0-4dd2-9084-251f879062b6" } 2022-05-09 22:37:50 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-09 22:37:51 | [Mutex] waiting for: [received:nodes:6d43a270-35ec-43ab-9a63-f6ae46edf284:localhost] 2022-05-09 22:37:51 | [Mutex] received everything. 2022-05-09 22:37:51 | [Mutex] isItemNotified: received:node:6d43a270-35ec-43ab-9a63-f6ae46edf284:localhost:node-72557b65-cba0-4dd2-9084-251f879062b6:Node 72557b65-cba0-4dd2-9084-251f879062b6 :: true |
deleteNodes | 1.019s |
2022-05-09 22:37:55 |
2022-05-09 22:37:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-09 22:37:55 | ------------------------------------ 2022-05-09 22:37:55 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-72557b65-cba0-4dd2-9084-251f879062b6" } 2022-05-09 22:37:55 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-09 22:37:56 | [Mutex] waiting for: [received:nodes:18d5d4be-6b3e-41b8-8a1c-b9d71b7f9f04:localhost] 2022-05-09 22:37:56 | [Mutex] received everything. 2022-05-09 22:37:56 | [Mutex] isItemNotified: received:node:18d5d4be-6b3e-41b8-8a1c-b9d71b7f9f04:localhost:node-72557b65-cba0-4dd2-9084-251f879062b6:Node 72557b65-cba0-4dd2-9084-251f879062b6 :: false |
deleteSubnodes | 1.039s |
2022-05-09 22:37:54 |
2022-05-09 22:37:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-09 22:37:54 | ------------------------------------ 2022-05-09 22:37:54 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-ea0ffd0a-72ac-4d79-8593-71fe997b85af" } 2022-05-09 22:37:54 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-09 22:37:55 | [Mutex] waiting for: [received:nodes:457d7c6a-9e91-42d2-b846-4a57eb0fbab5:localhost] 2022-05-09 22:37:55 | [Mutex] received everything. 2022-05-09 22:37:55 | [Mutex] isItemNotified: received:node:457d7c6a-9e91-42d2-b846-4a57eb0fbab5:localhost:node-ea0ffd0a-72ac-4d79-8593-71fe997b85af:Node ea0ffd0a-72ac-4d79-8593-71fe997b85af :: false 2022-05-09 22:37:55 | [Mutex] waiting for: [received:nodes:3d0346bb-0ffc-4696-a47d-d9c15cb68d68:localhost] 2022-05-09 22:37:55 | [Mutex] received everything. 2022-05-09 22:37:55 | [Mutex] isItemNotified: received:node:3d0346bb-0ffc-4696-a47d-d9c15cb68d68:localhost:node-ea0ffd0a-72ac-4d79-8593-71fe997b85af:Node ea0ffd0a-72ac-4d79-8593-71fe997b85af :: false |
publishItemsToNodes | 0.052s |
2022-05-09 22:37:53 |
2022-05-09 22:37:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-09 22:37:53 | ------------------------------------ 2022-05-09 22:37:53 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-ea0ffd0a-72ac-4d79-8593-71fe997b85af", "entry": "<test>item-c5306be9-3165-4a16-bd13-1cca33ae0f9a</test>", "item-id": "item-c5306be9-3165-4a16-bd13-1cca33ae0f9a" } 2022-05-09 22:37:53 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-c5306be9-3165-4a16-bd13-1cca33ae0f9a" } 2022-05-09 22:37:53 | [Mutex] waiting for: [published:item:notifieditem-c5306be9-3165-4a16-bd13-1cca33ae0f9a:admin@test-domain.com] 2022-05-09 22:37:53 | [Mutex] received everything. 2022-05-09 22:37:53 | [Mutex] isItemNotified: published:item:notifieditem-c5306be9-3165-4a16-bd13-1cca33ae0f9a:admin@test-domain.com :: true |
retractItemsFromNodes | 0.051s |
2022-05-09 22:37:53 |
2022-05-09 22:37:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-09 22:37:53 | ------------------------------------ 2022-05-09 22:37:53 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-ea0ffd0a-72ac-4d79-8593-71fe997b85af", "item-id": "item-c5306be9-3165-4a16-bd13-1cca33ae0f9a" } 2022-05-09 22:37:53 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-c5306be9-3165-4a16-bd13-1cca33ae0f9a" } 2022-05-09 22:37:53 | [Mutex] received everything. 2022-05-09 22:37:53 | [Mutex] isItemNotified: retracted:item:notifieditem-c5306be9-3165-4a16-bd13-1cca33ae0f9a:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.062s |
2022-05-09 22:37:53 |
2022-05-09 22:37:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-09 22:37:53 | ------------------------------------ 2022-05-09 22:37:53 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-ea0ffd0a-72ac-4d79-8593-71fe997b85af", "item-id": "item-c5306be9-3165-4a16-bd13-1cca33ae0f9a" } 2022-05-09 22:37:53 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-ea0ffd0a-72ac-4d79-8593-71fe997b85af", "item-id": "item-c5306be9-3165-4a16-bd13-1cca33ae0f9a", "item": [ "<item id=\"item-c5306be9-3165-4a16-bd13-1cca33ae0f9a\"><test>item-c5306be9-3165-4a16-bd13-1cca33ae0f9a</test></item>" ] } 2022-05-09 22:37:53 | [Mutex] notify: [retrieved:item:item-c5306be9-3165-4a16-bd13-1cca33ae0f9a:payload-matches:true:localhost] 2022-05-09 22:37:53 | [Mutex] received everything. 2022-05-09 22:37:53 | [Mutex] isItemNotified: retrieved:item:item-c5306be9-3165-4a16-bd13-1cca33ae0f9a:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.047s |
2022-05-09 22:37:53 |
2022-05-09 22:37:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-09 22:37:53 | ------------------------------------ 2022-05-09 22:37:53 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-05-09 22:37:53 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-72557b65-cba0-4dd2-9084-251f879062b6", "node-ea0ffd0a-72ac-4d79-8593-71fe997b85af" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2022-05-09 22:37:53 |
2022-05-09 22:37:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-09 22:37:53 | ------------------------------------ 2022-05-09 22:37:53 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-ea0ffd0a-72ac-4d79-8593-71fe997b85af)" } 2022-05-09 22:37:53 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.010s |
2022-05-09 22:37:52 |
2022-05-09 22:37:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-09 22:37:52 | ------------------------------------ 2022-05-09 22:37:52 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-ea0ffd0a-72ac-4d79-8593-71fe997b85af", "jids": [ "admin@test-domain.com" ] } 2022-05-09 22:37:52 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.071s |
2022-05-09 22:37:53 |
2022-05-09 22:37:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-09 22:37:53 | ------------------------------------ 2022-05-09 22:37:53 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-ea0ffd0a-72ac-4d79-8593-71fe997b85af", "jids": [ "admin@test-domain.com" ] } 2022-05-09 22:37:53 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |