Test duration : 8.695s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.102s |
2022-09-22 22:35:43 |
2022-09-22 22:35:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-22 22:35:43 | ------------------------------------ 2022-09-22 22:35:43 | [Mutex] waiting for: [configured:node:node-b8e6bbba-c72b-4c7c-8fba-6ff4f7d2d62c:node-c819143a-aaf0-4146-ab25-fccabc8adf45] 2022-09-22 22:35:43 | [Mutex] received everything. 2022-09-22 22:35:43 | [Mutex] isItemNotified: configured:node:node-b8e6bbba-c72b-4c7c-8fba-6ff4f7d2d62c:node-c819143a-aaf0-4146-ab25-fccabc8adf45 :: true 2022-09-22 22:35:44 | [Mutex] waiting for: [received:nodes:8da78124-f946-404d-b5e6-66850914c3f3:localhost] 2022-09-22 22:35:44 | [Mutex] received everything. 2022-09-22 22:35:44 | [Mutex] isItemNotified: received:node:8da78124-f946-404d-b5e6-66850914c3f3:localhost:node-b8e6bbba-c72b-4c7c-8fba-6ff4f7d2d62c:Node b8e6bbba-c72b-4c7c-8fba-6ff4f7d2d62c :: true 2022-09-22 22:35:44 | [Mutex] waiting for: [received:nodes:4fcd6188-512c-4696-9bde-6563e42e5aa6:localhost] 2022-09-22 22:35:44 | [Mutex] waiting for: [received:nodes:4fcd6188-512c-4696-9bde-6563e42e5aa6:localhost] 2022-09-22 22:35:44 | [Mutex] waiting for: [received:nodes:4fcd6188-512c-4696-9bde-6563e42e5aa6:localhost] 2022-09-22 22:35:44 | [Mutex] received everything. 2022-09-22 22:35:44 | [Mutex] isItemNotified: received:node:4fcd6188-512c-4696-9bde-6563e42e5aa6:localhost:node-b8e6bbba-c72b-4c7c-8fba-6ff4f7d2d62c:Node b8e6bbba-c72b-4c7c-8fba-6ff4f7d2d62c :: false |
createNodes | 1.615s |
2022-09-22 22:35:40 |
2022-09-22 22:35:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-22 22:35:40 | ------------------------------------ 2022-09-22 22:35:41 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-b8e6bbba-c72b-4c7c-8fba-6ff4f7d2d62c", "pubsub#title": "Node b8e6bbba-c72b-4c7c-8fba-6ff4f7d2d62c" } 2022-09-22 22:35:41 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-09-22 22:35:42 | [Mutex] waiting for: [received:nodes:65337bb7-14d0-4b67-a873-4358929eb7eb:localhost] 2022-09-22 22:35:42 | [Mutex] received everything. 2022-09-22 22:35:42 | [Mutex] isItemNotified: received:node:65337bb7-14d0-4b67-a873-4358929eb7eb:localhost:node-b8e6bbba-c72b-4c7c-8fba-6ff4f7d2d62c:Node b8e6bbba-c72b-4c7c-8fba-6ff4f7d2d62c :: true |
createSubnodes | 1.021s |
2022-09-22 22:35:42 |
2022-09-22 22:35:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-22 22:35:42 | ------------------------------------ 2022-09-22 22:35:42 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-c819143a-aaf0-4146-ab25-fccabc8adf45", "pubsub#title": "Node c819143a-aaf0-4146-ab25-fccabc8adf45" } 2022-09-22 22:35:42 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-09-22 22:35:43 | [Mutex] waiting for: [received:nodes:429821e4-9b55-437b-8be9-0898d6338435:localhost] 2022-09-22 22:35:43 | [Mutex] waiting for: [received:nodes:429821e4-9b55-437b-8be9-0898d6338435:localhost] 2022-09-22 22:35:43 | [Mutex] received everything. 2022-09-22 22:35:43 | [Mutex] isItemNotified: received:node:429821e4-9b55-437b-8be9-0898d6338435:localhost:node-c819143a-aaf0-4146-ab25-fccabc8adf45:Node c819143a-aaf0-4146-ab25-fccabc8adf45 :: true |
deleteNodes | 1.025s |
2022-09-22 22:35:47 |
2022-09-22 22:35:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-22 22:35:47 | ------------------------------------ 2022-09-22 22:35:47 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-c819143a-aaf0-4146-ab25-fccabc8adf45" } 2022-09-22 22:35:47 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-09-22 22:35:48 | [Mutex] waiting for: [received:nodes:36fb470e-7e9c-41fc-86ce-27d2686ff626:localhost] 2022-09-22 22:35:48 | [Mutex] waiting for: [received:nodes:36fb470e-7e9c-41fc-86ce-27d2686ff626:localhost] 2022-09-22 22:35:48 | [Mutex] waiting for: [received:nodes:36fb470e-7e9c-41fc-86ce-27d2686ff626:localhost] 2022-09-22 22:35:48 | [Mutex] received everything. 2022-09-22 22:35:48 | [Mutex] isItemNotified: received:node:36fb470e-7e9c-41fc-86ce-27d2686ff626:localhost:node-c819143a-aaf0-4146-ab25-fccabc8adf45:Node c819143a-aaf0-4146-ab25-fccabc8adf45 :: false |
deleteSubnodes | 1.026s |
2022-09-22 22:35:46 |
2022-09-22 22:35:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-22 22:35:46 | ------------------------------------ 2022-09-22 22:35:46 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-b8e6bbba-c72b-4c7c-8fba-6ff4f7d2d62c" } 2022-09-22 22:35:46 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-09-22 22:35:47 | [Mutex] waiting for: [received:nodes:bacafd4a-8c28-45d8-b49c-a7a16d752048:localhost] 2022-09-22 22:35:47 | [Mutex] received everything. 2022-09-22 22:35:47 | [Mutex] isItemNotified: received:node:bacafd4a-8c28-45d8-b49c-a7a16d752048:localhost:node-b8e6bbba-c72b-4c7c-8fba-6ff4f7d2d62c:Node b8e6bbba-c72b-4c7c-8fba-6ff4f7d2d62c :: false 2022-09-22 22:35:47 | [Mutex] waiting for: [received:nodes:a9e3fbf5-1825-4164-ab65-97bf85f5e1d8:localhost] 2022-09-22 22:35:47 | [Mutex] received everything. 2022-09-22 22:35:47 | [Mutex] isItemNotified: received:node:a9e3fbf5-1825-4164-ab65-97bf85f5e1d8:localhost:node-b8e6bbba-c72b-4c7c-8fba-6ff4f7d2d62c:Node b8e6bbba-c72b-4c7c-8fba-6ff4f7d2d62c :: false |
publishItemsToNodes | 0.062s |
2022-09-22 22:35:45 |
2022-09-22 22:35:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-22 22:35:45 | ------------------------------------ 2022-09-22 22:35:45 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-b8e6bbba-c72b-4c7c-8fba-6ff4f7d2d62c", "entry": "<test>item-97e63521-5dd2-48ff-9673-afd84cea6c86</test>", "item-id": "item-97e63521-5dd2-48ff-9673-afd84cea6c86" } 2022-09-22 22:35:45 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-97e63521-5dd2-48ff-9673-afd84cea6c86" } 2022-09-22 22:35:45 | [Mutex] waiting for: [published:item:notifieditem-97e63521-5dd2-48ff-9673-afd84cea6c86:admin@test-domain.com] 2022-09-22 22:35:45 | [Mutex] received everything. 2022-09-22 22:35:45 | [Mutex] isItemNotified: published:item:notifieditem-97e63521-5dd2-48ff-9673-afd84cea6c86:admin@test-domain.com :: true |
retractItemsFromNodes | 0.052s |
2022-09-22 22:35:45 |
2022-09-22 22:35:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-22 22:35:45 | ------------------------------------ 2022-09-22 22:35:45 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-b8e6bbba-c72b-4c7c-8fba-6ff4f7d2d62c", "item-id": "item-97e63521-5dd2-48ff-9673-afd84cea6c86" } 2022-09-22 22:35:45 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-97e63521-5dd2-48ff-9673-afd84cea6c86" } 2022-09-22 22:35:45 | [Mutex] received everything. 2022-09-22 22:35:45 | [Mutex] isItemNotified: retracted:item:notifieditem-97e63521-5dd2-48ff-9673-afd84cea6c86:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.054s |
2022-09-22 22:35:45 |
2022-09-22 22:35:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-22 22:35:45 | ------------------------------------ 2022-09-22 22:35:45 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-b8e6bbba-c72b-4c7c-8fba-6ff4f7d2d62c", "item-id": "item-97e63521-5dd2-48ff-9673-afd84cea6c86" } 2022-09-22 22:35:45 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-b8e6bbba-c72b-4c7c-8fba-6ff4f7d2d62c", "item-id": "item-97e63521-5dd2-48ff-9673-afd84cea6c86", "item": [ "<item id=\"item-97e63521-5dd2-48ff-9673-afd84cea6c86\"><test>item-97e63521-5dd2-48ff-9673-afd84cea6c86</test></item>" ] } 2022-09-22 22:35:45 | [Mutex] notify: [retrieved:item:item-97e63521-5dd2-48ff-9673-afd84cea6c86:payload-matches:true:localhost] 2022-09-22 22:35:45 | [Mutex] received everything. 2022-09-22 22:35:45 | [Mutex] isItemNotified: retrieved:item:item-97e63521-5dd2-48ff-9673-afd84cea6c86:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.055s |
2022-09-22 22:35:45 |
2022-09-22 22:35:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-22 22:35:45 | ------------------------------------ 2022-09-22 22:35:45 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-09-22 22:35:45 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-c819143a-aaf0-4146-ab25-fccabc8adf45", "node-b8e6bbba-c72b-4c7c-8fba-6ff4f7d2d62c" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2022-09-22 22:35:45 |
2022-09-22 22:35:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-22 22:35:45 | ------------------------------------ 2022-09-22 22:35:45 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-b8e6bbba-c72b-4c7c-8fba-6ff4f7d2d62c)" } 2022-09-22 22:35:45 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.009s |
2022-09-22 22:35:44 |
2022-09-22 22:35:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-22 22:35:44 | ------------------------------------ 2022-09-22 22:35:44 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-b8e6bbba-c72b-4c7c-8fba-6ff4f7d2d62c", "jids": [ "admin@test-domain.com" ] } 2022-09-22 22:35:44 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.052s |
2022-09-22 22:35:45 |
2022-09-22 22:35:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-22 22:35:45 | ------------------------------------ 2022-09-22 22:35:45 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-b8e6bbba-c72b-4c7c-8fba-6ff4f7d2d62c", "jids": [ "admin@test-domain.com" ] } 2022-09-22 22:35:45 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |