Skip to content

Commit

Permalink
Merge pull request #70 from Orange-OpenSource/feature/ast-export-json
Browse files Browse the repository at this point in the history
Export AST to json
  • Loading branch information
fabricereix authored Nov 7, 2020
2 parents 9bf8d2e + 42cff40 commit 61b6141
Show file tree
Hide file tree
Showing 79 changed files with 665 additions and 92 deletions.
18 changes: 18 additions & 0 deletions integration/export_json.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/bash
set -u
set -e
for hurl_file in "$@"; do
json_file="${hurl_file%.*}.json"
cmd="hurlfmt --json $hurl_file"
echo "$cmd"

$cmd 2>/tmp/test.stderr >/tmp/test.stdout
expected=$(cat "$json_file")
actual=$(cat /tmp/test.stdout)
if [ "$actual" != "$expected" ]; then
diff <(echo "$actual" ) <(echo "$expected")
exit 1
fi
done


2 changes: 2 additions & 0 deletions integration/integration.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ cd "$(dirname "$0")"

# Static Analysis
./hurl_echo tests/*.hurl tests_error_lint/*.hurl
./export_json.sh tests/*.hurl

./lint.sh tests_error_lint/*.hurl
./generate_html

Expand Down
1 change: 1 addition & 0 deletions integration/tests/assert_base64.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"entries":[{"request":{"method":"GET","url":"http://localhost:8000/assert-base64"},"response":{"version":"HTTP/1.0","status":200}}]}
1 change: 1 addition & 0 deletions integration/tests/assert_header.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"entries":[{"request":{"method":"GET","url":"http://localhost:8000/assert-header"},"response":{"version":"HTTP/1.0","status":200,"headers":[{"name":"Content-Type","value":"text/html; charset=utf-8"},{"name":"Set-Cookie","value":"cookie1=value1; Path=/"},{"name":"Set-Cookie","value":"cookie2=value2; Path=/"}]}}]}
1 change: 1 addition & 0 deletions integration/tests/assert_json.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"entries":[{"request":{"method":"GET","url":"http://localhost:8000/assert-json"},"response":{"version":"HTTP/1.0","status":200}},{"request":{"method":"GET","url":"http://localhost:8000/assert-json/index"},"response":{"version":"HTTP/1.0","status":200}},{"request":{"method":"GET","url":"http://localhost:8000/assert-json"},"response":{"version":"HTTP/1.0","status":200}}]}
1 change: 1 addition & 0 deletions integration/tests/assert_match.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"entries":[{"request":{"method":"GET","url":"http://localhost:8000/assert-match"},"response":{"version":"HTTP/1.0","status":200}}]}
1 change: 1 addition & 0 deletions integration/tests/assert_regex.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"entries":[{"request":{"method":"GET","url":"http://localhost:8000/assert-regex"},"response":{"version":"HTTP/1.0","status":200}}]}
1 change: 1 addition & 0 deletions integration/tests/assert_status_code.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"entries":[{"request":{"method":"GET","url":"http://localhost:8000/assert-status-code"},"response":{"version":"HTTP/1.0","status":201}},{"request":{"method":"GET","url":"http://localhost:8000/assert-status-code"},"response":{}}]}
1 change: 1 addition & 0 deletions integration/tests/assert_xpath.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"entries":[{"request":{"method":"GET","url":"http://localhost:8000/assert-xpath"},"response":{"version":"HTTP/1.0","status":200}}]}
1 change: 1 addition & 0 deletions integration/tests/basic_authentication.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"entries":[{"request":{"method":"GET","url":"http://localhost:8000/basic-authentication"},"response":{"version":"HTTP/1.0","status":200}}]}
1 change: 1 addition & 0 deletions integration/tests/bytes.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"entries":[{"request":{"method":"GET","url":"http://localhost:8000/bytes"},"response":{"version":"HTTP/1.0","status":200,"headers":[{"name":"Content-Type","value":"application/octet-stream"}]}}]}
1 change: 1 addition & 0 deletions integration/tests/capture_and_assert.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"entries":[{"request":{"method":"GET","url":"http://localhost:8000/capture-and-assert"},"response":{"version":"HTTP/1.0","status":200}}]}
1 change: 1 addition & 0 deletions integration/tests/captures.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"entries":[{"request":{"method":"GET","url":"http://localhost:8000/captures"},"response":{"version":"HTTP/1.0","status":200}},{"request":{"method":"GET","url":"http://localhost:8000/captures-check"},"response":{"version":"HTTP/1.0","status":200}},{"request":{"method":"GET","url":"http://localhost:8000/captures-json"},"response":{"version":"HTTP/1.0","status":200}}]}
1 change: 1 addition & 0 deletions integration/tests/compressed.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"entries":[{"request":{"method":"GET","url":"http://localhost:8000/compressed/none"},"response":{"version":"HTTP/1.0","status":200,"headers":[{"name":"Content-Length","value":"12"},{"name":"Content-Type","value":"text/html; charset=utf-8"}]}},{"request":{"method":"GET","url":"http://localhost:8000/compressed/gzip"},"response":{"version":"HTTP/1.0","status":200,"headers":[{"name":"Content-Length","value":"32"},{"name":"Content-Encoding","value":"gzip"},{"name":"Content-Type","value":"text/html; charset=utf-8"}]}},{"request":{"method":"GET","url":"http://localhost:8000/compressed/zlib"},"response":{"version":"HTTP/1.0","status":200,"headers":[{"name":"Content-Length","value":"20"},{"name":"Content-Encoding","value":"deflate"},{"name":"Content-Type","value":"text/html; charset=utf-8"}]}},{"request":{"method":"GET","url":"http://localhost:8000/compressed/brotli"},"response":{"version":"HTTP/1.0","status":200,"headers":[{"name":"Content-Length","value":"17"},{"name":"Content-Encoding","value":"br"},{"name":"Content-Type","value":"text/html; charset=utf-8"}]}},{"request":{"method":"GET","url":"http://localhost:8000/compressed/brotli_identity"},"response":{"version":"HTTP/1.0","status":200,"headers":[{"name":"Content-Length","value":"17"},{"name":"Content-Encoding","value":"br, identity"},{"name":"Content-Type","value":"text/html; charset=utf-8"}]}}]}
1 change: 1 addition & 0 deletions integration/tests/cookie_storage.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"entries":[{"request":{"method":"GET","url":"http://localhost:8000/cookie-storage/assert-that-cookie1-is-valueA"},"response":{"version":"HTTP/1.0","status":200}},{"request":{"method":"GET","url":"http://localhost:8000/cookie-storage/assert-that-cookie1-is-not-in-session"},"response":{"version":"HTTP/1.0","status":200}}]}
1 change: 1 addition & 0 deletions integration/tests/cookies.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"entries":[{"request":{"method":"GET","url":"http://localhost:8000/cookies/set-request-cookie1-valueA"},"response":{"version":"HTTP/1.0","status":200}},{"request":{"method":"GET","url":"http://localhost:8000/cookies/assert-that-cookie1-is-not-in-session"},"response":{"version":"HTTP/1.0","status":200}},{"request":{"method":"GET","url":"http://localhost:8000/cookies/set-multiple-request-cookies"},"response":{"version":"HTTP/1.0","status":200}},{"request":{"method":"GET","url":"http://localhost:8000/cookies/set-session-cookie2-valueA"},"response":{"version":"HTTP/1.0","status":200}},{"request":{"method":"GET","url":"http://localhost:8000/cookies/assert-that-cookie2-is-valueA"},"response":{"version":"HTTP/1.0","status":200}},{"request":{"method":"GET","url":"http://localhost:8000/cookies/assert-that-cookie2-is-valueA-and-valueB"},"response":{"version":"HTTP/1.0","status":200}},{"request":{"method":"GET","url":"http://localhost:8000/cookies/delete-cookie2"},"response":{"version":"HTTP/1.0","status":200}},{"request":{"method":"GET","url":"http://localhost:8000/cookies/assert-that-cookie2-is-not-in-session"},"response":{"version":"HTTP/1.0","status":200}},{"request":{"method":"GET","url":"http://localhost:8000/cookies/set"},"response":{"version":"HTTP/1.0","status":200,"headers":[{"name":"Set-Cookie","value":"LSID=DQAAAKEaem_vYg; Expires=Wed, 13 Jan 2021 22:23:01 GMT; Secure; HttpOnly; Path=/accounts"},{"name":"Set-Cookie","value":"HSID=AYQEVnDKrdst; Domain=.localhost; Expires=Wed, 13 Jan 2021 22:23:01 GMT; HttpOnly; Path=/"},{"name":"Set-Cookie","value":"SSID=Ap4PGTEq; Domain=.localhost; Expires=Wed, 13 Jan 2021 22:23:01 GMT; Secure; HttpOnly; Path=/"}]}}]}
1 change: 1 addition & 0 deletions integration/tests/delete.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"entries":[{"request":{"method":"DELETE","url":"http://localhost:8000/delete"},"response":{"version":"HTTP/1.0","status":200}}]}
1 change: 1 addition & 0 deletions integration/tests/empty.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"entries":[]}
1 change: 1 addition & 0 deletions integration/tests/encoding.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"entries":[{"request":{"method":"GET","url":"http://localhost:8000/encoding/utf8"},"response":{"version":"HTTP/1.0","status":200,"headers":[{"name":"Content-Type","value":"text/html; charset=utf-8"}]}},{"request":{"method":"GET","url":"http://localhost:8000/encoding/latin1"},"response":{"version":"HTTP/1.0","status":200,"headers":[{"name":"Content-Type","value":"text/html; charset=ISO-8859-1"}]}}]}
1 change: 1 addition & 0 deletions integration/tests/error_assert_base64.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"entries":[{"request":{"method":"GET","url":"http://localhost:8000/assert-base64"},"response":{"version":"HTTP/1.0","status":200}}]}
1 change: 1 addition & 0 deletions integration/tests/error_assert_content_encoding.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"entries":[{"request":{"method":"GET","url":"http://localhost:8000/error/content-encoding"},"response":{"version":"HTTP/1.0","status":200}}]}
1 change: 1 addition & 0 deletions integration/tests/error_assert_decompress.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"entries":[{"request":{"method":"GET","url":"http://localhost:8000/error-assert-decompress"},"response":{"version":"HTTP/1.0","status":200}}]}
1 change: 1 addition & 0 deletions integration/tests/error_assert_file.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"entries":[{"request":{"method":"GET","url":"http://localhost:8000/error-assert-file"},"response":{"version":"HTTP/1.0","status":200}}]}
1 change: 1 addition & 0 deletions integration/tests/error_assert_header_not_found.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"entries":[{"request":{"method":"GET","url":"http://localhost:8000/error-assert-header-not-found"},"response":{"version":"HTTP/1.0","status":200,"headers":[{"name":"Custom","value":"???"}]}}]}
1 change: 1 addition & 0 deletions integration/tests/error_assert_header_value.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"entries":[{"request":{"method":"GET","url":"http://localhost:8000/error-assert-header-value"},"response":{"version":"HTTP/1.0","status":200,"headers":[{"name":"Content-Type","value":"???"}]}},{"request":{"method":"GET","url":"http://localhost:8000/error-assert-header-value"},"response":{"version":"HTTP/1.0","status":200,"headers":[{"name":"Content-Type","value":"???"}]}}]}
1 change: 1 addition & 0 deletions integration/tests/error_assert_http_version.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"entries":[{"request":{"method":"GET","url":"http://localhost:8000/error-assert/http-version"},"response":{"version":"HTTP/2","status":200}}]}
1 change: 1 addition & 0 deletions integration/tests/error_assert_invalid_predicate_type.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"entries":[{"request":{"method":"GET","url":"http://localhost:8000/error-assert-invalid-predicate-type"},"response":{"version":"HTTP/1.0","status":200}}]}
1 change: 1 addition & 0 deletions integration/tests/error_assert_match_utf8.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"entries":[{"request":{"method":"GET","url":"http://localhost:8000/error-assert/match-utf8"},"response":{"version":"HTTP/1.0","status":200}}]}
1 change: 1 addition & 0 deletions integration/tests/error_assert_query_cookie.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"entries":[{"request":{"method":"GET","url":"http://localhost:8000/error-assert-query-cookie"},"response":{"version":"HTTP/1.0","status":200}}]}
1 change: 1 addition & 0 deletions integration/tests/error_assert_query_invalid_regex.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"entries":[{"request":{"method":"GET","url":"http://localhost:8000/error-assert-query-invalid-regex"},"response":{"version":"HTTP/1.0","status":200}}]}
1 change: 1 addition & 0 deletions integration/tests/error_assert_query_invalid_xpath.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"entries":[{"request":{"method":"GET","url":"http://localhost:8000/utf8"},"response":{"version":"HTTP/1.0","status":200}}]}
1 change: 1 addition & 0 deletions integration/tests/error_assert_status.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"entries":[{"request":{"method":"GET","url":"http://localhost:8000/not_found"},"response":{"version":"HTTP/1.0","status":200}}]}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"entries":[{"request":{"method":"GET","url":"http://localhost:8000/error-assert-template-variable-not-found"},"response":{"version":"HTTP/1.0","status":200}}]}
1 change: 1 addition & 0 deletions integration/tests/error_assert_value_error.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"entries":[{"request":{"method":"GET","url":"http://localhost:8000/error-assert-value"},"response":{"version":"HTTP/1.0","status":200}}]}
1 change: 1 addition & 0 deletions integration/tests/error_assert_variable.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"entries":[{"request":{"method":"GET","url":"http://localhost:8000/error-assert-variable"},"response":{"version":"HTTP/1.0","status":200}}]}
1 change: 1 addition & 0 deletions integration/tests/error_file_read_access.hurl.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"entries":[{"request":{"method":"POST","url":"http://localhost:8000/error-file-read-access"},"response":{"version":"HTTP/1.1","status":200}}]}
1 change: 1 addition & 0 deletions integration/tests/error_file_read_access.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"entries":[{"request":{"method":"POST","url":"http://localhost:8000/error-file-read-access"},"response":{"version":"HTTP/1.1","status":200}}]}
1 change: 1 addition & 0 deletions integration/tests/error_http_connection.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"entries":[{"request":{"method":"GET","url":"http://unknown"}}]}
1 change: 1 addition & 0 deletions integration/tests/error_invalid_jsonpath.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"entries":[{"request":{"method":"GET","url":"http://localhost:8000/error-invalid-jsonpath"},"response":{"version":"HTTP/1.0","status":200}}]}
1 change: 1 addition & 0 deletions integration/tests/error_invalid_url.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"entries":[{"request":{"method":"GET","url":"???"}}]}
1 change: 1 addition & 0 deletions integration/tests/error_invalid_xml.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"entries":[{"request":{"method":"GET","url":"http://localhost:8000/error-invalid-xml"},"response":{"version":"HTTP/1.0","status":200}}]}
1 change: 1 addition & 0 deletions integration/tests/error_multipart_form_data.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"entries":[{"request":{"method":"POST","url":"http://localhost:8000/unused"}}]}
1 change: 1 addition & 0 deletions integration/tests/error_output_decompress.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"entries":[{"request":{"method":"GET","url":"http://localhost:8000/error-output-decompress"},"response":{"version":"HTTP/1.0","status":200}}]}
1 change: 1 addition & 0 deletions integration/tests/error_predicate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"entries":[{"request":{"method":"GET","url":"http://localhost:8000/predicate/error/type"},"response":{"version":"HTTP/1.0","status":200}}]}
1 change: 1 addition & 0 deletions integration/tests/error_query_header_not_found.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"entries":[{"request":{"method":"GET","url":"http://localhost:8000/error-query-header-not-found"},"response":{"version":"HTTP/1.0","status":200,"headers":[{"name":"Custom","value":"XXX"}]}}]}
1 change: 1 addition & 0 deletions integration/tests/error_query_invalid_json.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"entries":[{"request":{"method":"GET","url":"http://localhost:8000/error-query-invalid-json"},"response":{"version":"HTTP/1.0","status":200}}]}
1 change: 1 addition & 0 deletions integration/tests/error_query_invalid_utf8.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"entries":[{"request":{"method":"GET","url":"http://localhost:8000/error-query-invalid-utf8"},"response":{"version":"HTTP/1.0","status":200}}]}
1 change: 1 addition & 0 deletions integration/tests/error_template_variable_not_found.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"entries":[{"request":{"method":"GET","url":"{{url}}"}}]}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"entries":[{"request":{"method":"GET","url":"http://localhost:8000/get-list"},"response":{"version":"HTTP/1.0","status":200}},{"request":{"method":"GET","url":"http://localhost:8000/undefined"},"response":{"version":"HTTP/1.1","status":200}}]}
1 change: 1 addition & 0 deletions integration/tests/error_timeout.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"entries":[{"request":{"method":"GET","url":"http://localhost:8000/timeout"}}]}
1 change: 1 addition & 0 deletions integration/tests/expect.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"entries":[{"request":{"method":"POST","url":"http://localhost:8000/expect","headers":[{"name":"Expect","value":"100-continue"}]},"response":{"version":"HTTP/1.0","status":200}}]}
1 change: 1 addition & 0 deletions integration/tests/follow_redirect.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"entries":[{"request":{"method":"GET","url":"http://localhost:8000/follow-redirect"},"response":{"version":"HTTP/1.0","status":200}}]}
1 change: 1 addition & 0 deletions integration/tests/form_params.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"entries":[{"request":{"method":"POST","url":"http://localhost:8000/form-params"},"response":{"version":"HTTP/1.0","status":200}},{"request":{"method":"POST","url":"http://localhost:8000/form-params","headers":[{"name":"Content-Type","value":"application/x-www-form-urlencoded"}]},"response":{"version":"HTTP/1.0","status":200}}]}
1 change: 1 addition & 0 deletions integration/tests/headers.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"entries":[{"request":{"method":"GET","url":"http://localhost:8000/default-headers"},"response":{"version":"HTTP/1.0","status":200}},{"request":{"method":"GET","url":"http://localhost:8000/default-headers","headers":[{"name":"User-Agent","value":"hurl/1.0"},{"name":"Host","value":"localhost:8000"}]},"response":{"version":"HTTP/1.0","status":200}},{"request":{"method":"GET","url":"http://localhost:8000/default-headers","headers":[{"name":"User-Agent","value":"hurl/1.0"},{"name":"Host","value":"localhost:8000"}]},"response":{"version":"HTTP/1.0","status":200}},{"request":{"method":"GET","url":"http://localhost:8000/custom-headers","headers":[{"name":"Fruit","value":"Raspberry"},{"name":"Fruit","value":"Apple"},{"name":"Fruit","value":"Banana"},{"name":"Fruit","value":"Grape"},{"name":"Color","value":"Green"}]},"response":{"version":"HTTP/1.0","status":200}},{"request":{"method":"GET","url":"http://localhost:8000/custom-headers-utf8","headers":[{"name":"Beverage","value":"café"}]},"response":{"version":"HTTP/1.0","status":200}},{"request":{"method":"GET","url":"http://localhost:8000/response-headers"},"response":{"version":"HTTP/1.0","status":200,"headers":[{"name":"Beverage","value":"cafe"}]}}]}
1 change: 1 addition & 0 deletions integration/tests/hello.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"entries":[{"request":{"method":"GET","url":"http://localhost:8000/hello"},"response":{"version":"HTTP/1.0","status":200}},{"request":{"method":"GET","url":"http://localhost:8000/hello"},"response":{"version":"HTTP/1.0","status":200}}]}
1 change: 1 addition & 0 deletions integration/tests/multipart_form_data.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"entries":[{"request":{"method":"POST","url":"http://localhost:8000/multipart-form-data"},"response":{"version":"HTTP/1.0","status":200}}]}
1 change: 1 addition & 0 deletions integration/tests/no_entry.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"entries":[]}
1 change: 1 addition & 0 deletions integration/tests/output.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"entries":[{"request":{"method":"POST","url":"http://localhost:8000/output/endpoint1"},"response":{"version":"HTTP/1.0","status":200}},{"request":{"method":"GET","url":"http://localhost:8000/output/endpoint2"},"response":{"version":"HTTP/1.0","status":200}}]}
1 change: 1 addition & 0 deletions integration/tests/patch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"entries":[{"request":{"method":"PATCH","url":"http://localhost:8000/patch/file.txt","headers":[{"name":"Host","value":"www.example.com"},{"name":"Content-Type","value":"application/example"},{"name":"If-Match","value":"\"e0023aa4e\""}]},"response":{"version":"HTTP/1.0","status":204,"headers":[{"name":"Content-Location","value":"/file.txt"},{"name":"ETag","value":"\"e0023aa4f\""}]}}]}
1 change: 1 addition & 0 deletions integration/tests/post_base64.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"entries":[{"request":{"method":"POST","url":"http://localhost:8000/post-base64"},"response":{"version":"HTTP/1.0","status":200}}]}
1 change: 1 addition & 0 deletions integration/tests/post_file.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"entries":[{"request":{"method":"POST","url":"http://localhost:8000/post-file"},"response":{"version":"HTTP/1.0","status":200}}]}
1 change: 1 addition & 0 deletions integration/tests/post_json.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"entries":[{"request":{"method":"POST","url":"http://localhost:8000/post-json"},"response":{"version":"HTTP/1.0","status":200}},{"request":{"method":"POST","url":"http://localhost:8000/post-json-array"},"response":{"version":"HTTP/1.0","status":200}},{"request":{"method":"POST","url":"http://localhost:8000/post-json-string"},"response":{"version":"HTTP/1.0","status":200}},{"request":{"method":"POST","url":"http://localhost:8000/post-json-number"},"response":{"version":"HTTP/1.0","status":200}},{"request":{"method":"POST","url":"http://localhost:8000/post-json-numbers"},"response":{"version":"HTTP/1.0","status":200}},{"request":{"method":"POST","url":"http://localhost:8000/post-json-boolean"},"response":{"version":"HTTP/1.0","status":200}},{"request":{"method":"GET","url":"http://localhost:8000/get-name"},"response":{"version":"HTTP/1.0","status":200}},{"request":{"method":"POST","url":"http://localhost:8000/post-json"}}]}
1 change: 1 addition & 0 deletions integration/tests/post_multilines.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"entries":[{"request":{"method":"POST","url":"http://localhost:8000/post-multilines"},"response":{"version":"HTTP/1.0","status":200}},{"request":{"method":"GET","url":"http://localhost:8000/get-bob-age"},"response":{"version":"HTTP/1.0","status":200}},{"request":{"method":"POST","url":"http://localhost:8000/post-multilines"},"response":{"version":"HTTP/1.0","status":200}}]}
1 change: 1 addition & 0 deletions integration/tests/post_xml.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"entries":[{"request":{"method":"POST","url":"http://localhost:8000/post-xml"},"response":{"version":"HTTP/1.0","status":200}},{"request":{"method":"POST","url":"http://localhost:8000/post-xml-no-prolog"},"response":{"version":"HTTP/1.0","status":200}}]}
1 change: 1 addition & 0 deletions integration/tests/predicates-string.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"entries":[{"request":{"method":"GET","url":"http://localhost:8000/predicates-string"},"response":{"version":"HTTP/1.0","status":200}},{"request":{"method":"GET","url":"http://localhost:8000/predicates-string-empty"},"response":{"version":"HTTP/1.0","status":200}}]}
1 change: 1 addition & 0 deletions integration/tests/proxy.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"entries":[{"request":{"method":"GET","url":"http://localhost:8000/proxy"},"response":{"version":"HTTP/1.0","status":200,"headers":[{"name":"From-Proxy","value":"Hello"}]}}]}
1 change: 1 addition & 0 deletions integration/tests/put.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"entries":[{"request":{"method":"PUT","url":"http://localhost:8000/put"},"response":{"version":"HTTP/1.0","status":200}}]}
1 change: 1 addition & 0 deletions integration/tests/querystring_params.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"entries":[{"request":{"method":"GET","url":"http://localhost:8000/querystring-params"},"response":{"version":"HTTP/1.0","status":200}},{"request":{"method":"GET","url":"http://localhost:8000/querystring-params?param1=value1&param2=&param3=a%3db&param4=1,2,3"},"response":{"version":"HTTP/1.0","status":200}},{"request":{"method":"GET","url":"http://localhost:8000/querystring-params?param1=value1"},"response":{"version":"HTTP/1.0","status":200}},{"request":{"method":"GET","url":"http://localhost:8000/querystring-params-encoded?value1=/&value2=%2F"},"response":{"version":"HTTP/1.0","status":200}}]}
1 change: 1 addition & 0 deletions integration/tests/redirect.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"entries":[{"request":{"method":"GET","url":"http://localhost:8000/redirect"},"response":{"version":"HTTP/1.0","status":302,"headers":[{"name":"Location","value":"http://localhost:8000/redirected"}]}},{"request":{"method":"GET","url":"http://localhost:8000/redirected"},"response":{"version":"HTTP/1.0","status":200}}]}
1 change: 1 addition & 0 deletions integration/tests/utf8.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"entries":[{"request":{"method":"GET","url":"http://localhost:8000/utf8"},"response":{"version":"HTTP/1.0","status":200}}]}
Loading

0 comments on commit 61b6141

Please sign in to comment.