Test duration : 9.123s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.096s |
2022-02-23 21:32:56 |
2022-02-23 21:32:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-23 21:32:56 | ------------------------------------ 2022-02-23 21:32:56 | [Mutex] waiting for: [configured:node:node-92da9bf4-9558-4e5c-9096-5b8b14af5023:node-68fe48e4-9d26-44a3-9ff4-615e6e55ac98] 2022-02-23 21:32:56 | [Mutex] received everything. 2022-02-23 21:32:56 | [Mutex] isItemNotified: configured:node:node-92da9bf4-9558-4e5c-9096-5b8b14af5023:node-68fe48e4-9d26-44a3-9ff4-615e6e55ac98 :: true 2022-02-23 21:32:57 | [Mutex] waiting for: [received:nodes:5a960a7a-8324-4cb2-87bb-8ff637351c40:localhost] 2022-02-23 21:32:57 | [Mutex] received everything. 2022-02-23 21:32:57 | [Mutex] isItemNotified: received:node:5a960a7a-8324-4cb2-87bb-8ff637351c40:localhost:node-92da9bf4-9558-4e5c-9096-5b8b14af5023:Node 92da9bf4-9558-4e5c-9096-5b8b14af5023 :: true 2022-02-23 21:32:57 | [Mutex] waiting for: [received:nodes:f12cefa5-b7c0-40b8-8f3b-091a2ab12f91:localhost] 2022-02-23 21:32:57 | [Mutex] received everything. 2022-02-23 21:32:57 | [Mutex] isItemNotified: received:node:f12cefa5-b7c0-40b8-8f3b-091a2ab12f91:localhost:node-92da9bf4-9558-4e5c-9096-5b8b14af5023:Node 92da9bf4-9558-4e5c-9096-5b8b14af5023 :: false |
createNodes | 1.733s |
2022-02-23 21:32:53 |
2022-02-23 21:32:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-23 21:32:53 | ------------------------------------ 2022-02-23 21:32:54 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-92da9bf4-9558-4e5c-9096-5b8b14af5023", "pubsub#title": "Node 92da9bf4-9558-4e5c-9096-5b8b14af5023" } 2022-02-23 21:32:54 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-23 21:32:55 | [Mutex] waiting for: [received:nodes:dd123b8e-1bc3-4a0c-bd33-ccbfd5583f8b:localhost] 2022-02-23 21:32:55 | [Mutex] received everything. 2022-02-23 21:32:55 | [Mutex] isItemNotified: received:node:dd123b8e-1bc3-4a0c-bd33-ccbfd5583f8b:localhost:node-92da9bf4-9558-4e5c-9096-5b8b14af5023:Node 92da9bf4-9558-4e5c-9096-5b8b14af5023 :: true |
createSubnodes | 1.024s |
2022-02-23 21:32:55 |
2022-02-23 21:32:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-23 21:32:55 | ------------------------------------ 2022-02-23 21:32:55 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-68fe48e4-9d26-44a3-9ff4-615e6e55ac98", "pubsub#title": "Node 68fe48e4-9d26-44a3-9ff4-615e6e55ac98" } 2022-02-23 21:32:55 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-23 21:32:56 | [Mutex] waiting for: [received:nodes:9c6c77d3-b534-4475-8ad4-0f8c510b1af1:localhost] 2022-02-23 21:32:56 | [Mutex] received everything. 2022-02-23 21:32:56 | [Mutex] isItemNotified: received:node:9c6c77d3-b534-4475-8ad4-0f8c510b1af1:localhost:node-68fe48e4-9d26-44a3-9ff4-615e6e55ac98:Node 68fe48e4-9d26-44a3-9ff4-615e6e55ac98 :: true |
deleteNodes | 1.021s |
2022-02-23 21:33:00 |
2022-02-23 21:33:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-23 21:33:00 | ------------------------------------ 2022-02-23 21:33:00 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-68fe48e4-9d26-44a3-9ff4-615e6e55ac98" } 2022-02-23 21:33:00 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-23 21:33:01 | [Mutex] waiting for: [received:nodes:d2cb0714-07bd-4403-a37d-99daa6f84506:localhost] 2022-02-23 21:33:01 | [Mutex] waiting for: [received:nodes:d2cb0714-07bd-4403-a37d-99daa6f84506:localhost] 2022-02-23 21:33:01 | [Mutex] received everything. 2022-02-23 21:33:01 | [Mutex] isItemNotified: received:node:d2cb0714-07bd-4403-a37d-99daa6f84506:localhost:node-68fe48e4-9d26-44a3-9ff4-615e6e55ac98:Node 68fe48e4-9d26-44a3-9ff4-615e6e55ac98 :: false |
deleteSubnodes | 1.025s |
2022-02-23 21:32:59 |
2022-02-23 21:32:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-23 21:32:59 | ------------------------------------ 2022-02-23 21:32:59 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-92da9bf4-9558-4e5c-9096-5b8b14af5023" } 2022-02-23 21:32:59 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-23 21:33:00 | [Mutex] waiting for: [received:nodes:f97a035f-5a8e-4215-a3e0-c95598494fd1:localhost] 2022-02-23 21:33:00 | [Mutex] received everything. 2022-02-23 21:33:00 | [Mutex] isItemNotified: received:node:f97a035f-5a8e-4215-a3e0-c95598494fd1:localhost:node-92da9bf4-9558-4e5c-9096-5b8b14af5023:Node 92da9bf4-9558-4e5c-9096-5b8b14af5023 :: false 2022-02-23 21:33:00 | [Mutex] waiting for: [received:nodes:8c48505b-d4e9-413a-8784-79b405da450a:localhost] 2022-02-23 21:33:00 | [Mutex] received everything. 2022-02-23 21:33:00 | [Mutex] isItemNotified: received:node:8c48505b-d4e9-413a-8784-79b405da450a:localhost:node-92da9bf4-9558-4e5c-9096-5b8b14af5023:Node 92da9bf4-9558-4e5c-9096-5b8b14af5023 :: false |
publishItemsToNodes | 0.118s |
2022-02-23 21:32:58 |
2022-02-23 21:32:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-23 21:32:58 | ------------------------------------ 2022-02-23 21:32:58 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-92da9bf4-9558-4e5c-9096-5b8b14af5023", "entry": "<test>item-ca356303-7e68-487a-bf6a-b06ee18b825c</test>", "item-id": "item-ca356303-7e68-487a-bf6a-b06ee18b825c" } 2022-02-23 21:32:58 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-ca356303-7e68-487a-bf6a-b06ee18b825c" } 2022-02-23 21:32:58 | [Mutex] waiting for: [published:item:notifieditem-ca356303-7e68-487a-bf6a-b06ee18b825c:admin@test-domain.com] 2022-02-23 21:32:58 | [Mutex] received everything. 2022-02-23 21:32:58 | [Mutex] isItemNotified: published:item:notifieditem-ca356303-7e68-487a-bf6a-b06ee18b825c:admin@test-domain.com :: true |
retractItemsFromNodes | 0.059s |
2022-02-23 21:32:58 |
2022-02-23 21:32:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-23 21:32:58 | ------------------------------------ 2022-02-23 21:32:58 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-92da9bf4-9558-4e5c-9096-5b8b14af5023", "item-id": "item-ca356303-7e68-487a-bf6a-b06ee18b825c" } 2022-02-23 21:32:58 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-ca356303-7e68-487a-bf6a-b06ee18b825c" } 2022-02-23 21:32:58 | [Mutex] received everything. 2022-02-23 21:32:58 | [Mutex] isItemNotified: retracted:item:notifieditem-ca356303-7e68-487a-bf6a-b06ee18b825c:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.019s |
2022-02-23 21:32:58 |
2022-02-23 21:32:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-23 21:32:58 | ------------------------------------ 2022-02-23 21:32:58 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-92da9bf4-9558-4e5c-9096-5b8b14af5023", "item-id": "item-ca356303-7e68-487a-bf6a-b06ee18b825c" } 2022-02-23 21:32:58 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-92da9bf4-9558-4e5c-9096-5b8b14af5023", "item-id": "item-ca356303-7e68-487a-bf6a-b06ee18b825c", "item": [ "<item id=\"item-ca356303-7e68-487a-bf6a-b06ee18b825c\"><test>item-ca356303-7e68-487a-bf6a-b06ee18b825c</test></item>" ] } 2022-02-23 21:32:58 | [Mutex] notify: [retrieved:item:item-ca356303-7e68-487a-bf6a-b06ee18b825c:payload-matches:true:localhost] 2022-02-23 21:32:58 | [Mutex] received everything. 2022-02-23 21:32:58 | [Mutex] isItemNotified: retrieved:item:item-ca356303-7e68-487a-bf6a-b06ee18b825c:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.066s |
2022-02-23 21:32:58 |
2022-02-23 21:32:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-23 21:32:58 | ------------------------------------ 2022-02-23 21:32:58 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-02-23 21:32:58 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-68fe48e4-9d26-44a3-9ff4-615e6e55ac98", "test", "node-92da9bf4-9558-4e5c-9096-5b8b14af5023" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2022-02-23 21:32:58 |
2022-02-23 21:32:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-23 21:32:58 | ------------------------------------ 2022-02-23 21:32:58 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-92da9bf4-9558-4e5c-9096-5b8b14af5023)" } 2022-02-23 21:32:58 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.011s |
2022-02-23 21:32:57 |
2022-02-23 21:32:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-23 21:32:57 | ------------------------------------ 2022-02-23 21:32:57 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-92da9bf4-9558-4e5c-9096-5b8b14af5023", "jids": [ "admin@test-domain.com" ] } 2022-02-23 21:32:57 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.087s |
2022-02-23 21:32:58 |
2022-02-23 21:32:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-23 21:32:58 | ------------------------------------ 2022-02-23 21:32:58 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-92da9bf4-9558-4e5c-9096-5b8b14af5023", "jids": [ "admin@test-domain.com" ] } 2022-02-23 21:32:58 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |