Test duration: 8.791s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.129s |
2019-12-03 19:42:02 |
2019-12-03 19:42:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-12-03 19:42:02 | ------------------------------------ 2019-12-03 19:42:02 | [Mutex] waiting for: [configured:node:node-cafbff3f-a3cc-4745-962d-f7a09b6f8ef7:node-fe22dd7f-9ee6-4f68-92bc-339c3d2cb550] 2019-12-03 19:42:02 | [Mutex] received everything. 2019-12-03 19:42:02 | [Mutex] isItemNotified: configured:node:node-cafbff3f-a3cc-4745-962d-f7a09b6f8ef7:node-fe22dd7f-9ee6-4f68-92bc-339c3d2cb550 :: true 2019-12-03 19:42:03 | [Mutex] waiting for: [received:nodes:cb53ebbc-c874-432b-9c04-b9baee59bf18:localhost] 2019-12-03 19:42:03 | [Mutex] received everything. 2019-12-03 19:42:03 | [Mutex] isItemNotified: received:node:cb53ebbc-c874-432b-9c04-b9baee59bf18:localhost:node-cafbff3f-a3cc-4745-962d-f7a09b6f8ef7:Node cafbff3f-a3cc-4745-962d-f7a09b6f8ef7 :: true 2019-12-03 19:42:03 | [Mutex] waiting for: [received:nodes:ea7237b0-b51b-4ba7-af10-0065ff2e7bc7:localhost] 2019-12-03 19:42:03 | [Mutex] received everything. 2019-12-03 19:42:03 | [Mutex] isItemNotified: received:node:ea7237b0-b51b-4ba7-af10-0065ff2e7bc7:localhost:node-cafbff3f-a3cc-4745-962d-f7a09b6f8ef7:Node cafbff3f-a3cc-4745-962d-f7a09b6f8ef7 :: false |
createNodes | 1.587s |
2019-12-03 19:41:59 |
2019-12-03 19:41:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-12-03 19:41:59 | ------------------------------------ 2019-12-03 19:42:00 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@localhost", "pubsub#node_type": "leaf", "node": "node-cafbff3f-a3cc-4745-962d-f7a09b6f8ef7", "pubsub#title": "Node cafbff3f-a3cc-4745-962d-f7a09b6f8ef7" } 2019-12-03 19:42:00 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2019-12-03 19:42:01 | [Mutex] waiting for: [received:nodes:f8a1933a-714b-477a-89f3-1d8f98a07917:localhost] 2019-12-03 19:42:01 | [Mutex] received everything. 2019-12-03 19:42:01 | [Mutex] isItemNotified: received:node:f8a1933a-714b-477a-89f3-1d8f98a07917:localhost:node-cafbff3f-a3cc-4745-962d-f7a09b6f8ef7:Node cafbff3f-a3cc-4745-962d-f7a09b6f8ef7 :: true |
createSubnodes | 1.029s |
2019-12-03 19:42:01 |
2019-12-03 19:42:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-12-03 19:42:01 | ------------------------------------ 2019-12-03 19:42:01 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@localhost", "pubsub#node_type": "collection", "node": "node-fe22dd7f-9ee6-4f68-92bc-339c3d2cb550", "pubsub#title": "Node fe22dd7f-9ee6-4f68-92bc-339c3d2cb550" } 2019-12-03 19:42:01 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2019-12-03 19:42:02 | [Mutex] waiting for: [received:nodes:4523b2ea-75ee-4d6b-86f2-370b3abfc992:localhost] 2019-12-03 19:42:02 | [Mutex] waiting for: [received:nodes:4523b2ea-75ee-4d6b-86f2-370b3abfc992:localhost] 2019-12-03 19:42:02 | [Mutex] received everything. 2019-12-03 19:42:02 | [Mutex] isItemNotified: received:node:4523b2ea-75ee-4d6b-86f2-370b3abfc992:localhost:node-fe22dd7f-9ee6-4f68-92bc-339c3d2cb550:Node fe22dd7f-9ee6-4f68-92bc-339c3d2cb550 :: true |
deleteNodes | 1.025s |
2019-12-03 19:42:07 |
2019-12-03 19:42:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-12-03 19:42:07 | ------------------------------------ 2019-12-03 19:42:07 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-fe22dd7f-9ee6-4f68-92bc-339c3d2cb550" } 2019-12-03 19:42:07 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2019-12-03 19:42:08 | [Mutex] waiting for: [received:nodes:f85a823f-5887-44e9-9e82-a77cfbbdcfd6:localhost] 2019-12-03 19:42:08 | [Mutex] waiting for: [received:nodes:f85a823f-5887-44e9-9e82-a77cfbbdcfd6:localhost] 2019-12-03 19:42:08 | [Mutex] received everything. 2019-12-03 19:42:08 | [Mutex] isItemNotified: received:node:f85a823f-5887-44e9-9e82-a77cfbbdcfd6:localhost:node-fe22dd7f-9ee6-4f68-92bc-339c3d2cb550:Node fe22dd7f-9ee6-4f68-92bc-339c3d2cb550 :: false |
deleteSubnodes | 1.043s |
2019-12-03 19:42:05 |
2019-12-03 19:42:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-12-03 19:42:05 | ------------------------------------ 2019-12-03 19:42:05 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-cafbff3f-a3cc-4745-962d-f7a09b6f8ef7" } 2019-12-03 19:42:06 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2019-12-03 19:42:07 | [Mutex] waiting for: [received:nodes:eeffc70f-0695-4ac0-9c41-de365a02b721:localhost] 2019-12-03 19:42:07 | [Mutex] received everything. 2019-12-03 19:42:07 | [Mutex] isItemNotified: received:node:eeffc70f-0695-4ac0-9c41-de365a02b721:localhost:node-cafbff3f-a3cc-4745-962d-f7a09b6f8ef7:Node cafbff3f-a3cc-4745-962d-f7a09b6f8ef7 :: false 2019-12-03 19:42:07 | [Mutex] waiting for: [received:nodes:21acf97a-a9e5-4aec-80aa-4f416688d112:localhost] 2019-12-03 19:42:07 | [Mutex] received everything. 2019-12-03 19:42:07 | [Mutex] isItemNotified: received:node:21acf97a-a9e5-4aec-80aa-4f416688d112:localhost:node-cafbff3f-a3cc-4745-962d-f7a09b6f8ef7:Node cafbff3f-a3cc-4745-962d-f7a09b6f8ef7 :: false |
publishItemsToNodes | 0.045s |
2019-12-03 19:42:04 |
2019-12-03 19:42:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-12-03 19:42:04 | ------------------------------------ 2019-12-03 19:42:04 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-cafbff3f-a3cc-4745-962d-f7a09b6f8ef7", "entry": "<test>item-eb72d3db-0560-4fa8-ae06-fd306d45bd9c</test>", "item-id": "item-eb72d3db-0560-4fa8-ae06-fd306d45bd9c" } 2019-12-03 19:42:04 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-eb72d3db-0560-4fa8-ae06-fd306d45bd9c" } 2019-12-03 19:42:04 | [Mutex] waiting for: [published:item:notifieditem-eb72d3db-0560-4fa8-ae06-fd306d45bd9c:admin@localhost] 2019-12-03 19:42:04 | [Mutex] received everything. 2019-12-03 19:42:04 | [Mutex] isItemNotified: published:item:notifieditem-eb72d3db-0560-4fa8-ae06-fd306d45bd9c:admin@localhost :: true |
retractItemsFromNodes | 0.055s |
2019-12-03 19:42:04 |
2019-12-03 19:42:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-12-03 19:42:04 | ------------------------------------ 2019-12-03 19:42:04 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-cafbff3f-a3cc-4745-962d-f7a09b6f8ef7", "item-id": "item-eb72d3db-0560-4fa8-ae06-fd306d45bd9c" } 2019-12-03 19:42:04 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-eb72d3db-0560-4fa8-ae06-fd306d45bd9c" } 2019-12-03 19:42:04 | [Mutex] received everything. 2019-12-03 19:42:04 | [Mutex] isItemNotified: retracted:item:notifieditem-eb72d3db-0560-4fa8-ae06-fd306d45bd9c:admin@localhost :: true |
retrieveItemsFromNodes | 0.060s |
2019-12-03 19:42:04 |
2019-12-03 19:42:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-12-03 19:42:04 | ------------------------------------ 2019-12-03 19:42:04 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-cafbff3f-a3cc-4745-962d-f7a09b6f8ef7", "item-id": "item-eb72d3db-0560-4fa8-ae06-fd306d45bd9c" } 2019-12-03 19:42:04 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-cafbff3f-a3cc-4745-962d-f7a09b6f8ef7", "item-id": "item-eb72d3db-0560-4fa8-ae06-fd306d45bd9c", "item": [ "<item id=\"item-eb72d3db-0560-4fa8-ae06-fd306d45bd9c\"><test>item-eb72d3db-0560-4fa8-ae06-fd306d45bd9c</test></item>" ] } 2019-12-03 19:42:04 | [Mutex] notify: [retrieved:item:item-eb72d3db-0560-4fa8-ae06-fd306d45bd9c:payload-matches:true:localhost] 2019-12-03 19:42:04 | [Mutex] received everything. 2019-12-03 19:42:04 | [Mutex] isItemNotified: retrieved:item:item-eb72d3db-0560-4fa8-ae06-fd306d45bd9c:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.055s |
2019-12-03 19:42:04 |
2019-12-03 19:42:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-12-03 19:42:04 | ------------------------------------ 2019-12-03 19:42:04 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@localhost" } 2019-12-03 19:42:04 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-cafbff3f-a3cc-4745-962d-f7a09b6f8ef7", "node-fe22dd7f-9ee6-4f68-92bc-339c3d2cb550" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2019-12-03 19:42:04 |
2019-12-03 19:42:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-12-03 19:42:04 | ------------------------------------ 2019-12-03 19:42:04 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@localhost", "node-pattern": "(?!node-cafbff3f-a3cc-4745-962d-f7a09b6f8ef7)" } 2019-12-03 19:42:04 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.015s |
2019-12-03 19:42:03 |
2019-12-03 19:42:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-12-03 19:42:03 | ------------------------------------ 2019-12-03 19:42:03 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-cafbff3f-a3cc-4745-962d-f7a09b6f8ef7", "jids": [ "admin@localhost" ] } 2019-12-03 19:42:03 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.075s |
2019-12-03 19:42:04 |
2019-12-03 19:42:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-12-03 19:42:04 | ------------------------------------ 2019-12-03 19:42:04 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-cafbff3f-a3cc-4745-962d-f7a09b6f8ef7", "jids": [ "admin@localhost" ] } 2019-12-03 19:42:04 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |