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 GetTribe, CreateOrEditTribe, & GetTribeByUniqueName #1533

Closed
2 tasks
elraphty opened this issue Feb 20, 2024 · 3 comments · Fixed by #1545
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 a tribe can be fetched by its uuid
  • Should test that a non-existent uuid returns no tribe
  • Should test that a tribe can be created when the right data is passed
  • Should test that a tribe can be fetched by its unique name

Tribes Handlers To Test

GetTribe
CreateOrEditTribe
GetTribeByUniqueName

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

@Fog3211
Copy link
Contributor

Fog3211 commented Feb 20, 2024

@ecurrencyhodler can you assign this to me?

@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
@FaisalIqbal211
Copy link
Contributor

@ecurrencyhodler assign me the issue?

@ecurrencyhodler ecurrencyhodler moved this from 🆕 New to 🧨 To Do in Bounties Platform Feb 20, 2024
@ecurrencyhodler
Copy link
Contributor

@FaisalIqbal211 this is yours. Let's get a PR up in 2 days.

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
4 participants