Test duration: 8.730s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.090s |
2020-06-18 22:40:49 |
2020-06-18 22:40:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-06-18 22:40:49 | ------------------------------------ 2020-06-18 22:40:49 | [Mutex] waiting for: [configured:node:node-ad84e068-5b8f-4e01-a240-cd156fba5dfc:node-2b1b55a1-e07c-4177-b205-8452a5abb663] 2020-06-18 22:40:49 | [Mutex] received everything. 2020-06-18 22:40:49 | [Mutex] isItemNotified: configured:node:node-ad84e068-5b8f-4e01-a240-cd156fba5dfc:node-2b1b55a1-e07c-4177-b205-8452a5abb663 :: true 2020-06-18 22:40:50 | [Mutex] waiting for: [received:nodes:ff3c50cf-26a9-4755-a731-835743afce2e:localhost] 2020-06-18 22:40:50 | [Mutex] received everything. 2020-06-18 22:40:50 | [Mutex] isItemNotified: received:node:ff3c50cf-26a9-4755-a731-835743afce2e:localhost:node-ad84e068-5b8f-4e01-a240-cd156fba5dfc:Node ad84e068-5b8f-4e01-a240-cd156fba5dfc :: true 2020-06-18 22:40:50 | [Mutex] waiting for: [received:nodes:e4ae6cb2-2c98-4dfc-b5b5-e3dde0774527:localhost] 2020-06-18 22:40:50 | [Mutex] received everything. 2020-06-18 22:40:50 | [Mutex] isItemNotified: received:node:e4ae6cb2-2c98-4dfc-b5b5-e3dde0774527:localhost:node-ad84e068-5b8f-4e01-a240-cd156fba5dfc:Node ad84e068-5b8f-4e01-a240-cd156fba5dfc :: false |
createNodes | 1.560s |
2020-06-18 22:40:46 |
2020-06-18 22:40:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-06-18 22:40:46 | ------------------------------------ 2020-06-18 22:40:47 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@localhost", "pubsub#node_type": "leaf", "node": "node-ad84e068-5b8f-4e01-a240-cd156fba5dfc", "pubsub#title": "Node ad84e068-5b8f-4e01-a240-cd156fba5dfc" } 2020-06-18 22:40:47 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-06-18 22:40:48 | [Mutex] waiting for: [received:nodes:03f21906-d9cc-4e59-9793-e87f13931650:localhost] 2020-06-18 22:40:48 | [Mutex] received everything. 2020-06-18 22:40:48 | [Mutex] isItemNotified: received:node:03f21906-d9cc-4e59-9793-e87f13931650:localhost:node-ad84e068-5b8f-4e01-a240-cd156fba5dfc:Node ad84e068-5b8f-4e01-a240-cd156fba5dfc :: true |
createSubnodes | 1.016s |
2020-06-18 22:40:48 |
2020-06-18 22:40:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-06-18 22:40:48 | ------------------------------------ 2020-06-18 22:40:48 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@localhost", "pubsub#node_type": "collection", "node": "node-2b1b55a1-e07c-4177-b205-8452a5abb663", "pubsub#title": "Node 2b1b55a1-e07c-4177-b205-8452a5abb663" } 2020-06-18 22:40:48 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-06-18 22:40:49 | [Mutex] waiting for: [received:nodes:10f4a1fd-8fb1-4d47-91a6-07191289acab:localhost] 2020-06-18 22:40:49 | [Mutex] received everything. 2020-06-18 22:40:49 | [Mutex] isItemNotified: received:node:10f4a1fd-8fb1-4d47-91a6-07191289acab:localhost:node-2b1b55a1-e07c-4177-b205-8452a5abb663:Node 2b1b55a1-e07c-4177-b205-8452a5abb663 :: true |
deleteNodes | 1.016s |
2020-06-18 22:40:53 |
2020-06-18 22:40:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-06-18 22:40:53 | ------------------------------------ 2020-06-18 22:40:53 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-2b1b55a1-e07c-4177-b205-8452a5abb663" } 2020-06-18 22:40:53 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-06-18 22:40:54 | [Mutex] waiting for: [received:nodes:f101c701-6702-44a1-b59a-4b5350023494:localhost] 2020-06-18 22:40:54 | [Mutex] received everything. 2020-06-18 22:40:54 | [Mutex] isItemNotified: received:node:f101c701-6702-44a1-b59a-4b5350023494:localhost:node-2b1b55a1-e07c-4177-b205-8452a5abb663:Node 2b1b55a1-e07c-4177-b205-8452a5abb663 :: false |
deleteSubnodes | 1.023s |
2020-06-18 22:40:52 |
2020-06-18 22:40:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-06-18 22:40:52 | ------------------------------------ 2020-06-18 22:40:52 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-ad84e068-5b8f-4e01-a240-cd156fba5dfc" } 2020-06-18 22:40:52 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-06-18 22:40:53 | [Mutex] waiting for: [received:nodes:42d19445-9957-477a-804b-e2d44f8e22ae:localhost] 2020-06-18 22:40:53 | [Mutex] received everything. 2020-06-18 22:40:53 | [Mutex] isItemNotified: received:node:42d19445-9957-477a-804b-e2d44f8e22ae:localhost:node-ad84e068-5b8f-4e01-a240-cd156fba5dfc:Node ad84e068-5b8f-4e01-a240-cd156fba5dfc :: false 2020-06-18 22:40:53 | [Mutex] waiting for: [received:nodes:7584aceb-15cf-4a6e-927d-3b34c8e9f5b0:localhost] 2020-06-18 22:40:53 | [Mutex] received everything. 2020-06-18 22:40:53 | [Mutex] isItemNotified: received:node:7584aceb-15cf-4a6e-927d-3b34c8e9f5b0:localhost:node-ad84e068-5b8f-4e01-a240-cd156fba5dfc:Node ad84e068-5b8f-4e01-a240-cd156fba5dfc :: false |
publishItemsToNodes | 0.040s |
2020-06-18 22:40:51 |
2020-06-18 22:40:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-06-18 22:40:51 | ------------------------------------ 2020-06-18 22:40:51 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-ad84e068-5b8f-4e01-a240-cd156fba5dfc", "entry": "<test>item-66779475-3ed8-428f-8212-31a314ae5a66</test>", "item-id": "item-66779475-3ed8-428f-8212-31a314ae5a66" } 2020-06-18 22:40:51 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-66779475-3ed8-428f-8212-31a314ae5a66" } 2020-06-18 22:40:51 | [Mutex] waiting for: [published:item:notifieditem-66779475-3ed8-428f-8212-31a314ae5a66:admin@localhost] 2020-06-18 22:40:51 | [Mutex] received everything. 2020-06-18 22:40:51 | [Mutex] isItemNotified: published:item:notifieditem-66779475-3ed8-428f-8212-31a314ae5a66:admin@localhost :: true |
retractItemsFromNodes | 0.052s |
2020-06-18 22:40:51 |
2020-06-18 22:40:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-06-18 22:40:51 | ------------------------------------ 2020-06-18 22:40:51 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-ad84e068-5b8f-4e01-a240-cd156fba5dfc", "item-id": "item-66779475-3ed8-428f-8212-31a314ae5a66" } 2020-06-18 22:40:51 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-66779475-3ed8-428f-8212-31a314ae5a66" } 2020-06-18 22:40:51 | [Mutex] received everything. 2020-06-18 22:40:51 | [Mutex] isItemNotified: retracted:item:notifieditem-66779475-3ed8-428f-8212-31a314ae5a66:admin@localhost :: true |
retrieveItemsFromNodes | 0.056s |
2020-06-18 22:40:51 |
2020-06-18 22:40:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-06-18 22:40:51 | ------------------------------------ 2020-06-18 22:40:51 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-ad84e068-5b8f-4e01-a240-cd156fba5dfc", "item-id": "item-66779475-3ed8-428f-8212-31a314ae5a66" } 2020-06-18 22:40:51 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-ad84e068-5b8f-4e01-a240-cd156fba5dfc", "item-id": "item-66779475-3ed8-428f-8212-31a314ae5a66", "item": [ "<item id=\"item-66779475-3ed8-428f-8212-31a314ae5a66\"><test>item-66779475-3ed8-428f-8212-31a314ae5a66</test></item>" ] } 2020-06-18 22:40:51 | [Mutex] notify: [retrieved:item:item-66779475-3ed8-428f-8212-31a314ae5a66:payload-matches:true:localhost] 2020-06-18 22:40:51 | [Mutex] received everything. 2020-06-18 22:40:51 | [Mutex] isItemNotified: retrieved:item:item-66779475-3ed8-428f-8212-31a314ae5a66:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.055s |
2020-06-18 22:40:51 |
2020-06-18 22:40:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-06-18 22:40:51 | ------------------------------------ 2020-06-18 22:40:51 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@localhost" } 2020-06-18 22:40:51 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-2b1b55a1-e07c-4177-b205-8452a5abb663", "test", "node-ad84e068-5b8f-4e01-a240-cd156fba5dfc" ] } |
retrieveUserSubscriptionsWithRegex | 0.048s |
2020-06-18 22:40:51 |
2020-06-18 22:40:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-06-18 22:40:51 | ------------------------------------ 2020-06-18 22:40:51 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@localhost", "node-pattern": "(?!node-ad84e068-5b8f-4e01-a240-cd156fba5dfc)" } 2020-06-18 22:40:51 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.014s |
2020-06-18 22:40:50 |
2020-06-18 22:40:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-06-18 22:40:50 | ------------------------------------ 2020-06-18 22:40:50 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-ad84e068-5b8f-4e01-a240-cd156fba5dfc", "jids": [ "admin@localhost" ] } 2020-06-18 22:40:50 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.056s |
2020-06-18 22:40:51 |
2020-06-18 22:40:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-06-18 22:40:51 | ------------------------------------ 2020-06-18 22:40:51 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-ad84e068-5b8f-4e01-a240-cd156fba5dfc", "jids": [ "admin@localhost" ] } 2020-06-18 22:40:51 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |