Test duration : 9.007s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.126s |
2020-09-06 23:40:44 |
2020-09-06 23:40:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-06 23:40:44 | ------------------------------------ 2020-09-06 23:40:44 | [Mutex] waiting for: [configured:node:node-cfc122bf-0dec-450e-a0a0-d85e583f0189:node-b5ed428e-33b7-47d5-867b-25bc5ec4ad5f] 2020-09-06 23:40:44 | [Mutex] received everything. 2020-09-06 23:40:44 | [Mutex] isItemNotified: configured:node:node-cfc122bf-0dec-450e-a0a0-d85e583f0189:node-b5ed428e-33b7-47d5-867b-25bc5ec4ad5f :: true 2020-09-06 23:40:45 | [Mutex] waiting for: [received:nodes:fa8f6caf-7d05-424e-9cee-f82f610433f8:localhost] 2020-09-06 23:40:45 | [Mutex] received everything. 2020-09-06 23:40:45 | [Mutex] isItemNotified: received:node:fa8f6caf-7d05-424e-9cee-f82f610433f8:localhost:node-cfc122bf-0dec-450e-a0a0-d85e583f0189:Node cfc122bf-0dec-450e-a0a0-d85e583f0189 :: true 2020-09-06 23:40:45 | [Mutex] waiting for: [received:nodes:02a58674-eaeb-411f-8d28-3f3e652c910f:localhost] 2020-09-06 23:40:45 | [Mutex] received everything. 2020-09-06 23:40:45 | [Mutex] isItemNotified: received:node:02a58674-eaeb-411f-8d28-3f3e652c910f:localhost:node-cfc122bf-0dec-450e-a0a0-d85e583f0189:Node cfc122bf-0dec-450e-a0a0-d85e583f0189 :: false |
createNodes | 1.647s |
2020-09-06 23:40:41 |
2020-09-06 23:40:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-06 23:40:41 | ------------------------------------ 2020-09-06 23:40:42 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-cfc122bf-0dec-450e-a0a0-d85e583f0189", "pubsub#title": "Node cfc122bf-0dec-450e-a0a0-d85e583f0189" } 2020-09-06 23:40:42 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-06 23:40:43 | [Mutex] waiting for: [received:nodes:94233e6b-fafb-4455-834d-8b6eccd778fb:localhost] 2020-09-06 23:40:43 | [Mutex] received everything. 2020-09-06 23:40:43 | [Mutex] isItemNotified: received:node:94233e6b-fafb-4455-834d-8b6eccd778fb:localhost:node-cfc122bf-0dec-450e-a0a0-d85e583f0189:Node cfc122bf-0dec-450e-a0a0-d85e583f0189 :: true |
createSubnodes | 1.025s |
2020-09-06 23:40:43 |
2020-09-06 23:40:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-06 23:40:43 | ------------------------------------ 2020-09-06 23:40:43 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-b5ed428e-33b7-47d5-867b-25bc5ec4ad5f", "pubsub#title": "Node b5ed428e-33b7-47d5-867b-25bc5ec4ad5f" } 2020-09-06 23:40:43 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-06 23:40:44 | [Mutex] waiting for: [received:nodes:b8881a6b-d41b-47af-b709-7323b0055c4c:localhost] 2020-09-06 23:40:44 | [Mutex] received everything. 2020-09-06 23:40:44 | [Mutex] isItemNotified: received:node:b8881a6b-d41b-47af-b709-7323b0055c4c:localhost:node-b5ed428e-33b7-47d5-867b-25bc5ec4ad5f:Node b5ed428e-33b7-47d5-867b-25bc5ec4ad5f :: true |
deleteNodes | 1.027s |
2020-09-06 23:40:48 |
2020-09-06 23:40:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-06 23:40:48 | ------------------------------------ 2020-09-06 23:40:48 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-b5ed428e-33b7-47d5-867b-25bc5ec4ad5f" } 2020-09-06 23:40:48 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-06 23:40:49 | [Mutex] waiting for: [received:nodes:1a522201-d8ef-4a6a-a856-03d9734d323b:localhost] 2020-09-06 23:40:50 | [Mutex] received everything. 2020-09-06 23:40:50 | [Mutex] isItemNotified: received:node:1a522201-d8ef-4a6a-a856-03d9734d323b:localhost:node-b5ed428e-33b7-47d5-867b-25bc5ec4ad5f:Node b5ed428e-33b7-47d5-867b-25bc5ec4ad5f :: false |
deleteSubnodes | 1.049s |
2020-09-06 23:40:47 |
2020-09-06 23:40:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-06 23:40:47 | ------------------------------------ 2020-09-06 23:40:47 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-cfc122bf-0dec-450e-a0a0-d85e583f0189" } 2020-09-06 23:40:47 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-06 23:40:48 | [Mutex] waiting for: [received:nodes:e682c318-a98d-47d4-a109-e9d3db8eaed3:localhost] 2020-09-06 23:40:48 | [Mutex] waiting for: [received:nodes:e682c318-a98d-47d4-a109-e9d3db8eaed3:localhost] 2020-09-06 23:40:48 | [Mutex] received everything. 2020-09-06 23:40:48 | [Mutex] isItemNotified: received:node:e682c318-a98d-47d4-a109-e9d3db8eaed3:localhost:node-cfc122bf-0dec-450e-a0a0-d85e583f0189:Node cfc122bf-0dec-450e-a0a0-d85e583f0189 :: false 2020-09-06 23:40:48 | [Mutex] waiting for: [received:nodes:186cbb13-284e-41be-9c1c-894050671b2e:localhost] 2020-09-06 23:40:48 | [Mutex] received everything. 2020-09-06 23:40:48 | [Mutex] isItemNotified: received:node:186cbb13-284e-41be-9c1c-894050671b2e:localhost:node-cfc122bf-0dec-450e-a0a0-d85e583f0189:Node cfc122bf-0dec-450e-a0a0-d85e583f0189 :: false |
publishItemsToNodes | 0.053s |
2020-09-06 23:40:46 |
2020-09-06 23:40:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-06 23:40:46 | ------------------------------------ 2020-09-06 23:40:46 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-cfc122bf-0dec-450e-a0a0-d85e583f0189", "entry": "<test>item-c61beb4e-0e98-42e1-9658-8de78c5cecce</test>", "item-id": "item-c61beb4e-0e98-42e1-9658-8de78c5cecce" } 2020-09-06 23:40:46 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-c61beb4e-0e98-42e1-9658-8de78c5cecce" } 2020-09-06 23:40:46 | [Mutex] waiting for: [published:item:notifieditem-c61beb4e-0e98-42e1-9658-8de78c5cecce:admin@test-domain.com] 2020-09-06 23:40:46 | [Mutex] received everything. 2020-09-06 23:40:46 | [Mutex] isItemNotified: published:item:notifieditem-c61beb4e-0e98-42e1-9658-8de78c5cecce:admin@test-domain.com :: true |
retractItemsFromNodes | 0.055s |
2020-09-06 23:40:46 |
2020-09-06 23:40:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-06 23:40:46 | ------------------------------------ 2020-09-06 23:40:46 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-cfc122bf-0dec-450e-a0a0-d85e583f0189", "item-id": "item-c61beb4e-0e98-42e1-9658-8de78c5cecce" } 2020-09-06 23:40:46 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-c61beb4e-0e98-42e1-9658-8de78c5cecce" } 2020-09-06 23:40:46 | [Mutex] received everything. 2020-09-06 23:40:46 | [Mutex] isItemNotified: retracted:item:notifieditem-c61beb4e-0e98-42e1-9658-8de78c5cecce:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.029s |
2020-09-06 23:40:46 |
2020-09-06 23:40:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-06 23:40:46 | ------------------------------------ 2020-09-06 23:40:46 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-cfc122bf-0dec-450e-a0a0-d85e583f0189", "item-id": "item-c61beb4e-0e98-42e1-9658-8de78c5cecce" } 2020-09-06 23:40:46 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-cfc122bf-0dec-450e-a0a0-d85e583f0189", "item-id": "item-c61beb4e-0e98-42e1-9658-8de78c5cecce", "item": [ "<item id=\"item-c61beb4e-0e98-42e1-9658-8de78c5cecce\"><test>item-c61beb4e-0e98-42e1-9658-8de78c5cecce</test></item>" ] } 2020-09-06 23:40:46 | [Mutex] notify: [retrieved:item:item-c61beb4e-0e98-42e1-9658-8de78c5cecce:payload-matches:true:localhost] 2020-09-06 23:40:46 | [Mutex] received everything. 2020-09-06 23:40:46 | [Mutex] isItemNotified: retrieved:item:item-c61beb4e-0e98-42e1-9658-8de78c5cecce:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.054s |
2020-09-06 23:40:46 |
2020-09-06 23:40:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-06 23:40:46 | ------------------------------------ 2020-09-06 23:40:46 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-09-06 23:40:46 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-cfc122bf-0dec-450e-a0a0-d85e583f0189", "node-b5ed428e-33b7-47d5-867b-25bc5ec4ad5f" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2020-09-06 23:40:46 |
2020-09-06 23:40:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-06 23:40:46 | ------------------------------------ 2020-09-06 23:40:46 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-cfc122bf-0dec-450e-a0a0-d85e583f0189)" } 2020-09-06 23:40:46 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.012s |
2020-09-06 23:40:45 |
2020-09-06 23:40:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-06 23:40:45 | ------------------------------------ 2020-09-06 23:40:45 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-cfc122bf-0dec-450e-a0a0-d85e583f0189", "jids": [ "admin@test-domain.com" ] } 2020-09-06 23:40:45 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.079s |
2020-09-06 23:40:46 |
2020-09-06 23:40:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-06 23:40:46 | ------------------------------------ 2020-09-06 23:40:46 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-cfc122bf-0dec-450e-a0a0-d85e583f0189", "jids": [ "admin@test-domain.com" ] } 2020-09-06 23:40:46 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |