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

Backend [Integration Test] tribes.go handlers DeleteTribe, GetFirstTribeByFeed, & SetTribePreview #1534

Closed
2 tasks
elraphty opened this issue Feb 20, 2024 · 1 comment · Fixed by #1540
Closed
2 tasks
Assignees
Labels
backend bounties go Pull requests that update Go code Posted testing
Milestone

Comments

@elraphty
Copy link
Contributor

Context

We are trying to increase the test coverage for our Golang backend.

File to to test

handlers/tribes.go

Design

Write tests for the tribe's handlers, the test should:

  • Should test that the owner of a tribe can delete a tribe
  • Should test that a 401 error is returned when a tribe is attempted to be deleted by someone other than the owner
  • Should test that a tribe can be gotten by passing the feed url
  • Should test that a tribe preview can be set by the owner of the tribe
  • Should test that setting a tribe preview action returns a 401 for non-owners.

Tribes Handlers To Test

DeleteTribe
GetFirstTribeByFeed
SetTribePreview

Add tests to tribes_test.go

Acceptance Criteria

  • I have rebased and tested locally before submitting my PR
  • I can submit a PR within 2 days of taking the bounty

References

Here is an example backend test

@elraphty elraphty added backend bounties go Pull requests that update Go code testing labels Feb 20, 2024
@elraphty elraphty added this to the UCI Tests milestone Feb 20, 2024
@AbdulWahab3181
Copy link
Contributor

AbdulWahab3181 commented Feb 20, 2024

@ecurrencyhodler could you please assign me this task?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend bounties go Pull requests that update Go code Posted testing
Projects
Status: ✅ Done
3 participants