Skip to content

Commit

Permalink
Fix TestTaskSpecValidate tests 🎧
Browse files Browse the repository at this point in the history
`apis.FieldError` output has change a bit

Signed-off-by: Vincent Demeester <vdemeest@redhat.com>
  • Loading branch information
vdemeester authored and tekton-robot committed Apr 17, 2019
1 parent ca1d2d0 commit 45e35af
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/apis/pipeline/v1alpha1/task_validation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ var invalidBuildSteps = []corev1.Container{{
Image: "myimage",
}}

func TestTaskSpec_Validate(t *testing.T) {
func TestTaskSpecValidate(t *testing.T) {
type fields struct {
Inputs *Inputs
Outputs *Outputs
Expand Down Expand Up @@ -123,7 +123,7 @@ func TestTaskSpec_Validate(t *testing.T) {
}
}

func TestTaskSpec_ValidateError(t *testing.T) {
func TestTaskSpecValidateError(t *testing.T) {
type fields struct {
Inputs *Inputs
Outputs *Outputs
Expand Down Expand Up @@ -170,7 +170,7 @@ func TestTaskSpec_ValidateError(t *testing.T) {
BuildSteps: validBuildSteps,
},
expectedError: apis.FieldError{
Message: `invalid value "what"`,
Message: `invalid value: what`,
Paths: []string{"taskspec.Inputs.Resources.source.Type"},
},
}, {
Expand All @@ -193,7 +193,7 @@ func TestTaskSpec_ValidateError(t *testing.T) {
BuildSteps: validBuildSteps,
},
expectedError: apis.FieldError{
Message: `invalid value "what"`,
Message: `invalid value: what`,
Paths: []string{"taskspec.Outputs.Resources.who.Type"},
},
}, {
Expand Down

0 comments on commit 45e35af

Please sign in to comment.