Test duration : 8.655s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.096s |
2022-12-25 21:30:38 |
2022-12-25 21:30:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-25 21:30:38 | ------------------------------------ 2022-12-25 21:30:38 | [Mutex] waiting for: [configured:node:node-bc55e2a5-6ade-4bc1-bcff-6b703b00d53b:node-12c76f44-3b35-44f7-87e6-3ebfc9b16700] 2022-12-25 21:30:38 | [Mutex] received everything. 2022-12-25 21:30:38 | [Mutex] isItemNotified: configured:node:node-bc55e2a5-6ade-4bc1-bcff-6b703b00d53b:node-12c76f44-3b35-44f7-87e6-3ebfc9b16700 :: true 2022-12-25 21:30:39 | [Mutex] waiting for: [received:nodes:97b79a6c-9fc3-4e2d-b3d5-6f5a8e2ea46c:localhost] 2022-12-25 21:30:39 | [Mutex] received everything. 2022-12-25 21:30:39 | [Mutex] isItemNotified: received:node:97b79a6c-9fc3-4e2d-b3d5-6f5a8e2ea46c:localhost:node-bc55e2a5-6ade-4bc1-bcff-6b703b00d53b:Node bc55e2a5-6ade-4bc1-bcff-6b703b00d53b :: true 2022-12-25 21:30:39 | [Mutex] waiting for: [received:nodes:67bd34aa-eebe-42ab-be45-5bcaccafc925:localhost] 2022-12-25 21:30:39 | [Mutex] waiting for: [received:nodes:67bd34aa-eebe-42ab-be45-5bcaccafc925:localhost] 2022-12-25 21:30:39 | [Mutex] waiting for: [received:nodes:67bd34aa-eebe-42ab-be45-5bcaccafc925:localhost] 2022-12-25 21:30:39 | [Mutex] waiting for: [received:nodes:67bd34aa-eebe-42ab-be45-5bcaccafc925:localhost] 2022-12-25 21:30:39 | [Mutex] received everything. 2022-12-25 21:30:39 | [Mutex] isItemNotified: received:node:67bd34aa-eebe-42ab-be45-5bcaccafc925:localhost:node-bc55e2a5-6ade-4bc1-bcff-6b703b00d53b:Node bc55e2a5-6ade-4bc1-bcff-6b703b00d53b :: false |
createNodes | 1.626s |
2022-12-25 21:30:35 |
2022-12-25 21:30:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-25 21:30:35 | ------------------------------------ 2022-12-25 21:30:36 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-bc55e2a5-6ade-4bc1-bcff-6b703b00d53b", "pubsub#title": "Node bc55e2a5-6ade-4bc1-bcff-6b703b00d53b" } 2022-12-25 21:30:36 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-12-25 21:30:37 | [Mutex] waiting for: [received:nodes:ad6c4e6c-1c17-40a2-9d09-35562da1df27:localhost] 2022-12-25 21:30:37 | [Mutex] waiting for: [received:nodes:ad6c4e6c-1c17-40a2-9d09-35562da1df27:localhost] 2022-12-25 21:30:37 | [Mutex] waiting for: [received:nodes:ad6c4e6c-1c17-40a2-9d09-35562da1df27:localhost] 2022-12-25 21:30:37 | [Mutex] waiting for: [received:nodes:ad6c4e6c-1c17-40a2-9d09-35562da1df27:localhost] 2022-12-25 21:30:37 | [Mutex] received everything. 2022-12-25 21:30:37 | [Mutex] isItemNotified: received:node:ad6c4e6c-1c17-40a2-9d09-35562da1df27:localhost:node-bc55e2a5-6ade-4bc1-bcff-6b703b00d53b:Node bc55e2a5-6ade-4bc1-bcff-6b703b00d53b :: true |
createSubnodes | 1.031s |
2022-12-25 21:30:37 |
2022-12-25 21:30:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-25 21:30:37 | ------------------------------------ 2022-12-25 21:30:37 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-12c76f44-3b35-44f7-87e6-3ebfc9b16700", "pubsub#title": "Node 12c76f44-3b35-44f7-87e6-3ebfc9b16700" } 2022-12-25 21:30:37 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-12-25 21:30:38 | [Mutex] waiting for: [received:nodes:28c7e4e2-4116-4c88-8a5a-d4d18d5235c2:localhost] 2022-12-25 21:30:38 | [Mutex] waiting for: [received:nodes:28c7e4e2-4116-4c88-8a5a-d4d18d5235c2:localhost] 2022-12-25 21:30:38 | [Mutex] waiting for: [received:nodes:28c7e4e2-4116-4c88-8a5a-d4d18d5235c2:localhost] 2022-12-25 21:30:38 | [Mutex] waiting for: [received:nodes:28c7e4e2-4116-4c88-8a5a-d4d18d5235c2:localhost] 2022-12-25 21:30:38 | [Mutex] waiting for: [received:nodes:28c7e4e2-4116-4c88-8a5a-d4d18d5235c2:localhost] 2022-12-25 21:30:38 | [Mutex] received everything. 2022-12-25 21:30:38 | [Mutex] isItemNotified: received:node:28c7e4e2-4116-4c88-8a5a-d4d18d5235c2:localhost:node-12c76f44-3b35-44f7-87e6-3ebfc9b16700:Node 12c76f44-3b35-44f7-87e6-3ebfc9b16700 :: true |
deleteNodes | 1.026s |
2022-12-25 21:30:42 |
2022-12-25 21:30:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-25 21:30:42 | ------------------------------------ 2022-12-25 21:30:42 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-12c76f44-3b35-44f7-87e6-3ebfc9b16700" } 2022-12-25 21:30:42 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-12-25 21:30:43 | [Mutex] waiting for: [received:nodes:de70172b-4436-4f3c-affd-9ccb8ef3b4cf:localhost] 2022-12-25 21:30:43 | [Mutex] waiting for: [received:nodes:de70172b-4436-4f3c-affd-9ccb8ef3b4cf:localhost] 2022-12-25 21:30:43 | [Mutex] waiting for: [received:nodes:de70172b-4436-4f3c-affd-9ccb8ef3b4cf:localhost] 2022-12-25 21:30:43 | [Mutex] received everything. 2022-12-25 21:30:43 | [Mutex] isItemNotified: received:node:de70172b-4436-4f3c-affd-9ccb8ef3b4cf:localhost:node-12c76f44-3b35-44f7-87e6-3ebfc9b16700:Node 12c76f44-3b35-44f7-87e6-3ebfc9b16700 :: false |
deleteSubnodes | 1.027s |
2022-12-25 21:30:41 |
2022-12-25 21:30:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-25 21:30:41 | ------------------------------------ 2022-12-25 21:30:41 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-bc55e2a5-6ade-4bc1-bcff-6b703b00d53b" } 2022-12-25 21:30:41 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-12-25 21:30:42 | [Mutex] waiting for: [received:nodes:a3c95762-55b3-4b63-a2b9-f8412bfb11e3:localhost] 2022-12-25 21:30:42 | [Mutex] waiting for: [received:nodes:a3c95762-55b3-4b63-a2b9-f8412bfb11e3:localhost] 2022-12-25 21:30:42 | [Mutex] waiting for: [received:nodes:a3c95762-55b3-4b63-a2b9-f8412bfb11e3:localhost] 2022-12-25 21:30:42 | [Mutex] waiting for: [received:nodes:a3c95762-55b3-4b63-a2b9-f8412bfb11e3:localhost] 2022-12-25 21:30:42 | [Mutex] received everything. 2022-12-25 21:30:42 | [Mutex] isItemNotified: received:node:a3c95762-55b3-4b63-a2b9-f8412bfb11e3:localhost:node-bc55e2a5-6ade-4bc1-bcff-6b703b00d53b:Node bc55e2a5-6ade-4bc1-bcff-6b703b00d53b :: false 2022-12-25 21:30:42 | [Mutex] waiting for: [received:nodes:4737b390-4b74-4356-aa32-1064129f697d:localhost] 2022-12-25 21:30:42 | [Mutex] received everything. 2022-12-25 21:30:42 | [Mutex] isItemNotified: received:node:4737b390-4b74-4356-aa32-1064129f697d:localhost:node-bc55e2a5-6ade-4bc1-bcff-6b703b00d53b:Node bc55e2a5-6ade-4bc1-bcff-6b703b00d53b :: false |
publishItemsToNodes | 0.072s |
2022-12-25 21:30:40 |
2022-12-25 21:30:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-25 21:30:40 | ------------------------------------ 2022-12-25 21:30:40 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-bc55e2a5-6ade-4bc1-bcff-6b703b00d53b", "entry": "<test>item-21ef354e-4ec3-4be2-be60-f9ebad806b68</test>", "item-id": "item-21ef354e-4ec3-4be2-be60-f9ebad806b68" } 2022-12-25 21:30:40 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-21ef354e-4ec3-4be2-be60-f9ebad806b68" } 2022-12-25 21:30:40 | [Mutex] waiting for: [published:item:notifieditem-21ef354e-4ec3-4be2-be60-f9ebad806b68:admin@test-domain.com] 2022-12-25 21:30:40 | [Mutex] received everything. 2022-12-25 21:30:40 | [Mutex] isItemNotified: published:item:notifieditem-21ef354e-4ec3-4be2-be60-f9ebad806b68:admin@test-domain.com :: true |
retractItemsFromNodes | 0.059s |
2022-12-25 21:30:40 |
2022-12-25 21:30:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-25 21:30:40 | ------------------------------------ 2022-12-25 21:30:40 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-bc55e2a5-6ade-4bc1-bcff-6b703b00d53b", "item-id": "item-21ef354e-4ec3-4be2-be60-f9ebad806b68" } 2022-12-25 21:30:40 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-21ef354e-4ec3-4be2-be60-f9ebad806b68" } 2022-12-25 21:30:40 | [Mutex] received everything. 2022-12-25 21:30:40 | [Mutex] isItemNotified: retracted:item:notifieditem-21ef354e-4ec3-4be2-be60-f9ebad806b68:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.066s |
2022-12-25 21:30:40 |
2022-12-25 21:30:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-25 21:30:40 | ------------------------------------ 2022-12-25 21:30:40 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-bc55e2a5-6ade-4bc1-bcff-6b703b00d53b", "item-id": "item-21ef354e-4ec3-4be2-be60-f9ebad806b68" } 2022-12-25 21:30:40 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-bc55e2a5-6ade-4bc1-bcff-6b703b00d53b", "item-id": "item-21ef354e-4ec3-4be2-be60-f9ebad806b68", "item": [ "<item id=\"item-21ef354e-4ec3-4be2-be60-f9ebad806b68\"><test>item-21ef354e-4ec3-4be2-be60-f9ebad806b68</test></item>" ] } 2022-12-25 21:30:40 | [Mutex] notify: [retrieved:item:item-21ef354e-4ec3-4be2-be60-f9ebad806b68:payload-matches:true:localhost] 2022-12-25 21:30:40 | [Mutex] received everything. 2022-12-25 21:30:40 | [Mutex] isItemNotified: retrieved:item:item-21ef354e-4ec3-4be2-be60-f9ebad806b68:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.047s |
2022-12-25 21:30:40 |
2022-12-25 21:30:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-25 21:30:40 | ------------------------------------ 2022-12-25 21:30:40 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-12-25 21:30:40 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-bc55e2a5-6ade-4bc1-bcff-6b703b00d53b", "test", "node-12c76f44-3b35-44f7-87e6-3ebfc9b16700" ] } |
retrieveUserSubscriptionsWithRegex | 0.048s |
2022-12-25 21:30:40 |
2022-12-25 21:30:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-25 21:30:40 | ------------------------------------ 2022-12-25 21:30:40 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-bc55e2a5-6ade-4bc1-bcff-6b703b00d53b)" } 2022-12-25 21:30:40 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.010s |
2022-12-25 21:30:39 |
2022-12-25 21:30:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-25 21:30:39 | ------------------------------------ 2022-12-25 21:30:39 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-bc55e2a5-6ade-4bc1-bcff-6b703b00d53b", "jids": [ "admin@test-domain.com" ] } 2022-12-25 21:30:39 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.051s |
2022-12-25 21:30:40 |
2022-12-25 21:30:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-25 21:30:40 | ------------------------------------ 2022-12-25 21:30:40 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-bc55e2a5-6ade-4bc1-bcff-6b703b00d53b", "jids": [ "admin@test-domain.com" ] } 2022-12-25 21:30:40 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |