Test duration: 9.126s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.125s |
2019-12-03 20:43:46 |
2019-12-03 20:43:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-12-03 20:43:46 | ------------------------------------ 2019-12-03 20:43:46 | [Mutex] waiting for: [configured:node:node-2cad5f42-6b08-4b66-b55d-37eda8055d1e:node-7a5f93d5-7626-494f-903a-8ad0e458cde0] 2019-12-03 20:43:46 | [Mutex] received everything. 2019-12-03 20:43:46 | [Mutex] isItemNotified: configured:node:node-2cad5f42-6b08-4b66-b55d-37eda8055d1e:node-7a5f93d5-7626-494f-903a-8ad0e458cde0 :: true 2019-12-03 20:43:47 | [Mutex] waiting for: [received:nodes:2b41c79b-5887-47df-bbd8-af659e1f373e:localhost] 2019-12-03 20:43:47 | [Mutex] received everything. 2019-12-03 20:43:47 | [Mutex] isItemNotified: received:node:2b41c79b-5887-47df-bbd8-af659e1f373e:localhost:node-2cad5f42-6b08-4b66-b55d-37eda8055d1e:Node 2cad5f42-6b08-4b66-b55d-37eda8055d1e :: true 2019-12-03 20:43:47 | [Mutex] waiting for: [received:nodes:fdf10928-41d6-4d40-9d23-e0a3260a608f:localhost] 2019-12-03 20:43:47 | [Mutex] received everything. 2019-12-03 20:43:47 | [Mutex] isItemNotified: received:node:fdf10928-41d6-4d40-9d23-e0a3260a608f:localhost:node-2cad5f42-6b08-4b66-b55d-37eda8055d1e:Node 2cad5f42-6b08-4b66-b55d-37eda8055d1e :: false |
createNodes | 1.785s |
2019-12-03 20:43:44 |
2019-12-03 20:43:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-12-03 20:43:44 | ------------------------------------ 2019-12-03 20:43:44 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@localhost", "pubsub#node_type": "leaf", "node": "node-2cad5f42-6b08-4b66-b55d-37eda8055d1e", "pubsub#title": "Node 2cad5f42-6b08-4b66-b55d-37eda8055d1e" } 2019-12-03 20:43:44 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2019-12-03 20:43:45 | [Mutex] waiting for: [received:nodes:43d5ddd2-a6a3-453b-b886-4cbe03e19dab:localhost] 2019-12-03 20:43:45 | [Mutex] received everything. 2019-12-03 20:43:45 | [Mutex] isItemNotified: received:node:43d5ddd2-a6a3-453b-b886-4cbe03e19dab:localhost:node-2cad5f42-6b08-4b66-b55d-37eda8055d1e:Node 2cad5f42-6b08-4b66-b55d-37eda8055d1e :: true |
createSubnodes | 1.036s |
2019-12-03 20:43:45 |
2019-12-03 20:43:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-12-03 20:43:45 | ------------------------------------ 2019-12-03 20:43:45 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@localhost", "pubsub#node_type": "collection", "node": "node-7a5f93d5-7626-494f-903a-8ad0e458cde0", "pubsub#title": "Node 7a5f93d5-7626-494f-903a-8ad0e458cde0" } 2019-12-03 20:43:45 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2019-12-03 20:43:46 | [Mutex] waiting for: [received:nodes:740ada1b-f456-4fb2-9f4a-f09c2e51d294:localhost] 2019-12-03 20:43:46 | [Mutex] received everything. 2019-12-03 20:43:46 | [Mutex] isItemNotified: received:node:740ada1b-f456-4fb2-9f4a-f09c2e51d294:localhost:node-7a5f93d5-7626-494f-903a-8ad0e458cde0:Node 7a5f93d5-7626-494f-903a-8ad0e458cde0 :: true |
deleteNodes | 1.016s |
2019-12-03 20:43:51 |
2019-12-03 20:43:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-12-03 20:43:51 | ------------------------------------ 2019-12-03 20:43:51 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-7a5f93d5-7626-494f-903a-8ad0e458cde0" } 2019-12-03 20:43:51 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2019-12-03 20:43:52 | [Mutex] waiting for: [received:nodes:ed817269-52a0-4561-b537-24d409e69ffd:localhost] 2019-12-03 20:43:52 | [Mutex] received everything. 2019-12-03 20:43:52 | [Mutex] isItemNotified: received:node:ed817269-52a0-4561-b537-24d409e69ffd:localhost:node-7a5f93d5-7626-494f-903a-8ad0e458cde0:Node 7a5f93d5-7626-494f-903a-8ad0e458cde0 :: false |
deleteSubnodes | 1.057s |
2019-12-03 20:43:50 |
2019-12-03 20:43:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-12-03 20:43:50 | ------------------------------------ 2019-12-03 20:43:50 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-2cad5f42-6b08-4b66-b55d-37eda8055d1e" } 2019-12-03 20:43:50 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2019-12-03 20:43:51 | [Mutex] waiting for: [received:nodes:248815f1-cc4f-4e62-a768-5f99bb24f9de:localhost] 2019-12-03 20:43:51 | [Mutex] received everything. 2019-12-03 20:43:51 | [Mutex] isItemNotified: received:node:248815f1-cc4f-4e62-a768-5f99bb24f9de:localhost:node-2cad5f42-6b08-4b66-b55d-37eda8055d1e:Node 2cad5f42-6b08-4b66-b55d-37eda8055d1e :: false 2019-12-03 20:43:51 | [Mutex] waiting for: [received:nodes:bd7c8541-6bb8-44f1-8597-3f1d55c5cdcb:localhost] 2019-12-03 20:43:51 | [Mutex] received everything. 2019-12-03 20:43:51 | [Mutex] isItemNotified: received:node:bd7c8541-6bb8-44f1-8597-3f1d55c5cdcb:localhost:node-2cad5f42-6b08-4b66-b55d-37eda8055d1e:Node 2cad5f42-6b08-4b66-b55d-37eda8055d1e :: false |
publishItemsToNodes | 0.041s |
2019-12-03 20:43:49 |
2019-12-03 20:43:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-12-03 20:43:49 | ------------------------------------ 2019-12-03 20:43:49 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-2cad5f42-6b08-4b66-b55d-37eda8055d1e", "entry": "<test>item-40b437b3-dfe2-4ced-bff5-8b6c2d497432</test>", "item-id": "item-40b437b3-dfe2-4ced-bff5-8b6c2d497432" } 2019-12-03 20:43:49 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-40b437b3-dfe2-4ced-bff5-8b6c2d497432" } 2019-12-03 20:43:49 | [Mutex] waiting for: [published:item:notifieditem-40b437b3-dfe2-4ced-bff5-8b6c2d497432:admin@localhost] 2019-12-03 20:43:49 | [Mutex] received everything. 2019-12-03 20:43:49 | [Mutex] isItemNotified: published:item:notifieditem-40b437b3-dfe2-4ced-bff5-8b6c2d497432:admin@localhost :: true |
retractItemsFromNodes | 0.051s |
2019-12-03 20:43:49 |
2019-12-03 20:43:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-12-03 20:43:49 | ------------------------------------ 2019-12-03 20:43:49 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-2cad5f42-6b08-4b66-b55d-37eda8055d1e", "item-id": "item-40b437b3-dfe2-4ced-bff5-8b6c2d497432" } 2019-12-03 20:43:49 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-40b437b3-dfe2-4ced-bff5-8b6c2d497432" } 2019-12-03 20:43:49 | [Mutex] received everything. 2019-12-03 20:43:49 | [Mutex] isItemNotified: retracted:item:notifieditem-40b437b3-dfe2-4ced-bff5-8b6c2d497432:admin@localhost :: true |
retrieveItemsFromNodes | 0.063s |
2019-12-03 20:43:49 |
2019-12-03 20:43:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-12-03 20:43:49 | ------------------------------------ 2019-12-03 20:43:49 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-2cad5f42-6b08-4b66-b55d-37eda8055d1e", "item-id": "item-40b437b3-dfe2-4ced-bff5-8b6c2d497432" } 2019-12-03 20:43:49 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-2cad5f42-6b08-4b66-b55d-37eda8055d1e", "item-id": "item-40b437b3-dfe2-4ced-bff5-8b6c2d497432", "item": [ "<item id=\"item-40b437b3-dfe2-4ced-bff5-8b6c2d497432\"><test>item-40b437b3-dfe2-4ced-bff5-8b6c2d497432</test></item>" ] } 2019-12-03 20:43:49 | [Mutex] notify: [retrieved:item:item-40b437b3-dfe2-4ced-bff5-8b6c2d497432:payload-matches:true:localhost] 2019-12-03 20:43:49 | [Mutex] received everything. 2019-12-03 20:43:49 | [Mutex] isItemNotified: retrieved:item:item-40b437b3-dfe2-4ced-bff5-8b6c2d497432:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2019-12-03 20:43:49 |
2019-12-03 20:43:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-12-03 20:43:49 | ------------------------------------ 2019-12-03 20:43:49 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@localhost" } 2019-12-03 20:43:49 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-2cad5f42-6b08-4b66-b55d-37eda8055d1e", "node-7a5f93d5-7626-494f-903a-8ad0e458cde0" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2019-12-03 20:43:49 |
2019-12-03 20:43:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-12-03 20:43:49 | ------------------------------------ 2019-12-03 20:43:49 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@localhost", "node-pattern": "(?!node-2cad5f42-6b08-4b66-b55d-37eda8055d1e)" } 2019-12-03 20:43:49 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.015s |
2019-12-03 20:43:47 |
2019-12-03 20:43:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-12-03 20:43:47 | ------------------------------------ 2019-12-03 20:43:47 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-2cad5f42-6b08-4b66-b55d-37eda8055d1e", "jids": [ "admin@localhost" ] } 2019-12-03 20:43:48 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.071s |
2019-12-03 20:43:49 |
2019-12-03 20:43:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-12-03 20:43:49 | ------------------------------------ 2019-12-03 20:43:49 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-2cad5f42-6b08-4b66-b55d-37eda8055d1e", "jids": [ "admin@localhost" ] } 2019-12-03 20:43:49 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |