Test duration : 9.008s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.107s |
2022-03-03 03:44:34 |
2022-03-03 03:44:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-03-03 03:44:34 | ------------------------------------ 2022-03-03 03:44:34 | [Mutex] waiting for: [configured:node:node-d1a5a889-18bf-48be-8ff8-2b47550574d7:node-3d56dbf1-3369-44ab-af27-062339577bdb] 2022-03-03 03:44:34 | [Mutex] received everything. 2022-03-03 03:44:34 | [Mutex] isItemNotified: configured:node:node-d1a5a889-18bf-48be-8ff8-2b47550574d7:node-3d56dbf1-3369-44ab-af27-062339577bdb :: true 2022-03-03 03:44:35 | [Mutex] waiting for: [received:nodes:ac0aa4a0-4c3d-4e46-9a29-44c4d7ea1e28:localhost] 2022-03-03 03:44:35 | [Mutex] waiting for: [received:nodes:ac0aa4a0-4c3d-4e46-9a29-44c4d7ea1e28:localhost] 2022-03-03 03:44:35 | [Mutex] received everything. 2022-03-03 03:44:35 | [Mutex] isItemNotified: received:node:ac0aa4a0-4c3d-4e46-9a29-44c4d7ea1e28:localhost:node-d1a5a889-18bf-48be-8ff8-2b47550574d7:Node d1a5a889-18bf-48be-8ff8-2b47550574d7 :: true 2022-03-03 03:44:35 | [Mutex] waiting for: [received:nodes:a1cc3df6-a973-483d-9f68-87685721fe22:localhost] 2022-03-03 03:44:35 | [Mutex] waiting for: [received:nodes:a1cc3df6-a973-483d-9f68-87685721fe22:localhost] 2022-03-03 03:44:35 | [Mutex] received everything. 2022-03-03 03:44:35 | [Mutex] isItemNotified: received:node:a1cc3df6-a973-483d-9f68-87685721fe22:localhost:node-d1a5a889-18bf-48be-8ff8-2b47550574d7:Node d1a5a889-18bf-48be-8ff8-2b47550574d7 :: false |
createNodes | 1.710s |
2022-03-03 03:44:31 |
2022-03-03 03:44:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-03-03 03:44:31 | ------------------------------------ 2022-03-03 03:44:32 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-d1a5a889-18bf-48be-8ff8-2b47550574d7", "pubsub#title": "Node d1a5a889-18bf-48be-8ff8-2b47550574d7" } 2022-03-03 03:44:32 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-03-03 03:44:33 | [Mutex] waiting for: [received:nodes:496f4e35-0059-4225-9a44-48b07718a1ab:localhost] 2022-03-03 03:44:33 | [Mutex] received everything. 2022-03-03 03:44:33 | [Mutex] isItemNotified: received:node:496f4e35-0059-4225-9a44-48b07718a1ab:localhost:node-d1a5a889-18bf-48be-8ff8-2b47550574d7:Node d1a5a889-18bf-48be-8ff8-2b47550574d7 :: true |
createSubnodes | 1.064s |
2022-03-03 03:44:33 |
2022-03-03 03:44:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-03-03 03:44:33 | ------------------------------------ 2022-03-03 03:44:33 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-3d56dbf1-3369-44ab-af27-062339577bdb", "pubsub#title": "Node 3d56dbf1-3369-44ab-af27-062339577bdb" } 2022-03-03 03:44:33 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-03-03 03:44:34 | [Mutex] waiting for: [received:nodes:b905c822-8cfd-4b8e-84f3-0bd563b8b6ba:localhost] 2022-03-03 03:44:34 | [Mutex] received everything. 2022-03-03 03:44:34 | [Mutex] isItemNotified: received:node:b905c822-8cfd-4b8e-84f3-0bd563b8b6ba:localhost:node-3d56dbf1-3369-44ab-af27-062339577bdb:Node 3d56dbf1-3369-44ab-af27-062339577bdb :: true |
deleteNodes | 1.029s |
2022-03-03 03:44:38 |
2022-03-03 03:44:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-03-03 03:44:38 | ------------------------------------ 2022-03-03 03:44:38 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-3d56dbf1-3369-44ab-af27-062339577bdb" } 2022-03-03 03:44:38 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-03-03 03:44:39 | [Mutex] waiting for: [received:nodes:41fef3a4-05a1-42c4-aaf0-4ab86aba130d:localhost] 2022-03-03 03:44:39 | [Mutex] received everything. 2022-03-03 03:44:39 | [Mutex] isItemNotified: received:node:41fef3a4-05a1-42c4-aaf0-4ab86aba130d:localhost:node-3d56dbf1-3369-44ab-af27-062339577bdb:Node 3d56dbf1-3369-44ab-af27-062339577bdb :: false |
deleteSubnodes | 1.026s |
2022-03-03 03:44:37 |
2022-03-03 03:44:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-03-03 03:44:37 | ------------------------------------ 2022-03-03 03:44:37 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-d1a5a889-18bf-48be-8ff8-2b47550574d7" } 2022-03-03 03:44:37 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-03-03 03:44:38 | [Mutex] waiting for: [received:nodes:8cfd6924-62e1-4986-b999-058ddbc5a3ff:localhost] 2022-03-03 03:44:38 | [Mutex] received everything. 2022-03-03 03:44:38 | [Mutex] isItemNotified: received:node:8cfd6924-62e1-4986-b999-058ddbc5a3ff:localhost:node-d1a5a889-18bf-48be-8ff8-2b47550574d7:Node d1a5a889-18bf-48be-8ff8-2b47550574d7 :: false 2022-03-03 03:44:38 | [Mutex] waiting for: [received:nodes:d71bc8c6-b0d0-4a1b-872f-f498657785dc:localhost] 2022-03-03 03:44:38 | [Mutex] received everything. 2022-03-03 03:44:38 | [Mutex] isItemNotified: received:node:d71bc8c6-b0d0-4a1b-872f-f498657785dc:localhost:node-d1a5a889-18bf-48be-8ff8-2b47550574d7:Node d1a5a889-18bf-48be-8ff8-2b47550574d7 :: false |
publishItemsToNodes | 0.050s |
2022-03-03 03:44:36 |
2022-03-03 03:44:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-03-03 03:44:36 | ------------------------------------ 2022-03-03 03:44:36 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-d1a5a889-18bf-48be-8ff8-2b47550574d7", "entry": "<test>item-91660622-415e-46de-947f-327257214167</test>", "item-id": "item-91660622-415e-46de-947f-327257214167" } 2022-03-03 03:44:36 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-91660622-415e-46de-947f-327257214167" } 2022-03-03 03:44:36 | [Mutex] waiting for: [published:item:notifieditem-91660622-415e-46de-947f-327257214167:admin@test-domain.com] 2022-03-03 03:44:36 | [Mutex] received everything. 2022-03-03 03:44:36 | [Mutex] isItemNotified: published:item:notifieditem-91660622-415e-46de-947f-327257214167:admin@test-domain.com :: true |
retractItemsFromNodes | 0.063s |
2022-03-03 03:44:36 |
2022-03-03 03:44:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-03-03 03:44:36 | ------------------------------------ 2022-03-03 03:44:36 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-d1a5a889-18bf-48be-8ff8-2b47550574d7", "item-id": "item-91660622-415e-46de-947f-327257214167" } 2022-03-03 03:44:36 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-91660622-415e-46de-947f-327257214167" } 2022-03-03 03:44:36 | [Mutex] received everything. 2022-03-03 03:44:36 | [Mutex] isItemNotified: retracted:item:notifieditem-91660622-415e-46de-947f-327257214167:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.020s |
2022-03-03 03:44:36 |
2022-03-03 03:44:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-03-03 03:44:36 | ------------------------------------ 2022-03-03 03:44:36 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-d1a5a889-18bf-48be-8ff8-2b47550574d7", "item-id": "item-91660622-415e-46de-947f-327257214167" } 2022-03-03 03:44:36 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-d1a5a889-18bf-48be-8ff8-2b47550574d7", "item-id": "item-91660622-415e-46de-947f-327257214167", "item": [ "<item id=\"item-91660622-415e-46de-947f-327257214167\"><test>item-91660622-415e-46de-947f-327257214167</test></item>" ] } 2022-03-03 03:44:36 | [Mutex] notify: [retrieved:item:item-91660622-415e-46de-947f-327257214167:payload-matches:true:localhost] 2022-03-03 03:44:36 | [Mutex] received everything. 2022-03-03 03:44:36 | [Mutex] isItemNotified: retrieved:item:item-91660622-415e-46de-947f-327257214167:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.071s |
2022-03-03 03:44:36 |
2022-03-03 03:44:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-03-03 03:44:36 | ------------------------------------ 2022-03-03 03:44:36 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-03-03 03:44:36 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-3d56dbf1-3369-44ab-af27-062339577bdb", "test", "node-d1a5a889-18bf-48be-8ff8-2b47550574d7" ] } |
retrieveUserSubscriptionsWithRegex | 0.055s |
2022-03-03 03:44:36 |
2022-03-03 03:44:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-03-03 03:44:36 | ------------------------------------ 2022-03-03 03:44:36 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-d1a5a889-18bf-48be-8ff8-2b47550574d7)" } 2022-03-03 03:44:36 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.011s |
2022-03-03 03:44:35 |
2022-03-03 03:44:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-03-03 03:44:35 | ------------------------------------ 2022-03-03 03:44:35 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-d1a5a889-18bf-48be-8ff8-2b47550574d7", "jids": [ "admin@test-domain.com" ] } 2022-03-03 03:44:35 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.079s |
2022-03-03 03:44:36 |
2022-03-03 03:44:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-03-03 03:44:36 | ------------------------------------ 2022-03-03 03:44:36 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-d1a5a889-18bf-48be-8ff8-2b47550574d7", "jids": [ "admin@test-domain.com" ] } 2022-03-03 03:44:36 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |