Skip to content

Commit

Permalink
fix(HttpSubscription): Cast the http response payload to string if, a…
Browse files Browse the repository at this point in the history
…nd only if, the payload is a nu
  • Loading branch information
virgs committed Aug 21, 2019
1 parent 1e12444 commit 8e60422
Show file tree
Hide file tree
Showing 4 changed files with 1,968 additions and 1,955 deletions.
11 changes: 7 additions & 4 deletions examples/http-more-examples.yml
Expand Up @@ -28,6 +28,8 @@
- name: Status Code
expect: statusCode
toBeEqualTo: 444
- expect: JSON.parse(body).deep
toBeEqualTo: `object`
subscriptions:
- type: http
endpoint: /enqueuer/:firstId
Expand Down Expand Up @@ -62,7 +64,8 @@
method: POST
response:
status: 444
payload: blah
payload:
deep: object
- name: yet another, but avoidable
type: http
endpoint: /avoidable
Expand Down Expand Up @@ -114,8 +117,7 @@
- name: check port releasing (23076)
timeout: 5000
subscriptions:
- name: same port subscription
type: tcp
- type: tcp
port: 23076
timeout: 1000
avoid: true
Expand All @@ -125,7 +127,8 @@
method: POST
payload: virgs
subscriptions:
- type: http
- name: numbered payload
type: http
endpoint: /number-payload
port: 23080
method: POST
Expand Down

0 comments on commit 8e60422

Please sign in to comment.