Test duration : 9.007s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.117s |
2022-02-23 22:01:45 |
2022-02-23 22:01:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-23 22:01:45 | ------------------------------------ 2022-02-23 22:01:45 | [Mutex] waiting for: [configured:node:node-bdec33b8-f46e-4dd2-a2d5-c517deff55fa:node-43f1e4e2-648b-4632-b36a-5620f3539118] 2022-02-23 22:01:45 | [Mutex] received everything. 2022-02-23 22:01:45 | [Mutex] isItemNotified: configured:node:node-bdec33b8-f46e-4dd2-a2d5-c517deff55fa:node-43f1e4e2-648b-4632-b36a-5620f3539118 :: true 2022-02-23 22:01:46 | [Mutex] waiting for: [received:nodes:e1a4c39c-146e-4821-a4a2-eea7d755b211:localhost] 2022-02-23 22:01:46 | [Mutex] received everything. 2022-02-23 22:01:46 | [Mutex] isItemNotified: received:node:e1a4c39c-146e-4821-a4a2-eea7d755b211:localhost:node-bdec33b8-f46e-4dd2-a2d5-c517deff55fa:Node bdec33b8-f46e-4dd2-a2d5-c517deff55fa :: true 2022-02-23 22:01:46 | [Mutex] waiting for: [received:nodes:b3d7e72a-3d5c-4792-9db9-e761feac6fa6:localhost] 2022-02-23 22:01:46 | [Mutex] received everything. 2022-02-23 22:01:46 | [Mutex] isItemNotified: received:node:b3d7e72a-3d5c-4792-9db9-e761feac6fa6:localhost:node-bdec33b8-f46e-4dd2-a2d5-c517deff55fa:Node bdec33b8-f46e-4dd2-a2d5-c517deff55fa :: false |
createNodes | 1.698s |
2022-02-23 22:01:42 |
2022-02-23 22:01:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-23 22:01:42 | ------------------------------------ 2022-02-23 22:01:43 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-bdec33b8-f46e-4dd2-a2d5-c517deff55fa", "pubsub#title": "Node bdec33b8-f46e-4dd2-a2d5-c517deff55fa" } 2022-02-23 22:01:43 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-23 22:01:44 | [Mutex] waiting for: [received:nodes:d11b97c1-16bd-4743-a024-a1a79c159599:localhost] 2022-02-23 22:01:44 | [Mutex] waiting for: [received:nodes:d11b97c1-16bd-4743-a024-a1a79c159599:localhost] 2022-02-23 22:01:44 | [Mutex] waiting for: [received:nodes:d11b97c1-16bd-4743-a024-a1a79c159599:localhost] 2022-02-23 22:01:44 | [Mutex] received everything. 2022-02-23 22:01:44 | [Mutex] isItemNotified: received:node:d11b97c1-16bd-4743-a024-a1a79c159599:localhost:node-bdec33b8-f46e-4dd2-a2d5-c517deff55fa:Node bdec33b8-f46e-4dd2-a2d5-c517deff55fa :: true |
createSubnodes | 1.025s |
2022-02-23 22:01:44 |
2022-02-23 22:01:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-23 22:01:44 | ------------------------------------ 2022-02-23 22:01:44 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-43f1e4e2-648b-4632-b36a-5620f3539118", "pubsub#title": "Node 43f1e4e2-648b-4632-b36a-5620f3539118" } 2022-02-23 22:01:44 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-23 22:01:45 | [Mutex] waiting for: [received:nodes:ecc4ea62-21c6-400d-bc47-389734bc85b5:localhost] 2022-02-23 22:01:45 | [Mutex] received everything. 2022-02-23 22:01:45 | [Mutex] isItemNotified: received:node:ecc4ea62-21c6-400d-bc47-389734bc85b5:localhost:node-43f1e4e2-648b-4632-b36a-5620f3539118:Node 43f1e4e2-648b-4632-b36a-5620f3539118 :: true |
deleteNodes | 1.020s |
2022-02-23 22:01:49 |
2022-02-23 22:01:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-23 22:01:49 | ------------------------------------ 2022-02-23 22:01:49 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-43f1e4e2-648b-4632-b36a-5620f3539118" } 2022-02-23 22:01:49 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-23 22:01:50 | [Mutex] waiting for: [received:nodes:5fe752ce-7160-4c28-bcb9-09c72a64200d:localhost] 2022-02-23 22:01:50 | [Mutex] received everything. 2022-02-23 22:01:50 | [Mutex] isItemNotified: received:node:5fe752ce-7160-4c28-bcb9-09c72a64200d:localhost:node-43f1e4e2-648b-4632-b36a-5620f3539118:Node 43f1e4e2-648b-4632-b36a-5620f3539118 :: false |
deleteSubnodes | 1.028s |
2022-02-23 22:01:48 |
2022-02-23 22:01:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-23 22:01:48 | ------------------------------------ 2022-02-23 22:01:48 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-bdec33b8-f46e-4dd2-a2d5-c517deff55fa" } 2022-02-23 22:01:48 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-23 22:01:49 | [Mutex] waiting for: [received:nodes:444c6305-4f7a-4f8d-a4fb-f0c0c709cd98:localhost] 2022-02-23 22:01:49 | [Mutex] received everything. 2022-02-23 22:01:49 | [Mutex] isItemNotified: received:node:444c6305-4f7a-4f8d-a4fb-f0c0c709cd98:localhost:node-bdec33b8-f46e-4dd2-a2d5-c517deff55fa:Node bdec33b8-f46e-4dd2-a2d5-c517deff55fa :: false 2022-02-23 22:01:49 | [Mutex] waiting for: [received:nodes:9edf02ec-71de-4575-970a-983686876257:localhost] 2022-02-23 22:01:49 | [Mutex] received everything. 2022-02-23 22:01:49 | [Mutex] isItemNotified: received:node:9edf02ec-71de-4575-970a-983686876257:localhost:node-bdec33b8-f46e-4dd2-a2d5-c517deff55fa:Node bdec33b8-f46e-4dd2-a2d5-c517deff55fa :: false |
publishItemsToNodes | 0.047s |
2022-02-23 22:01:47 |
2022-02-23 22:01:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-23 22:01:47 | ------------------------------------ 2022-02-23 22:01:47 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-bdec33b8-f46e-4dd2-a2d5-c517deff55fa", "entry": "<test>item-8d021d04-e351-4900-b5a0-90ab2f9832ae</test>", "item-id": "item-8d021d04-e351-4900-b5a0-90ab2f9832ae" } 2022-02-23 22:01:47 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-8d021d04-e351-4900-b5a0-90ab2f9832ae" } 2022-02-23 22:01:47 | [Mutex] waiting for: [published:item:notifieditem-8d021d04-e351-4900-b5a0-90ab2f9832ae:admin@test-domain.com] 2022-02-23 22:01:47 | [Mutex] received everything. 2022-02-23 22:01:47 | [Mutex] isItemNotified: published:item:notifieditem-8d021d04-e351-4900-b5a0-90ab2f9832ae:admin@test-domain.com :: true |
retractItemsFromNodes | 0.099s |
2022-02-23 22:01:47 |
2022-02-23 22:01:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-23 22:01:47 | ------------------------------------ 2022-02-23 22:01:47 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-bdec33b8-f46e-4dd2-a2d5-c517deff55fa", "item-id": "item-8d021d04-e351-4900-b5a0-90ab2f9832ae" } 2022-02-23 22:01:47 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-8d021d04-e351-4900-b5a0-90ab2f9832ae" } 2022-02-23 22:01:47 | [Mutex] waiting for: [retracted:item:notifieditem-8d021d04-e351-4900-b5a0-90ab2f9832ae:admin@test-domain.com] 2022-02-23 22:01:47 | [Mutex] received everything. 2022-02-23 22:01:47 | [Mutex] isItemNotified: retracted:item:notifieditem-8d021d04-e351-4900-b5a0-90ab2f9832ae:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.090s |
2022-02-23 22:01:47 |
2022-02-23 22:01:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-23 22:01:47 | ------------------------------------ 2022-02-23 22:01:47 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-bdec33b8-f46e-4dd2-a2d5-c517deff55fa", "item-id": "item-8d021d04-e351-4900-b5a0-90ab2f9832ae" } 2022-02-23 22:01:47 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-bdec33b8-f46e-4dd2-a2d5-c517deff55fa", "item-id": "item-8d021d04-e351-4900-b5a0-90ab2f9832ae", "item": [ "<item id=\"item-8d021d04-e351-4900-b5a0-90ab2f9832ae\"><test>item-8d021d04-e351-4900-b5a0-90ab2f9832ae</test></item>" ] } 2022-02-23 22:01:47 | [Mutex] notify: [retrieved:item:item-8d021d04-e351-4900-b5a0-90ab2f9832ae:payload-matches:true:localhost] 2022-02-23 22:01:47 | [Mutex] received everything. 2022-02-23 22:01:47 | [Mutex] isItemNotified: retrieved:item:item-8d021d04-e351-4900-b5a0-90ab2f9832ae:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2022-02-23 22:01:47 |
2022-02-23 22:01:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-23 22:01:47 | ------------------------------------ 2022-02-23 22:01:47 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-02-23 22:01:47 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-43f1e4e2-648b-4632-b36a-5620f3539118", "node-bdec33b8-f46e-4dd2-a2d5-c517deff55fa" ] } |
retrieveUserSubscriptionsWithRegex | 0.055s |
2022-02-23 22:01:47 |
2022-02-23 22:01:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-23 22:01:47 | ------------------------------------ 2022-02-23 22:01:47 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-bdec33b8-f46e-4dd2-a2d5-c517deff55fa)" } 2022-02-23 22:01:47 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.011s |
2022-02-23 22:01:46 |
2022-02-23 22:01:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-23 22:01:46 | ------------------------------------ 2022-02-23 22:01:46 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-bdec33b8-f46e-4dd2-a2d5-c517deff55fa", "jids": [ "admin@test-domain.com" ] } 2022-02-23 22:01:46 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.022s |
2022-02-23 22:01:47 |
2022-02-23 22:01:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-23 22:01:47 | ------------------------------------ 2022-02-23 22:01:47 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-bdec33b8-f46e-4dd2-a2d5-c517deff55fa", "jids": [ "admin@test-domain.com" ] } 2022-02-23 22:01:47 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |