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

test/206-delete-comments-event-id #206

Open
10 tasks
Tracked by #154
benoit-bremaud opened this issue Jul 20, 2024 · 0 comments
Open
10 tasks
Tracked by #154

test/206-delete-comments-event-id #206

benoit-bremaud opened this issue Jul 20, 2024 · 0 comments
Assignees
Labels
backend Label to indicate the backend team feature New functionality to be added test Related to testing and validation

Comments

@benoit-bremaud
Copy link
Owner

benoit-bremaud commented Jul 20, 2024

Summary

Create unit tests for the newly implemented DELETE /comments/event/:eventId route to ensure it functions correctly and meets all specified requirements.

Context

Unit tests are necessary to validate the behavior of the DELETE /comments/event/:eventId route. These tests will help ensure the route's functionality, especially the deletion of all comments related to a specific event and the appropriate handling of errors.

Objectives

  • Create unit tests for the DELETE /comments/event/:eventId route.
  • Ensure that the tests cover:
    • Successful deletion of comments.
    • Proper authentication and authorization checks.
    • Handling of cases where no comments are found for the specified event ID.
    • Appropriate response codes and messages.

Acceptance Criteria

  • The unit tests must cover all key functionalities of the DELETE /comments/event/:eventId route.
  • The tests should pass successfully, indicating that the route behaves as expected.
  • Tests should include scenarios for successful deletions, authentication failures, authorization failures, and not found errors.

Tasks

  • Create and initialize a new working branch
    • Use the branch name following the conventions specified in the CONTRIBUTING.md guide.
    • Branch name format: test/206-delete-comments-event-id
  • Create unit tests for the DELETE /comments/event/:eventId route.
  • Ensure tests cover all specified scenarios.
  • Run the tests and confirm they pass.
  • Write the commit message
    • Ensure the commit message follows the naming conventions as specified in the CONTRIBUTING.md guide.
  • Create the Pull Request
    • Ensure the Pull Request follows the naming and description conventions as specified in the CONTRIBUTING.md guide.

Resources

UML Diagrams References

  • Sequence Diagram: To visualize the flow of operations during the DELETE /comments/event/:eventId request.

Branch Name

test/206-delete-comments-event-id

Complementary Suggested Tasks

  • Implement integration tests if applicable.
  • Update the documentation related to the DELETE /comments/event/:eventId route if necessary.
  • Review and refactor the code if necessary based on test results.
  • Ensure compatibility with existing features and perform regression testing.
@benoit-bremaud benoit-bremaud added backend Label to indicate the backend team feature New functionality to be added test Related to testing and validation labels Jul 20, 2024
@benoit-bremaud benoit-bremaud self-assigned this Jul 20, 2024
@benoit-bremaud benoit-bremaud changed the title Mettre à jour les tests unitaires pour inclure des cas de test pour cette nouvelle route. test/206-delete-comments-event-id Jul 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Label to indicate the backend team feature New functionality to be added test Related to testing and validation
Projects
None yet
Development

No branches or pull requests

1 participant