Test duration : 8.485s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.087s |
2023-07-31 23:07:22 |
2023-07-31 23:07:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-31 23:07:22 | ------------------------------------ 2023-07-31 23:07:22 | [Mutex] waiting for: [configured:node:node-aba6d6cb-530e-4373-8e05-2ce2ff0450ae:node-2ff7e0a3-11cb-4b1f-9bda-cd4d058e21c9] 2023-07-31 23:07:22 | [Mutex] received everything. 2023-07-31 23:07:22 | [Mutex] isItemNotified: configured:node:node-aba6d6cb-530e-4373-8e05-2ce2ff0450ae:node-2ff7e0a3-11cb-4b1f-9bda-cd4d058e21c9 :: true 2023-07-31 23:07:23 | [Mutex] waiting for: [received:nodes:2ec1aa4c-d58b-4f05-9520-8fb353c569b7:localhost] 2023-07-31 23:07:23 | [Mutex] received everything. 2023-07-31 23:07:23 | [Mutex] isItemNotified: received:node:2ec1aa4c-d58b-4f05-9520-8fb353c569b7:localhost:node-aba6d6cb-530e-4373-8e05-2ce2ff0450ae:Node aba6d6cb-530e-4373-8e05-2ce2ff0450ae :: true 2023-07-31 23:07:23 | [Mutex] waiting for: [received:nodes:01f2839a-ffff-4ae7-8a91-f1c436233aa8:localhost] 2023-07-31 23:07:23 | [Mutex] received everything. 2023-07-31 23:07:23 | [Mutex] isItemNotified: received:node:01f2839a-ffff-4ae7-8a91-f1c436233aa8:localhost:node-aba6d6cb-530e-4373-8e05-2ce2ff0450ae:Node aba6d6cb-530e-4373-8e05-2ce2ff0450ae :: false |
createNodes | 1.531s |
2023-07-31 23:07:20 |
2023-07-31 23:07:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-31 23:07:20 | ------------------------------------ 2023-07-31 23:07:20 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-aba6d6cb-530e-4373-8e05-2ce2ff0450ae", "pubsub#title": "Node aba6d6cb-530e-4373-8e05-2ce2ff0450ae" } 2023-07-31 23:07:20 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2023-07-31 23:07:21 | [Mutex] waiting for: [received:nodes:682148e4-2f85-43b9-9d8b-b4ef413f6731:localhost] 2023-07-31 23:07:21 | [Mutex] waiting for: [received:nodes:682148e4-2f85-43b9-9d8b-b4ef413f6731:localhost] 2023-07-31 23:07:21 | [Mutex] waiting for: [received:nodes:682148e4-2f85-43b9-9d8b-b4ef413f6731:localhost] 2023-07-31 23:07:21 | [Mutex] received everything. 2023-07-31 23:07:21 | [Mutex] isItemNotified: received:node:682148e4-2f85-43b9-9d8b-b4ef413f6731:localhost:node-aba6d6cb-530e-4373-8e05-2ce2ff0450ae:Node aba6d6cb-530e-4373-8e05-2ce2ff0450ae :: true |
createSubnodes | 1.022s |
2023-07-31 23:07:21 |
2023-07-31 23:07:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-31 23:07:21 | ------------------------------------ 2023-07-31 23:07:21 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-2ff7e0a3-11cb-4b1f-9bda-cd4d058e21c9", "pubsub#title": "Node 2ff7e0a3-11cb-4b1f-9bda-cd4d058e21c9" } 2023-07-31 23:07:21 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2023-07-31 23:07:22 | [Mutex] waiting for: [received:nodes:73a8342e-6897-4941-9482-40fdd7d2e624:localhost] 2023-07-31 23:07:22 | [Mutex] waiting for: [received:nodes:73a8342e-6897-4941-9482-40fdd7d2e624:localhost] 2023-07-31 23:07:22 | [Mutex] waiting for: [received:nodes:73a8342e-6897-4941-9482-40fdd7d2e624:localhost] 2023-07-31 23:07:22 | [Mutex] waiting for: [received:nodes:73a8342e-6897-4941-9482-40fdd7d2e624:localhost] 2023-07-31 23:07:22 | [Mutex] waiting for: [received:nodes:73a8342e-6897-4941-9482-40fdd7d2e624:localhost] 2023-07-31 23:07:22 | [Mutex] received everything. 2023-07-31 23:07:22 | [Mutex] isItemNotified: received:node:73a8342e-6897-4941-9482-40fdd7d2e624:localhost:node-2ff7e0a3-11cb-4b1f-9bda-cd4d058e21c9:Node 2ff7e0a3-11cb-4b1f-9bda-cd4d058e21c9 :: true |
deleteNodes | 1.025s |
2023-07-31 23:07:27 |
2023-07-31 23:07:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-31 23:07:27 | ------------------------------------ 2023-07-31 23:07:27 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-2ff7e0a3-11cb-4b1f-9bda-cd4d058e21c9" } 2023-07-31 23:07:27 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2023-07-31 23:07:28 | [Mutex] waiting for: [received:nodes:7f7adced-0cfb-4f64-ae19-cde417469190:localhost] 2023-07-31 23:07:28 | [Mutex] waiting for: [received:nodes:7f7adced-0cfb-4f64-ae19-cde417469190:localhost] 2023-07-31 23:07:28 | [Mutex] waiting for: [received:nodes:7f7adced-0cfb-4f64-ae19-cde417469190:localhost] 2023-07-31 23:07:28 | [Mutex] received everything. 2023-07-31 23:07:28 | [Mutex] isItemNotified: received:node:7f7adced-0cfb-4f64-ae19-cde417469190:localhost:node-2ff7e0a3-11cb-4b1f-9bda-cd4d058e21c9:Node 2ff7e0a3-11cb-4b1f-9bda-cd4d058e21c9 :: false |
deleteSubnodes | 1.025s |
2023-07-31 23:07:26 |
2023-07-31 23:07:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-31 23:07:26 | ------------------------------------ 2023-07-31 23:07:26 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-aba6d6cb-530e-4373-8e05-2ce2ff0450ae" } 2023-07-31 23:07:26 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2023-07-31 23:07:27 | [Mutex] waiting for: [received:nodes:0d759043-5ad6-4399-a119-1a4b3bc708be:localhost] 2023-07-31 23:07:27 | [Mutex] waiting for: [received:nodes:0d759043-5ad6-4399-a119-1a4b3bc708be:localhost] 2023-07-31 23:07:27 | [Mutex] waiting for: [received:nodes:0d759043-5ad6-4399-a119-1a4b3bc708be:localhost] 2023-07-31 23:07:27 | [Mutex] waiting for: [received:nodes:0d759043-5ad6-4399-a119-1a4b3bc708be:localhost] 2023-07-31 23:07:27 | [Mutex] received everything. 2023-07-31 23:07:27 | [Mutex] isItemNotified: received:node:0d759043-5ad6-4399-a119-1a4b3bc708be:localhost:node-aba6d6cb-530e-4373-8e05-2ce2ff0450ae:Node aba6d6cb-530e-4373-8e05-2ce2ff0450ae :: false 2023-07-31 23:07:27 | [Mutex] waiting for: [received:nodes:1047a0dc-39e2-43f5-a1c7-cac0e642ad8e:localhost] 2023-07-31 23:07:27 | [Mutex] received everything. 2023-07-31 23:07:27 | [Mutex] isItemNotified: received:node:1047a0dc-39e2-43f5-a1c7-cac0e642ad8e:localhost:node-aba6d6cb-530e-4373-8e05-2ce2ff0450ae:Node aba6d6cb-530e-4373-8e05-2ce2ff0450ae :: false |
publishItemsToNodes | 0.044s |
2023-07-31 23:07:24 |
2023-07-31 23:07:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-31 23:07:24 | ------------------------------------ 2023-07-31 23:07:24 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-aba6d6cb-530e-4373-8e05-2ce2ff0450ae", "entry": "<test>item-01f58c71-67c2-455a-9ab3-bf4f72ab9a25</test>", "item-id": "item-01f58c71-67c2-455a-9ab3-bf4f72ab9a25" } 2023-07-31 23:07:24 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-01f58c71-67c2-455a-9ab3-bf4f72ab9a25" } 2023-07-31 23:07:24 | [Mutex] received everything. 2023-07-31 23:07:24 | [Mutex] isItemNotified: published:item:notifieditem-01f58c71-67c2-455a-9ab3-bf4f72ab9a25:admin@test-domain.com :: true |
retractItemsFromNodes | 0.052s |
2023-07-31 23:07:24 |
2023-07-31 23:07:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-31 23:07:24 | ------------------------------------ 2023-07-31 23:07:24 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-aba6d6cb-530e-4373-8e05-2ce2ff0450ae", "item-id": "item-01f58c71-67c2-455a-9ab3-bf4f72ab9a25" } 2023-07-31 23:07:24 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-01f58c71-67c2-455a-9ab3-bf4f72ab9a25" } 2023-07-31 23:07:24 | [Mutex] received everything. 2023-07-31 23:07:24 | [Mutex] isItemNotified: retracted:item:notifieditem-01f58c71-67c2-455a-9ab3-bf4f72ab9a25:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.057s |
2023-07-31 23:07:24 |
2023-07-31 23:07:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-31 23:07:24 | ------------------------------------ 2023-07-31 23:07:24 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-aba6d6cb-530e-4373-8e05-2ce2ff0450ae", "item-id": "item-01f58c71-67c2-455a-9ab3-bf4f72ab9a25" } 2023-07-31 23:07:24 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-aba6d6cb-530e-4373-8e05-2ce2ff0450ae", "item-id": "item-01f58c71-67c2-455a-9ab3-bf4f72ab9a25", "item": [ "<item id=\"item-01f58c71-67c2-455a-9ab3-bf4f72ab9a25\"><test>item-01f58c71-67c2-455a-9ab3-bf4f72ab9a25</test></item>" ] } 2023-07-31 23:07:24 | [Mutex] notify: [retrieved:item:item-01f58c71-67c2-455a-9ab3-bf4f72ab9a25:payload-matches:true:localhost] 2023-07-31 23:07:24 | [Mutex] received everything. 2023-07-31 23:07:24 | [Mutex] isItemNotified: retrieved:item:item-01f58c71-67c2-455a-9ab3-bf4f72ab9a25:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.047s |
2023-07-31 23:07:24 |
2023-07-31 23:07:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-31 23:07:24 | ------------------------------------ 2023-07-31 23:07:24 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2023-07-31 23:07:24 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-aba6d6cb-530e-4373-8e05-2ce2ff0450ae", "test", "node-2ff7e0a3-11cb-4b1f-9bda-cd4d058e21c9" ] } |
retrieveUserSubscriptionsWithRegex | 0.048s |
2023-07-31 23:07:24 |
2023-07-31 23:07:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-31 23:07:24 | ------------------------------------ 2023-07-31 23:07:24 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-aba6d6cb-530e-4373-8e05-2ce2ff0450ae)" } 2023-07-31 23:07:24 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.014s |
2023-07-31 23:07:23 |
2023-07-31 23:07:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-31 23:07:23 | ------------------------------------ 2023-07-31 23:07:23 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-aba6d6cb-530e-4373-8e05-2ce2ff0450ae", "jids": [ "admin@test-domain.com" ] } 2023-07-31 23:07:23 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.072s |
2023-07-31 23:07:24 |
2023-07-31 23:07:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-31 23:07:24 | ------------------------------------ 2023-07-31 23:07:24 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-aba6d6cb-530e-4373-8e05-2ce2ff0450ae", "jids": [ "admin@test-domain.com" ] } 2023-07-31 23:07:25 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |