Test duration : 8.987s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.107s |
2021-11-15 21:44:21 |
2021-11-15 21:44:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-11-15 21:44:21 | ------------------------------------ 2021-11-15 21:44:21 | [Mutex] waiting for: [configured:node:node-c6d98540-7604-4feb-9078-7bdcd04aed19:node-1295547e-fb22-4c97-9533-beec145d8078] 2021-11-15 21:44:21 | [Mutex] received everything. 2021-11-15 21:44:21 | [Mutex] isItemNotified: configured:node:node-c6d98540-7604-4feb-9078-7bdcd04aed19:node-1295547e-fb22-4c97-9533-beec145d8078 :: true 2021-11-15 21:44:22 | [Mutex] waiting for: [received:nodes:f75546c8-6d38-49de-b006-a3671fd092a4:localhost] 2021-11-15 21:44:22 | [Mutex] received everything. 2021-11-15 21:44:22 | [Mutex] isItemNotified: received:node:f75546c8-6d38-49de-b006-a3671fd092a4:localhost:node-c6d98540-7604-4feb-9078-7bdcd04aed19:Node c6d98540-7604-4feb-9078-7bdcd04aed19 :: true 2021-11-15 21:44:22 | [Mutex] waiting for: [received:nodes:3c37fb09-4df3-448f-be06-27fb5c3d7014:localhost] 2021-11-15 21:44:22 | [Mutex] received everything. 2021-11-15 21:44:22 | [Mutex] isItemNotified: received:node:3c37fb09-4df3-448f-be06-27fb5c3d7014:localhost:node-c6d98540-7604-4feb-9078-7bdcd04aed19:Node c6d98540-7604-4feb-9078-7bdcd04aed19 :: false |
createNodes | 1.640s |
2021-11-15 21:44:18 |
2021-11-15 21:44:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-11-15 21:44:18 | ------------------------------------ 2021-11-15 21:44:19 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-c6d98540-7604-4feb-9078-7bdcd04aed19", "pubsub#title": "Node c6d98540-7604-4feb-9078-7bdcd04aed19" } 2021-11-15 21:44:19 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-11-15 21:44:20 | [Mutex] waiting for: [received:nodes:f26e8f1f-917a-4479-9f22-b0655b684c48:localhost] 2021-11-15 21:44:20 | [Mutex] waiting for: [received:nodes:f26e8f1f-917a-4479-9f22-b0655b684c48:localhost] 2021-11-15 21:44:20 | [Mutex] received everything. 2021-11-15 21:44:20 | [Mutex] isItemNotified: received:node:f26e8f1f-917a-4479-9f22-b0655b684c48:localhost:node-c6d98540-7604-4feb-9078-7bdcd04aed19:Node c6d98540-7604-4feb-9078-7bdcd04aed19 :: true |
createSubnodes | 1.027s |
2021-11-15 21:44:20 |
2021-11-15 21:44:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-11-15 21:44:20 | ------------------------------------ 2021-11-15 21:44:20 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-1295547e-fb22-4c97-9533-beec145d8078", "pubsub#title": "Node 1295547e-fb22-4c97-9533-beec145d8078" } 2021-11-15 21:44:20 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-11-15 21:44:21 | [Mutex] waiting for: [received:nodes:71830aa9-8cd2-4eff-8352-9d7d04500e74:localhost] 2021-11-15 21:44:21 | [Mutex] received everything. 2021-11-15 21:44:21 | [Mutex] isItemNotified: received:node:71830aa9-8cd2-4eff-8352-9d7d04500e74:localhost:node-1295547e-fb22-4c97-9533-beec145d8078:Node 1295547e-fb22-4c97-9533-beec145d8078 :: true |
deleteNodes | 1.019s |
2021-11-15 21:44:26 |
2021-11-15 21:44:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-11-15 21:44:26 | ------------------------------------ 2021-11-15 21:44:26 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-1295547e-fb22-4c97-9533-beec145d8078" } 2021-11-15 21:44:26 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-11-15 21:44:27 | [Mutex] waiting for: [received:nodes:6fee8bf9-de21-4257-8cf3-9cc4033766f9:localhost] 2021-11-15 21:44:27 | [Mutex] received everything. 2021-11-15 21:44:27 | [Mutex] isItemNotified: received:node:6fee8bf9-de21-4257-8cf3-9cc4033766f9:localhost:node-1295547e-fb22-4c97-9533-beec145d8078:Node 1295547e-fb22-4c97-9533-beec145d8078 :: false |
deleteSubnodes | 1.034s |
2021-11-15 21:44:25 |
2021-11-15 21:44:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-11-15 21:44:25 | ------------------------------------ 2021-11-15 21:44:25 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-c6d98540-7604-4feb-9078-7bdcd04aed19" } 2021-11-15 21:44:25 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-11-15 21:44:26 | [Mutex] waiting for: [received:nodes:9c16ed97-72e0-4691-b9c0-052398988748:localhost] 2021-11-15 21:44:26 | [Mutex] received everything. 2021-11-15 21:44:26 | [Mutex] isItemNotified: received:node:9c16ed97-72e0-4691-b9c0-052398988748:localhost:node-c6d98540-7604-4feb-9078-7bdcd04aed19:Node c6d98540-7604-4feb-9078-7bdcd04aed19 :: false 2021-11-15 21:44:26 | [Mutex] waiting for: [received:nodes:0bc9bcd9-0bb4-4d4e-9a44-d27d0800141d:localhost] 2021-11-15 21:44:26 | [Mutex] received everything. 2021-11-15 21:44:26 | [Mutex] isItemNotified: received:node:0bc9bcd9-0bb4-4d4e-9a44-d27d0800141d:localhost:node-c6d98540-7604-4feb-9078-7bdcd04aed19:Node c6d98540-7604-4feb-9078-7bdcd04aed19 :: false |
publishItemsToNodes | 0.050s |
2021-11-15 21:44:23 |
2021-11-15 21:44:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-11-15 21:44:23 | ------------------------------------ 2021-11-15 21:44:23 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-c6d98540-7604-4feb-9078-7bdcd04aed19", "entry": "<test>item-f19959eb-d4d2-40ef-a499-90dcba0d22e1</test>", "item-id": "item-f19959eb-d4d2-40ef-a499-90dcba0d22e1" } 2021-11-15 21:44:23 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-f19959eb-d4d2-40ef-a499-90dcba0d22e1" } 2021-11-15 21:44:23 | [Mutex] waiting for: [published:item:notifieditem-f19959eb-d4d2-40ef-a499-90dcba0d22e1:admin@test-domain.com] 2021-11-15 21:44:23 | [Mutex] received everything. 2021-11-15 21:44:23 | [Mutex] isItemNotified: published:item:notifieditem-f19959eb-d4d2-40ef-a499-90dcba0d22e1:admin@test-domain.com :: true |
retractItemsFromNodes | 0.094s |
2021-11-15 21:44:23 |
2021-11-15 21:44:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-11-15 21:44:23 | ------------------------------------ 2021-11-15 21:44:23 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-c6d98540-7604-4feb-9078-7bdcd04aed19", "item-id": "item-f19959eb-d4d2-40ef-a499-90dcba0d22e1" } 2021-11-15 21:44:24 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-f19959eb-d4d2-40ef-a499-90dcba0d22e1" } 2021-11-15 21:44:24 | [Mutex] waiting for: [retracted:item:notifieditem-f19959eb-d4d2-40ef-a499-90dcba0d22e1:admin@test-domain.com] 2021-11-15 21:44:24 | [Mutex] received everything. 2021-11-15 21:44:24 | [Mutex] isItemNotified: retracted:item:notifieditem-f19959eb-d4d2-40ef-a499-90dcba0d22e1:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.082s |
2021-11-15 21:44:23 |
2021-11-15 21:44:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-11-15 21:44:23 | ------------------------------------ 2021-11-15 21:44:23 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-c6d98540-7604-4feb-9078-7bdcd04aed19", "item-id": "item-f19959eb-d4d2-40ef-a499-90dcba0d22e1" } 2021-11-15 21:44:23 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-c6d98540-7604-4feb-9078-7bdcd04aed19", "item-id": "item-f19959eb-d4d2-40ef-a499-90dcba0d22e1", "item": [ "<item id=\"item-f19959eb-d4d2-40ef-a499-90dcba0d22e1\"><test>item-f19959eb-d4d2-40ef-a499-90dcba0d22e1</test></item>" ] } 2021-11-15 21:44:23 | [Mutex] notify: [retrieved:item:item-f19959eb-d4d2-40ef-a499-90dcba0d22e1:payload-matches:true:localhost] 2021-11-15 21:44:23 | [Mutex] received everything. 2021-11-15 21:44:23 | [Mutex] isItemNotified: retrieved:item:item-f19959eb-d4d2-40ef-a499-90dcba0d22e1:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.047s |
2021-11-15 21:44:23 |
2021-11-15 21:44:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-11-15 21:44:23 | ------------------------------------ 2021-11-15 21:44:23 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-11-15 21:44:23 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-c6d98540-7604-4feb-9078-7bdcd04aed19", "test", "node-1295547e-fb22-4c97-9533-beec145d8078" ] } |
retrieveUserSubscriptionsWithRegex | 0.052s |
2021-11-15 21:44:23 |
2021-11-15 21:44:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-11-15 21:44:23 | ------------------------------------ 2021-11-15 21:44:23 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-c6d98540-7604-4feb-9078-7bdcd04aed19)" } 2021-11-15 21:44:23 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.014s |
2021-11-15 21:44:22 |
2021-11-15 21:44:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-11-15 21:44:22 | ------------------------------------ 2021-11-15 21:44:22 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-c6d98540-7604-4feb-9078-7bdcd04aed19", "jids": [ "admin@test-domain.com" ] } 2021-11-15 21:44:22 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.050s |
2021-11-15 21:44:24 |
2021-11-15 21:44:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-11-15 21:44:24 | ------------------------------------ 2021-11-15 21:44:24 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-c6d98540-7604-4feb-9078-7bdcd04aed19", "jids": [ "admin@test-domain.com" ] } 2021-11-15 21:44:24 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |