MCPcopy Create free account
hub / github.com/cloudbase/garm / TestGetEndpoint

Method TestGetEndpoint

database/sql/github_test.go:117–124  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

115}
116
117func (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
126func (s *GithubTestSuite) TestGetNonExistingEndpointFailsWithNotFoundError() {
127 ctx := garmTesting.ImpersonateAdminContext(context.Background(), s.db, s.T())

Callers

nothing calls this directly

Calls 1

GetGithubEndpointMethod · 0.65

Tested by

no test coverage detected