Test duration : 8.628s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.100s |
2022-08-26 07:19:53 |
2022-08-26 07:19:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-26 07:19:53 | ------------------------------------ 2022-08-26 07:19:53 | [Mutex] waiting for: [configured:node:node-e3348e81-7476-49b2-bdd3-47c5649a110b:node-2cbf3e90-df9c-4817-a8ed-24006d3dac1e] 2022-08-26 07:19:53 | [Mutex] received everything. 2022-08-26 07:19:53 | [Mutex] isItemNotified: configured:node:node-e3348e81-7476-49b2-bdd3-47c5649a110b:node-2cbf3e90-df9c-4817-a8ed-24006d3dac1e :: true 2022-08-26 07:19:54 | [Mutex] waiting for: [received:nodes:daf0a19e-de44-4008-a5e3-f1ebdfa0a0d7:localhost] 2022-08-26 07:19:54 | [Mutex] received everything. 2022-08-26 07:19:54 | [Mutex] isItemNotified: received:node:daf0a19e-de44-4008-a5e3-f1ebdfa0a0d7:localhost:node-e3348e81-7476-49b2-bdd3-47c5649a110b:Node e3348e81-7476-49b2-bdd3-47c5649a110b :: true 2022-08-26 07:19:54 | [Mutex] waiting for: [received:nodes:6b4aa1bb-ac43-47cb-aec1-790f27c0b103:localhost] 2022-08-26 07:19:54 | [Mutex] received everything. 2022-08-26 07:19:54 | [Mutex] isItemNotified: received:node:6b4aa1bb-ac43-47cb-aec1-790f27c0b103:localhost:node-e3348e81-7476-49b2-bdd3-47c5649a110b:Node e3348e81-7476-49b2-bdd3-47c5649a110b :: false |
createNodes | 1.612s |
2022-08-26 07:19:50 |
2022-08-26 07:19:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-26 07:19:50 | ------------------------------------ 2022-08-26 07:19:51 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-e3348e81-7476-49b2-bdd3-47c5649a110b", "pubsub#title": "Node e3348e81-7476-49b2-bdd3-47c5649a110b" } 2022-08-26 07:19:51 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-26 07:19:52 | [Mutex] waiting for: [received:nodes:d2c0ba42-d33c-45f2-9530-d76bdfe0191d:localhost] 2022-08-26 07:19:52 | [Mutex] received everything. 2022-08-26 07:19:52 | [Mutex] isItemNotified: received:node:d2c0ba42-d33c-45f2-9530-d76bdfe0191d:localhost:node-e3348e81-7476-49b2-bdd3-47c5649a110b:Node e3348e81-7476-49b2-bdd3-47c5649a110b :: true |
createSubnodes | 1.028s |
2022-08-26 07:19:52 |
2022-08-26 07:19:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-26 07:19:52 | ------------------------------------ 2022-08-26 07:19:52 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-2cbf3e90-df9c-4817-a8ed-24006d3dac1e", "pubsub#title": "Node 2cbf3e90-df9c-4817-a8ed-24006d3dac1e" } 2022-08-26 07:19:52 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-26 07:19:53 | [Mutex] waiting for: [received:nodes:3fe55216-83bd-4edc-9d7a-de84c13d4978:localhost] 2022-08-26 07:19:53 | [Mutex] waiting for: [received:nodes:3fe55216-83bd-4edc-9d7a-de84c13d4978:localhost] 2022-08-26 07:19:53 | [Mutex] received everything. 2022-08-26 07:19:53 | [Mutex] isItemNotified: received:node:3fe55216-83bd-4edc-9d7a-de84c13d4978:localhost:node-2cbf3e90-df9c-4817-a8ed-24006d3dac1e:Node 2cbf3e90-df9c-4817-a8ed-24006d3dac1e :: true |
deleteNodes | 1.023s |
2022-08-26 07:19:57 |
2022-08-26 07:19:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-26 07:19:57 | ------------------------------------ 2022-08-26 07:19:57 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-2cbf3e90-df9c-4817-a8ed-24006d3dac1e" } 2022-08-26 07:19:57 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-26 07:19:58 | [Mutex] waiting for: [received:nodes:e950f4b3-3cff-4349-9b71-b6e926d75c16:localhost] 2022-08-26 07:19:58 | [Mutex] received everything. 2022-08-26 07:19:58 | [Mutex] isItemNotified: received:node:e950f4b3-3cff-4349-9b71-b6e926d75c16:localhost:node-2cbf3e90-df9c-4817-a8ed-24006d3dac1e:Node 2cbf3e90-df9c-4817-a8ed-24006d3dac1e :: false |
deleteSubnodes | 1.028s |
2022-08-26 07:19:56 |
2022-08-26 07:19:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-26 07:19:56 | ------------------------------------ 2022-08-26 07:19:56 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-e3348e81-7476-49b2-bdd3-47c5649a110b" } 2022-08-26 07:19:56 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-26 07:19:57 | [Mutex] waiting for: [received:nodes:7d693618-4485-475a-bd47-147e9ec373d8:localhost] 2022-08-26 07:19:57 | [Mutex] received everything. 2022-08-26 07:19:57 | [Mutex] isItemNotified: received:node:7d693618-4485-475a-bd47-147e9ec373d8:localhost:node-e3348e81-7476-49b2-bdd3-47c5649a110b:Node e3348e81-7476-49b2-bdd3-47c5649a110b :: false 2022-08-26 07:19:57 | [Mutex] waiting for: [received:nodes:6bd6079d-8dcd-4b6d-adfd-19ece82dde56:localhost] 2022-08-26 07:19:57 | [Mutex] received everything. 2022-08-26 07:19:57 | [Mutex] isItemNotified: received:node:6bd6079d-8dcd-4b6d-adfd-19ece82dde56:localhost:node-e3348e81-7476-49b2-bdd3-47c5649a110b:Node e3348e81-7476-49b2-bdd3-47c5649a110b :: false |
publishItemsToNodes | 0.067s |
2022-08-26 07:19:55 |
2022-08-26 07:19:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-26 07:19:55 | ------------------------------------ 2022-08-26 07:19:55 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-e3348e81-7476-49b2-bdd3-47c5649a110b", "entry": "<test>item-180588f7-4883-4fdb-bf33-e605a71dbd78</test>", "item-id": "item-180588f7-4883-4fdb-bf33-e605a71dbd78" } 2022-08-26 07:19:55 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-180588f7-4883-4fdb-bf33-e605a71dbd78" } 2022-08-26 07:19:55 | [Mutex] waiting for: [published:item:notifieditem-180588f7-4883-4fdb-bf33-e605a71dbd78:admin@test-domain.com] 2022-08-26 07:19:55 | [Mutex] received everything. 2022-08-26 07:19:55 | [Mutex] isItemNotified: published:item:notifieditem-180588f7-4883-4fdb-bf33-e605a71dbd78:admin@test-domain.com :: true |
retractItemsFromNodes | 0.052s |
2022-08-26 07:19:55 |
2022-08-26 07:19:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-26 07:19:55 | ------------------------------------ 2022-08-26 07:19:55 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-e3348e81-7476-49b2-bdd3-47c5649a110b", "item-id": "item-180588f7-4883-4fdb-bf33-e605a71dbd78" } 2022-08-26 07:19:55 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-180588f7-4883-4fdb-bf33-e605a71dbd78" } 2022-08-26 07:19:55 | [Mutex] received everything. 2022-08-26 07:19:55 | [Mutex] isItemNotified: retracted:item:notifieditem-180588f7-4883-4fdb-bf33-e605a71dbd78:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.046s |
2022-08-26 07:19:55 |
2022-08-26 07:19:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-26 07:19:55 | ------------------------------------ 2022-08-26 07:19:55 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-e3348e81-7476-49b2-bdd3-47c5649a110b", "item-id": "item-180588f7-4883-4fdb-bf33-e605a71dbd78" } 2022-08-26 07:19:55 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-e3348e81-7476-49b2-bdd3-47c5649a110b", "item-id": "item-180588f7-4883-4fdb-bf33-e605a71dbd78", "item": [ "<item id=\"item-180588f7-4883-4fdb-bf33-e605a71dbd78\"><test>item-180588f7-4883-4fdb-bf33-e605a71dbd78</test></item>" ] } 2022-08-26 07:19:55 | [Mutex] notify: [retrieved:item:item-180588f7-4883-4fdb-bf33-e605a71dbd78:payload-matches:true:localhost] 2022-08-26 07:19:55 | [Mutex] received everything. 2022-08-26 07:19:55 | [Mutex] isItemNotified: retrieved:item:item-180588f7-4883-4fdb-bf33-e605a71dbd78:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.053s |
2022-08-26 07:19:55 |
2022-08-26 07:19:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-26 07:19:55 | ------------------------------------ 2022-08-26 07:19:55 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-08-26 07:19:55 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-e3348e81-7476-49b2-bdd3-47c5649a110b", "node-2cbf3e90-df9c-4817-a8ed-24006d3dac1e" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2022-08-26 07:19:55 |
2022-08-26 07:19:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-26 07:19:55 | ------------------------------------ 2022-08-26 07:19:55 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-e3348e81-7476-49b2-bdd3-47c5649a110b)" } 2022-08-26 07:19:55 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.014s |
2022-08-26 07:19:54 |
2022-08-26 07:19:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-26 07:19:54 | ------------------------------------ 2022-08-26 07:19:54 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-e3348e81-7476-49b2-bdd3-47c5649a110b", "jids": [ "admin@test-domain.com" ] } 2022-08-26 07:19:54 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.060s |
2022-08-26 07:19:55 |
2022-08-26 07:19:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-26 07:19:55 | ------------------------------------ 2022-08-26 07:19:55 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-e3348e81-7476-49b2-bdd3-47c5649a110b", "jids": [ "admin@test-domain.com" ] } 2022-08-26 07:19:55 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |