Test duration : 9.046s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.131s |
2021-09-28 22:28:32 |
2021-09-28 22:28:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-28 22:28:32 | ------------------------------------ 2021-09-28 22:28:32 | [Mutex] waiting for: [configured:node:node-22d480e9-3357-4212-a41f-edb3dc285476:node-d2946ff1-50ce-4781-851e-d6bf3bc62add] 2021-09-28 22:28:32 | [Mutex] received everything. 2021-09-28 22:28:32 | [Mutex] isItemNotified: configured:node:node-22d480e9-3357-4212-a41f-edb3dc285476:node-d2946ff1-50ce-4781-851e-d6bf3bc62add :: true 2021-09-28 22:28:33 | [Mutex] waiting for: [received:nodes:1ecceea3-6df6-4c38-abba-3d8d1fd5a55b:localhost] 2021-09-28 22:28:33 | [Mutex] received everything. 2021-09-28 22:28:33 | [Mutex] isItemNotified: received:node:1ecceea3-6df6-4c38-abba-3d8d1fd5a55b:localhost:node-22d480e9-3357-4212-a41f-edb3dc285476:Node 22d480e9-3357-4212-a41f-edb3dc285476 :: true 2021-09-28 22:28:33 | [Mutex] waiting for: [received:nodes:a496d8b4-3200-4024-acb4-5f57960576db:localhost] 2021-09-28 22:28:33 | [Mutex] waiting for: [received:nodes:a496d8b4-3200-4024-acb4-5f57960576db:localhost] 2021-09-28 22:28:33 | [Mutex] received everything. 2021-09-28 22:28:33 | [Mutex] isItemNotified: received:node:a496d8b4-3200-4024-acb4-5f57960576db:localhost:node-22d480e9-3357-4212-a41f-edb3dc285476:Node 22d480e9-3357-4212-a41f-edb3dc285476 :: false |
createNodes | 1.706s |
2021-09-28 22:28:29 |
2021-09-28 22:28:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-28 22:28:29 | ------------------------------------ 2021-09-28 22:28:30 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-22d480e9-3357-4212-a41f-edb3dc285476", "pubsub#title": "Node 22d480e9-3357-4212-a41f-edb3dc285476" } 2021-09-28 22:28:30 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-09-28 22:28:31 | [Mutex] waiting for: [received:nodes:0d40fd48-8020-41e3-822b-0318385ac65a:localhost] 2021-09-28 22:28:31 | [Mutex] waiting for: [received:nodes:0d40fd48-8020-41e3-822b-0318385ac65a:localhost] 2021-09-28 22:28:31 | [Mutex] received everything. 2021-09-28 22:28:31 | [Mutex] isItemNotified: received:node:0d40fd48-8020-41e3-822b-0318385ac65a:localhost:node-22d480e9-3357-4212-a41f-edb3dc285476:Node 22d480e9-3357-4212-a41f-edb3dc285476 :: true |
createSubnodes | 1.031s |
2021-09-28 22:28:31 |
2021-09-28 22:28:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-28 22:28:31 | ------------------------------------ 2021-09-28 22:28:31 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-d2946ff1-50ce-4781-851e-d6bf3bc62add", "pubsub#title": "Node d2946ff1-50ce-4781-851e-d6bf3bc62add" } 2021-09-28 22:28:31 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-09-28 22:28:32 | [Mutex] waiting for: [received:nodes:148e0654-88fd-4c3c-ac77-81b6f173160a:localhost] 2021-09-28 22:28:32 | [Mutex] received everything. 2021-09-28 22:28:32 | [Mutex] isItemNotified: received:node:148e0654-88fd-4c3c-ac77-81b6f173160a:localhost:node-d2946ff1-50ce-4781-851e-d6bf3bc62add:Node d2946ff1-50ce-4781-851e-d6bf3bc62add :: true |
deleteNodes | 1.027s |
2021-09-28 22:28:36 |
2021-09-28 22:28:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-28 22:28:36 | ------------------------------------ 2021-09-28 22:28:36 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-d2946ff1-50ce-4781-851e-d6bf3bc62add" } 2021-09-28 22:28:36 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-09-28 22:28:37 | [Mutex] waiting for: [received:nodes:7bf03a43-2c56-45ce-86c1-9cb3977ba85f:localhost] 2021-09-28 22:28:37 | [Mutex] received everything. 2021-09-28 22:28:37 | [Mutex] isItemNotified: received:node:7bf03a43-2c56-45ce-86c1-9cb3977ba85f:localhost:node-d2946ff1-50ce-4781-851e-d6bf3bc62add:Node d2946ff1-50ce-4781-851e-d6bf3bc62add :: false |
deleteSubnodes | 1.027s |
2021-09-28 22:28:35 |
2021-09-28 22:28:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-28 22:28:35 | ------------------------------------ 2021-09-28 22:28:35 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-22d480e9-3357-4212-a41f-edb3dc285476" } 2021-09-28 22:28:35 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-09-28 22:28:36 | [Mutex] waiting for: [received:nodes:93291da8-164f-451e-a25b-53178d7699e1:localhost] 2021-09-28 22:28:36 | [Mutex] received everything. 2021-09-28 22:28:36 | [Mutex] isItemNotified: received:node:93291da8-164f-451e-a25b-53178d7699e1:localhost:node-22d480e9-3357-4212-a41f-edb3dc285476:Node 22d480e9-3357-4212-a41f-edb3dc285476 :: false 2021-09-28 22:28:36 | [Mutex] waiting for: [received:nodes:705ab518-9b77-48c4-ac89-a2a0bc098475:localhost] 2021-09-28 22:28:36 | [Mutex] received everything. 2021-09-28 22:28:36 | [Mutex] isItemNotified: received:node:705ab518-9b77-48c4-ac89-a2a0bc098475:localhost:node-22d480e9-3357-4212-a41f-edb3dc285476:Node 22d480e9-3357-4212-a41f-edb3dc285476 :: false |
publishItemsToNodes | 0.091s |
2021-09-28 22:28:34 |
2021-09-28 22:28:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-28 22:28:34 | ------------------------------------ 2021-09-28 22:28:34 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-22d480e9-3357-4212-a41f-edb3dc285476", "entry": "<test>item-ff75f35d-3397-4079-b234-bbac32bc574a</test>", "item-id": "item-ff75f35d-3397-4079-b234-bbac32bc574a" } 2021-09-28 22:28:34 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-ff75f35d-3397-4079-b234-bbac32bc574a" } 2021-09-28 22:28:34 | [Mutex] waiting for: [published:item:notifieditem-ff75f35d-3397-4079-b234-bbac32bc574a:admin@test-domain.com] 2021-09-28 22:28:34 | [Mutex] received everything. 2021-09-28 22:28:34 | [Mutex] isItemNotified: published:item:notifieditem-ff75f35d-3397-4079-b234-bbac32bc574a:admin@test-domain.com :: true |
retractItemsFromNodes | 0.067s |
2021-09-28 22:28:34 |
2021-09-28 22:28:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-28 22:28:34 | ------------------------------------ 2021-09-28 22:28:34 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-22d480e9-3357-4212-a41f-edb3dc285476", "item-id": "item-ff75f35d-3397-4079-b234-bbac32bc574a" } 2021-09-28 22:28:34 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-ff75f35d-3397-4079-b234-bbac32bc574a" } 2021-09-28 22:28:34 | [Mutex] waiting for: [retracted:item:notifieditem-ff75f35d-3397-4079-b234-bbac32bc574a:admin@test-domain.com] 2021-09-28 22:28:34 | [Mutex] received everything. 2021-09-28 22:28:34 | [Mutex] isItemNotified: retracted:item:notifieditem-ff75f35d-3397-4079-b234-bbac32bc574a:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.023s |
2021-09-28 22:28:34 |
2021-09-28 22:28:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-28 22:28:34 | ------------------------------------ 2021-09-28 22:28:34 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-22d480e9-3357-4212-a41f-edb3dc285476", "item-id": "item-ff75f35d-3397-4079-b234-bbac32bc574a" } 2021-09-28 22:28:34 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-22d480e9-3357-4212-a41f-edb3dc285476", "item-id": "item-ff75f35d-3397-4079-b234-bbac32bc574a", "item": [ "<item id=\"item-ff75f35d-3397-4079-b234-bbac32bc574a\"><test>item-ff75f35d-3397-4079-b234-bbac32bc574a</test></item>" ] } 2021-09-28 22:28:34 | [Mutex] notify: [retrieved:item:item-ff75f35d-3397-4079-b234-bbac32bc574a:payload-matches:true:localhost] 2021-09-28 22:28:34 | [Mutex] received everything. 2021-09-28 22:28:34 | [Mutex] isItemNotified: retrieved:item:item-ff75f35d-3397-4079-b234-bbac32bc574a:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.067s |
2021-09-28 22:28:34 |
2021-09-28 22:28:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-28 22:28:34 | ------------------------------------ 2021-09-28 22:28:34 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-09-28 22:28:34 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-d2946ff1-50ce-4781-851e-d6bf3bc62add", "test", "node-22d480e9-3357-4212-a41f-edb3dc285476" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2021-09-28 22:28:34 |
2021-09-28 22:28:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-28 22:28:34 | ------------------------------------ 2021-09-28 22:28:34 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-22d480e9-3357-4212-a41f-edb3dc285476)" } 2021-09-28 22:28:34 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.012s |
2021-09-28 22:28:33 |
2021-09-28 22:28:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-28 22:28:33 | ------------------------------------ 2021-09-28 22:28:33 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-22d480e9-3357-4212-a41f-edb3dc285476", "jids": [ "admin@test-domain.com" ] } 2021-09-28 22:28:33 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.059s |
2021-09-28 22:28:34 |
2021-09-28 22:28:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-28 22:28:34 | ------------------------------------ 2021-09-28 22:28:34 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-22d480e9-3357-4212-a41f-edb3dc285476", "jids": [ "admin@test-domain.com" ] } 2021-09-28 22:28:34 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |