Test duration: 8.791s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.105s |
2020-02-02 19:22:17 |
2020-02-02 19:22:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-02-02 19:22:17 | ------------------------------------ 2020-02-02 19:22:17 | [Mutex] waiting for: [configured:node:node-5a42bb48-498d-4dbe-9628-8cff07bf5ce5:node-bca1bb91-9bb6-438a-9864-60f0001df75b] 2020-02-02 19:22:17 | [Mutex] received everything. 2020-02-02 19:22:17 | [Mutex] isItemNotified: configured:node:node-5a42bb48-498d-4dbe-9628-8cff07bf5ce5:node-bca1bb91-9bb6-438a-9864-60f0001df75b :: true 2020-02-02 19:22:18 | [Mutex] waiting for: [received:nodes:3c0e1ee8-613a-4314-bad5-96adcc4c1f8e:localhost] 2020-02-02 19:22:18 | [Mutex] received everything. 2020-02-02 19:22:18 | [Mutex] isItemNotified: received:node:3c0e1ee8-613a-4314-bad5-96adcc4c1f8e:localhost:node-5a42bb48-498d-4dbe-9628-8cff07bf5ce5:Node 5a42bb48-498d-4dbe-9628-8cff07bf5ce5 :: true 2020-02-02 19:22:18 | [Mutex] waiting for: [received:nodes:62bc2bde-9d77-4c9c-bea4-b041a2fd8d1d:localhost] 2020-02-02 19:22:18 | [Mutex] received everything. 2020-02-02 19:22:18 | [Mutex] isItemNotified: received:node:62bc2bde-9d77-4c9c-bea4-b041a2fd8d1d:localhost:node-5a42bb48-498d-4dbe-9628-8cff07bf5ce5:Node 5a42bb48-498d-4dbe-9628-8cff07bf5ce5 :: false |
createNodes | 1.414s |
2020-02-02 19:22:15 |
2020-02-02 19:22:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-02-02 19:22:15 | ------------------------------------ 2020-02-02 19:22:15 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@localhost", "pubsub#node_type": "leaf", "node": "node-5a42bb48-498d-4dbe-9628-8cff07bf5ce5", "pubsub#title": "Node 5a42bb48-498d-4dbe-9628-8cff07bf5ce5" } 2020-02-02 19:22:15 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-02-02 19:22:16 | [Mutex] waiting for: [received:nodes:ee7b8025-9fe6-4a4f-8038-68079da40b44:localhost] 2020-02-02 19:22:16 | [Mutex] received everything. 2020-02-02 19:22:16 | [Mutex] isItemNotified: received:node:ee7b8025-9fe6-4a4f-8038-68079da40b44:localhost:node-5a42bb48-498d-4dbe-9628-8cff07bf5ce5:Node 5a42bb48-498d-4dbe-9628-8cff07bf5ce5 :: true |
createSubnodes | 1.020s |
2020-02-02 19:22:16 |
2020-02-02 19:22:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-02-02 19:22:16 | ------------------------------------ 2020-02-02 19:22:16 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@localhost", "pubsub#node_type": "collection", "node": "node-bca1bb91-9bb6-438a-9864-60f0001df75b", "pubsub#title": "Node bca1bb91-9bb6-438a-9864-60f0001df75b" } 2020-02-02 19:22:16 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-02-02 19:22:17 | [Mutex] waiting for: [received:nodes:44cb3b79-3ce1-4c09-b179-621533f57a55:localhost] 2020-02-02 19:22:17 | [Mutex] received everything. 2020-02-02 19:22:17 | [Mutex] isItemNotified: received:node:44cb3b79-3ce1-4c09-b179-621533f57a55:localhost:node-bca1bb91-9bb6-438a-9864-60f0001df75b:Node bca1bb91-9bb6-438a-9864-60f0001df75b :: true |
deleteNodes | 1.041s |
2020-02-02 19:22:22 |
2020-02-02 19:22:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-02-02 19:22:22 | ------------------------------------ 2020-02-02 19:22:22 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-bca1bb91-9bb6-438a-9864-60f0001df75b" } 2020-02-02 19:22:22 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-02-02 19:22:23 | [Mutex] waiting for: [received:nodes:2092f2ac-1cfc-407e-bcfb-84d04a691262:localhost] 2020-02-02 19:22:23 | [Mutex] received everything. 2020-02-02 19:22:23 | [Mutex] isItemNotified: received:node:2092f2ac-1cfc-407e-bcfb-84d04a691262:localhost:node-bca1bb91-9bb6-438a-9864-60f0001df75b:Node bca1bb91-9bb6-438a-9864-60f0001df75b :: false |
deleteSubnodes | 1.026s |
2020-02-02 19:22:21 |
2020-02-02 19:22:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-02-02 19:22:21 | ------------------------------------ 2020-02-02 19:22:21 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-5a42bb48-498d-4dbe-9628-8cff07bf5ce5" } 2020-02-02 19:22:21 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-02-02 19:22:22 | [Mutex] waiting for: [received:nodes:b68bb29c-e220-496a-a9ad-3aea94543d48:localhost] 2020-02-02 19:22:22 | [Mutex] received everything. 2020-02-02 19:22:22 | [Mutex] isItemNotified: received:node:b68bb29c-e220-496a-a9ad-3aea94543d48:localhost:node-5a42bb48-498d-4dbe-9628-8cff07bf5ce5:Node 5a42bb48-498d-4dbe-9628-8cff07bf5ce5 :: false 2020-02-02 19:22:22 | [Mutex] waiting for: [received:nodes:2c1bef5b-4821-4d7d-9c6c-9578c2dd62a9:localhost] 2020-02-02 19:22:22 | [Mutex] received everything. 2020-02-02 19:22:22 | [Mutex] isItemNotified: received:node:2c1bef5b-4821-4d7d-9c6c-9578c2dd62a9:localhost:node-5a42bb48-498d-4dbe-9628-8cff07bf5ce5:Node 5a42bb48-498d-4dbe-9628-8cff07bf5ce5 :: false |
publishItemsToNodes | 0.037s |
2020-02-02 19:22:19 |
2020-02-02 19:22:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-02-02 19:22:19 | ------------------------------------ 2020-02-02 19:22:19 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-5a42bb48-498d-4dbe-9628-8cff07bf5ce5", "entry": "<test>item-3be3952a-f222-4e57-89ef-c2955ce9a0e9</test>", "item-id": "item-3be3952a-f222-4e57-89ef-c2955ce9a0e9" } 2020-02-02 19:22:19 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-3be3952a-f222-4e57-89ef-c2955ce9a0e9" } 2020-02-02 19:22:19 | [Mutex] waiting for: [published:item:notifieditem-3be3952a-f222-4e57-89ef-c2955ce9a0e9:admin@localhost] 2020-02-02 19:22:19 | [Mutex] received everything. 2020-02-02 19:22:19 | [Mutex] isItemNotified: published:item:notifieditem-3be3952a-f222-4e57-89ef-c2955ce9a0e9:admin@localhost :: true |
retractItemsFromNodes | 0.062s |
2020-02-02 19:22:20 |
2020-02-02 19:22:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-02-02 19:22:20 | ------------------------------------ 2020-02-02 19:22:20 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-5a42bb48-498d-4dbe-9628-8cff07bf5ce5", "item-id": "item-3be3952a-f222-4e57-89ef-c2955ce9a0e9" } 2020-02-02 19:22:20 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-3be3952a-f222-4e57-89ef-c2955ce9a0e9" } 2020-02-02 19:22:20 | [Mutex] waiting for: [retracted:item:notifieditem-3be3952a-f222-4e57-89ef-c2955ce9a0e9:admin@localhost] 2020-02-02 19:22:20 | [Mutex] received everything. 2020-02-02 19:22:20 | [Mutex] isItemNotified: retracted:item:notifieditem-3be3952a-f222-4e57-89ef-c2955ce9a0e9:admin@localhost :: true |
retrieveItemsFromNodes | 0.064s |
2020-02-02 19:22:19 |
2020-02-02 19:22:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-02-02 19:22:19 | ------------------------------------ 2020-02-02 19:22:19 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-5a42bb48-498d-4dbe-9628-8cff07bf5ce5", "item-id": "item-3be3952a-f222-4e57-89ef-c2955ce9a0e9" } 2020-02-02 19:22:19 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-5a42bb48-498d-4dbe-9628-8cff07bf5ce5", "item-id": "item-3be3952a-f222-4e57-89ef-c2955ce9a0e9", "item": [ "<item id=\"item-3be3952a-f222-4e57-89ef-c2955ce9a0e9\"><test>item-3be3952a-f222-4e57-89ef-c2955ce9a0e9</test></item>" ] } 2020-02-02 19:22:19 | [Mutex] notify: [retrieved:item:item-3be3952a-f222-4e57-89ef-c2955ce9a0e9:payload-matches:true:localhost] 2020-02-02 19:22:19 | [Mutex] received everything. 2020-02-02 19:22:19 | [Mutex] isItemNotified: retrieved:item:item-3be3952a-f222-4e57-89ef-c2955ce9a0e9:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2020-02-02 19:22:19 |
2020-02-02 19:22:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-02-02 19:22:19 | ------------------------------------ 2020-02-02 19:22:19 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@localhost" } 2020-02-02 19:22:19 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-bca1bb91-9bb6-438a-9864-60f0001df75b", "node-5a42bb48-498d-4dbe-9628-8cff07bf5ce5" ] } |
retrieveUserSubscriptionsWithRegex | 0.055s |
2020-02-02 19:22:19 |
2020-02-02 19:22:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-02-02 19:22:19 | ------------------------------------ 2020-02-02 19:22:19 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@localhost", "node-pattern": "(?!node-5a42bb48-498d-4dbe-9628-8cff07bf5ce5)" } 2020-02-02 19:22:20 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.027s |
2020-02-02 19:22:18 |
2020-02-02 19:22:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-02-02 19:22:18 | ------------------------------------ 2020-02-02 19:22:18 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-5a42bb48-498d-4dbe-9628-8cff07bf5ce5", "jids": [ "admin@localhost" ] } 2020-02-02 19:22:18 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.068s |
2020-02-02 19:22:20 |
2020-02-02 19:22:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-02-02 19:22:20 | ------------------------------------ 2020-02-02 19:22:20 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-5a42bb48-498d-4dbe-9628-8cff07bf5ce5", "jids": [ "admin@localhost" ] } 2020-02-02 19:22:20 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |