Test duration : 8.657s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.086s |
2022-07-22 22:33:17 |
2022-07-22 22:33:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-22 22:33:17 | ------------------------------------ 2022-07-22 22:33:17 | [Mutex] waiting for: [configured:node:node-59c3cf54-a16c-455c-98bb-820b73cf3950:node-e8b489e9-5ef5-4b68-b21d-dd0807034514] 2022-07-22 22:33:17 | [Mutex] received everything. 2022-07-22 22:33:17 | [Mutex] isItemNotified: configured:node:node-59c3cf54-a16c-455c-98bb-820b73cf3950:node-e8b489e9-5ef5-4b68-b21d-dd0807034514 :: true 2022-07-22 22:33:18 | [Mutex] waiting for: [received:nodes:455f4080-a089-49d7-b728-48c8476236f7:localhost] 2022-07-22 22:33:18 | [Mutex] received everything. 2022-07-22 22:33:18 | [Mutex] isItemNotified: received:node:455f4080-a089-49d7-b728-48c8476236f7:localhost:node-59c3cf54-a16c-455c-98bb-820b73cf3950:Node 59c3cf54-a16c-455c-98bb-820b73cf3950 :: true 2022-07-22 22:33:18 | [Mutex] waiting for: [received:nodes:fa32643a-ef4e-4a30-a99e-3b3dfb637a3a:localhost] 2022-07-22 22:33:18 | [Mutex] waiting for: [received:nodes:fa32643a-ef4e-4a30-a99e-3b3dfb637a3a:localhost] 2022-07-22 22:33:18 | [Mutex] received everything. 2022-07-22 22:33:18 | [Mutex] isItemNotified: received:node:fa32643a-ef4e-4a30-a99e-3b3dfb637a3a:localhost:node-59c3cf54-a16c-455c-98bb-820b73cf3950:Node 59c3cf54-a16c-455c-98bb-820b73cf3950 :: false |
createNodes | 1.524s |
2022-07-22 22:33:14 |
2022-07-22 22:33:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-22 22:33:14 | ------------------------------------ 2022-07-22 22:33:15 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-59c3cf54-a16c-455c-98bb-820b73cf3950", "pubsub#title": "Node 59c3cf54-a16c-455c-98bb-820b73cf3950" } 2022-07-22 22:33:15 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-22 22:33:16 | [Mutex] waiting for: [received:nodes:bd17187c-a41f-4687-8055-de1796ed4b14:localhost] 2022-07-22 22:33:16 | [Mutex] waiting for: [received:nodes:bd17187c-a41f-4687-8055-de1796ed4b14:localhost] 2022-07-22 22:33:16 | [Mutex] received everything. 2022-07-22 22:33:16 | [Mutex] isItemNotified: received:node:bd17187c-a41f-4687-8055-de1796ed4b14:localhost:node-59c3cf54-a16c-455c-98bb-820b73cf3950:Node 59c3cf54-a16c-455c-98bb-820b73cf3950 :: true |
createSubnodes | 1.023s |
2022-07-22 22:33:16 |
2022-07-22 22:33:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-22 22:33:16 | ------------------------------------ 2022-07-22 22:33:16 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-e8b489e9-5ef5-4b68-b21d-dd0807034514", "pubsub#title": "Node e8b489e9-5ef5-4b68-b21d-dd0807034514" } 2022-07-22 22:33:16 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-22 22:33:17 | [Mutex] waiting for: [received:nodes:9cd9062e-7625-4461-9a4b-f0fc3a7d1317:localhost] 2022-07-22 22:33:17 | [Mutex] waiting for: [received:nodes:9cd9062e-7625-4461-9a4b-f0fc3a7d1317:localhost] 2022-07-22 22:33:17 | [Mutex] received everything. 2022-07-22 22:33:17 | [Mutex] isItemNotified: received:node:9cd9062e-7625-4461-9a4b-f0fc3a7d1317:localhost:node-e8b489e9-5ef5-4b68-b21d-dd0807034514:Node e8b489e9-5ef5-4b68-b21d-dd0807034514 :: true |
deleteNodes | 1.059s |
2022-07-22 22:33:21 |
2022-07-22 22:33:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-22 22:33:21 | ------------------------------------ 2022-07-22 22:33:21 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-e8b489e9-5ef5-4b68-b21d-dd0807034514" } 2022-07-22 22:33:21 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-22 22:33:22 | [Mutex] waiting for: [received:nodes:bd5ecc3b-d78b-4ee1-a619-45c04e806799:localhost] 2022-07-22 22:33:22 | [Mutex] waiting for: [received:nodes:bd5ecc3b-d78b-4ee1-a619-45c04e806799:localhost] 2022-07-22 22:33:22 | [Mutex] received everything. 2022-07-22 22:33:22 | [Mutex] isItemNotified: received:node:bd5ecc3b-d78b-4ee1-a619-45c04e806799:localhost:node-e8b489e9-5ef5-4b68-b21d-dd0807034514:Node e8b489e9-5ef5-4b68-b21d-dd0807034514 :: false |
deleteSubnodes | 1.033s |
2022-07-22 22:33:20 |
2022-07-22 22:33:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-22 22:33:20 | ------------------------------------ 2022-07-22 22:33:20 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-59c3cf54-a16c-455c-98bb-820b73cf3950" } 2022-07-22 22:33:20 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-22 22:33:21 | [Mutex] waiting for: [received:nodes:3f3120e8-8253-4657-9764-431d1a4bb2a5:localhost] 2022-07-22 22:33:21 | [Mutex] received everything. 2022-07-22 22:33:21 | [Mutex] isItemNotified: received:node:3f3120e8-8253-4657-9764-431d1a4bb2a5:localhost:node-59c3cf54-a16c-455c-98bb-820b73cf3950:Node 59c3cf54-a16c-455c-98bb-820b73cf3950 :: false 2022-07-22 22:33:21 | [Mutex] waiting for: [received:nodes:7e5cd800-7a07-43b9-b06e-58f7e1483895:localhost] 2022-07-22 22:33:21 | [Mutex] received everything. 2022-07-22 22:33:21 | [Mutex] isItemNotified: received:node:7e5cd800-7a07-43b9-b06e-58f7e1483895:localhost:node-59c3cf54-a16c-455c-98bb-820b73cf3950:Node 59c3cf54-a16c-455c-98bb-820b73cf3950 :: false |
publishItemsToNodes | 0.088s |
2022-07-22 22:33:19 |
2022-07-22 22:33:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-22 22:33:19 | ------------------------------------ 2022-07-22 22:33:19 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-59c3cf54-a16c-455c-98bb-820b73cf3950", "entry": "<test>item-950e3f75-5bbb-4b94-acfa-1e87267b575b</test>", "item-id": "item-950e3f75-5bbb-4b94-acfa-1e87267b575b" } 2022-07-22 22:33:19 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-950e3f75-5bbb-4b94-acfa-1e87267b575b" } 2022-07-22 22:33:19 | [Mutex] waiting for: [published:item:notifieditem-950e3f75-5bbb-4b94-acfa-1e87267b575b:admin@test-domain.com] 2022-07-22 22:33:19 | [Mutex] received everything. 2022-07-22 22:33:19 | [Mutex] isItemNotified: published:item:notifieditem-950e3f75-5bbb-4b94-acfa-1e87267b575b:admin@test-domain.com :: true |
retractItemsFromNodes | 0.052s |
2022-07-22 22:33:19 |
2022-07-22 22:33:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-22 22:33:19 | ------------------------------------ 2022-07-22 22:33:19 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-59c3cf54-a16c-455c-98bb-820b73cf3950", "item-id": "item-950e3f75-5bbb-4b94-acfa-1e87267b575b" } 2022-07-22 22:33:19 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-950e3f75-5bbb-4b94-acfa-1e87267b575b" } 2022-07-22 22:33:19 | [Mutex] received everything. 2022-07-22 22:33:19 | [Mutex] isItemNotified: retracted:item:notifieditem-950e3f75-5bbb-4b94-acfa-1e87267b575b:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.023s |
2022-07-22 22:33:19 |
2022-07-22 22:33:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-22 22:33:19 | ------------------------------------ 2022-07-22 22:33:19 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-59c3cf54-a16c-455c-98bb-820b73cf3950", "item-id": "item-950e3f75-5bbb-4b94-acfa-1e87267b575b" } 2022-07-22 22:33:19 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-59c3cf54-a16c-455c-98bb-820b73cf3950", "item-id": "item-950e3f75-5bbb-4b94-acfa-1e87267b575b", "item": [ "<item id=\"item-950e3f75-5bbb-4b94-acfa-1e87267b575b\"><test>item-950e3f75-5bbb-4b94-acfa-1e87267b575b</test></item>" ] } 2022-07-22 22:33:19 | [Mutex] notify: [retrieved:item:item-950e3f75-5bbb-4b94-acfa-1e87267b575b:payload-matches:true:localhost] 2022-07-22 22:33:19 | [Mutex] received everything. 2022-07-22 22:33:19 | [Mutex] isItemNotified: retrieved:item:item-950e3f75-5bbb-4b94-acfa-1e87267b575b:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.049s |
2022-07-22 22:33:19 |
2022-07-22 22:33:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-22 22:33:19 | ------------------------------------ 2022-07-22 22:33:19 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-07-22 22:33:19 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-59c3cf54-a16c-455c-98bb-820b73cf3950", "test", "node-e8b489e9-5ef5-4b68-b21d-dd0807034514" ] } |
retrieveUserSubscriptionsWithRegex | 0.048s |
2022-07-22 22:33:19 |
2022-07-22 22:33:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-22 22:33:19 | ------------------------------------ 2022-07-22 22:33:19 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-59c3cf54-a16c-455c-98bb-820b73cf3950)" } 2022-07-22 22:33:19 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.011s |
2022-07-22 22:33:18 |
2022-07-22 22:33:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-22 22:33:18 | ------------------------------------ 2022-07-22 22:33:18 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-59c3cf54-a16c-455c-98bb-820b73cf3950", "jids": [ "admin@test-domain.com" ] } 2022-07-22 22:33:18 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.087s |
2022-07-22 22:33:19 |
2022-07-22 22:33:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-22 22:33:19 | ------------------------------------ 2022-07-22 22:33:19 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-59c3cf54-a16c-455c-98bb-820b73cf3950", "jids": [ "admin@test-domain.com" ] } 2022-07-22 22:33:19 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |