Test duration : 8.603s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.148s |
2022-09-06 23:07:08 |
2022-09-06 23:07:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-06 23:07:08 | ------------------------------------ 2022-09-06 23:07:08 | [Mutex] waiting for: [configured:node:node-932494a4-6557-4588-9b01-270ef110d771:node-4a06b3fe-0a3f-4a64-a016-c19f948df43a] 2022-09-06 23:07:08 | [Mutex] received everything. 2022-09-06 23:07:08 | [Mutex] isItemNotified: configured:node:node-932494a4-6557-4588-9b01-270ef110d771:node-4a06b3fe-0a3f-4a64-a016-c19f948df43a :: true 2022-09-06 23:07:09 | [Mutex] waiting for: [received:nodes:9da164d0-3b48-42e8-b4ff-1eb05dd4f269:localhost] 2022-09-06 23:07:09 | [Mutex] received everything. 2022-09-06 23:07:09 | [Mutex] isItemNotified: received:node:9da164d0-3b48-42e8-b4ff-1eb05dd4f269:localhost:node-932494a4-6557-4588-9b01-270ef110d771:Node 932494a4-6557-4588-9b01-270ef110d771 :: true 2022-09-06 23:07:09 | [Mutex] waiting for: [received:nodes:37f45e36-52a9-42fd-b3e9-9a9776962dbc:localhost] 2022-09-06 23:07:09 | [Mutex] received everything. 2022-09-06 23:07:09 | [Mutex] isItemNotified: received:node:37f45e36-52a9-42fd-b3e9-9a9776962dbc:localhost:node-932494a4-6557-4588-9b01-270ef110d771:Node 932494a4-6557-4588-9b01-270ef110d771 :: false |
createNodes | 1.553s |
2022-09-06 23:07:05 |
2022-09-06 23:07:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-06 23:07:05 | ------------------------------------ 2022-09-06 23:07:05 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-932494a4-6557-4588-9b01-270ef110d771", "pubsub#title": "Node 932494a4-6557-4588-9b01-270ef110d771" } 2022-09-06 23:07:06 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-09-06 23:07:07 | [Mutex] waiting for: [received:nodes:74b6d359-25a2-4034-85c7-9515cd70e336:localhost] 2022-09-06 23:07:07 | [Mutex] waiting for: [received:nodes:74b6d359-25a2-4034-85c7-9515cd70e336:localhost] 2022-09-06 23:07:07 | [Mutex] received everything. 2022-09-06 23:07:07 | [Mutex] isItemNotified: received:node:74b6d359-25a2-4034-85c7-9515cd70e336:localhost:node-932494a4-6557-4588-9b01-270ef110d771:Node 932494a4-6557-4588-9b01-270ef110d771 :: true |
createSubnodes | 1.021s |
2022-09-06 23:07:07 |
2022-09-06 23:07:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-06 23:07:07 | ------------------------------------ 2022-09-06 23:07:07 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-4a06b3fe-0a3f-4a64-a016-c19f948df43a", "pubsub#title": "Node 4a06b3fe-0a3f-4a64-a016-c19f948df43a" } 2022-09-06 23:07:07 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-09-06 23:07:08 | [Mutex] waiting for: [received:nodes:1393376c-35a9-4581-9e76-f97916217ea1:localhost] 2022-09-06 23:07:08 | [Mutex] received everything. 2022-09-06 23:07:08 | [Mutex] isItemNotified: received:node:1393376c-35a9-4581-9e76-f97916217ea1:localhost:node-4a06b3fe-0a3f-4a64-a016-c19f948df43a:Node 4a06b3fe-0a3f-4a64-a016-c19f948df43a :: true |
deleteNodes | 1.024s |
2022-09-06 23:07:12 |
2022-09-06 23:07:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-06 23:07:12 | ------------------------------------ 2022-09-06 23:07:12 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-4a06b3fe-0a3f-4a64-a016-c19f948df43a" } 2022-09-06 23:07:12 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-09-06 23:07:13 | [Mutex] waiting for: [received:nodes:e0bca770-c3c7-4985-94d8-3a4655c1e91f:localhost] 2022-09-06 23:07:13 | [Mutex] waiting for: [received:nodes:e0bca770-c3c7-4985-94d8-3a4655c1e91f:localhost] 2022-09-06 23:07:13 | [Mutex] received everything. 2022-09-06 23:07:13 | [Mutex] isItemNotified: received:node:e0bca770-c3c7-4985-94d8-3a4655c1e91f:localhost:node-4a06b3fe-0a3f-4a64-a016-c19f948df43a:Node 4a06b3fe-0a3f-4a64-a016-c19f948df43a :: false |
deleteSubnodes | 1.026s |
2022-09-06 23:07:11 |
2022-09-06 23:07:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-06 23:07:11 | ------------------------------------ 2022-09-06 23:07:11 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-932494a4-6557-4588-9b01-270ef110d771" } 2022-09-06 23:07:11 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-09-06 23:07:12 | [Mutex] waiting for: [received:nodes:d6be7a1c-0d9a-48fe-947f-e29da92fd167:localhost] 2022-09-06 23:07:12 | [Mutex] received everything. 2022-09-06 23:07:12 | [Mutex] isItemNotified: received:node:d6be7a1c-0d9a-48fe-947f-e29da92fd167:localhost:node-932494a4-6557-4588-9b01-270ef110d771:Node 932494a4-6557-4588-9b01-270ef110d771 :: false 2022-09-06 23:07:12 | [Mutex] waiting for: [received:nodes:d8eb07d4-13af-4c36-8cc6-674be1c3c828:localhost] 2022-09-06 23:07:12 | [Mutex] received everything. 2022-09-06 23:07:12 | [Mutex] isItemNotified: received:node:d8eb07d4-13af-4c36-8cc6-674be1c3c828:localhost:node-932494a4-6557-4588-9b01-270ef110d771:Node 932494a4-6557-4588-9b01-270ef110d771 :: false |
publishItemsToNodes | 0.033s |
2022-09-06 23:07:10 |
2022-09-06 23:07:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-06 23:07:10 | ------------------------------------ 2022-09-06 23:07:10 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-932494a4-6557-4588-9b01-270ef110d771", "entry": "<test>item-3bf90b5f-7e91-42a2-ae6a-a717ff9ffe27</test>", "item-id": "item-3bf90b5f-7e91-42a2-ae6a-a717ff9ffe27" } 2022-09-06 23:07:10 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-3bf90b5f-7e91-42a2-ae6a-a717ff9ffe27" } 2022-09-06 23:07:10 | [Mutex] received everything. 2022-09-06 23:07:10 | [Mutex] isItemNotified: published:item:notifieditem-3bf90b5f-7e91-42a2-ae6a-a717ff9ffe27:admin@test-domain.com :: true |
retractItemsFromNodes | 0.053s |
2022-09-06 23:07:10 |
2022-09-06 23:07:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-06 23:07:10 | ------------------------------------ 2022-09-06 23:07:10 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-932494a4-6557-4588-9b01-270ef110d771", "item-id": "item-3bf90b5f-7e91-42a2-ae6a-a717ff9ffe27" } 2022-09-06 23:07:10 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-3bf90b5f-7e91-42a2-ae6a-a717ff9ffe27" } 2022-09-06 23:07:10 | [Mutex] waiting for: [retracted:item:notifieditem-3bf90b5f-7e91-42a2-ae6a-a717ff9ffe27:admin@test-domain.com] 2022-09-06 23:07:10 | [Mutex] received everything. 2022-09-06 23:07:10 | [Mutex] isItemNotified: retracted:item:notifieditem-3bf90b5f-7e91-42a2-ae6a-a717ff9ffe27:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.061s |
2022-09-06 23:07:10 |
2022-09-06 23:07:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-06 23:07:10 | ------------------------------------ 2022-09-06 23:07:10 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-932494a4-6557-4588-9b01-270ef110d771", "item-id": "item-3bf90b5f-7e91-42a2-ae6a-a717ff9ffe27" } 2022-09-06 23:07:10 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-932494a4-6557-4588-9b01-270ef110d771", "item-id": "item-3bf90b5f-7e91-42a2-ae6a-a717ff9ffe27", "item": [ "<item id=\"item-3bf90b5f-7e91-42a2-ae6a-a717ff9ffe27\"><test>item-3bf90b5f-7e91-42a2-ae6a-a717ff9ffe27</test></item>" ] } 2022-09-06 23:07:10 | [Mutex] notify: [retrieved:item:item-3bf90b5f-7e91-42a2-ae6a-a717ff9ffe27:payload-matches:true:localhost] 2022-09-06 23:07:10 | [Mutex] received everything. 2022-09-06 23:07:10 | [Mutex] isItemNotified: retrieved:item:item-3bf90b5f-7e91-42a2-ae6a-a717ff9ffe27:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2022-09-06 23:07:10 |
2022-09-06 23:07:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-06 23:07:10 | ------------------------------------ 2022-09-06 23:07:10 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-09-06 23:07:10 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-4a06b3fe-0a3f-4a64-a016-c19f948df43a", "node-932494a4-6557-4588-9b01-270ef110d771" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2022-09-06 23:07:10 |
2022-09-06 23:07:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-06 23:07:10 | ------------------------------------ 2022-09-06 23:07:10 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-932494a4-6557-4588-9b01-270ef110d771)" } 2022-09-06 23:07:10 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.010s |
2022-09-06 23:07:09 |
2022-09-06 23:07:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-06 23:07:09 | ------------------------------------ 2022-09-06 23:07:09 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-932494a4-6557-4588-9b01-270ef110d771", "jids": [ "admin@test-domain.com" ] } 2022-09-06 23:07:09 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.049s |
2022-09-06 23:07:10 |
2022-09-06 23:07:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-06 23:07:10 | ------------------------------------ 2022-09-06 23:07:10 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-932494a4-6557-4588-9b01-270ef110d771", "jids": [ "admin@test-domain.com" ] } 2022-09-06 23:07:10 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |