Skip to content

Enhance Test_emailRepo_VerifyCode to Support Additional Parameters #1060

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 31, 2024

Conversation

sosyz
Copy link
Member

@sosyz sosyz commented Jul 31, 2024

This commit updates the Test_emailRepo_VerifyCode function in the email_repo_test.go file. It adds support for additional parameters in the SetCode function call, specifically the user_id and content parameters. This change ensures that the VerifyCode function can properly test the updated code format.

The content parameter is obtained from the activation link after deployment and can be debugged as shown here codeContent

Fixes #1059

Feel free to let me know if you need any further adjustments!

@sy-records sy-records changed the base branch from main to dev July 31, 2024 05:03
This commit updates the `Test_emailRepo_VerifyCode` function in the `email_repo_test.go` file. It adds support for additional parameters in the `SetCode` function call, specifically the `user_id` and `skip_validation_latest_code` parameters. This change ensures that the `VerifyCode` function can properly handle the updated code format.
@sy-records sy-records force-pushed the Sonui/fix_test_case_07_31_2024 branch from 8d5e1df to d16d9bd Compare July 31, 2024 05:03
@sy-records sy-records requested a review from LinkinStars July 31, 2024 05:05
@LinkinStars LinkinStars merged commit a4830a4 into apache:dev Jul 31, 2024
@LinkinStars
Copy link
Member

Thank you for your contribution. 👍

@sosyz
Copy link
Member Author

sosyz commented Jul 31, 2024

Thank you for your contribution. 👍

Thank you for your positive feedback! I'm glad to contribute to this project.

@sosyz sosyz deleted the Sonui/fix_test_case_07_31_2024 branch July 31, 2024 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Parameter error in VerifyCode Test Case
3 participants