Test duration : 9.091s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.110s |
2022-02-06 21:49:19 |
2022-02-06 21:49:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-06 21:49:19 | ------------------------------------ 2022-02-06 21:49:19 | [Mutex] waiting for: [configured:node:node-577f8094-3d7f-45d6-8a09-d0ce5e4ac55b:node-5e11f991-1f4c-4de4-9f39-03f77dd799a1] 2022-02-06 21:49:19 | [Mutex] received everything. 2022-02-06 21:49:19 | [Mutex] isItemNotified: configured:node:node-577f8094-3d7f-45d6-8a09-d0ce5e4ac55b:node-5e11f991-1f4c-4de4-9f39-03f77dd799a1 :: true 2022-02-06 21:49:20 | [Mutex] waiting for: [received:nodes:44cdd443-fd41-4248-9a1e-177e00a112af:localhost] 2022-02-06 21:49:20 | [Mutex] waiting for: [received:nodes:44cdd443-fd41-4248-9a1e-177e00a112af:localhost] 2022-02-06 21:49:20 | [Mutex] received everything. 2022-02-06 21:49:20 | [Mutex] isItemNotified: received:node:44cdd443-fd41-4248-9a1e-177e00a112af:localhost:node-577f8094-3d7f-45d6-8a09-d0ce5e4ac55b:Node 577f8094-3d7f-45d6-8a09-d0ce5e4ac55b :: true 2022-02-06 21:49:20 | [Mutex] waiting for: [received:nodes:0244aeaa-3567-4b9a-bb32-60207b1c8ef9:localhost] 2022-02-06 21:49:20 | [Mutex] waiting for: [received:nodes:0244aeaa-3567-4b9a-bb32-60207b1c8ef9:localhost] 2022-02-06 21:49:20 | [Mutex] received everything. 2022-02-06 21:49:20 | [Mutex] isItemNotified: received:node:0244aeaa-3567-4b9a-bb32-60207b1c8ef9:localhost:node-577f8094-3d7f-45d6-8a09-d0ce5e4ac55b:Node 577f8094-3d7f-45d6-8a09-d0ce5e4ac55b :: false |
createNodes | 1.697s |
2022-02-06 21:49:16 |
2022-02-06 21:49:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-06 21:49:16 | ------------------------------------ 2022-02-06 21:49:17 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-577f8094-3d7f-45d6-8a09-d0ce5e4ac55b", "pubsub#title": "Node 577f8094-3d7f-45d6-8a09-d0ce5e4ac55b" } 2022-02-06 21:49:17 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-06 21:49:18 | [Mutex] waiting for: [received:nodes:b220ab81-e72f-4ebf-a469-c27dee93020f:localhost] 2022-02-06 21:49:18 | [Mutex] waiting for: [received:nodes:b220ab81-e72f-4ebf-a469-c27dee93020f:localhost] 2022-02-06 21:49:18 | [Mutex] received everything. 2022-02-06 21:49:18 | [Mutex] isItemNotified: received:node:b220ab81-e72f-4ebf-a469-c27dee93020f:localhost:node-577f8094-3d7f-45d6-8a09-d0ce5e4ac55b:Node 577f8094-3d7f-45d6-8a09-d0ce5e4ac55b :: true |
createSubnodes | 1.029s |
2022-02-06 21:49:18 |
2022-02-06 21:49:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-06 21:49:18 | ------------------------------------ 2022-02-06 21:49:18 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-5e11f991-1f4c-4de4-9f39-03f77dd799a1", "pubsub#title": "Node 5e11f991-1f4c-4de4-9f39-03f77dd799a1" } 2022-02-06 21:49:18 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-06 21:49:19 | [Mutex] waiting for: [received:nodes:e087091e-6a56-4127-9da9-d9659f622690:localhost] 2022-02-06 21:49:19 | [Mutex] received everything. 2022-02-06 21:49:19 | [Mutex] isItemNotified: received:node:e087091e-6a56-4127-9da9-d9659f622690:localhost:node-5e11f991-1f4c-4de4-9f39-03f77dd799a1:Node 5e11f991-1f4c-4de4-9f39-03f77dd799a1 :: true |
deleteNodes | 1.021s |
2022-02-06 21:49:23 |
2022-02-06 21:49:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-06 21:49:23 | ------------------------------------ 2022-02-06 21:49:23 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-5e11f991-1f4c-4de4-9f39-03f77dd799a1" } 2022-02-06 21:49:23 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-06 21:49:24 | [Mutex] waiting for: [received:nodes:29ac2444-3479-48ef-ba0d-6ca1c356c752:localhost] 2022-02-06 21:49:24 | [Mutex] received everything. 2022-02-06 21:49:24 | [Mutex] isItemNotified: received:node:29ac2444-3479-48ef-ba0d-6ca1c356c752:localhost:node-5e11f991-1f4c-4de4-9f39-03f77dd799a1:Node 5e11f991-1f4c-4de4-9f39-03f77dd799a1 :: false |
deleteSubnodes | 1.034s |
2022-02-06 21:49:22 |
2022-02-06 21:49:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-06 21:49:22 | ------------------------------------ 2022-02-06 21:49:22 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-577f8094-3d7f-45d6-8a09-d0ce5e4ac55b" } 2022-02-06 21:49:22 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-06 21:49:23 | [Mutex] waiting for: [received:nodes:a024065f-f149-4733-8e05-b63520e99797:localhost] 2022-02-06 21:49:23 | [Mutex] received everything. 2022-02-06 21:49:23 | [Mutex] isItemNotified: received:node:a024065f-f149-4733-8e05-b63520e99797:localhost:node-577f8094-3d7f-45d6-8a09-d0ce5e4ac55b:Node 577f8094-3d7f-45d6-8a09-d0ce5e4ac55b :: false 2022-02-06 21:49:23 | [Mutex] waiting for: [received:nodes:dda02a7b-98ac-47fe-855a-358272fa0d54:localhost] 2022-02-06 21:49:23 | [Mutex] received everything. 2022-02-06 21:49:23 | [Mutex] isItemNotified: received:node:dda02a7b-98ac-47fe-855a-358272fa0d54:localhost:node-577f8094-3d7f-45d6-8a09-d0ce5e4ac55b:Node 577f8094-3d7f-45d6-8a09-d0ce5e4ac55b :: false |
publishItemsToNodes | 0.047s |
2022-02-06 21:49:21 |
2022-02-06 21:49:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-06 21:49:21 | ------------------------------------ 2022-02-06 21:49:21 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-577f8094-3d7f-45d6-8a09-d0ce5e4ac55b", "entry": "<test>item-49763d10-91a4-4a47-b125-2f47854c9bc2</test>", "item-id": "item-49763d10-91a4-4a47-b125-2f47854c9bc2" } 2022-02-06 21:49:21 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-49763d10-91a4-4a47-b125-2f47854c9bc2" } 2022-02-06 21:49:21 | [Mutex] waiting for: [published:item:notifieditem-49763d10-91a4-4a47-b125-2f47854c9bc2:admin@test-domain.com] 2022-02-06 21:49:21 | [Mutex] received everything. 2022-02-06 21:49:21 | [Mutex] isItemNotified: published:item:notifieditem-49763d10-91a4-4a47-b125-2f47854c9bc2:admin@test-domain.com :: true |
retractItemsFromNodes | 0.099s |
2022-02-06 21:49:21 |
2022-02-06 21:49:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-06 21:49:21 | ------------------------------------ 2022-02-06 21:49:21 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-577f8094-3d7f-45d6-8a09-d0ce5e4ac55b", "item-id": "item-49763d10-91a4-4a47-b125-2f47854c9bc2" } 2022-02-06 21:49:21 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-49763d10-91a4-4a47-b125-2f47854c9bc2" } 2022-02-06 21:49:21 | [Mutex] waiting for: [retracted:item:notifieditem-49763d10-91a4-4a47-b125-2f47854c9bc2:admin@test-domain.com] 2022-02-06 21:49:21 | [Mutex] received everything. 2022-02-06 21:49:21 | [Mutex] isItemNotified: retracted:item:notifieditem-49763d10-91a4-4a47-b125-2f47854c9bc2:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.123s |
2022-02-06 21:49:21 |
2022-02-06 21:49:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-06 21:49:21 | ------------------------------------ 2022-02-06 21:49:21 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-577f8094-3d7f-45d6-8a09-d0ce5e4ac55b", "item-id": "item-49763d10-91a4-4a47-b125-2f47854c9bc2" } 2022-02-06 21:49:21 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-577f8094-3d7f-45d6-8a09-d0ce5e4ac55b", "item-id": "item-49763d10-91a4-4a47-b125-2f47854c9bc2", "item": [ "<item id=\"item-49763d10-91a4-4a47-b125-2f47854c9bc2\"><test>item-49763d10-91a4-4a47-b125-2f47854c9bc2</test></item>" ] } 2022-02-06 21:49:21 | [Mutex] notify: [retrieved:item:item-49763d10-91a4-4a47-b125-2f47854c9bc2:payload-matches:true:localhost] 2022-02-06 21:49:21 | [Mutex] received everything. 2022-02-06 21:49:21 | [Mutex] isItemNotified: retrieved:item:item-49763d10-91a4-4a47-b125-2f47854c9bc2:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.055s |
2022-02-06 21:49:21 |
2022-02-06 21:49:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-06 21:49:21 | ------------------------------------ 2022-02-06 21:49:21 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-02-06 21:49:21 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-5e11f991-1f4c-4de4-9f39-03f77dd799a1", "node-577f8094-3d7f-45d6-8a09-d0ce5e4ac55b" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2022-02-06 21:49:21 |
2022-02-06 21:49:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-06 21:49:21 | ------------------------------------ 2022-02-06 21:49:21 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-577f8094-3d7f-45d6-8a09-d0ce5e4ac55b)" } 2022-02-06 21:49:21 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.013s |
2022-02-06 21:49:20 |
2022-02-06 21:49:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-06 21:49:20 | ------------------------------------ 2022-02-06 21:49:20 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-577f8094-3d7f-45d6-8a09-d0ce5e4ac55b", "jids": [ "admin@test-domain.com" ] } 2022-02-06 21:49:20 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.043s |
2022-02-06 21:49:21 |
2022-02-06 21:49:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-06 21:49:21 | ------------------------------------ 2022-02-06 21:49:21 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-577f8094-3d7f-45d6-8a09-d0ce5e4ac55b", "jids": [ "admin@test-domain.com" ] } 2022-02-06 21:49:21 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |