Test duration : 9.228s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.140s |
2021-05-26 23:00:27 |
2021-05-26 23:00:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-26 23:00:27 | ------------------------------------ 2021-05-26 23:00:27 | [Mutex] waiting for: [configured:node:node-ec9d59d2-331d-4153-a5b7-b058494600cb:node-92d0df4e-e873-42b6-8c77-356c18442c47] 2021-05-26 23:00:27 | [Mutex] received everything. 2021-05-26 23:00:27 | [Mutex] isItemNotified: configured:node:node-ec9d59d2-331d-4153-a5b7-b058494600cb:node-92d0df4e-e873-42b6-8c77-356c18442c47 :: true 2021-05-26 23:00:28 | [Mutex] waiting for: [received:nodes:5e1f1d0f-d5dd-417f-8d35-036fe3944156:localhost] 2021-05-26 23:00:28 | [Mutex] received everything. 2021-05-26 23:00:28 | [Mutex] isItemNotified: received:node:5e1f1d0f-d5dd-417f-8d35-036fe3944156:localhost:node-ec9d59d2-331d-4153-a5b7-b058494600cb:Node ec9d59d2-331d-4153-a5b7-b058494600cb :: true 2021-05-26 23:00:28 | [Mutex] waiting for: [received:nodes:eff8fe24-43a2-4d81-ae61-9ff89d080a19:localhost] 2021-05-26 23:00:28 | [Mutex] received everything. 2021-05-26 23:00:28 | [Mutex] isItemNotified: received:node:eff8fe24-43a2-4d81-ae61-9ff89d080a19:localhost:node-ec9d59d2-331d-4153-a5b7-b058494600cb:Node ec9d59d2-331d-4153-a5b7-b058494600cb :: false |
createNodes | 1.846s |
2021-05-26 23:00:24 |
2021-05-26 23:00:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-26 23:00:24 | ------------------------------------ 2021-05-26 23:00:24 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-ec9d59d2-331d-4153-a5b7-b058494600cb", "pubsub#title": "Node ec9d59d2-331d-4153-a5b7-b058494600cb" } 2021-05-26 23:00:24 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-05-26 23:00:26 | [Mutex] waiting for: [received:nodes:c11f64dc-4373-4619-92f7-db238d6a60eb:localhost] 2021-05-26 23:00:26 | [Mutex] waiting for: [received:nodes:c11f64dc-4373-4619-92f7-db238d6a60eb:localhost] 2021-05-26 23:00:26 | [Mutex] received everything. 2021-05-26 23:00:26 | [Mutex] isItemNotified: received:node:c11f64dc-4373-4619-92f7-db238d6a60eb:localhost:node-ec9d59d2-331d-4153-a5b7-b058494600cb:Node ec9d59d2-331d-4153-a5b7-b058494600cb :: true |
createSubnodes | 1.033s |
2021-05-26 23:00:26 |
2021-05-26 23:00:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-26 23:00:26 | ------------------------------------ 2021-05-26 23:00:26 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-92d0df4e-e873-42b6-8c77-356c18442c47", "pubsub#title": "Node 92d0df4e-e873-42b6-8c77-356c18442c47" } 2021-05-26 23:00:26 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-05-26 23:00:27 | [Mutex] waiting for: [received:nodes:e00b875c-3152-4c8c-b6f8-8a3955416787:localhost] 2021-05-26 23:00:27 | [Mutex] waiting for: [received:nodes:e00b875c-3152-4c8c-b6f8-8a3955416787:localhost] 2021-05-26 23:00:27 | [Mutex] received everything. 2021-05-26 23:00:27 | [Mutex] isItemNotified: received:node:e00b875c-3152-4c8c-b6f8-8a3955416787:localhost:node-92d0df4e-e873-42b6-8c77-356c18442c47:Node 92d0df4e-e873-42b6-8c77-356c18442c47 :: true |
deleteNodes | 1.027s |
2021-05-26 23:00:31 |
2021-05-26 23:00:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-26 23:00:31 | ------------------------------------ 2021-05-26 23:00:31 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-92d0df4e-e873-42b6-8c77-356c18442c47" } 2021-05-26 23:00:31 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-05-26 23:00:32 | [Mutex] waiting for: [received:nodes:21e0b54d-270f-48cc-be25-4e17f98950d3:localhost] 2021-05-26 23:00:32 | [Mutex] received everything. 2021-05-26 23:00:32 | [Mutex] isItemNotified: received:node:21e0b54d-270f-48cc-be25-4e17f98950d3:localhost:node-92d0df4e-e873-42b6-8c77-356c18442c47:Node 92d0df4e-e873-42b6-8c77-356c18442c47 :: false |
deleteSubnodes | 1.038s |
2021-05-26 23:00:30 |
2021-05-26 23:00:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-26 23:00:30 | ------------------------------------ 2021-05-26 23:00:30 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-ec9d59d2-331d-4153-a5b7-b058494600cb" } 2021-05-26 23:00:30 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-05-26 23:00:31 | [Mutex] waiting for: [received:nodes:31a7ad5c-830e-44ca-a77b-79bdafedbc56:localhost] 2021-05-26 23:00:31 | [Mutex] received everything. 2021-05-26 23:00:31 | [Mutex] isItemNotified: received:node:31a7ad5c-830e-44ca-a77b-79bdafedbc56:localhost:node-ec9d59d2-331d-4153-a5b7-b058494600cb:Node ec9d59d2-331d-4153-a5b7-b058494600cb :: false 2021-05-26 23:00:31 | [Mutex] waiting for: [received:nodes:c572a4ef-d68f-4ec9-9da8-aeadd2c9a722:localhost] 2021-05-26 23:00:31 | [Mutex] received everything. 2021-05-26 23:00:31 | [Mutex] isItemNotified: received:node:c572a4ef-d68f-4ec9-9da8-aeadd2c9a722:localhost:node-ec9d59d2-331d-4153-a5b7-b058494600cb:Node ec9d59d2-331d-4153-a5b7-b058494600cb :: false |
publishItemsToNodes | 0.063s |
2021-05-26 23:00:29 |
2021-05-26 23:00:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-26 23:00:29 | ------------------------------------ 2021-05-26 23:00:29 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-ec9d59d2-331d-4153-a5b7-b058494600cb", "entry": "<test>item-7d32a1d4-78d7-47db-b129-6c8aec8ecf16</test>", "item-id": "item-7d32a1d4-78d7-47db-b129-6c8aec8ecf16" } 2021-05-26 23:00:29 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-7d32a1d4-78d7-47db-b129-6c8aec8ecf16" } 2021-05-26 23:00:29 | [Mutex] waiting for: [published:item:notifieditem-7d32a1d4-78d7-47db-b129-6c8aec8ecf16:admin@test-domain.com] 2021-05-26 23:00:29 | [Mutex] received everything. 2021-05-26 23:00:29 | [Mutex] isItemNotified: published:item:notifieditem-7d32a1d4-78d7-47db-b129-6c8aec8ecf16:admin@test-domain.com :: true |
retractItemsFromNodes | 0.067s |
2021-05-26 23:00:29 |
2021-05-26 23:00:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-26 23:00:29 | ------------------------------------ 2021-05-26 23:00:29 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-ec9d59d2-331d-4153-a5b7-b058494600cb", "item-id": "item-7d32a1d4-78d7-47db-b129-6c8aec8ecf16" } 2021-05-26 23:00:29 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-7d32a1d4-78d7-47db-b129-6c8aec8ecf16" } 2021-05-26 23:00:29 | [Mutex] waiting for: [retracted:item:notifieditem-7d32a1d4-78d7-47db-b129-6c8aec8ecf16:admin@test-domain.com] 2021-05-26 23:00:29 | [Mutex] received everything. 2021-05-26 23:00:29 | [Mutex] isItemNotified: retracted:item:notifieditem-7d32a1d4-78d7-47db-b129-6c8aec8ecf16:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.033s |
2021-05-26 23:00:29 |
2021-05-26 23:00:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-26 23:00:29 | ------------------------------------ 2021-05-26 23:00:29 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-ec9d59d2-331d-4153-a5b7-b058494600cb", "item-id": "item-7d32a1d4-78d7-47db-b129-6c8aec8ecf16" } 2021-05-26 23:00:29 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-ec9d59d2-331d-4153-a5b7-b058494600cb", "item-id": "item-7d32a1d4-78d7-47db-b129-6c8aec8ecf16", "item": [ "<item id=\"item-7d32a1d4-78d7-47db-b129-6c8aec8ecf16\"><test>item-7d32a1d4-78d7-47db-b129-6c8aec8ecf16</test></item>" ] } 2021-05-26 23:00:29 | [Mutex] notify: [retrieved:item:item-7d32a1d4-78d7-47db-b129-6c8aec8ecf16:payload-matches:true:localhost] 2021-05-26 23:00:29 | [Mutex] received everything. 2021-05-26 23:00:29 | [Mutex] isItemNotified: retrieved:item:item-7d32a1d4-78d7-47db-b129-6c8aec8ecf16:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.081s |
2021-05-26 23:00:29 |
2021-05-26 23:00:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-26 23:00:29 | ------------------------------------ 2021-05-26 23:00:29 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-05-26 23:00:29 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-ec9d59d2-331d-4153-a5b7-b058494600cb", "node-92d0df4e-e873-42b6-8c77-356c18442c47" ] } |
retrieveUserSubscriptionsWithRegex | 0.095s |
2021-05-26 23:00:29 |
2021-05-26 23:00:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-26 23:00:29 | ------------------------------------ 2021-05-26 23:00:29 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-ec9d59d2-331d-4153-a5b7-b058494600cb)" } 2021-05-26 23:00:29 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.013s |
2021-05-26 23:00:28 |
2021-05-26 23:00:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-26 23:00:28 | ------------------------------------ 2021-05-26 23:00:28 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-ec9d59d2-331d-4153-a5b7-b058494600cb", "jids": [ "admin@test-domain.com" ] } 2021-05-26 23:00:28 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.076s |
2021-05-26 23:00:29 |
2021-05-26 23:00:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-26 23:00:29 | ------------------------------------ 2021-05-26 23:00:29 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-ec9d59d2-331d-4153-a5b7-b058494600cb", "jids": [ "admin@test-domain.com" ] } 2021-05-26 23:00:29 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |