Test duration : 9.035s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.107s |
2020-09-18 23:36:34 |
2020-09-18 23:36:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-18 23:36:34 | ------------------------------------ 2020-09-18 23:36:34 | [Mutex] waiting for: [configured:node:node-856c093a-27e7-43af-80ce-5f55275b03e0:node-295388ef-9141-4454-ad19-907faf9b48e7] 2020-09-18 23:36:34 | [Mutex] received everything. 2020-09-18 23:36:34 | [Mutex] isItemNotified: configured:node:node-856c093a-27e7-43af-80ce-5f55275b03e0:node-295388ef-9141-4454-ad19-907faf9b48e7 :: true 2020-09-18 23:36:35 | [Mutex] waiting for: [received:nodes:9352b414-884b-45cc-87d5-389dddd74363:localhost] 2020-09-18 23:36:35 | [Mutex] received everything. 2020-09-18 23:36:35 | [Mutex] isItemNotified: received:node:9352b414-884b-45cc-87d5-389dddd74363:localhost:node-856c093a-27e7-43af-80ce-5f55275b03e0:Node 856c093a-27e7-43af-80ce-5f55275b03e0 :: true 2020-09-18 23:36:35 | [Mutex] waiting for: [received:nodes:397e9380-50b1-4ffa-b6e1-4893b414a8bb:localhost] 2020-09-18 23:36:35 | [Mutex] waiting for: [received:nodes:397e9380-50b1-4ffa-b6e1-4893b414a8bb:localhost] 2020-09-18 23:36:35 | [Mutex] waiting for: [received:nodes:397e9380-50b1-4ffa-b6e1-4893b414a8bb:localhost] 2020-09-18 23:36:35 | [Mutex] waiting for: [received:nodes:397e9380-50b1-4ffa-b6e1-4893b414a8bb:localhost] 2020-09-18 23:36:35 | [Mutex] received everything. 2020-09-18 23:36:35 | [Mutex] isItemNotified: received:node:397e9380-50b1-4ffa-b6e1-4893b414a8bb:localhost:node-856c093a-27e7-43af-80ce-5f55275b03e0:Node 856c093a-27e7-43af-80ce-5f55275b03e0 :: false |
createNodes | 1.693s |
2020-09-18 23:36:31 |
2020-09-18 23:36:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-18 23:36:31 | ------------------------------------ 2020-09-18 23:36:32 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-856c093a-27e7-43af-80ce-5f55275b03e0", "pubsub#title": "Node 856c093a-27e7-43af-80ce-5f55275b03e0" } 2020-09-18 23:36:32 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-18 23:36:33 | [Mutex] waiting for: [received:nodes:d6ecea1e-2a74-4e40-babf-9cf399876d93:localhost] 2020-09-18 23:36:33 | [Mutex] received everything. 2020-09-18 23:36:33 | [Mutex] isItemNotified: received:node:d6ecea1e-2a74-4e40-babf-9cf399876d93:localhost:node-856c093a-27e7-43af-80ce-5f55275b03e0:Node 856c093a-27e7-43af-80ce-5f55275b03e0 :: true |
createSubnodes | 1.026s |
2020-09-18 23:36:33 |
2020-09-18 23:36:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-18 23:36:33 | ------------------------------------ 2020-09-18 23:36:33 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-295388ef-9141-4454-ad19-907faf9b48e7", "pubsub#title": "Node 295388ef-9141-4454-ad19-907faf9b48e7" } 2020-09-18 23:36:33 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-18 23:36:34 | [Mutex] waiting for: [received:nodes:a33215f3-7509-4930-89b2-292e1c3e3eb7:localhost] 2020-09-18 23:36:34 | [Mutex] received everything. 2020-09-18 23:36:34 | [Mutex] isItemNotified: received:node:a33215f3-7509-4930-89b2-292e1c3e3eb7:localhost:node-295388ef-9141-4454-ad19-907faf9b48e7:Node 295388ef-9141-4454-ad19-907faf9b48e7 :: true |
deleteNodes | 1.026s |
2020-09-18 23:36:38 |
2020-09-18 23:36:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-18 23:36:38 | ------------------------------------ 2020-09-18 23:36:38 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-295388ef-9141-4454-ad19-907faf9b48e7" } 2020-09-18 23:36:38 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-18 23:36:39 | [Mutex] waiting for: [received:nodes:c4594108-4071-4857-b3a6-26bf4a6f6d84:localhost] 2020-09-18 23:36:39 | [Mutex] waiting for: [received:nodes:c4594108-4071-4857-b3a6-26bf4a6f6d84:localhost] 2020-09-18 23:36:39 | [Mutex] received everything. 2020-09-18 23:36:39 | [Mutex] isItemNotified: received:node:c4594108-4071-4857-b3a6-26bf4a6f6d84:localhost:node-295388ef-9141-4454-ad19-907faf9b48e7:Node 295388ef-9141-4454-ad19-907faf9b48e7 :: false |
deleteSubnodes | 1.031s |
2020-09-18 23:36:37 |
2020-09-18 23:36:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-18 23:36:37 | ------------------------------------ 2020-09-18 23:36:37 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-856c093a-27e7-43af-80ce-5f55275b03e0" } 2020-09-18 23:36:37 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-18 23:36:38 | [Mutex] waiting for: [received:nodes:e738dc6f-94b3-4b98-99f8-9fab99569857:localhost] 2020-09-18 23:36:38 | [Mutex] waiting for: [received:nodes:e738dc6f-94b3-4b98-99f8-9fab99569857:localhost] 2020-09-18 23:36:38 | [Mutex] received everything. 2020-09-18 23:36:38 | [Mutex] isItemNotified: received:node:e738dc6f-94b3-4b98-99f8-9fab99569857:localhost:node-856c093a-27e7-43af-80ce-5f55275b03e0:Node 856c093a-27e7-43af-80ce-5f55275b03e0 :: false 2020-09-18 23:36:38 | [Mutex] waiting for: [received:nodes:bc511f77-d3f2-49b4-9e18-5ad44bf9b2fd:localhost] 2020-09-18 23:36:38 | [Mutex] received everything. 2020-09-18 23:36:38 | [Mutex] isItemNotified: received:node:bc511f77-d3f2-49b4-9e18-5ad44bf9b2fd:localhost:node-856c093a-27e7-43af-80ce-5f55275b03e0:Node 856c093a-27e7-43af-80ce-5f55275b03e0 :: false |
publishItemsToNodes | 0.040s |
2020-09-18 23:36:36 |
2020-09-18 23:36:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-18 23:36:36 | ------------------------------------ 2020-09-18 23:36:36 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-856c093a-27e7-43af-80ce-5f55275b03e0", "entry": "<test>item-848646b7-d268-4f9f-bc6a-d68ca86029c0</test>", "item-id": "item-848646b7-d268-4f9f-bc6a-d68ca86029c0" } 2020-09-18 23:36:36 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-848646b7-d268-4f9f-bc6a-d68ca86029c0" } 2020-09-18 23:36:36 | [Mutex] waiting for: [published:item:notifieditem-848646b7-d268-4f9f-bc6a-d68ca86029c0:admin@test-domain.com] 2020-09-18 23:36:36 | [Mutex] received everything. 2020-09-18 23:36:36 | [Mutex] isItemNotified: published:item:notifieditem-848646b7-d268-4f9f-bc6a-d68ca86029c0:admin@test-domain.com :: true |
retractItemsFromNodes | 0.060s |
2020-09-18 23:36:36 |
2020-09-18 23:36:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-18 23:36:36 | ------------------------------------ 2020-09-18 23:36:36 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-856c093a-27e7-43af-80ce-5f55275b03e0", "item-id": "item-848646b7-d268-4f9f-bc6a-d68ca86029c0" } 2020-09-18 23:36:36 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-848646b7-d268-4f9f-bc6a-d68ca86029c0" } 2020-09-18 23:36:36 | [Mutex] received everything. 2020-09-18 23:36:36 | [Mutex] isItemNotified: retracted:item:notifieditem-848646b7-d268-4f9f-bc6a-d68ca86029c0:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.076s |
2020-09-18 23:36:36 |
2020-09-18 23:36:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-18 23:36:36 | ------------------------------------ 2020-09-18 23:36:36 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-856c093a-27e7-43af-80ce-5f55275b03e0", "item-id": "item-848646b7-d268-4f9f-bc6a-d68ca86029c0" } 2020-09-18 23:36:36 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-856c093a-27e7-43af-80ce-5f55275b03e0", "item-id": "item-848646b7-d268-4f9f-bc6a-d68ca86029c0", "item": [ "<item id=\"item-848646b7-d268-4f9f-bc6a-d68ca86029c0\"><test>item-848646b7-d268-4f9f-bc6a-d68ca86029c0</test></item>" ] } 2020-09-18 23:36:36 | [Mutex] notify: [retrieved:item:item-848646b7-d268-4f9f-bc6a-d68ca86029c0:payload-matches:true:localhost] 2020-09-18 23:36:36 | [Mutex] received everything. 2020-09-18 23:36:36 | [Mutex] isItemNotified: retrieved:item:item-848646b7-d268-4f9f-bc6a-d68ca86029c0:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.050s |
2020-09-18 23:36:36 |
2020-09-18 23:36:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-18 23:36:36 | ------------------------------------ 2020-09-18 23:36:36 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-09-18 23:36:36 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-295388ef-9141-4454-ad19-907faf9b48e7", "node-856c093a-27e7-43af-80ce-5f55275b03e0" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2020-09-18 23:36:36 |
2020-09-18 23:36:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-18 23:36:36 | ------------------------------------ 2020-09-18 23:36:36 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-856c093a-27e7-43af-80ce-5f55275b03e0)" } 2020-09-18 23:36:36 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.016s |
2020-09-18 23:36:35 |
2020-09-18 23:36:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-18 23:36:35 | ------------------------------------ 2020-09-18 23:36:35 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-856c093a-27e7-43af-80ce-5f55275b03e0", "jids": [ "admin@test-domain.com" ] } 2020-09-18 23:36:35 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.059s |
2020-09-18 23:36:36 |
2020-09-18 23:36:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-18 23:36:36 | ------------------------------------ 2020-09-18 23:36:36 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-856c093a-27e7-43af-80ce-5f55275b03e0", "jids": [ "admin@test-domain.com" ] } 2020-09-18 23:36:36 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |