diff --git a/pkg/config/schema_test.go b/pkg/config/schema_test.go index d1c2bd7..c95dfd7 100644 --- a/pkg/config/schema_test.go +++ b/pkg/config/schema_test.go @@ -85,8 +85,10 @@ func (suite *SchemaTestSuite) TestRepositories() { }, "Key: 'Repositories.Repositories' Error:Field validation for 'Repositories' failed on the 'required' tag"}, } + // NOTE(nic): we have an entrypoint for validating this schema, so use it to + // ensure test coverage. All the other tests will use the validator in the suite. for _, test := range tests { - err := suite.v.Struct(test.param) + err := Validate(test.param) if test.expected != "" { assert.EqualError(suite.T(), err, test.expected) } else {