Test duration : 9.296s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.103s |
2021-12-05 21:43:55 |
2021-12-05 21:43:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-12-05 21:43:55 | ------------------------------------ 2021-12-05 21:43:55 | [Mutex] waiting for: [configured:node:node-ed498d61-1d58-4055-8d36-e98254c9b88a:node-72e677a1-948d-4b4b-a9b5-35f6807b5d31] 2021-12-05 21:43:55 | [Mutex] received everything. 2021-12-05 21:43:55 | [Mutex] isItemNotified: configured:node:node-ed498d61-1d58-4055-8d36-e98254c9b88a:node-72e677a1-948d-4b4b-a9b5-35f6807b5d31 :: true 2021-12-05 21:43:56 | [Mutex] waiting for: [received:nodes:bc26ba08-f0d9-4bf0-9a98-7bdaab79f09c:localhost] 2021-12-05 21:43:56 | [Mutex] received everything. 2021-12-05 21:43:56 | [Mutex] isItemNotified: received:node:bc26ba08-f0d9-4bf0-9a98-7bdaab79f09c:localhost:node-ed498d61-1d58-4055-8d36-e98254c9b88a:Node ed498d61-1d58-4055-8d36-e98254c9b88a :: true 2021-12-05 21:43:56 | [Mutex] waiting for: [received:nodes:c3114a68-2658-4dfa-ab41-d0d2185a25e1:localhost] 2021-12-05 21:43:56 | [Mutex] received everything. 2021-12-05 21:43:56 | [Mutex] isItemNotified: received:node:c3114a68-2658-4dfa-ab41-d0d2185a25e1:localhost:node-ed498d61-1d58-4055-8d36-e98254c9b88a:Node ed498d61-1d58-4055-8d36-e98254c9b88a :: false |
createNodes | 1.939s |
2021-12-05 21:43:52 |
2021-12-05 21:43:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-12-05 21:43:52 | ------------------------------------ 2021-12-05 21:43:53 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-ed498d61-1d58-4055-8d36-e98254c9b88a", "pubsub#title": "Node ed498d61-1d58-4055-8d36-e98254c9b88a" } 2021-12-05 21:43:53 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-12-05 21:43:54 | [Mutex] waiting for: [received:nodes:8181b363-1505-4e81-80ce-0768e9ace8cb:localhost] 2021-12-05 21:43:54 | [Mutex] waiting for: [received:nodes:8181b363-1505-4e81-80ce-0768e9ace8cb:localhost] 2021-12-05 21:43:54 | [Mutex] received everything. 2021-12-05 21:43:54 | [Mutex] isItemNotified: received:node:8181b363-1505-4e81-80ce-0768e9ace8cb:localhost:node-ed498d61-1d58-4055-8d36-e98254c9b88a:Node ed498d61-1d58-4055-8d36-e98254c9b88a :: true |
createSubnodes | 1.030s |
2021-12-05 21:43:54 |
2021-12-05 21:43:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-12-05 21:43:54 | ------------------------------------ 2021-12-05 21:43:54 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-72e677a1-948d-4b4b-a9b5-35f6807b5d31", "pubsub#title": "Node 72e677a1-948d-4b4b-a9b5-35f6807b5d31" } 2021-12-05 21:43:54 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-12-05 21:43:55 | [Mutex] waiting for: [received:nodes:cee52f14-86f1-43b3-bddd-d97425091919:localhost] 2021-12-05 21:43:55 | [Mutex] received everything. 2021-12-05 21:43:55 | [Mutex] isItemNotified: received:node:cee52f14-86f1-43b3-bddd-d97425091919:localhost:node-72e677a1-948d-4b4b-a9b5-35f6807b5d31:Node 72e677a1-948d-4b4b-a9b5-35f6807b5d31 :: true |
deleteNodes | 1.025s |
2021-12-05 21:43:59 |
2021-12-05 21:43:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-12-05 21:43:59 | ------------------------------------ 2021-12-05 21:43:59 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-72e677a1-948d-4b4b-a9b5-35f6807b5d31" } 2021-12-05 21:43:59 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-12-05 21:44:00 | [Mutex] waiting for: [received:nodes:7ef73539-16c0-4e46-8ad7-83466943ade9:localhost] 2021-12-05 21:44:00 | [Mutex] waiting for: [received:nodes:7ef73539-16c0-4e46-8ad7-83466943ade9:localhost] 2021-12-05 21:44:00 | [Mutex] received everything. 2021-12-05 21:44:00 | [Mutex] isItemNotified: received:node:7ef73539-16c0-4e46-8ad7-83466943ade9:localhost:node-72e677a1-948d-4b4b-a9b5-35f6807b5d31:Node 72e677a1-948d-4b4b-a9b5-35f6807b5d31 :: false |
deleteSubnodes | 1.032s |
2021-12-05 21:43:58 |
2021-12-05 21:43:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-12-05 21:43:58 | ------------------------------------ 2021-12-05 21:43:58 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-ed498d61-1d58-4055-8d36-e98254c9b88a" } 2021-12-05 21:43:58 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-12-05 21:43:59 | [Mutex] waiting for: [received:nodes:b79203f3-87f3-4a66-ac24-9373ea04457e:localhost] 2021-12-05 21:43:59 | [Mutex] received everything. 2021-12-05 21:43:59 | [Mutex] isItemNotified: received:node:b79203f3-87f3-4a66-ac24-9373ea04457e:localhost:node-ed498d61-1d58-4055-8d36-e98254c9b88a:Node ed498d61-1d58-4055-8d36-e98254c9b88a :: false 2021-12-05 21:43:59 | [Mutex] waiting for: [received:nodes:e522ab8c-c62d-45a6-aa4d-8b67d90a8b2e:localhost] 2021-12-05 21:43:59 | [Mutex] received everything. 2021-12-05 21:43:59 | [Mutex] isItemNotified: received:node:e522ab8c-c62d-45a6-aa4d-8b67d90a8b2e:localhost:node-ed498d61-1d58-4055-8d36-e98254c9b88a:Node ed498d61-1d58-4055-8d36-e98254c9b88a :: false |
publishItemsToNodes | 0.041s |
2021-12-05 21:43:57 |
2021-12-05 21:43:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-12-05 21:43:57 | ------------------------------------ 2021-12-05 21:43:57 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-ed498d61-1d58-4055-8d36-e98254c9b88a", "entry": "<test>item-23751488-1efa-4a37-b9d6-824158637af4</test>", "item-id": "item-23751488-1efa-4a37-b9d6-824158637af4" } 2021-12-05 21:43:57 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-23751488-1efa-4a37-b9d6-824158637af4" } 2021-12-05 21:43:57 | [Mutex] waiting for: [published:item:notifieditem-23751488-1efa-4a37-b9d6-824158637af4:admin@test-domain.com] 2021-12-05 21:43:57 | [Mutex] received everything. 2021-12-05 21:43:57 | [Mutex] isItemNotified: published:item:notifieditem-23751488-1efa-4a37-b9d6-824158637af4:admin@test-domain.com :: true |
retractItemsFromNodes | 0.055s |
2021-12-05 21:43:57 |
2021-12-05 21:43:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-12-05 21:43:57 | ------------------------------------ 2021-12-05 21:43:57 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-ed498d61-1d58-4055-8d36-e98254c9b88a", "item-id": "item-23751488-1efa-4a37-b9d6-824158637af4" } 2021-12-05 21:43:57 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-23751488-1efa-4a37-b9d6-824158637af4" } 2021-12-05 21:43:57 | [Mutex] received everything. 2021-12-05 21:43:57 | [Mutex] isItemNotified: retracted:item:notifieditem-23751488-1efa-4a37-b9d6-824158637af4:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.063s |
2021-12-05 21:43:57 |
2021-12-05 21:43:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-12-05 21:43:57 | ------------------------------------ 2021-12-05 21:43:57 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-ed498d61-1d58-4055-8d36-e98254c9b88a", "item-id": "item-23751488-1efa-4a37-b9d6-824158637af4" } 2021-12-05 21:43:57 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-ed498d61-1d58-4055-8d36-e98254c9b88a", "item-id": "item-23751488-1efa-4a37-b9d6-824158637af4", "item": [ "<item id=\"item-23751488-1efa-4a37-b9d6-824158637af4\"><test>item-23751488-1efa-4a37-b9d6-824158637af4</test></item>" ] } 2021-12-05 21:43:57 | [Mutex] notify: [retrieved:item:item-23751488-1efa-4a37-b9d6-824158637af4:payload-matches:true:localhost] 2021-12-05 21:43:57 | [Mutex] received everything. 2021-12-05 21:43:57 | [Mutex] isItemNotified: retrieved:item:item-23751488-1efa-4a37-b9d6-824158637af4:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.059s |
2021-12-05 21:43:57 |
2021-12-05 21:43:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-12-05 21:43:57 | ------------------------------------ 2021-12-05 21:43:57 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-12-05 21:43:57 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-ed498d61-1d58-4055-8d36-e98254c9b88a", "node-72e677a1-948d-4b4b-a9b5-35f6807b5d31" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2021-12-05 21:43:57 |
2021-12-05 21:43:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-12-05 21:43:57 | ------------------------------------ 2021-12-05 21:43:57 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-ed498d61-1d58-4055-8d36-e98254c9b88a)" } 2021-12-05 21:43:57 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.013s |
2021-12-05 21:43:56 |
2021-12-05 21:43:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-12-05 21:43:56 | ------------------------------------ 2021-12-05 21:43:56 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-ed498d61-1d58-4055-8d36-e98254c9b88a", "jids": [ "admin@test-domain.com" ] } 2021-12-05 21:43:56 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.083s |
2021-12-05 21:43:57 |
2021-12-05 21:43:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-12-05 21:43:57 | ------------------------------------ 2021-12-05 21:43:57 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-ed498d61-1d58-4055-8d36-e98254c9b88a", "jids": [ "admin@test-domain.com" ] } 2021-12-05 21:43:57 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |