Test duration : 8.591s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.107s |
2022-08-17 22:33:13 |
2022-08-17 22:33:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-17 22:33:13 | ------------------------------------ 2022-08-17 22:33:13 | [Mutex] waiting for: [configured:node:node-c8318ec5-f4e3-491b-b770-230e9251ffde:node-b3a24f63-4f3e-4e03-8ca3-fc2354975e35] 2022-08-17 22:33:13 | [Mutex] received everything. 2022-08-17 22:33:13 | [Mutex] isItemNotified: configured:node:node-c8318ec5-f4e3-491b-b770-230e9251ffde:node-b3a24f63-4f3e-4e03-8ca3-fc2354975e35 :: true 2022-08-17 22:33:14 | [Mutex] waiting for: [received:nodes:90d9be11-cbbd-43c3-831c-cbee0f908231:localhost] 2022-08-17 22:33:14 | [Mutex] received everything. 2022-08-17 22:33:14 | [Mutex] isItemNotified: received:node:90d9be11-cbbd-43c3-831c-cbee0f908231:localhost:node-c8318ec5-f4e3-491b-b770-230e9251ffde:Node c8318ec5-f4e3-491b-b770-230e9251ffde :: true 2022-08-17 22:33:14 | [Mutex] waiting for: [received:nodes:d399c2dd-8b64-4b8c-8de4-aca3ac9c6016:localhost] 2022-08-17 22:33:14 | [Mutex] received everything. 2022-08-17 22:33:14 | [Mutex] isItemNotified: received:node:d399c2dd-8b64-4b8c-8de4-aca3ac9c6016:localhost:node-c8318ec5-f4e3-491b-b770-230e9251ffde:Node c8318ec5-f4e3-491b-b770-230e9251ffde :: false |
createNodes | 1.545s |
2022-08-17 22:33:10 |
2022-08-17 22:33:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-17 22:33:10 | ------------------------------------ 2022-08-17 22:33:11 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-c8318ec5-f4e3-491b-b770-230e9251ffde", "pubsub#title": "Node c8318ec5-f4e3-491b-b770-230e9251ffde" } 2022-08-17 22:33:11 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-17 22:33:12 | [Mutex] waiting for: [received:nodes:7418f2e6-0d4c-4d7d-9196-22eddad3510d:localhost] 2022-08-17 22:33:12 | [Mutex] received everything. 2022-08-17 22:33:12 | [Mutex] isItemNotified: received:node:7418f2e6-0d4c-4d7d-9196-22eddad3510d:localhost:node-c8318ec5-f4e3-491b-b770-230e9251ffde:Node c8318ec5-f4e3-491b-b770-230e9251ffde :: true |
createSubnodes | 1.031s |
2022-08-17 22:33:12 |
2022-08-17 22:33:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-17 22:33:12 | ------------------------------------ 2022-08-17 22:33:12 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-b3a24f63-4f3e-4e03-8ca3-fc2354975e35", "pubsub#title": "Node b3a24f63-4f3e-4e03-8ca3-fc2354975e35" } 2022-08-17 22:33:12 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-17 22:33:13 | [Mutex] waiting for: [received:nodes:f0620381-3076-4439-9331-ce839b40c166:localhost] 2022-08-17 22:33:13 | [Mutex] waiting for: [received:nodes:f0620381-3076-4439-9331-ce839b40c166:localhost] 2022-08-17 22:33:13 | [Mutex] waiting for: [received:nodes:f0620381-3076-4439-9331-ce839b40c166:localhost] 2022-08-17 22:33:13 | [Mutex] received everything. 2022-08-17 22:33:13 | [Mutex] isItemNotified: received:node:f0620381-3076-4439-9331-ce839b40c166:localhost:node-b3a24f63-4f3e-4e03-8ca3-fc2354975e35:Node b3a24f63-4f3e-4e03-8ca3-fc2354975e35 :: true |
deleteNodes | 1.024s |
2022-08-17 22:33:17 |
2022-08-17 22:33:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-17 22:33:17 | ------------------------------------ 2022-08-17 22:33:17 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-b3a24f63-4f3e-4e03-8ca3-fc2354975e35" } 2022-08-17 22:33:17 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-17 22:33:18 | [Mutex] waiting for: [received:nodes:6470f867-560b-4d00-b3d2-bee17846da74:localhost] 2022-08-17 22:33:18 | [Mutex] waiting for: [received:nodes:6470f867-560b-4d00-b3d2-bee17846da74:localhost] 2022-08-17 22:33:18 | [Mutex] received everything. 2022-08-17 22:33:18 | [Mutex] isItemNotified: received:node:6470f867-560b-4d00-b3d2-bee17846da74:localhost:node-b3a24f63-4f3e-4e03-8ca3-fc2354975e35:Node b3a24f63-4f3e-4e03-8ca3-fc2354975e35 :: false |
deleteSubnodes | 1.031s |
2022-08-17 22:33:16 |
2022-08-17 22:33:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-17 22:33:16 | ------------------------------------ 2022-08-17 22:33:16 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-c8318ec5-f4e3-491b-b770-230e9251ffde" } 2022-08-17 22:33:16 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-17 22:33:17 | [Mutex] waiting for: [received:nodes:6cb8e481-7839-4d88-a967-6b509b11a60b:localhost] 2022-08-17 22:33:17 | [Mutex] received everything. 2022-08-17 22:33:17 | [Mutex] isItemNotified: received:node:6cb8e481-7839-4d88-a967-6b509b11a60b:localhost:node-c8318ec5-f4e3-491b-b770-230e9251ffde:Node c8318ec5-f4e3-491b-b770-230e9251ffde :: false 2022-08-17 22:33:17 | [Mutex] waiting for: [received:nodes:d9125cc7-ea69-4481-abf7-3d3f845d3c4a:localhost] 2022-08-17 22:33:17 | [Mutex] received everything. 2022-08-17 22:33:17 | [Mutex] isItemNotified: received:node:d9125cc7-ea69-4481-abf7-3d3f845d3c4a:localhost:node-c8318ec5-f4e3-491b-b770-230e9251ffde:Node c8318ec5-f4e3-491b-b770-230e9251ffde :: false |
publishItemsToNodes | 0.049s |
2022-08-17 22:33:15 |
2022-08-17 22:33:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-17 22:33:15 | ------------------------------------ 2022-08-17 22:33:15 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-c8318ec5-f4e3-491b-b770-230e9251ffde", "entry": "<test>item-c60f996b-dacd-41cd-9691-5d31e65ddf58</test>", "item-id": "item-c60f996b-dacd-41cd-9691-5d31e65ddf58" } 2022-08-17 22:33:15 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-c60f996b-dacd-41cd-9691-5d31e65ddf58" } 2022-08-17 22:33:15 | [Mutex] waiting for: [published:item:notifieditem-c60f996b-dacd-41cd-9691-5d31e65ddf58:admin@test-domain.com] 2022-08-17 22:33:15 | [Mutex] received everything. 2022-08-17 22:33:15 | [Mutex] isItemNotified: published:item:notifieditem-c60f996b-dacd-41cd-9691-5d31e65ddf58:admin@test-domain.com :: true |
retractItemsFromNodes | 0.055s |
2022-08-17 22:33:15 |
2022-08-17 22:33:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-17 22:33:15 | ------------------------------------ 2022-08-17 22:33:15 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-c8318ec5-f4e3-491b-b770-230e9251ffde", "item-id": "item-c60f996b-dacd-41cd-9691-5d31e65ddf58" } 2022-08-17 22:33:15 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-c60f996b-dacd-41cd-9691-5d31e65ddf58" } 2022-08-17 22:33:15 | [Mutex] received everything. 2022-08-17 22:33:15 | [Mutex] isItemNotified: retracted:item:notifieditem-c60f996b-dacd-41cd-9691-5d31e65ddf58:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.051s |
2022-08-17 22:33:15 |
2022-08-17 22:33:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-17 22:33:15 | ------------------------------------ 2022-08-17 22:33:15 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-c8318ec5-f4e3-491b-b770-230e9251ffde", "item-id": "item-c60f996b-dacd-41cd-9691-5d31e65ddf58" } 2022-08-17 22:33:15 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-c8318ec5-f4e3-491b-b770-230e9251ffde", "item-id": "item-c60f996b-dacd-41cd-9691-5d31e65ddf58", "item": [ "<item id=\"item-c60f996b-dacd-41cd-9691-5d31e65ddf58\"><test>item-c60f996b-dacd-41cd-9691-5d31e65ddf58</test></item>" ] } 2022-08-17 22:33:15 | [Mutex] notify: [retrieved:item:item-c60f996b-dacd-41cd-9691-5d31e65ddf58:payload-matches:true:localhost] 2022-08-17 22:33:15 | [Mutex] received everything. 2022-08-17 22:33:15 | [Mutex] isItemNotified: retrieved:item:item-c60f996b-dacd-41cd-9691-5d31e65ddf58:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.054s |
2022-08-17 22:33:15 |
2022-08-17 22:33:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-17 22:33:15 | ------------------------------------ 2022-08-17 22:33:15 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-08-17 22:33:15 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-c8318ec5-f4e3-491b-b770-230e9251ffde", "node-b3a24f63-4f3e-4e03-8ca3-fc2354975e35" ] } |
retrieveUserSubscriptionsWithRegex | 0.048s |
2022-08-17 22:33:15 |
2022-08-17 22:33:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-17 22:33:15 | ------------------------------------ 2022-08-17 22:33:15 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-c8318ec5-f4e3-491b-b770-230e9251ffde)" } 2022-08-17 22:33:15 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.010s |
2022-08-17 22:33:14 |
2022-08-17 22:33:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-17 22:33:14 | ------------------------------------ 2022-08-17 22:33:14 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-c8318ec5-f4e3-491b-b770-230e9251ffde", "jids": [ "admin@test-domain.com" ] } 2022-08-17 22:33:14 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.055s |
2022-08-17 22:33:15 |
2022-08-17 22:33:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-17 22:33:15 | ------------------------------------ 2022-08-17 22:33:15 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-c8318ec5-f4e3-491b-b770-230e9251ffde", "jids": [ "admin@test-domain.com" ] } 2022-08-17 22:33:15 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |