Test duration : 8.552s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.099s |
2023-05-24 23:00:06 |
2023-05-24 23:00:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-05-24 23:00:06 | ------------------------------------ 2023-05-24 23:00:06 | [Mutex] waiting for: [configured:node:node-4550acbd-2b74-4841-910d-a1909ab7fcd2:node-91f3f46c-8e95-48de-abb2-85859aeef443] 2023-05-24 23:00:06 | [Mutex] received everything. 2023-05-24 23:00:06 | [Mutex] isItemNotified: configured:node:node-4550acbd-2b74-4841-910d-a1909ab7fcd2:node-91f3f46c-8e95-48de-abb2-85859aeef443 :: true 2023-05-24 23:00:07 | [Mutex] waiting for: [received:nodes:6b31385c-b75b-42c2-bc8a-efb229067d2a:localhost] 2023-05-24 23:00:07 | [Mutex] received everything. 2023-05-24 23:00:07 | [Mutex] isItemNotified: received:node:6b31385c-b75b-42c2-bc8a-efb229067d2a:localhost:node-4550acbd-2b74-4841-910d-a1909ab7fcd2:Node 4550acbd-2b74-4841-910d-a1909ab7fcd2 :: true 2023-05-24 23:00:07 | [Mutex] waiting for: [received:nodes:66f6ced9-d539-42d0-9618-f4ae90c15b8b:localhost] 2023-05-24 23:00:07 | [Mutex] waiting for: [received:nodes:66f6ced9-d539-42d0-9618-f4ae90c15b8b:localhost] 2023-05-24 23:00:07 | [Mutex] waiting for: [received:nodes:66f6ced9-d539-42d0-9618-f4ae90c15b8b:localhost] 2023-05-24 23:00:07 | [Mutex] waiting for: [received:nodes:66f6ced9-d539-42d0-9618-f4ae90c15b8b:localhost] 2023-05-24 23:00:07 | [Mutex] received everything. 2023-05-24 23:00:07 | [Mutex] isItemNotified: received:node:66f6ced9-d539-42d0-9618-f4ae90c15b8b:localhost:node-4550acbd-2b74-4841-910d-a1909ab7fcd2:Node 4550acbd-2b74-4841-910d-a1909ab7fcd2 :: false |
createNodes | 1.533s |
2023-05-24 23:00:03 |
2023-05-24 23:00:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-05-24 23:00:03 | ------------------------------------ 2023-05-24 23:00:03 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-4550acbd-2b74-4841-910d-a1909ab7fcd2", "pubsub#title": "Node 4550acbd-2b74-4841-910d-a1909ab7fcd2" } 2023-05-24 23:00:04 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2023-05-24 23:00:05 | [Mutex] waiting for: [received:nodes:fa944a3c-7522-4871-a5a3-346f3bab075c:localhost] 2023-05-24 23:00:05 | [Mutex] waiting for: [received:nodes:fa944a3c-7522-4871-a5a3-346f3bab075c:localhost] 2023-05-24 23:00:05 | [Mutex] waiting for: [received:nodes:fa944a3c-7522-4871-a5a3-346f3bab075c:localhost] 2023-05-24 23:00:05 | [Mutex] waiting for: [received:nodes:fa944a3c-7522-4871-a5a3-346f3bab075c:localhost] 2023-05-24 23:00:05 | [Mutex] received everything. 2023-05-24 23:00:05 | [Mutex] isItemNotified: received:node:fa944a3c-7522-4871-a5a3-346f3bab075c:localhost:node-4550acbd-2b74-4841-910d-a1909ab7fcd2:Node 4550acbd-2b74-4841-910d-a1909ab7fcd2 :: true |
createSubnodes | 1.021s |
2023-05-24 23:00:05 |
2023-05-24 23:00:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-05-24 23:00:05 | ------------------------------------ 2023-05-24 23:00:05 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-91f3f46c-8e95-48de-abb2-85859aeef443", "pubsub#title": "Node 91f3f46c-8e95-48de-abb2-85859aeef443" } 2023-05-24 23:00:05 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2023-05-24 23:00:06 | [Mutex] waiting for: [received:nodes:24894c85-1152-427e-8fdf-94447318f509:localhost] 2023-05-24 23:00:06 | [Mutex] waiting for: [received:nodes:24894c85-1152-427e-8fdf-94447318f509:localhost] 2023-05-24 23:00:06 | [Mutex] waiting for: [received:nodes:24894c85-1152-427e-8fdf-94447318f509:localhost] 2023-05-24 23:00:06 | [Mutex] waiting for: [received:nodes:24894c85-1152-427e-8fdf-94447318f509:localhost] 2023-05-24 23:00:06 | [Mutex] waiting for: [received:nodes:24894c85-1152-427e-8fdf-94447318f509:localhost] 2023-05-24 23:00:06 | [Mutex] received everything. 2023-05-24 23:00:06 | [Mutex] isItemNotified: received:node:24894c85-1152-427e-8fdf-94447318f509:localhost:node-91f3f46c-8e95-48de-abb2-85859aeef443:Node 91f3f46c-8e95-48de-abb2-85859aeef443 :: true |
deleteNodes | 1.022s |
2023-05-24 23:00:10 |
2023-05-24 23:00:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-05-24 23:00:10 | ------------------------------------ 2023-05-24 23:00:10 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-91f3f46c-8e95-48de-abb2-85859aeef443" } 2023-05-24 23:00:10 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2023-05-24 23:00:11 | [Mutex] waiting for: [received:nodes:650e8583-89a7-45cd-8fc3-1d381162a21e:localhost] 2023-05-24 23:00:11 | [Mutex] waiting for: [received:nodes:650e8583-89a7-45cd-8fc3-1d381162a21e:localhost] 2023-05-24 23:00:11 | [Mutex] waiting for: [received:nodes:650e8583-89a7-45cd-8fc3-1d381162a21e:localhost] 2023-05-24 23:00:11 | [Mutex] received everything. 2023-05-24 23:00:11 | [Mutex] isItemNotified: received:node:650e8583-89a7-45cd-8fc3-1d381162a21e:localhost:node-91f3f46c-8e95-48de-abb2-85859aeef443:Node 91f3f46c-8e95-48de-abb2-85859aeef443 :: false |
deleteSubnodes | 1.023s |
2023-05-24 23:00:09 |
2023-05-24 23:00:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-05-24 23:00:09 | ------------------------------------ 2023-05-24 23:00:09 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-4550acbd-2b74-4841-910d-a1909ab7fcd2" } 2023-05-24 23:00:09 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2023-05-24 23:00:10 | [Mutex] waiting for: [received:nodes:a06a7266-3093-4a8f-ace8-3feeac6ab9d5:localhost] 2023-05-24 23:00:10 | [Mutex] waiting for: [received:nodes:a06a7266-3093-4a8f-ace8-3feeac6ab9d5:localhost] 2023-05-24 23:00:10 | [Mutex] waiting for: [received:nodes:a06a7266-3093-4a8f-ace8-3feeac6ab9d5:localhost] 2023-05-24 23:00:10 | [Mutex] waiting for: [received:nodes:a06a7266-3093-4a8f-ace8-3feeac6ab9d5:localhost] 2023-05-24 23:00:10 | [Mutex] received everything. 2023-05-24 23:00:10 | [Mutex] isItemNotified: received:node:a06a7266-3093-4a8f-ace8-3feeac6ab9d5:localhost:node-4550acbd-2b74-4841-910d-a1909ab7fcd2:Node 4550acbd-2b74-4841-910d-a1909ab7fcd2 :: false 2023-05-24 23:00:10 | [Mutex] waiting for: [received:nodes:cd545af1-9fd6-4b72-9815-cc9348821d3d:localhost] 2023-05-24 23:00:10 | [Mutex] received everything. 2023-05-24 23:00:10 | [Mutex] isItemNotified: received:node:cd545af1-9fd6-4b72-9815-cc9348821d3d:localhost:node-4550acbd-2b74-4841-910d-a1909ab7fcd2:Node 4550acbd-2b74-4841-910d-a1909ab7fcd2 :: false |
publishItemsToNodes | 0.037s |
2023-05-24 23:00:08 |
2023-05-24 23:00:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-05-24 23:00:08 | ------------------------------------ 2023-05-24 23:00:08 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-4550acbd-2b74-4841-910d-a1909ab7fcd2", "entry": "<test>item-e48c98ce-29bd-4c62-a1ab-cd59dcd4bf7e</test>", "item-id": "item-e48c98ce-29bd-4c62-a1ab-cd59dcd4bf7e" } 2023-05-24 23:00:08 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-e48c98ce-29bd-4c62-a1ab-cd59dcd4bf7e" } 2023-05-24 23:00:08 | [Mutex] waiting for: [published:item:notifieditem-e48c98ce-29bd-4c62-a1ab-cd59dcd4bf7e:admin@test-domain.com] 2023-05-24 23:00:08 | [Mutex] received everything. 2023-05-24 23:00:08 | [Mutex] isItemNotified: published:item:notifieditem-e48c98ce-29bd-4c62-a1ab-cd59dcd4bf7e:admin@test-domain.com :: true |
retractItemsFromNodes | 0.077s |
2023-05-24 23:00:08 |
2023-05-24 23:00:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-05-24 23:00:08 | ------------------------------------ 2023-05-24 23:00:08 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-4550acbd-2b74-4841-910d-a1909ab7fcd2", "item-id": "item-e48c98ce-29bd-4c62-a1ab-cd59dcd4bf7e" } 2023-05-24 23:00:08 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-e48c98ce-29bd-4c62-a1ab-cd59dcd4bf7e" } 2023-05-24 23:00:08 | [Mutex] received everything. 2023-05-24 23:00:08 | [Mutex] isItemNotified: retracted:item:notifieditem-e48c98ce-29bd-4c62-a1ab-cd59dcd4bf7e:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.082s |
2023-05-24 23:00:08 |
2023-05-24 23:00:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-05-24 23:00:08 | ------------------------------------ 2023-05-24 23:00:08 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-4550acbd-2b74-4841-910d-a1909ab7fcd2", "item-id": "item-e48c98ce-29bd-4c62-a1ab-cd59dcd4bf7e" } 2023-05-24 23:00:08 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-4550acbd-2b74-4841-910d-a1909ab7fcd2", "item-id": "item-e48c98ce-29bd-4c62-a1ab-cd59dcd4bf7e", "item": [ "<item id=\"item-e48c98ce-29bd-4c62-a1ab-cd59dcd4bf7e\"><test>item-e48c98ce-29bd-4c62-a1ab-cd59dcd4bf7e</test></item>" ] } 2023-05-24 23:00:08 | [Mutex] notify: [retrieved:item:item-e48c98ce-29bd-4c62-a1ab-cd59dcd4bf7e:payload-matches:true:localhost] 2023-05-24 23:00:08 | [Mutex] received everything. 2023-05-24 23:00:08 | [Mutex] isItemNotified: retrieved:item:item-e48c98ce-29bd-4c62-a1ab-cd59dcd4bf7e:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.047s |
2023-05-24 23:00:08 |
2023-05-24 23:00:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-05-24 23:00:08 | ------------------------------------ 2023-05-24 23:00:08 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2023-05-24 23:00:08 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-4550acbd-2b74-4841-910d-a1909ab7fcd2", "test", "node-91f3f46c-8e95-48de-abb2-85859aeef443" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2023-05-24 23:00:08 |
2023-05-24 23:00:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-05-24 23:00:08 | ------------------------------------ 2023-05-24 23:00:08 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-4550acbd-2b74-4841-910d-a1909ab7fcd2)" } 2023-05-24 23:00:08 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.009s |
2023-05-24 23:00:07 |
2023-05-24 23:00:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-05-24 23:00:07 | ------------------------------------ 2023-05-24 23:00:07 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-4550acbd-2b74-4841-910d-a1909ab7fcd2", "jids": [ "admin@test-domain.com" ] } 2023-05-24 23:00:07 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.061s |
2023-05-24 23:00:08 |
2023-05-24 23:00:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-05-24 23:00:08 | ------------------------------------ 2023-05-24 23:00:08 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-4550acbd-2b74-4841-910d-a1909ab7fcd2", "jids": [ "admin@test-domain.com" ] } 2023-05-24 23:00:08 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |