Skip to content
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

Feat: implement testimonials creation endpoint and e2e test #298

Conversation

Iretoms
Copy link
Contributor

@Iretoms Iretoms commented Aug 7, 2024

Description

I worked on the creation of testimonials by an authenticated user. This endpoint ensured that no unauthenticated user can perform the action of creating a testimonial. This endpoint also made sure that the required fields are filled before creating a testimonial. Upon testing using postman, the necessary error messages were displayed and there was also a successful creation of testimonial.

API DOCS
LINEAR TICKET

Related Issue (Link to Github issue)

#297

How Has This Been Tested?

I tested using the inbuilt go testing library and made sure every test cases passed. From the screenshot below, that shows the passed test cases, a successful creation was tested for, invalid/empty fields was also tested for and an unauthorised user trying to create a testimonial was also tested for which all passed.

Screenshots (if appropriate - Postman, etc):

Screenshot (69)
Screenshot (70)

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@Cyberguru1 Cyberguru1 self-requested a review August 7, 2024 23:19
Copy link
Contributor

@Cyberguru1 Cyberguru1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

all good

@Cyberguru1 Cyberguru1 merged commit 2b48ecb into hngprojects:dev Aug 7, 2024
4 checks passed
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.

2 participants