Test duration : 8.664s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.140s |
2022-07-26 23:08:46 |
2022-07-26 23:08:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-26 23:08:46 | ------------------------------------ 2022-07-26 23:08:46 | [Mutex] waiting for: [configured:node:node-a8b3a669-4271-4e0a-bf83-5ee3842ace7f:node-6ad3ddbd-47ca-4076-9c20-f08f56d9bec8] 2022-07-26 23:08:47 | [Mutex] received everything. 2022-07-26 23:08:47 | [Mutex] isItemNotified: configured:node:node-a8b3a669-4271-4e0a-bf83-5ee3842ace7f:node-6ad3ddbd-47ca-4076-9c20-f08f56d9bec8 :: true 2022-07-26 23:08:48 | [Mutex] waiting for: [received:nodes:90b96c7d-c14d-46d2-9286-a36de283b340:localhost] 2022-07-26 23:08:48 | [Mutex] received everything. 2022-07-26 23:08:48 | [Mutex] isItemNotified: received:node:90b96c7d-c14d-46d2-9286-a36de283b340:localhost:node-a8b3a669-4271-4e0a-bf83-5ee3842ace7f:Node a8b3a669-4271-4e0a-bf83-5ee3842ace7f :: true 2022-07-26 23:08:48 | [Mutex] waiting for: [received:nodes:93d1e76b-f615-4545-b719-ea969cda9fc1:localhost] 2022-07-26 23:08:48 | [Mutex] received everything. 2022-07-26 23:08:48 | [Mutex] isItemNotified: received:node:93d1e76b-f615-4545-b719-ea969cda9fc1:localhost:node-a8b3a669-4271-4e0a-bf83-5ee3842ace7f:Node a8b3a669-4271-4e0a-bf83-5ee3842ace7f :: false |
createNodes | 1.598s |
2022-07-26 23:08:44 |
2022-07-26 23:08:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-26 23:08:44 | ------------------------------------ 2022-07-26 23:08:44 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-a8b3a669-4271-4e0a-bf83-5ee3842ace7f", "pubsub#title": "Node a8b3a669-4271-4e0a-bf83-5ee3842ace7f" } 2022-07-26 23:08:44 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-26 23:08:45 | [Mutex] waiting for: [received:nodes:9eb71c39-d06d-4dd6-afdb-803d40412b2a:localhost] 2022-07-26 23:08:45 | [Mutex] waiting for: [received:nodes:9eb71c39-d06d-4dd6-afdb-803d40412b2a:localhost] 2022-07-26 23:08:45 | [Mutex] received everything. 2022-07-26 23:08:45 | [Mutex] isItemNotified: received:node:9eb71c39-d06d-4dd6-afdb-803d40412b2a:localhost:node-a8b3a669-4271-4e0a-bf83-5ee3842ace7f:Node a8b3a669-4271-4e0a-bf83-5ee3842ace7f :: true |
createSubnodes | 1.025s |
2022-07-26 23:08:45 |
2022-07-26 23:08:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-26 23:08:45 | ------------------------------------ 2022-07-26 23:08:45 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-6ad3ddbd-47ca-4076-9c20-f08f56d9bec8", "pubsub#title": "Node 6ad3ddbd-47ca-4076-9c20-f08f56d9bec8" } 2022-07-26 23:08:45 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-26 23:08:46 | [Mutex] waiting for: [received:nodes:4fae70c9-69b6-4376-ac8d-f1d3b69f6107:localhost] 2022-07-26 23:08:46 | [Mutex] received everything. 2022-07-26 23:08:46 | [Mutex] isItemNotified: received:node:4fae70c9-69b6-4376-ac8d-f1d3b69f6107:localhost:node-6ad3ddbd-47ca-4076-9c20-f08f56d9bec8:Node 6ad3ddbd-47ca-4076-9c20-f08f56d9bec8 :: true |
deleteNodes | 1.019s |
2022-07-26 23:08:51 |
2022-07-26 23:08:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-26 23:08:51 | ------------------------------------ 2022-07-26 23:08:51 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-6ad3ddbd-47ca-4076-9c20-f08f56d9bec8" } 2022-07-26 23:08:51 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-26 23:08:52 | [Mutex] waiting for: [received:nodes:c2d18712-e592-4846-b63e-5d18937e87ce:localhost] 2022-07-26 23:08:52 | [Mutex] received everything. 2022-07-26 23:08:52 | [Mutex] isItemNotified: received:node:c2d18712-e592-4846-b63e-5d18937e87ce:localhost:node-6ad3ddbd-47ca-4076-9c20-f08f56d9bec8:Node 6ad3ddbd-47ca-4076-9c20-f08f56d9bec8 :: false |
deleteSubnodes | 1.032s |
2022-07-26 23:08:50 |
2022-07-26 23:08:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-26 23:08:50 | ------------------------------------ 2022-07-26 23:08:50 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-a8b3a669-4271-4e0a-bf83-5ee3842ace7f" } 2022-07-26 23:08:50 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-26 23:08:51 | [Mutex] waiting for: [received:nodes:843d45a4-0111-4abf-83a0-81416b0daeb6:localhost] 2022-07-26 23:08:51 | [Mutex] waiting for: [received:nodes:843d45a4-0111-4abf-83a0-81416b0daeb6:localhost] 2022-07-26 23:08:51 | [Mutex] waiting for: [received:nodes:843d45a4-0111-4abf-83a0-81416b0daeb6:localhost] 2022-07-26 23:08:51 | [Mutex] waiting for: [received:nodes:843d45a4-0111-4abf-83a0-81416b0daeb6:localhost] 2022-07-26 23:08:51 | [Mutex] received everything. 2022-07-26 23:08:51 | [Mutex] isItemNotified: received:node:843d45a4-0111-4abf-83a0-81416b0daeb6:localhost:node-a8b3a669-4271-4e0a-bf83-5ee3842ace7f:Node a8b3a669-4271-4e0a-bf83-5ee3842ace7f :: false 2022-07-26 23:08:51 | [Mutex] waiting for: [received:nodes:c269ab6e-3c18-463b-8957-c4154d673bbf:localhost] 2022-07-26 23:08:51 | [Mutex] received everything. 2022-07-26 23:08:51 | [Mutex] isItemNotified: received:node:c269ab6e-3c18-463b-8957-c4154d673bbf:localhost:node-a8b3a669-4271-4e0a-bf83-5ee3842ace7f:Node a8b3a669-4271-4e0a-bf83-5ee3842ace7f :: false |
publishItemsToNodes | 0.034s |
2022-07-26 23:08:49 |
2022-07-26 23:08:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-26 23:08:49 | ------------------------------------ 2022-07-26 23:08:49 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-a8b3a669-4271-4e0a-bf83-5ee3842ace7f", "entry": "<test>item-4077be4f-dec8-4da5-ac2e-b415a5c3c2c8</test>", "item-id": "item-4077be4f-dec8-4da5-ac2e-b415a5c3c2c8" } 2022-07-26 23:08:49 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-4077be4f-dec8-4da5-ac2e-b415a5c3c2c8" } 2022-07-26 23:08:49 | [Mutex] waiting for: [published:item:notifieditem-4077be4f-dec8-4da5-ac2e-b415a5c3c2c8:admin@test-domain.com] 2022-07-26 23:08:49 | [Mutex] received everything. 2022-07-26 23:08:49 | [Mutex] isItemNotified: published:item:notifieditem-4077be4f-dec8-4da5-ac2e-b415a5c3c2c8:admin@test-domain.com :: true |
retractItemsFromNodes | 0.055s |
2022-07-26 23:08:49 |
2022-07-26 23:08:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-26 23:08:49 | ------------------------------------ 2022-07-26 23:08:49 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-a8b3a669-4271-4e0a-bf83-5ee3842ace7f", "item-id": "item-4077be4f-dec8-4da5-ac2e-b415a5c3c2c8" } 2022-07-26 23:08:49 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-4077be4f-dec8-4da5-ac2e-b415a5c3c2c8" } 2022-07-26 23:08:49 | [Mutex] received everything. 2022-07-26 23:08:49 | [Mutex] isItemNotified: retracted:item:notifieditem-4077be4f-dec8-4da5-ac2e-b415a5c3c2c8:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.065s |
2022-07-26 23:08:49 |
2022-07-26 23:08:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-26 23:08:49 | ------------------------------------ 2022-07-26 23:08:49 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-a8b3a669-4271-4e0a-bf83-5ee3842ace7f", "item-id": "item-4077be4f-dec8-4da5-ac2e-b415a5c3c2c8" } 2022-07-26 23:08:49 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-a8b3a669-4271-4e0a-bf83-5ee3842ace7f", "item-id": "item-4077be4f-dec8-4da5-ac2e-b415a5c3c2c8", "item": [ "<item id=\"item-4077be4f-dec8-4da5-ac2e-b415a5c3c2c8\"><test>item-4077be4f-dec8-4da5-ac2e-b415a5c3c2c8</test></item>" ] } 2022-07-26 23:08:49 | [Mutex] notify: [retrieved:item:item-4077be4f-dec8-4da5-ac2e-b415a5c3c2c8:payload-matches:true:localhost] 2022-07-26 23:08:49 | [Mutex] received everything. 2022-07-26 23:08:49 | [Mutex] isItemNotified: retrieved:item:item-4077be4f-dec8-4da5-ac2e-b415a5c3c2c8:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2022-07-26 23:08:49 |
2022-07-26 23:08:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-26 23:08:49 | ------------------------------------ 2022-07-26 23:08:49 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-07-26 23:08:49 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-a8b3a669-4271-4e0a-bf83-5ee3842ace7f", "test", "node-6ad3ddbd-47ca-4076-9c20-f08f56d9bec8" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2022-07-26 23:08:49 |
2022-07-26 23:08:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-26 23:08:49 | ------------------------------------ 2022-07-26 23:08:49 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-a8b3a669-4271-4e0a-bf83-5ee3842ace7f)" } 2022-07-26 23:08:49 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.009s |
2022-07-26 23:08:48 |
2022-07-26 23:08:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-26 23:08:48 | ------------------------------------ 2022-07-26 23:08:48 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-a8b3a669-4271-4e0a-bf83-5ee3842ace7f", "jids": [ "admin@test-domain.com" ] } 2022-07-26 23:08:48 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.087s |
2022-07-26 23:08:49 |
2022-07-26 23:08:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-26 23:08:49 | ------------------------------------ 2022-07-26 23:08:49 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-a8b3a669-4271-4e0a-bf83-5ee3842ace7f", "jids": [ "admin@test-domain.com" ] } 2022-07-26 23:08:49 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |