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

Write event controller test suite #175

Open
shravanhariharan2 opened this issue Apr 7, 2021 · 0 comments
Open

Write event controller test suite #175

shravanhariharan2 opened this issue Apr 7, 2021 · 0 comments
Labels

Comments

@shravanhariharan2
Copy link
Collaborator

Assertions we should test:

  • Fetching events
    • GET / returns all lifetime events
    • GET /past returns only the events that have already ended
    • GET /future returns only the events that have not started
  • Writing events
    • POST / creates an event if the attendance code provided is unused
    • POST / throws an error if a duplicate attendance code is provided
    • PUT / properly updates changed fields
  • Event covers
    • POST /picture/:uuid updates the event's cover field
    • POST /picture/:uuid updates the S3 bucket on AWS with a properly named file
  • Event feedback
    • Can be persisted and rewarded points when submitted for an event already attended
    • Is rejected on submission to an event not attended
    • Is rejected if sent multiple times to the same event
    • Is rejected if sent after 2 days of the event ending
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants