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

Method TestCreateRepositoryEmptyParams

runner/repositories_test.go:213–217  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

211}
212
213func (s *RepoTestSuite) TestCreateRepositoryEmptyParams() {
214 _, err := s.Runner.CreateRepository(s.Fixtures.AdminContext, params.CreateRepoParams{})
215
216 s.Require().Regexp("validating params: missing owner", err.Error())
217}
218
219func (s *RepoTestSuite) TestCreateRepositoryMissingCredentials() {
220 s.Fixtures.CreateRepoParams.CredentialsName = notExistingCredentialsName

Callers

nothing calls this directly

Calls 2

CreateRepositoryMethod · 0.65
ErrorMethod · 0.45

Tested by

no test coverage detected