Test duration : 8.565s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.096s |
2022-05-22 22:56:51 |
2022-05-22 22:56:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-22 22:56:51 | ------------------------------------ 2022-05-22 22:56:51 | [Mutex] waiting for: [configured:node:node-be5a18b5-16ff-484c-9117-5047bcb58567:node-94f8d5ac-d1e5-47d5-b12a-2513f61504f4] 2022-05-22 22:56:51 | [Mutex] received everything. 2022-05-22 22:56:51 | [Mutex] isItemNotified: configured:node:node-be5a18b5-16ff-484c-9117-5047bcb58567:node-94f8d5ac-d1e5-47d5-b12a-2513f61504f4 :: true 2022-05-22 22:56:52 | [Mutex] waiting for: [received:nodes:6e8043cd-f4a9-4053-93c4-6193d964c914:localhost] 2022-05-22 22:56:52 | [Mutex] received everything. 2022-05-22 22:56:52 | [Mutex] isItemNotified: received:node:6e8043cd-f4a9-4053-93c4-6193d964c914:localhost:node-be5a18b5-16ff-484c-9117-5047bcb58567:Node be5a18b5-16ff-484c-9117-5047bcb58567 :: true 2022-05-22 22:56:52 | [Mutex] waiting for: [received:nodes:e285e9ec-3f82-49f4-b805-7c60a5fe57e9:localhost] 2022-05-22 22:56:52 | [Mutex] waiting for: [received:nodes:e285e9ec-3f82-49f4-b805-7c60a5fe57e9:localhost] 2022-05-22 22:56:52 | [Mutex] received everything. 2022-05-22 22:56:52 | [Mutex] isItemNotified: received:node:e285e9ec-3f82-49f4-b805-7c60a5fe57e9:localhost:node-be5a18b5-16ff-484c-9117-5047bcb58567:Node be5a18b5-16ff-484c-9117-5047bcb58567 :: false |
createNodes | 1.562s |
2022-05-22 22:56:48 |
2022-05-22 22:56:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-22 22:56:48 | ------------------------------------ 2022-05-22 22:56:49 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-be5a18b5-16ff-484c-9117-5047bcb58567", "pubsub#title": "Node be5a18b5-16ff-484c-9117-5047bcb58567" } 2022-05-22 22:56:49 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-22 22:56:50 | [Mutex] waiting for: [received:nodes:676c357e-d053-4ed3-a5a1-2ec2c800dcdc:localhost] 2022-05-22 22:56:50 | [Mutex] received everything. 2022-05-22 22:56:50 | [Mutex] isItemNotified: received:node:676c357e-d053-4ed3-a5a1-2ec2c800dcdc:localhost:node-be5a18b5-16ff-484c-9117-5047bcb58567:Node be5a18b5-16ff-484c-9117-5047bcb58567 :: true |
createSubnodes | 1.023s |
2022-05-22 22:56:50 |
2022-05-22 22:56:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-22 22:56:50 | ------------------------------------ 2022-05-22 22:56:50 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-94f8d5ac-d1e5-47d5-b12a-2513f61504f4", "pubsub#title": "Node 94f8d5ac-d1e5-47d5-b12a-2513f61504f4" } 2022-05-22 22:56:50 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-22 22:56:51 | [Mutex] waiting for: [received:nodes:5667d804-844c-4090-b331-69a245f30fd9:localhost] 2022-05-22 22:56:51 | [Mutex] received everything. 2022-05-22 22:56:51 | [Mutex] isItemNotified: received:node:5667d804-844c-4090-b331-69a245f30fd9:localhost:node-94f8d5ac-d1e5-47d5-b12a-2513f61504f4:Node 94f8d5ac-d1e5-47d5-b12a-2513f61504f4 :: true |
deleteNodes | 1.027s |
2022-05-22 22:56:55 |
2022-05-22 22:56:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-22 22:56:55 | ------------------------------------ 2022-05-22 22:56:55 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-94f8d5ac-d1e5-47d5-b12a-2513f61504f4" } 2022-05-22 22:56:55 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-22 22:56:56 | [Mutex] waiting for: [received:nodes:61b071b0-e283-4621-8b65-c130ff15d266:localhost] 2022-05-22 22:56:56 | [Mutex] received everything. 2022-05-22 22:56:56 | [Mutex] isItemNotified: received:node:61b071b0-e283-4621-8b65-c130ff15d266:localhost:node-94f8d5ac-d1e5-47d5-b12a-2513f61504f4:Node 94f8d5ac-d1e5-47d5-b12a-2513f61504f4 :: false |
deleteSubnodes | 1.025s |
2022-05-22 22:56:54 |
2022-05-22 22:56:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-22 22:56:54 | ------------------------------------ 2022-05-22 22:56:54 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-be5a18b5-16ff-484c-9117-5047bcb58567" } 2022-05-22 22:56:54 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-22 22:56:55 | [Mutex] waiting for: [received:nodes:740e76a4-1d27-4454-9ea8-6e3d42370af8:localhost] 2022-05-22 22:56:55 | [Mutex] received everything. 2022-05-22 22:56:55 | [Mutex] isItemNotified: received:node:740e76a4-1d27-4454-9ea8-6e3d42370af8:localhost:node-be5a18b5-16ff-484c-9117-5047bcb58567:Node be5a18b5-16ff-484c-9117-5047bcb58567 :: false 2022-05-22 22:56:55 | [Mutex] waiting for: [received:nodes:af91f66d-7962-4ddf-8d76-fdf55c4b4eff:localhost] 2022-05-22 22:56:55 | [Mutex] received everything. 2022-05-22 22:56:55 | [Mutex] isItemNotified: received:node:af91f66d-7962-4ddf-8d76-fdf55c4b4eff:localhost:node-be5a18b5-16ff-484c-9117-5047bcb58567:Node be5a18b5-16ff-484c-9117-5047bcb58567 :: false |
publishItemsToNodes | 0.071s |
2022-05-22 22:56:53 |
2022-05-22 22:56:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-22 22:56:53 | ------------------------------------ 2022-05-22 22:56:53 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-be5a18b5-16ff-484c-9117-5047bcb58567", "entry": "<test>item-c52d624e-8425-4e41-84d1-220b9a843be9</test>", "item-id": "item-c52d624e-8425-4e41-84d1-220b9a843be9" } 2022-05-22 22:56:53 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-c52d624e-8425-4e41-84d1-220b9a843be9" } 2022-05-22 22:56:53 | [Mutex] waiting for: [published:item:notifieditem-c52d624e-8425-4e41-84d1-220b9a843be9:admin@test-domain.com] 2022-05-22 22:56:53 | [Mutex] received everything. 2022-05-22 22:56:53 | [Mutex] isItemNotified: published:item:notifieditem-c52d624e-8425-4e41-84d1-220b9a843be9:admin@test-domain.com :: true |
retractItemsFromNodes | 0.060s |
2022-05-22 22:56:53 |
2022-05-22 22:56:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-22 22:56:53 | ------------------------------------ 2022-05-22 22:56:53 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-be5a18b5-16ff-484c-9117-5047bcb58567", "item-id": "item-c52d624e-8425-4e41-84d1-220b9a843be9" } 2022-05-22 22:56:53 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-c52d624e-8425-4e41-84d1-220b9a843be9" } 2022-05-22 22:56:53 | [Mutex] received everything. 2022-05-22 22:56:53 | [Mutex] isItemNotified: retracted:item:notifieditem-c52d624e-8425-4e41-84d1-220b9a843be9:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.030s |
2022-05-22 22:56:53 |
2022-05-22 22:56:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-22 22:56:53 | ------------------------------------ 2022-05-22 22:56:53 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-be5a18b5-16ff-484c-9117-5047bcb58567", "item-id": "item-c52d624e-8425-4e41-84d1-220b9a843be9" } 2022-05-22 22:56:53 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-be5a18b5-16ff-484c-9117-5047bcb58567", "item-id": "item-c52d624e-8425-4e41-84d1-220b9a843be9", "item": [ "<item id=\"item-c52d624e-8425-4e41-84d1-220b9a843be9\"><test>item-c52d624e-8425-4e41-84d1-220b9a843be9</test></item>" ] } 2022-05-22 22:56:53 | [Mutex] notify: [retrieved:item:item-c52d624e-8425-4e41-84d1-220b9a843be9:payload-matches:true:localhost] 2022-05-22 22:56:53 | [Mutex] received everything. 2022-05-22 22:56:53 | [Mutex] isItemNotified: retrieved:item:item-c52d624e-8425-4e41-84d1-220b9a843be9:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.046s |
2022-05-22 22:56:53 |
2022-05-22 22:56:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-22 22:56:53 | ------------------------------------ 2022-05-22 22:56:53 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-05-22 22:56:53 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-94f8d5ac-d1e5-47d5-b12a-2513f61504f4", "test", "node-be5a18b5-16ff-484c-9117-5047bcb58567" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2022-05-22 22:56:53 |
2022-05-22 22:56:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-22 22:56:53 | ------------------------------------ 2022-05-22 22:56:53 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-be5a18b5-16ff-484c-9117-5047bcb58567)" } 2022-05-22 22:56:53 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.007s |
2022-05-22 22:56:52 |
2022-05-22 22:56:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-22 22:56:52 | ------------------------------------ 2022-05-22 22:56:52 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-be5a18b5-16ff-484c-9117-5047bcb58567", "jids": [ "admin@test-domain.com" ] } 2022-05-22 22:56:52 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.079s |
2022-05-22 22:56:53 |
2022-05-22 22:56:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-22 22:56:53 | ------------------------------------ 2022-05-22 22:56:53 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-be5a18b5-16ff-484c-9117-5047bcb58567", "jids": [ "admin@test-domain.com" ] } 2022-05-22 22:56:53 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |