Test duration : 9.385s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.113s |
2020-08-28 23:47:25 |
2020-08-28 23:47:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-28 23:47:25 | ------------------------------------ 2020-08-28 23:47:25 | [Mutex] waiting for: [configured:node:node-11b330d5-75d0-4b88-a39b-e6e4011a168e:node-a9574750-467c-4848-89e2-c0c0d5f49685] 2020-08-28 23:47:25 | [Mutex] received everything. 2020-08-28 23:47:25 | [Mutex] isItemNotified: configured:node:node-11b330d5-75d0-4b88-a39b-e6e4011a168e:node-a9574750-467c-4848-89e2-c0c0d5f49685 :: true 2020-08-28 23:47:26 | [Mutex] waiting for: [received:nodes:166642e7-6576-41bf-99be-eddbed49ff6c:localhost] 2020-08-28 23:47:27 | [Mutex] received everything. 2020-08-28 23:47:27 | [Mutex] isItemNotified: received:node:166642e7-6576-41bf-99be-eddbed49ff6c:localhost:node-11b330d5-75d0-4b88-a39b-e6e4011a168e:Node 11b330d5-75d0-4b88-a39b-e6e4011a168e :: true 2020-08-28 23:47:27 | [Mutex] waiting for: [received:nodes:53beca68-3675-4054-a878-e472a4188001:localhost] 2020-08-28 23:47:27 | [Mutex] received everything. 2020-08-28 23:47:27 | [Mutex] isItemNotified: received:node:53beca68-3675-4054-a878-e472a4188001:localhost:node-11b330d5-75d0-4b88-a39b-e6e4011a168e:Node 11b330d5-75d0-4b88-a39b-e6e4011a168e :: false |
createNodes | 1.979s |
2020-08-28 23:47:22 |
2020-08-28 23:47:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-28 23:47:22 | ------------------------------------ 2020-08-28 23:47:23 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-11b330d5-75d0-4b88-a39b-e6e4011a168e", "pubsub#title": "Node 11b330d5-75d0-4b88-a39b-e6e4011a168e" } 2020-08-28 23:47:23 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-08-28 23:47:24 | [Mutex] waiting for: [received:nodes:2ca85537-ce1a-4685-8d99-ca8265fc48f2:localhost] 2020-08-28 23:47:24 | [Mutex] received everything. 2020-08-28 23:47:24 | [Mutex] isItemNotified: received:node:2ca85537-ce1a-4685-8d99-ca8265fc48f2:localhost:node-11b330d5-75d0-4b88-a39b-e6e4011a168e:Node 11b330d5-75d0-4b88-a39b-e6e4011a168e :: true |
createSubnodes | 1.028s |
2020-08-28 23:47:24 |
2020-08-28 23:47:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-28 23:47:24 | ------------------------------------ 2020-08-28 23:47:24 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-a9574750-467c-4848-89e2-c0c0d5f49685", "pubsub#title": "Node a9574750-467c-4848-89e2-c0c0d5f49685" } 2020-08-28 23:47:24 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-08-28 23:47:25 | [Mutex] waiting for: [received:nodes:38651d4d-4b4f-41b9-88f9-9d1cf22190bb:localhost] 2020-08-28 23:47:25 | [Mutex] received everything. 2020-08-28 23:47:25 | [Mutex] isItemNotified: received:node:38651d4d-4b4f-41b9-88f9-9d1cf22190bb:localhost:node-a9574750-467c-4848-89e2-c0c0d5f49685:Node a9574750-467c-4848-89e2-c0c0d5f49685 :: true |
deleteNodes | 1.027s |
2020-08-28 23:47:30 |
2020-08-28 23:47:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-28 23:47:30 | ------------------------------------ 2020-08-28 23:47:30 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-a9574750-467c-4848-89e2-c0c0d5f49685" } 2020-08-28 23:47:30 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-08-28 23:47:31 | [Mutex] waiting for: [received:nodes:cc61cb79-1426-4334-844b-6fd326f3f9e9:localhost] 2020-08-28 23:47:31 | [Mutex] received everything. 2020-08-28 23:47:31 | [Mutex] isItemNotified: received:node:cc61cb79-1426-4334-844b-6fd326f3f9e9:localhost:node-a9574750-467c-4848-89e2-c0c0d5f49685:Node a9574750-467c-4848-89e2-c0c0d5f49685 :: false |
deleteSubnodes | 1.033s |
2020-08-28 23:47:29 |
2020-08-28 23:47:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-28 23:47:29 | ------------------------------------ 2020-08-28 23:47:29 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-11b330d5-75d0-4b88-a39b-e6e4011a168e" } 2020-08-28 23:47:29 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-08-28 23:47:30 | [Mutex] waiting for: [received:nodes:6ae2750c-53a3-4efd-9d19-fac3667b5ea2:localhost] 2020-08-28 23:47:30 | [Mutex] received everything. 2020-08-28 23:47:30 | [Mutex] isItemNotified: received:node:6ae2750c-53a3-4efd-9d19-fac3667b5ea2:localhost:node-11b330d5-75d0-4b88-a39b-e6e4011a168e:Node 11b330d5-75d0-4b88-a39b-e6e4011a168e :: false 2020-08-28 23:47:30 | [Mutex] waiting for: [received:nodes:19cebed8-cf3f-4893-aa4b-b99059f0fa36:localhost] 2020-08-28 23:47:30 | [Mutex] received everything. 2020-08-28 23:47:30 | [Mutex] isItemNotified: received:node:19cebed8-cf3f-4893-aa4b-b99059f0fa36:localhost:node-11b330d5-75d0-4b88-a39b-e6e4011a168e:Node 11b330d5-75d0-4b88-a39b-e6e4011a168e :: false |
publishItemsToNodes | 0.041s |
2020-08-28 23:47:28 |
2020-08-28 23:47:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-28 23:47:28 | ------------------------------------ 2020-08-28 23:47:28 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-11b330d5-75d0-4b88-a39b-e6e4011a168e", "entry": "<test>item-72deaf68-bf13-4021-b705-69c9c4c7841e</test>", "item-id": "item-72deaf68-bf13-4021-b705-69c9c4c7841e" } 2020-08-28 23:47:28 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-72deaf68-bf13-4021-b705-69c9c4c7841e" } 2020-08-28 23:47:28 | [Mutex] waiting for: [published:item:notifieditem-72deaf68-bf13-4021-b705-69c9c4c7841e:admin@test-domain.com] 2020-08-28 23:47:28 | [Mutex] received everything. 2020-08-28 23:47:28 | [Mutex] isItemNotified: published:item:notifieditem-72deaf68-bf13-4021-b705-69c9c4c7841e:admin@test-domain.com :: true |
retractItemsFromNodes | 0.107s |
2020-08-28 23:47:28 |
2020-08-28 23:47:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-28 23:47:28 | ------------------------------------ 2020-08-28 23:47:28 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-11b330d5-75d0-4b88-a39b-e6e4011a168e", "item-id": "item-72deaf68-bf13-4021-b705-69c9c4c7841e" } 2020-08-28 23:47:28 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-72deaf68-bf13-4021-b705-69c9c4c7841e" } 2020-08-28 23:47:28 | [Mutex] received everything. 2020-08-28 23:47:28 | [Mutex] isItemNotified: retracted:item:notifieditem-72deaf68-bf13-4021-b705-69c9c4c7841e:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.068s |
2020-08-28 23:47:28 |
2020-08-28 23:47:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-28 23:47:28 | ------------------------------------ 2020-08-28 23:47:28 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-11b330d5-75d0-4b88-a39b-e6e4011a168e", "item-id": "item-72deaf68-bf13-4021-b705-69c9c4c7841e" } 2020-08-28 23:47:28 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-11b330d5-75d0-4b88-a39b-e6e4011a168e", "item-id": "item-72deaf68-bf13-4021-b705-69c9c4c7841e", "item": [ "<item id=\"item-72deaf68-bf13-4021-b705-69c9c4c7841e\"><test>item-72deaf68-bf13-4021-b705-69c9c4c7841e</test></item>" ] } 2020-08-28 23:47:28 | [Mutex] notify: [retrieved:item:item-72deaf68-bf13-4021-b705-69c9c4c7841e:payload-matches:true:localhost] 2020-08-28 23:47:28 | [Mutex] received everything. 2020-08-28 23:47:28 | [Mutex] isItemNotified: retrieved:item:item-72deaf68-bf13-4021-b705-69c9c4c7841e:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.055s |
2020-08-28 23:47:28 |
2020-08-28 23:47:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-28 23:47:28 | ------------------------------------ 2020-08-28 23:47:28 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-08-28 23:47:28 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-a9574750-467c-4848-89e2-c0c0d5f49685", "test", "node-11b330d5-75d0-4b88-a39b-e6e4011a168e" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2020-08-28 23:47:28 |
2020-08-28 23:47:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-28 23:47:28 | ------------------------------------ 2020-08-28 23:47:28 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-11b330d5-75d0-4b88-a39b-e6e4011a168e)" } 2020-08-28 23:47:28 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.015s |
2020-08-28 23:47:27 |
2020-08-28 23:47:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-28 23:47:27 | ------------------------------------ 2020-08-28 23:47:27 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-11b330d5-75d0-4b88-a39b-e6e4011a168e", "jids": [ "admin@test-domain.com" ] } 2020-08-28 23:47:27 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.079s |
2020-08-28 23:47:28 |
2020-08-28 23:47:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-28 23:47:28 | ------------------------------------ 2020-08-28 23:47:28 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-11b330d5-75d0-4b88-a39b-e6e4011a168e", "jids": [ "admin@test-domain.com" ] } 2020-08-28 23:47:28 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |