Skip to content

Commit

Permalink
v1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
s0s01qp committed Jul 28, 2021
1 parent 18954d4 commit 9233545
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions models/mockrequest_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,18 @@ func TestMockRequestEmptyPath(t *testing.T) {
assert.Equal(t, "empty path provided", err.Error())
}

func TestMockRequestBasePath(t *testing.T) {
m := &models.MockRequest{
Tag: "1234",
Method: "GET",
Path: "/",
ResponseBody: "naruto",
}
err := m.Validate()
assert.Error(t, err)
assert.Equal(t, fmt.Errorf("path cannot be %s", commons.BasePath), err)
}

func TestMockRequestActuatorPath(t *testing.T) {
m := &models.MockRequest{
Tag: "1234",
Expand Down
2 changes: 1 addition & 1 deletion version.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"name": "moxy",
"version": "1.0.1"
"version": "1.0.2"
}

0 comments on commit 9233545

Please sign in to comment.