Skip to content

Commit

Permalink
Fix testcase
Browse files Browse the repository at this point in the history
  • Loading branch information
k1LoW committed Sep 15, 2022
1 parent 792bc85 commit a1f3e39
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions testdata/book/http.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ steps:
get:
body:
application/json:
nil
null
test: |
current.res.status == 200 && current.res.body.data.username == 'alice'
forbidden:
Expand All @@ -30,7 +30,7 @@ steps:
get:
body:
application/json:
nil
null
test: |
current.res.status == 403 && current.res.body.error == 'Forbidden'
getprivate:
Expand All @@ -42,6 +42,6 @@ steps:
Authorization: 'Bearer xxxxx'
body:
application/json:
nil
null
test: |
current.res.status == 200
6 changes: 3 additions & 3 deletions testdata/http.yml.debugger.golden
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ GET /users/1 HTTP/1.1
Host: replace.example.com
Content-Type: application/json

"nil"

-----END HTTP REQUEST-----
-----START HTTP RESPONSE-----
HTTP/1.1 200 OK
Expand All @@ -32,7 +32,7 @@ GET /private HTTP/1.1
Host: replace.example.com
Content-Type: application/json

"nil"

-----END HTTP REQUEST-----
-----START HTTP RESPONSE-----
HTTP/1.1 403 Forbidden
Expand All @@ -48,7 +48,7 @@ Host: replace.example.com
Authorization: Bearer xxxxx
Content-Type: application/json

"nil"

-----END HTTP REQUEST-----
-----START HTTP RESPONSE-----
HTTP/1.1 200 OK
Expand Down

0 comments on commit a1f3e39

Please sign in to comment.