passbolt / passbolt_api

Passbolt Community Edition (CE) API. The JSON API for the open source password manager for teams!
https://passbolt.com
GNU Affero General Public License v3.0
4.74k stars 312 forks source link

PB-32594 Add tests for SecretCreateService #513

Closed TiwariAbhishek23 closed 7 months ago

TiwariAbhishek23 commented 7 months ago

Checklist

What you did

I am trying to add test for SecretCreateService.

I have written 2 test, one positive that check for the success of the create function but It is not working as I expected. The second is for Validation Exception.

CLAassistant commented 7 months ago

CLA assistant check
All committers have signed the CLA.

TiwariAbhishek23 commented 7 months ago

Currently, the Success Test is failing because the message provided in the data is not a valid ASCII-armored OpenPGP message. For this, I think I need to use the OpenPGP Utility Class. I tried, but I was not successful. Please guide me on how to fix this issue. For each test, I need to update the provided message input.

ishanvyas22 commented 7 months ago

Will be released with v4.7.0