Test duration : 8.625s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.120s |
2022-09-27 22:36:45 |
2022-09-27 22:36:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-27 22:36:45 | ------------------------------------ 2022-09-27 22:36:45 | [Mutex] waiting for: [configured:node:node-928a9a3d-f74c-4a29-a983-04f40dec74d1:node-f7371bae-9e2d-4403-979d-29e28965dadb] 2022-09-27 22:36:45 | [Mutex] received everything. 2022-09-27 22:36:45 | [Mutex] isItemNotified: configured:node:node-928a9a3d-f74c-4a29-a983-04f40dec74d1:node-f7371bae-9e2d-4403-979d-29e28965dadb :: true 2022-09-27 22:36:46 | [Mutex] waiting for: [received:nodes:28565f8e-bd81-4cd7-b614-58c5f2df0d83:localhost] 2022-09-27 22:36:46 | [Mutex] received everything. 2022-09-27 22:36:46 | [Mutex] isItemNotified: received:node:28565f8e-bd81-4cd7-b614-58c5f2df0d83:localhost:node-928a9a3d-f74c-4a29-a983-04f40dec74d1:Node 928a9a3d-f74c-4a29-a983-04f40dec74d1 :: true 2022-09-27 22:36:46 | [Mutex] waiting for: [received:nodes:2865f5c4-b02f-431d-9d68-e4bd6d9169d8:localhost] 2022-09-27 22:36:46 | [Mutex] received everything. 2022-09-27 22:36:46 | [Mutex] isItemNotified: received:node:2865f5c4-b02f-431d-9d68-e4bd6d9169d8:localhost:node-928a9a3d-f74c-4a29-a983-04f40dec74d1:Node 928a9a3d-f74c-4a29-a983-04f40dec74d1 :: false |
createNodes | 1.551s |
2022-09-27 22:36:42 |
2022-09-27 22:36:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-27 22:36:42 | ------------------------------------ 2022-09-27 22:36:43 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-928a9a3d-f74c-4a29-a983-04f40dec74d1", "pubsub#title": "Node 928a9a3d-f74c-4a29-a983-04f40dec74d1" } 2022-09-27 22:36:43 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-09-27 22:36:44 | [Mutex] waiting for: [received:nodes:3d27b8d3-6c4b-4804-bd81-f986b7286999:localhost] 2022-09-27 22:36:44 | [Mutex] received everything. 2022-09-27 22:36:44 | [Mutex] isItemNotified: received:node:3d27b8d3-6c4b-4804-bd81-f986b7286999:localhost:node-928a9a3d-f74c-4a29-a983-04f40dec74d1:Node 928a9a3d-f74c-4a29-a983-04f40dec74d1 :: true |
createSubnodes | 1.022s |
2022-09-27 22:36:44 |
2022-09-27 22:36:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-27 22:36:44 | ------------------------------------ 2022-09-27 22:36:44 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-f7371bae-9e2d-4403-979d-29e28965dadb", "pubsub#title": "Node f7371bae-9e2d-4403-979d-29e28965dadb" } 2022-09-27 22:36:44 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-09-27 22:36:45 | [Mutex] waiting for: [received:nodes:acaef026-63ff-4901-aa0a-ccb8b224b3cc:localhost] 2022-09-27 22:36:45 | [Mutex] received everything. 2022-09-27 22:36:45 | [Mutex] isItemNotified: received:node:acaef026-63ff-4901-aa0a-ccb8b224b3cc:localhost:node-f7371bae-9e2d-4403-979d-29e28965dadb:Node f7371bae-9e2d-4403-979d-29e28965dadb :: true |
deleteNodes | 1.020s |
2022-09-27 22:36:49 |
2022-09-27 22:36:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-27 22:36:49 | ------------------------------------ 2022-09-27 22:36:49 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-f7371bae-9e2d-4403-979d-29e28965dadb" } 2022-09-27 22:36:49 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-09-27 22:36:50 | [Mutex] waiting for: [received:nodes:8db9f86f-915e-4ea9-b138-0234eb0becba:localhost] 2022-09-27 22:36:50 | [Mutex] waiting for: [received:nodes:8db9f86f-915e-4ea9-b138-0234eb0becba:localhost] 2022-09-27 22:36:50 | [Mutex] waiting for: [received:nodes:8db9f86f-915e-4ea9-b138-0234eb0becba:localhost] 2022-09-27 22:36:50 | [Mutex] received everything. 2022-09-27 22:36:50 | [Mutex] isItemNotified: received:node:8db9f86f-915e-4ea9-b138-0234eb0becba:localhost:node-f7371bae-9e2d-4403-979d-29e28965dadb:Node f7371bae-9e2d-4403-979d-29e28965dadb :: false |
deleteSubnodes | 1.024s |
2022-09-27 22:36:48 |
2022-09-27 22:36:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-27 22:36:48 | ------------------------------------ 2022-09-27 22:36:48 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-928a9a3d-f74c-4a29-a983-04f40dec74d1" } 2022-09-27 22:36:48 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-09-27 22:36:49 | [Mutex] waiting for: [received:nodes:6e59c68f-3273-4526-8d57-724ac6fc4e6c:localhost] 2022-09-27 22:36:49 | [Mutex] received everything. 2022-09-27 22:36:49 | [Mutex] isItemNotified: received:node:6e59c68f-3273-4526-8d57-724ac6fc4e6c:localhost:node-928a9a3d-f74c-4a29-a983-04f40dec74d1:Node 928a9a3d-f74c-4a29-a983-04f40dec74d1 :: false 2022-09-27 22:36:49 | [Mutex] waiting for: [received:nodes:ec897d59-26ff-431b-ac15-e2256cb0654b:localhost] 2022-09-27 22:36:49 | [Mutex] received everything. 2022-09-27 22:36:49 | [Mutex] isItemNotified: received:node:ec897d59-26ff-431b-ac15-e2256cb0654b:localhost:node-928a9a3d-f74c-4a29-a983-04f40dec74d1:Node 928a9a3d-f74c-4a29-a983-04f40dec74d1 :: false |
publishItemsToNodes | 0.050s |
2022-09-27 22:36:47 |
2022-09-27 22:36:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-27 22:36:47 | ------------------------------------ 2022-09-27 22:36:47 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-928a9a3d-f74c-4a29-a983-04f40dec74d1", "entry": "<test>item-4cb47e67-6b63-4a77-a877-7e476b2ea163</test>", "item-id": "item-4cb47e67-6b63-4a77-a877-7e476b2ea163" } 2022-09-27 22:36:47 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-4cb47e67-6b63-4a77-a877-7e476b2ea163" } 2022-09-27 22:36:47 | [Mutex] waiting for: [published:item:notifieditem-4cb47e67-6b63-4a77-a877-7e476b2ea163:admin@test-domain.com] 2022-09-27 22:36:47 | [Mutex] received everything. 2022-09-27 22:36:47 | [Mutex] isItemNotified: published:item:notifieditem-4cb47e67-6b63-4a77-a877-7e476b2ea163:admin@test-domain.com :: true |
retractItemsFromNodes | 0.055s |
2022-09-27 22:36:47 |
2022-09-27 22:36:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-27 22:36:47 | ------------------------------------ 2022-09-27 22:36:47 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-928a9a3d-f74c-4a29-a983-04f40dec74d1", "item-id": "item-4cb47e67-6b63-4a77-a877-7e476b2ea163" } 2022-09-27 22:36:47 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-4cb47e67-6b63-4a77-a877-7e476b2ea163" } 2022-09-27 22:36:47 | [Mutex] received everything. 2022-09-27 22:36:47 | [Mutex] isItemNotified: retracted:item:notifieditem-4cb47e67-6b63-4a77-a877-7e476b2ea163:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.063s |
2022-09-27 22:36:47 |
2022-09-27 22:36:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-27 22:36:47 | ------------------------------------ 2022-09-27 22:36:47 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-928a9a3d-f74c-4a29-a983-04f40dec74d1", "item-id": "item-4cb47e67-6b63-4a77-a877-7e476b2ea163" } 2022-09-27 22:36:47 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-928a9a3d-f74c-4a29-a983-04f40dec74d1", "item-id": "item-4cb47e67-6b63-4a77-a877-7e476b2ea163", "item": [ "<item id=\"item-4cb47e67-6b63-4a77-a877-7e476b2ea163\"><test>item-4cb47e67-6b63-4a77-a877-7e476b2ea163</test></item>" ] } 2022-09-27 22:36:47 | [Mutex] notify: [retrieved:item:item-4cb47e67-6b63-4a77-a877-7e476b2ea163:payload-matches:true:localhost] 2022-09-27 22:36:47 | [Mutex] received everything. 2022-09-27 22:36:47 | [Mutex] isItemNotified: retrieved:item:item-4cb47e67-6b63-4a77-a877-7e476b2ea163:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.050s |
2022-09-27 22:36:47 |
2022-09-27 22:36:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-27 22:36:47 | ------------------------------------ 2022-09-27 22:36:47 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-09-27 22:36:47 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-928a9a3d-f74c-4a29-a983-04f40dec74d1", "test", "node-f7371bae-9e2d-4403-979d-29e28965dadb" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2022-09-27 22:36:47 |
2022-09-27 22:36:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-27 22:36:47 | ------------------------------------ 2022-09-27 22:36:47 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-928a9a3d-f74c-4a29-a983-04f40dec74d1)" } 2022-09-27 22:36:47 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.011s |
2022-09-27 22:36:46 |
2022-09-27 22:36:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-27 22:36:46 | ------------------------------------ 2022-09-27 22:36:46 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-928a9a3d-f74c-4a29-a983-04f40dec74d1", "jids": [ "admin@test-domain.com" ] } 2022-09-27 22:36:46 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.075s |
2022-09-27 22:36:47 |
2022-09-27 22:36:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-27 22:36:47 | ------------------------------------ 2022-09-27 22:36:47 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-928a9a3d-f74c-4a29-a983-04f40dec74d1", "jids": [ "admin@test-domain.com" ] } 2022-09-27 22:36:47 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |