Test duration: 9.179s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.115s |
2019-11-25 19:00:44 |
2019-11-25 19:00:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-25 19:00:44 | ------------------------------------ 2019-11-25 19:00:44 | [Mutex] waiting for: [configured:node:node-2cfe28c8-73c7-4e6c-96b2-a38252e628b3:node-d6b12f05-e538-472d-bcee-81759973da77] 2019-11-25 19:00:44 | [Mutex] received everything. 2019-11-25 19:00:44 | [Mutex] isItemNotified: configured:node:node-2cfe28c8-73c7-4e6c-96b2-a38252e628b3:node-d6b12f05-e538-472d-bcee-81759973da77 :: true 2019-11-25 19:00:45 | [Mutex] waiting for: [received:nodes:6a487568-445f-4c08-b2aa-3406f388e199:localhost] 2019-11-25 19:00:45 | [Mutex] received everything. 2019-11-25 19:00:45 | [Mutex] isItemNotified: received:node:6a487568-445f-4c08-b2aa-3406f388e199:localhost:node-2cfe28c8-73c7-4e6c-96b2-a38252e628b3:Node 2cfe28c8-73c7-4e6c-96b2-a38252e628b3 :: true 2019-11-25 19:00:45 | [Mutex] waiting for: [received:nodes:a43588ea-27c0-4302-b2ed-44524a407200:localhost] 2019-11-25 19:00:45 | [Mutex] received everything. 2019-11-25 19:00:45 | [Mutex] isItemNotified: received:node:a43588ea-27c0-4302-b2ed-44524a407200:localhost:node-2cfe28c8-73c7-4e6c-96b2-a38252e628b3:Node 2cfe28c8-73c7-4e6c-96b2-a38252e628b3 :: false |
createNodes | 1.873s |
2019-11-25 19:00:41 |
2019-11-25 19:00:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-25 19:00:41 | ------------------------------------ 2019-11-25 19:00:42 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@localhost", "pubsub#node_type": "leaf", "node": "node-2cfe28c8-73c7-4e6c-96b2-a38252e628b3", "pubsub#title": "Node 2cfe28c8-73c7-4e6c-96b2-a38252e628b3" } 2019-11-25 19:00:42 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2019-11-25 19:00:43 | [Mutex] waiting for: [received:nodes:40115a42-72fb-4830-ac81-6bc786289de2:localhost] 2019-11-25 19:00:43 | [Mutex] received everything. 2019-11-25 19:00:43 | [Mutex] isItemNotified: received:node:40115a42-72fb-4830-ac81-6bc786289de2:localhost:node-2cfe28c8-73c7-4e6c-96b2-a38252e628b3:Node 2cfe28c8-73c7-4e6c-96b2-a38252e628b3 :: true |
createSubnodes | 1.028s |
2019-11-25 19:00:43 |
2019-11-25 19:00:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-25 19:00:43 | ------------------------------------ 2019-11-25 19:00:43 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@localhost", "pubsub#node_type": "collection", "node": "node-d6b12f05-e538-472d-bcee-81759973da77", "pubsub#title": "Node d6b12f05-e538-472d-bcee-81759973da77" } 2019-11-25 19:00:43 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2019-11-25 19:00:44 | [Mutex] waiting for: [received:nodes:8a320f40-2925-4d12-9b25-16ba77a0bee8:localhost] 2019-11-25 19:00:44 | [Mutex] waiting for: [received:nodes:8a320f40-2925-4d12-9b25-16ba77a0bee8:localhost] 2019-11-25 19:00:44 | [Mutex] received everything. 2019-11-25 19:00:44 | [Mutex] isItemNotified: received:node:8a320f40-2925-4d12-9b25-16ba77a0bee8:localhost:node-d6b12f05-e538-472d-bcee-81759973da77:Node d6b12f05-e538-472d-bcee-81759973da77 :: true |
deleteNodes | 1.022s |
2019-11-25 19:00:48 |
2019-11-25 19:00:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-25 19:00:48 | ------------------------------------ 2019-11-25 19:00:48 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-d6b12f05-e538-472d-bcee-81759973da77" } 2019-11-25 19:00:48 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2019-11-25 19:00:49 | [Mutex] waiting for: [received:nodes:03b518f5-704d-4bc6-a64f-2e0e11e63ec0:localhost] 2019-11-25 19:00:49 | [Mutex] waiting for: [received:nodes:03b518f5-704d-4bc6-a64f-2e0e11e63ec0:localhost] 2019-11-25 19:00:49 | [Mutex] received everything. 2019-11-25 19:00:49 | [Mutex] isItemNotified: received:node:03b518f5-704d-4bc6-a64f-2e0e11e63ec0:localhost:node-d6b12f05-e538-472d-bcee-81759973da77:Node d6b12f05-e538-472d-bcee-81759973da77 :: false |
deleteSubnodes | 1.027s |
2019-11-25 19:00:47 |
2019-11-25 19:00:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-25 19:00:47 | ------------------------------------ 2019-11-25 19:00:47 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-2cfe28c8-73c7-4e6c-96b2-a38252e628b3" } 2019-11-25 19:00:47 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2019-11-25 19:00:48 | [Mutex] waiting for: [received:nodes:8c0cb4f1-257b-4b1b-a859-e4e27efa931d:localhost] 2019-11-25 19:00:48 | [Mutex] received everything. 2019-11-25 19:00:48 | [Mutex] isItemNotified: received:node:8c0cb4f1-257b-4b1b-a859-e4e27efa931d:localhost:node-2cfe28c8-73c7-4e6c-96b2-a38252e628b3:Node 2cfe28c8-73c7-4e6c-96b2-a38252e628b3 :: false 2019-11-25 19:00:48 | [Mutex] waiting for: [received:nodes:1c22fb5a-56b9-4d95-8baf-f5108b56a5aa:localhost] 2019-11-25 19:00:48 | [Mutex] received everything. 2019-11-25 19:00:48 | [Mutex] isItemNotified: received:node:1c22fb5a-56b9-4d95-8baf-f5108b56a5aa:localhost:node-2cfe28c8-73c7-4e6c-96b2-a38252e628b3:Node 2cfe28c8-73c7-4e6c-96b2-a38252e628b3 :: false |
publishItemsToNodes | 0.049s |
2019-11-25 19:00:46 |
2019-11-25 19:00:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-25 19:00:46 | ------------------------------------ 2019-11-25 19:00:46 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-2cfe28c8-73c7-4e6c-96b2-a38252e628b3", "entry": "<test>item-7f71c139-716c-4e96-a4c7-2bf4d2f534d9</test>", "item-id": "item-7f71c139-716c-4e96-a4c7-2bf4d2f534d9" } 2019-11-25 19:00:46 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-7f71c139-716c-4e96-a4c7-2bf4d2f534d9" } 2019-11-25 19:00:46 | [Mutex] waiting for: [published:item:notifieditem-7f71c139-716c-4e96-a4c7-2bf4d2f534d9:admin@localhost] 2019-11-25 19:00:46 | [Mutex] received everything. 2019-11-25 19:00:46 | [Mutex] isItemNotified: published:item:notifieditem-7f71c139-716c-4e96-a4c7-2bf4d2f534d9:admin@localhost :: true |
retractItemsFromNodes | 0.051s |
2019-11-25 19:00:46 |
2019-11-25 19:00:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-25 19:00:46 | ------------------------------------ 2019-11-25 19:00:46 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-2cfe28c8-73c7-4e6c-96b2-a38252e628b3", "item-id": "item-7f71c139-716c-4e96-a4c7-2bf4d2f534d9" } 2019-11-25 19:00:46 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-7f71c139-716c-4e96-a4c7-2bf4d2f534d9" } 2019-11-25 19:00:46 | [Mutex] received everything. 2019-11-25 19:00:46 | [Mutex] isItemNotified: retracted:item:notifieditem-7f71c139-716c-4e96-a4c7-2bf4d2f534d9:admin@localhost :: true |
retrieveItemsFromNodes | 0.067s |
2019-11-25 19:00:46 |
2019-11-25 19:00:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-25 19:00:46 | ------------------------------------ 2019-11-25 19:00:46 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-2cfe28c8-73c7-4e6c-96b2-a38252e628b3", "item-id": "item-7f71c139-716c-4e96-a4c7-2bf4d2f534d9" } 2019-11-25 19:00:46 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-2cfe28c8-73c7-4e6c-96b2-a38252e628b3", "item-id": "item-7f71c139-716c-4e96-a4c7-2bf4d2f534d9", "item": [ "<item id=\"item-7f71c139-716c-4e96-a4c7-2bf4d2f534d9\"><test>item-7f71c139-716c-4e96-a4c7-2bf4d2f534d9</test></item>" ] } 2019-11-25 19:00:46 | [Mutex] notify: [retrieved:item:item-7f71c139-716c-4e96-a4c7-2bf4d2f534d9:payload-matches:true:localhost] 2019-11-25 19:00:46 | [Mutex] received everything. 2019-11-25 19:00:46 | [Mutex] isItemNotified: retrieved:item:item-7f71c139-716c-4e96-a4c7-2bf4d2f534d9:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.047s |
2019-11-25 19:00:46 |
2019-11-25 19:00:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-25 19:00:46 | ------------------------------------ 2019-11-25 19:00:46 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@localhost" } 2019-11-25 19:00:46 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-d6b12f05-e538-472d-bcee-81759973da77", "node-2cfe28c8-73c7-4e6c-96b2-a38252e628b3" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2019-11-25 19:00:46 |
2019-11-25 19:00:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-25 19:00:46 | ------------------------------------ 2019-11-25 19:00:46 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@localhost", "node-pattern": "(?!node-2cfe28c8-73c7-4e6c-96b2-a38252e628b3)" } 2019-11-25 19:00:46 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.012s |
2019-11-25 19:00:45 |
2019-11-25 19:00:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-25 19:00:45 | ------------------------------------ 2019-11-25 19:00:45 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-2cfe28c8-73c7-4e6c-96b2-a38252e628b3", "jids": [ "admin@localhost" ] } 2019-11-25 19:00:45 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.059s |
2019-11-25 19:00:46 |
2019-11-25 19:00:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-25 19:00:46 | ------------------------------------ 2019-11-25 19:00:46 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-2cfe28c8-73c7-4e6c-96b2-a38252e628b3", "jids": [ "admin@localhost" ] } 2019-11-25 19:00:46 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |