Test duration : 9.002s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.085s |
2020-09-26 22:48:51 |
2020-09-26 22:48:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-26 22:48:51 | ------------------------------------ 2020-09-26 22:48:51 | [Mutex] waiting for: [configured:node:node-43260bdd-23fa-4cec-ba72-88012a66725f:node-9b5030e1-2936-49d1-aa5e-55a68b757508] 2020-09-26 22:48:51 | [Mutex] received everything. 2020-09-26 22:48:51 | [Mutex] isItemNotified: configured:node:node-43260bdd-23fa-4cec-ba72-88012a66725f:node-9b5030e1-2936-49d1-aa5e-55a68b757508 :: true 2020-09-26 22:48:52 | [Mutex] waiting for: [received:nodes:70cc054c-7ee3-4172-b54f-8932298ba19c:localhost] 2020-09-26 22:48:52 | [Mutex] received everything. 2020-09-26 22:48:52 | [Mutex] isItemNotified: received:node:70cc054c-7ee3-4172-b54f-8932298ba19c:localhost:node-43260bdd-23fa-4cec-ba72-88012a66725f:Node 43260bdd-23fa-4cec-ba72-88012a66725f :: true 2020-09-26 22:48:52 | [Mutex] waiting for: [received:nodes:b8727612-44b1-4658-9356-923f18c04cab:localhost] 2020-09-26 22:48:52 | [Mutex] received everything. 2020-09-26 22:48:52 | [Mutex] isItemNotified: received:node:b8727612-44b1-4658-9356-923f18c04cab:localhost:node-43260bdd-23fa-4cec-ba72-88012a66725f:Node 43260bdd-23fa-4cec-ba72-88012a66725f :: false |
createNodes | 1.763s |
2020-09-26 22:48:48 |
2020-09-26 22:48:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-26 22:48:48 | ------------------------------------ 2020-09-26 22:48:49 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-43260bdd-23fa-4cec-ba72-88012a66725f", "pubsub#title": "Node 43260bdd-23fa-4cec-ba72-88012a66725f" } 2020-09-26 22:48:49 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-26 22:48:50 | [Mutex] waiting for: [received:nodes:79654895-eab8-4a44-8e67-8b9bf84136d0:localhost] 2020-09-26 22:48:50 | [Mutex] received everything. 2020-09-26 22:48:50 | [Mutex] isItemNotified: received:node:79654895-eab8-4a44-8e67-8b9bf84136d0:localhost:node-43260bdd-23fa-4cec-ba72-88012a66725f:Node 43260bdd-23fa-4cec-ba72-88012a66725f :: true |
createSubnodes | 1.022s |
2020-09-26 22:48:50 |
2020-09-26 22:48:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-26 22:48:50 | ------------------------------------ 2020-09-26 22:48:50 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-9b5030e1-2936-49d1-aa5e-55a68b757508", "pubsub#title": "Node 9b5030e1-2936-49d1-aa5e-55a68b757508" } 2020-09-26 22:48:50 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-26 22:48:51 | [Mutex] waiting for: [received:nodes:556fa332-4c04-4ae6-800f-88427e14c1a2:localhost] 2020-09-26 22:48:51 | [Mutex] received everything. 2020-09-26 22:48:51 | [Mutex] isItemNotified: received:node:556fa332-4c04-4ae6-800f-88427e14c1a2:localhost:node-9b5030e1-2936-49d1-aa5e-55a68b757508:Node 9b5030e1-2936-49d1-aa5e-55a68b757508 :: true |
deleteNodes | 1.025s |
2020-09-26 22:48:55 |
2020-09-26 22:48:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-26 22:48:55 | ------------------------------------ 2020-09-26 22:48:55 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-9b5030e1-2936-49d1-aa5e-55a68b757508" } 2020-09-26 22:48:55 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-26 22:48:56 | [Mutex] waiting for: [received:nodes:a1fba80c-03f3-4058-9026-e645a239d5c6:localhost] 2020-09-26 22:48:56 | [Mutex] received everything. 2020-09-26 22:48:56 | [Mutex] isItemNotified: received:node:a1fba80c-03f3-4058-9026-e645a239d5c6:localhost:node-9b5030e1-2936-49d1-aa5e-55a68b757508:Node 9b5030e1-2936-49d1-aa5e-55a68b757508 :: false |
deleteSubnodes | 1.024s |
2020-09-26 22:48:54 |
2020-09-26 22:48:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-26 22:48:54 | ------------------------------------ 2020-09-26 22:48:54 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-43260bdd-23fa-4cec-ba72-88012a66725f" } 2020-09-26 22:48:54 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-26 22:48:55 | [Mutex] waiting for: [received:nodes:e3c9867a-c66a-406b-b455-ae91d3db671d:localhost] 2020-09-26 22:48:55 | [Mutex] received everything. 2020-09-26 22:48:55 | [Mutex] isItemNotified: received:node:e3c9867a-c66a-406b-b455-ae91d3db671d:localhost:node-43260bdd-23fa-4cec-ba72-88012a66725f:Node 43260bdd-23fa-4cec-ba72-88012a66725f :: false 2020-09-26 22:48:55 | [Mutex] waiting for: [received:nodes:e2c61a0b-f53b-4ebd-9665-beba3213335c:localhost] 2020-09-26 22:48:55 | [Mutex] received everything. 2020-09-26 22:48:55 | [Mutex] isItemNotified: received:node:e2c61a0b-f53b-4ebd-9665-beba3213335c:localhost:node-43260bdd-23fa-4cec-ba72-88012a66725f:Node 43260bdd-23fa-4cec-ba72-88012a66725f :: false |
publishItemsToNodes | 0.056s |
2020-09-26 22:48:53 |
2020-09-26 22:48:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-26 22:48:53 | ------------------------------------ 2020-09-26 22:48:53 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-43260bdd-23fa-4cec-ba72-88012a66725f", "entry": "<test>item-da3949f9-74c6-4b67-aee5-62819542b869</test>", "item-id": "item-da3949f9-74c6-4b67-aee5-62819542b869" } 2020-09-26 22:48:53 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-da3949f9-74c6-4b67-aee5-62819542b869" } 2020-09-26 22:48:53 | [Mutex] waiting for: [published:item:notifieditem-da3949f9-74c6-4b67-aee5-62819542b869:admin@test-domain.com] 2020-09-26 22:48:53 | [Mutex] received everything. 2020-09-26 22:48:53 | [Mutex] isItemNotified: published:item:notifieditem-da3949f9-74c6-4b67-aee5-62819542b869:admin@test-domain.com :: true |
retractItemsFromNodes | 0.085s |
2020-09-26 22:48:53 |
2020-09-26 22:48:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-26 22:48:53 | ------------------------------------ 2020-09-26 22:48:53 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-43260bdd-23fa-4cec-ba72-88012a66725f", "item-id": "item-da3949f9-74c6-4b67-aee5-62819542b869" } 2020-09-26 22:48:53 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-da3949f9-74c6-4b67-aee5-62819542b869" } 2020-09-26 22:48:53 | [Mutex] received everything. 2020-09-26 22:48:53 | [Mutex] isItemNotified: retracted:item:notifieditem-da3949f9-74c6-4b67-aee5-62819542b869:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.030s |
2020-09-26 22:48:53 |
2020-09-26 22:48:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-26 22:48:53 | ------------------------------------ 2020-09-26 22:48:53 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-43260bdd-23fa-4cec-ba72-88012a66725f", "item-id": "item-da3949f9-74c6-4b67-aee5-62819542b869" } 2020-09-26 22:48:53 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-43260bdd-23fa-4cec-ba72-88012a66725f", "item-id": "item-da3949f9-74c6-4b67-aee5-62819542b869", "item": [ "<item id=\"item-da3949f9-74c6-4b67-aee5-62819542b869\"><test>item-da3949f9-74c6-4b67-aee5-62819542b869</test></item>" ] } 2020-09-26 22:48:53 | [Mutex] notify: [retrieved:item:item-da3949f9-74c6-4b67-aee5-62819542b869:payload-matches:true:localhost] 2020-09-26 22:48:53 | [Mutex] received everything. 2020-09-26 22:48:53 | [Mutex] isItemNotified: retrieved:item:item-da3949f9-74c6-4b67-aee5-62819542b869:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.060s |
2020-09-26 22:48:53 |
2020-09-26 22:48:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-26 22:48:53 | ------------------------------------ 2020-09-26 22:48:53 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-09-26 22:48:53 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-9b5030e1-2936-49d1-aa5e-55a68b757508", "node-43260bdd-23fa-4cec-ba72-88012a66725f" ] } |
retrieveUserSubscriptionsWithRegex | 0.055s |
2020-09-26 22:48:53 |
2020-09-26 22:48:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-26 22:48:53 | ------------------------------------ 2020-09-26 22:48:53 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-43260bdd-23fa-4cec-ba72-88012a66725f)" } 2020-09-26 22:48:53 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.011s |
2020-09-26 22:48:52 |
2020-09-26 22:48:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-26 22:48:52 | ------------------------------------ 2020-09-26 22:48:52 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-43260bdd-23fa-4cec-ba72-88012a66725f", "jids": [ "admin@test-domain.com" ] } 2020-09-26 22:48:52 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.057s |
2020-09-26 22:48:53 |
2020-09-26 22:48:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-26 22:48:53 | ------------------------------------ 2020-09-26 22:48:53 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-43260bdd-23fa-4cec-ba72-88012a66725f", "jids": [ "admin@test-domain.com" ] } 2020-09-26 22:48:53 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |