()
| 115 | } |
| 116 | |
| 117 | func (s *GithubTestSuite) TestGetEndpoint() { |
| 118 | ctx := garmTesting.ImpersonateAdminContext(context.Background(), s.db, s.T()) |
| 119 | |
| 120 | endpoint, err := s.db.GetGithubEndpoint(ctx, defaultGithubEndpoint) |
| 121 | s.Require().NoError(err) |
| 122 | s.Require().NotNil(endpoint) |
| 123 | s.Require().Equal(defaultGithubEndpoint, endpoint.Name) |
| 124 | } |
| 125 | |
| 126 | func (s *GithubTestSuite) TestGetNonExistingEndpointFailsWithNotFoundError() { |
| 127 | ctx := garmTesting.ImpersonateAdminContext(context.Background(), s.db, s.T()) |
nothing calls this directly
no test coverage detected