Skip to content

Commit

Permalink
Match regression outputs to expected
Browse files Browse the repository at this point in the history
  • Loading branch information
pramsey committed May 25, 2018
1 parent 977f575 commit 1682b91
Showing 1 changed file with 15 additions and 25 deletions.
40 changes: 15 additions & 25 deletions expected/http.out
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,9 @@ content::json->'args' AS args,
content::json->'url' AS url,
content::json->'method' AS method
FROM http_get('http://httpbin.org/anything?foo=bar');
status | args | url | method
--------+------------------+---------------------------------------+--------
200 | { +| "http://httpbin.org/anything?foo=bar" | "GET"
| "foo": "bar"+| |
| } | |
status | args | url | method
--------+---------------+---------------------------------------+--------
200 | {"foo":"bar"} | "http://httpbin.org/anything?foo=bar" | "GET"
(1 row)

-- DELETE
Expand All @@ -45,11 +43,9 @@ content::json->'args' AS args,
content::json->'url' AS url,
content::json->'method' AS method
FROM http_delete('http://httpbin.org/anything?foo=bar');
status | args | url | method
--------+------------------+---------------------------------------+----------
200 | { +| "http://httpbin.org/anything?foo=bar" | "DELETE"
| "foo": "bar"+| |
| } | |
status | args | url | method
--------+---------------+---------------------------------------+----------
200 | {"foo":"bar"} | "http://httpbin.org/anything?foo=bar" | "DELETE"
(1 row)

-- PUT
Expand All @@ -59,11 +55,9 @@ content::json->'args' AS args,
content::json->'url' AS url,
content::json->'method' AS method
FROM http_put('http://httpbin.org/anything?foo=bar','payload','text/plain');
status | data | args | url | method
--------+-----------+------------------+---------------------------------------+--------
200 | "payload" | { +| "http://httpbin.org/anything?foo=bar" | "PUT"
| | "foo": "bar"+| |
| | } | |
status | data | args | url | method
--------+-----------+---------------+---------------------------------------+--------
200 | "payload" | {"foo":"bar"} | "http://httpbin.org/anything?foo=bar" | "PUT"
(1 row)

-- POST
Expand All @@ -73,11 +67,9 @@ content::json->'args' AS args,
content::json->'url' AS url,
content::json->'method' AS method
FROM http_post('http://httpbin.org/anything?foo=bar','payload','text/plain');
status | data | args | url | method
--------+-----------+------------------+---------------------------------------+--------
200 | "payload" | { +| "http://httpbin.org/anything?foo=bar" | "POST"
| | "foo": "bar"+| |
| | } | |
status | data | args | url | method
--------+-----------+---------------+---------------------------------------+--------
200 | "payload" | {"foo":"bar"} | "http://httpbin.org/anything?foo=bar" | "POST"
(1 row)

-- HEAD
Expand All @@ -97,11 +89,9 @@ SELECT status,
content::json->'args' AS args,
content::json->'url' AS url
FROM http_get('http://httpbin.org/redirect-to?url=http%3A%2F%2Fhttpbin%2Eorg%2Fget%3Ffoo%3Dbar');
status | args | url
--------+------------------+----------------------------------
200 | { +| "http://httpbin.org/get?foo=bar"
| "foo": "bar"+|
| } |
status | args | url
--------+---------------+----------------------------------
200 | {"foo":"bar"} | "http://httpbin.org/get?foo=bar"
(1 row)

-- Request image
Expand Down

0 comments on commit 1682b91

Please sign in to comment.