Skip to content

Commit

Permalink
updated validator message
Browse files Browse the repository at this point in the history
  • Loading branch information
daveshanley committed Oct 2, 2024
1 parent f9d7d0f commit 28d5b34
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions mock/mock_engine_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -326,10 +326,7 @@ func TestNewMockEngine_BuildResponse_MissingOperation_404(t *testing.T) {
_ = json.Unmarshal(b, &decoded)

assert.Equal(t, "Path / operation not found (404)", decoded["title"])
assert.Equal(t, "Unable to locate the path '/wiretap/giftshop/products' with the method 'PATCH'. "+
"Error: PATCH Path '/wiretap/giftshop/products' not found, Reason: The PATCH request contains a path of "+
"'/wiretap/giftshop/products' however that path, or the PATCH method for that path does not exist in the "+
"specification", decoded["detail"])
assert.Equal(t, "Unable to locate the path '/wiretap/giftshop/products' with the method 'PATCH'. Error: PATCH Path '/wiretap/giftshop/products' not found, Reason: The PATCH method for that path does not exist in the specification", decoded["detail"])
}

func TestNewMockEngine_BuildResponse_CreateProduct_NoSecurity_Invalid(t *testing.T) {
Expand Down

0 comments on commit 28d5b34

Please sign in to comment.