Test duration : 8.567s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.089s |
2022-08-26 07:53:51 |
2022-08-26 07:53:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-26 07:53:51 | ------------------------------------ 2022-08-26 07:53:51 | [Mutex] waiting for: [configured:node:node-7af36d25-0a5b-47af-84fe-b4945f406197:node-ee21c396-d463-4ae7-8fe9-c9b987563edb] 2022-08-26 07:53:51 | [Mutex] received everything. 2022-08-26 07:53:51 | [Mutex] isItemNotified: configured:node:node-7af36d25-0a5b-47af-84fe-b4945f406197:node-ee21c396-d463-4ae7-8fe9-c9b987563edb :: true 2022-08-26 07:53:52 | [Mutex] waiting for: [received:nodes:218ca996-0072-480b-8929-498f723f8ba4:localhost] 2022-08-26 07:53:52 | [Mutex] received everything. 2022-08-26 07:53:52 | [Mutex] isItemNotified: received:node:218ca996-0072-480b-8929-498f723f8ba4:localhost:node-7af36d25-0a5b-47af-84fe-b4945f406197:Node 7af36d25-0a5b-47af-84fe-b4945f406197 :: true 2022-08-26 07:53:52 | [Mutex] waiting for: [received:nodes:d85d70b3-7118-471f-994a-c2c88283015d:localhost] 2022-08-26 07:53:52 | [Mutex] received everything. 2022-08-26 07:53:52 | [Mutex] isItemNotified: received:node:d85d70b3-7118-471f-994a-c2c88283015d:localhost:node-7af36d25-0a5b-47af-84fe-b4945f406197:Node 7af36d25-0a5b-47af-84fe-b4945f406197 :: false |
createNodes | 1.544s |
2022-08-26 07:53:48 |
2022-08-26 07:53:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-26 07:53:48 | ------------------------------------ 2022-08-26 07:53:48 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-7af36d25-0a5b-47af-84fe-b4945f406197", "pubsub#title": "Node 7af36d25-0a5b-47af-84fe-b4945f406197" } 2022-08-26 07:53:49 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-26 07:53:50 | [Mutex] waiting for: [received:nodes:6f122270-6b9a-4251-aa4c-985b59f4b252:localhost] 2022-08-26 07:53:50 | [Mutex] received everything. 2022-08-26 07:53:50 | [Mutex] isItemNotified: received:node:6f122270-6b9a-4251-aa4c-985b59f4b252:localhost:node-7af36d25-0a5b-47af-84fe-b4945f406197:Node 7af36d25-0a5b-47af-84fe-b4945f406197 :: true |
createSubnodes | 1.021s |
2022-08-26 07:53:50 |
2022-08-26 07:53:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-26 07:53:50 | ------------------------------------ 2022-08-26 07:53: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-ee21c396-d463-4ae7-8fe9-c9b987563edb", "pubsub#title": "Node ee21c396-d463-4ae7-8fe9-c9b987563edb" } 2022-08-26 07:53:50 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-26 07:53:51 | [Mutex] waiting for: [received:nodes:5bbe4538-8aa6-4d06-9897-fbe204b09fae:localhost] 2022-08-26 07:53:51 | [Mutex] waiting for: [received:nodes:5bbe4538-8aa6-4d06-9897-fbe204b09fae:localhost] 2022-08-26 07:53:51 | [Mutex] received everything. 2022-08-26 07:53:51 | [Mutex] isItemNotified: received:node:5bbe4538-8aa6-4d06-9897-fbe204b09fae:localhost:node-ee21c396-d463-4ae7-8fe9-c9b987563edb:Node ee21c396-d463-4ae7-8fe9-c9b987563edb :: true |
deleteNodes | 1.019s |
2022-08-26 07:53:55 |
2022-08-26 07:53:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-26 07:53:55 | ------------------------------------ 2022-08-26 07:53:55 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-ee21c396-d463-4ae7-8fe9-c9b987563edb" } 2022-08-26 07:53:55 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-26 07:53:56 | [Mutex] waiting for: [received:nodes:f823c054-eb77-47f4-8974-a89bfd1f5a32:localhost] 2022-08-26 07:53:56 | [Mutex] received everything. 2022-08-26 07:53:56 | [Mutex] isItemNotified: received:node:f823c054-eb77-47f4-8974-a89bfd1f5a32:localhost:node-ee21c396-d463-4ae7-8fe9-c9b987563edb:Node ee21c396-d463-4ae7-8fe9-c9b987563edb :: false |
deleteSubnodes | 1.023s |
2022-08-26 07:53:54 |
2022-08-26 07:53:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-26 07:53:54 | ------------------------------------ 2022-08-26 07:53:54 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-7af36d25-0a5b-47af-84fe-b4945f406197" } 2022-08-26 07:53:54 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-26 07:53:55 | [Mutex] waiting for: [received:nodes:d6283274-2700-4b9a-95b4-2b7fc0c9d130:localhost] 2022-08-26 07:53:55 | [Mutex] received everything. 2022-08-26 07:53:55 | [Mutex] isItemNotified: received:node:d6283274-2700-4b9a-95b4-2b7fc0c9d130:localhost:node-7af36d25-0a5b-47af-84fe-b4945f406197:Node 7af36d25-0a5b-47af-84fe-b4945f406197 :: false 2022-08-26 07:53:55 | [Mutex] waiting for: [received:nodes:6275cb60-bdb8-4cf2-bbcd-06458a4eca41:localhost] 2022-08-26 07:53:55 | [Mutex] received everything. 2022-08-26 07:53:55 | [Mutex] isItemNotified: received:node:6275cb60-bdb8-4cf2-bbcd-06458a4eca41:localhost:node-7af36d25-0a5b-47af-84fe-b4945f406197:Node 7af36d25-0a5b-47af-84fe-b4945f406197 :: false |
publishItemsToNodes | 0.050s |
2022-08-26 07:53:53 |
2022-08-26 07:53:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-26 07:53:53 | ------------------------------------ 2022-08-26 07:53:53 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-7af36d25-0a5b-47af-84fe-b4945f406197", "entry": "<test>item-ba0c5dbb-c50a-4008-b134-4add90061290</test>", "item-id": "item-ba0c5dbb-c50a-4008-b134-4add90061290" } 2022-08-26 07:53:53 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-ba0c5dbb-c50a-4008-b134-4add90061290" } 2022-08-26 07:53:53 | [Mutex] received everything. 2022-08-26 07:53:53 | [Mutex] isItemNotified: published:item:notifieditem-ba0c5dbb-c50a-4008-b134-4add90061290:admin@test-domain.com :: true |
retractItemsFromNodes | 0.086s |
2022-08-26 07:53:53 |
2022-08-26 07:53:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-26 07:53:53 | ------------------------------------ 2022-08-26 07:53:53 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-7af36d25-0a5b-47af-84fe-b4945f406197", "item-id": "item-ba0c5dbb-c50a-4008-b134-4add90061290" } 2022-08-26 07:53:53 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-ba0c5dbb-c50a-4008-b134-4add90061290" } 2022-08-26 07:53:53 | [Mutex] waiting for: [retracted:item:notifieditem-ba0c5dbb-c50a-4008-b134-4add90061290:admin@test-domain.com] 2022-08-26 07:53:53 | [Mutex] received everything. 2022-08-26 07:53:53 | [Mutex] isItemNotified: retracted:item:notifieditem-ba0c5dbb-c50a-4008-b134-4add90061290:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.058s |
2022-08-26 07:53:53 |
2022-08-26 07:53:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-26 07:53:53 | ------------------------------------ 2022-08-26 07:53:53 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-7af36d25-0a5b-47af-84fe-b4945f406197", "item-id": "item-ba0c5dbb-c50a-4008-b134-4add90061290" } 2022-08-26 07:53:53 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-7af36d25-0a5b-47af-84fe-b4945f406197", "item-id": "item-ba0c5dbb-c50a-4008-b134-4add90061290", "item": [ "<item id=\"item-ba0c5dbb-c50a-4008-b134-4add90061290\"><test>item-ba0c5dbb-c50a-4008-b134-4add90061290</test></item>" ] } 2022-08-26 07:53:53 | [Mutex] notify: [retrieved:item:item-ba0c5dbb-c50a-4008-b134-4add90061290:payload-matches:true:localhost] 2022-08-26 07:53:53 | [Mutex] received everything. 2022-08-26 07:53:53 | [Mutex] isItemNotified: retrieved:item:item-ba0c5dbb-c50a-4008-b134-4add90061290:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2022-08-26 07:53:53 |
2022-08-26 07:53:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-26 07:53:53 | ------------------------------------ 2022-08-26 07:53:53 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-08-26 07:53:53 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-7af36d25-0a5b-47af-84fe-b4945f406197", "node-ee21c396-d463-4ae7-8fe9-c9b987563edb" ] } |
retrieveUserSubscriptionsWithRegex | 0.048s |
2022-08-26 07:53:53 |
2022-08-26 07:53:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-26 07:53:53 | ------------------------------------ 2022-08-26 07:53:53 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-7af36d25-0a5b-47af-84fe-b4945f406197)" } 2022-08-26 07:53:53 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.007s |
2022-08-26 07:53:52 |
2022-08-26 07:53:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-26 07:53:52 | ------------------------------------ 2022-08-26 07:53:52 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-7af36d25-0a5b-47af-84fe-b4945f406197", "jids": [ "admin@test-domain.com" ] } 2022-08-26 07:53:52 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.049s |
2022-08-26 07:53:53 |
2022-08-26 07:53:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-26 07:53:53 | ------------------------------------ 2022-08-26 07:53:53 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-7af36d25-0a5b-47af-84fe-b4945f406197", "jids": [ "admin@test-domain.com" ] } 2022-08-26 07:53:53 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |