diff --git a/integration/test_format.py b/integration/test_format.py index 98c3fa55f..225d0bef9 100755 --- a/integration/test_format.py +++ b/integration/test_format.py @@ -3,6 +3,7 @@ # The file is parsed and output exactly as the input # import codecs +import os import sys import subprocess @@ -17,11 +18,13 @@ def decode_string(encoded): def test(format_type, hurl_file): + output_file = hurl_file.replace('.hurl','.' + format_type) + if not os.path.exists(output_file): + return cmd = ['hurlfmt', '--format', format_type, hurl_file] print(' '.join(cmd)) result = subprocess.run(cmd, stdout=subprocess.PIPE) - json_file = hurl_file.replace('.hurl','.' + format_type) - expected = open(json_file, encoding='utf-8').read().strip() + expected = open(output_file, encoding='utf-8').read().strip() actual = decode_string(result.stdout) if actual != expected: print('>>> error in stdout') diff --git a/integration/tests/error_assert_base64.html b/integration/tests/error_assert_base64.html deleted file mode 100644 index 0c5dc8fac..000000000 --- a/integration/tests/error_assert_base64.html +++ /dev/null @@ -1 +0,0 @@ -
# Test body response with line ending LF and CRLF.# We receive the text body "line1\nline2\r\nline3\n"# and not "line1\nline2\nline3\n"## $ printf "line1\nline2\nline3\n" | base64# bGluZTEKbGluZTIKbGluZTMKGET http://localhost:8000/assert-base64
HTTP/1.0 200base64,bGluZTEKbGluZTIKbGluZTMK;
\ No newline at end of file diff --git a/integration/tests/error_assert_base64.json b/integration/tests/error_assert_base64.json deleted file mode 100644 index b24d88430..000000000 --- a/integration/tests/error_assert_base64.json +++ /dev/null @@ -1 +0,0 @@ -{"entries":[{"request":{"method":"GET","url":"http://localhost:8000/assert-base64"},"response":{"version":"HTTP/1.0","status":200,"body":{"encoding":"base64","value":"bGluZTEKbGluZTIKbGluZTMK"}}}]} \ No newline at end of file diff --git a/integration/tests/error_assert_bytearray.html b/integration/tests/error_assert_bytearray.html deleted file mode 100644 index 880c32248..000000000 --- a/integration/tests/error_assert_bytearray.html +++ /dev/null @@ -1 +0,0 @@ -
GET http://localhost:8000/error-assert-bytearray
HTTP/1.0 200[Asserts]bytes equals hex,00;sha256 equals hex,a8100ae6aa1940d0b663bb31cd466142ebbdbd5187131b92d93818987832eb88;
\ No newline at end of file diff --git a/integration/tests/error_assert_bytearray.json b/integration/tests/error_assert_bytearray.json deleted file mode 100644 index ab632fc9a..000000000 --- a/integration/tests/error_assert_bytearray.json +++ /dev/null @@ -1 +0,0 @@ -{"entries":[{"request":{"method":"GET","url":"http://localhost:8000/error-assert-bytearray"},"response":{"version":"HTTP/1.0","status":200,"asserts":[{"query":{"type":"bytes"},"predicate":{"type":"equal","value":"AA==","encoding":"base64"}},{"query":{"type":"sha256"},"predicate":{"type":"equal","value":"qBAK5qoZQNC2Y7sxzUZhQuu9vVGHExuS2TgYmHgy64g=","encoding":"base64"}}]}}]} \ No newline at end of file diff --git a/integration/tests/error_assert_content_encoding.html b/integration/tests/error_assert_content_encoding.html deleted file mode 100644 index a7330d682..000000000 --- a/integration/tests/error_assert_content_encoding.html +++ /dev/null @@ -1 +0,0 @@ -
# Return an unsupported content encodingGET http://localhost:8000/error/content-encoding
HTTP/1.0 200```Hello World!```
\ No newline at end of file diff --git a/integration/tests/error_assert_content_encoding.json b/integration/tests/error_assert_content_encoding.json deleted file mode 100644 index 0974fcde4..000000000 --- a/integration/tests/error_assert_content_encoding.json +++ /dev/null @@ -1 +0,0 @@ -{"entries":[{"request":{"method":"GET","url":"http://localhost:8000/error/content-encoding"},"response":{"version":"HTTP/1.0","status":200,"body":{"type":"raw-string","value":"Hello World!"}}}]} diff --git a/integration/tests/error_assert_decompress.html b/integration/tests/error_assert_decompress.html deleted file mode 100644 index 6acf2ebbb..000000000 --- a/integration/tests/error_assert_decompress.html +++ /dev/null @@ -1 +0,0 @@ -
GET http://localhost:8000/error-assert-decompress
HTTP/1.0 200```Hello World!```
\ No newline at end of file diff --git a/integration/tests/error_assert_decompress.json b/integration/tests/error_assert_decompress.json deleted file mode 100644 index c3d9c52bc..000000000 --- a/integration/tests/error_assert_decompress.json +++ /dev/null @@ -1 +0,0 @@ -{"entries":[{"request":{"method":"GET","url":"http://localhost:8000/error-assert-decompress"},"response":{"version":"HTTP/1.0","status":200,"body":{"type":"raw-string","value":"Hello World!"}}}]} diff --git a/integration/tests/error_assert_file.html b/integration/tests/error_assert_file.html deleted file mode 100644 index 5383c7c86..000000000 --- a/integration/tests/error_assert_file.html +++ /dev/null @@ -1 +0,0 @@ -
# Test body response with file assertion.# We receive the body "Hello" and not "Hello World!"GET http://localhost:8000/error-assert-file
HTTP/1.0 200file,data.txt;
\ No newline at end of file diff --git a/integration/tests/error_assert_file.json b/integration/tests/error_assert_file.json deleted file mode 100644 index 57dbe2c85..000000000 --- a/integration/tests/error_assert_file.json +++ /dev/null @@ -1 +0,0 @@ -{"entries":[{"request":{"method":"GET","url":"http://localhost:8000/error-assert-file"},"response":{"version":"HTTP/1.0","status":200,"body":{"type":"file","filename":"data.txt"}}}]} diff --git a/integration/tests/error_assert_header_not_found.html b/integration/tests/error_assert_header_not_found.html deleted file mode 100644 index 6ea970c57..000000000 --- a/integration/tests/error_assert_header_not_found.html +++ /dev/null @@ -1 +0,0 @@ -
GET http://localhost:8000/error-assert-header-not-found
HTTP/1.0 200Custom: ???
\ No newline at end of file diff --git a/integration/tests/error_assert_header_not_found.json b/integration/tests/error_assert_header_not_found.json deleted file mode 100644 index 94bfd5207..000000000 --- a/integration/tests/error_assert_header_not_found.json +++ /dev/null @@ -1 +0,0 @@ -{"entries":[{"request":{"method":"GET","url":"http://localhost:8000/error-assert-header-not-found"},"response":{"version":"HTTP/1.0","status":200,"headers":[{"name":"Custom","value":"???"}]}}]} diff --git a/integration/tests/error_assert_header_value.html b/integration/tests/error_assert_header_value.html deleted file mode 100644 index a31e8e48b..000000000 --- a/integration/tests/error_assert_header_value.html +++ /dev/null @@ -1 +0,0 @@ -
GET http://localhost:8000/error-assert-header-value
HTTP/1.0 200Content-Type: ???
GET http://localhost:8000/error-assert-header-value
HTTP/1.0 200Content-Type: ???
\ No newline at end of file diff --git a/integration/tests/error_assert_header_value.json b/integration/tests/error_assert_header_value.json deleted file mode 100644 index 548914c96..000000000 --- a/integration/tests/error_assert_header_value.json +++ /dev/null @@ -1 +0,0 @@ -{"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":"???"}]}}]} diff --git a/integration/tests/error_assert_http_version.html b/integration/tests/error_assert_http_version.html deleted file mode 100644 index c35b27655..000000000 --- a/integration/tests/error_assert_http_version.html +++ /dev/null @@ -1 +0,0 @@ -
GET http://localhost:8000/error-assert/http-version
HTTP/2 200
\ No newline at end of file diff --git a/integration/tests/error_assert_http_version.json b/integration/tests/error_assert_http_version.json deleted file mode 100644 index 2d88462d3..000000000 --- a/integration/tests/error_assert_http_version.json +++ /dev/null @@ -1 +0,0 @@ -{"entries":[{"request":{"method":"GET","url":"http://localhost:8000/error-assert/http-version"},"response":{"version":"HTTP/2","status":200}}]} diff --git a/integration/tests/error_assert_invalid_predicate_type.html b/integration/tests/error_assert_invalid_predicate_type.html deleted file mode 100644 index a00234e5b..000000000 --- a/integration/tests/error_assert_invalid_predicate_type.html +++ /dev/null @@ -1 +0,0 @@ -
GET http://localhost:8000/error-assert-invalid-predicate-type
HTTP/1.0 200[Asserts]header "content-type" equals 1
\ No newline at end of file diff --git a/integration/tests/error_assert_invalid_predicate_type.json b/integration/tests/error_assert_invalid_predicate_type.json deleted file mode 100644 index 1fa49d3ef..000000000 --- a/integration/tests/error_assert_invalid_predicate_type.json +++ /dev/null @@ -1 +0,0 @@ -{"entries":[{"request":{"method":"GET","url":"http://localhost:8000/error-assert-invalid-predicate-type"},"response":{"version":"HTTP/1.0","status":200,"asserts":[{"query":{"type":"header","name":"content-type"},"predicate":{"type":"equal","value":1}}]}}]} diff --git a/integration/tests/error_assert_match_utf8.html b/integration/tests/error_assert_match_utf8.html deleted file mode 100644 index aedb0ccaa..000000000 --- a/integration/tests/error_assert_match_utf8.html +++ /dev/null @@ -1 +0,0 @@ -
GET http://localhost:8000/error-assert/match-utf8
HTTP/1.0 200[Asserts]status matches ".*"
\ No newline at end of file diff --git a/integration/tests/error_assert_match_utf8.json b/integration/tests/error_assert_match_utf8.json deleted file mode 100644 index 09eb52e84..000000000 --- a/integration/tests/error_assert_match_utf8.json +++ /dev/null @@ -1 +0,0 @@ -{"entries":[{"request":{"method":"GET","url":"http://localhost:8000/error-assert/match-utf8"},"response":{"version":"HTTP/1.0","status":200,"asserts":[{"query":{"type":"body"},"predicate":{"type":"match","value":".*"}}]}}]} diff --git a/integration/tests/error_assert_query_cookie.html b/integration/tests/error_assert_query_cookie.html deleted file mode 100644 index a13815bfe..000000000 --- a/integration/tests/error_assert_query_cookie.html +++ /dev/null @@ -1 +0,0 @@ -
GET http://localhost:8000/error-assert-query-cookie
HTTP/1.0 200[Asserts]cookie "cookie1[Secure]" not existscookie "cookie1[Secure]" equals falsecookie "cookie1[Secure]" not equals truecookie "cookie2[Secure]" existscookie "cookie2[Secure]" equals truecookie "cookie2[Secure]" not equals true
\ No newline at end of file diff --git a/integration/tests/error_assert_query_cookie.json b/integration/tests/error_assert_query_cookie.json deleted file mode 100644 index 78b4b2b6c..000000000 --- a/integration/tests/error_assert_query_cookie.json +++ /dev/null @@ -1 +0,0 @@ -{"entries":[{"request":{"method":"GET","url":"http://localhost:8000/error-assert-query-cookie"},"response":{"version":"HTTP/1.0","status":200,"asserts":[{"query":{"type":"cookie","expr":"cookie1[Secure]"},"predicate":{"not":true,"type":"exist"}},{"query":{"type":"cookie","expr":"cookie1[Secure]"},"predicate":{"type":"equal","value":false}},{"query":{"type":"cookie","expr":"cookie1[Secure]"},"predicate":{"not":true,"type":"equal","value":true}},{"query":{"type":"cookie","expr":"cookie2[Secure]"},"predicate":{"type":"exist"}},{"query":{"type":"cookie","expr":"cookie2[Secure]"},"predicate":{"type":"equal","value":true}},{"query":{"type":"cookie","expr":"cookie2[Secure]"},"predicate":{"not":true,"type":"equal","value":true}}]}}]} diff --git a/integration/tests/error_assert_query_invalid_regex.html b/integration/tests/error_assert_query_invalid_regex.html deleted file mode 100644 index e389bd92b..000000000 --- a/integration/tests/error_assert_query_invalid_regex.html +++ /dev/null @@ -1 +0,0 @@ -
GET http://localhost:8000/error-assert-query-invalid-regex
HTTP/1.0 200[Asserts]regex "[x" exists
\ No newline at end of file diff --git a/integration/tests/error_assert_query_invalid_regex.json b/integration/tests/error_assert_query_invalid_regex.json deleted file mode 100644 index 8a3496f6b..000000000 --- a/integration/tests/error_assert_query_invalid_regex.json +++ /dev/null @@ -1 +0,0 @@ -{"entries":[{"request":{"method":"GET","url":"http://localhost:8000/error-assert-query-invalid-regex"},"response":{"version":"HTTP/1.0","status":200,"asserts":[{"query":{"type":"regex","expr":"[x"},"predicate":{"type":"exist"}}]}}]} diff --git a/integration/tests/error_assert_query_invalid_xpath.html b/integration/tests/error_assert_query_invalid_xpath.html deleted file mode 100644 index a85b36c6f..000000000 --- a/integration/tests/error_assert_query_invalid_xpath.html +++ /dev/null @@ -1 +0,0 @@ -
GET http://localhost:8000/utf8
HTTP/1.0 200[Asserts]xpath "//" equals 1
\ No newline at end of file diff --git a/integration/tests/error_assert_query_invalid_xpath.json b/integration/tests/error_assert_query_invalid_xpath.json deleted file mode 100644 index 8c8849769..000000000 --- a/integration/tests/error_assert_query_invalid_xpath.json +++ /dev/null @@ -1 +0,0 @@ -{"entries":[{"request":{"method":"GET","url":"http://localhost:8000/utf8"},"response":{"version":"HTTP/1.0","status":200,"asserts":[{"query":{"type":"xpath","expr":"//"},"predicate":{"type":"equal","value":1}}]}}]} diff --git a/integration/tests/error_assert_status.html b/integration/tests/error_assert_status.html deleted file mode 100644 index 2e1ab9a09..000000000 --- a/integration/tests/error_assert_status.html +++ /dev/null @@ -1 +0,0 @@ -
GET http://localhost:8000/not_found
HTTP/1.0 200
\ No newline at end of file diff --git a/integration/tests/error_assert_status.json b/integration/tests/error_assert_status.json deleted file mode 100644 index be5adad7c..000000000 --- a/integration/tests/error_assert_status.json +++ /dev/null @@ -1 +0,0 @@ -{"entries":[{"request":{"method":"GET","url":"http://localhost:8000/not_found"},"response":{"version":"HTTP/1.0","status":200}}]} diff --git a/integration/tests/error_assert_template_variable_not_found.html b/integration/tests/error_assert_template_variable_not_found.html deleted file mode 100644 index 3054f7ece..000000000 --- a/integration/tests/error_assert_template_variable_not_found.html +++ /dev/null @@ -1 +0,0 @@ -
GET http://localhost:8000/error-assert-template-variable-not-found
HTTP/1.0 200[Asserts]header "content-type" equals "{{content_type}}"
\ No newline at end of file diff --git a/integration/tests/error_assert_template_variable_not_found.json b/integration/tests/error_assert_template_variable_not_found.json deleted file mode 100644 index 7c41cefd9..000000000 --- a/integration/tests/error_assert_template_variable_not_found.json +++ /dev/null @@ -1 +0,0 @@ -{"entries":[{"request":{"method":"GET","url":"http://localhost:8000/error-assert-template-variable-not-found"},"response":{"version":"HTTP/1.0","status":200,"asserts":[{"query":{"type":"header","name":"content-type"},"predicate":{"type":"equal","value":"{{content_type}}"}}]}}]} diff --git a/integration/tests/error_assert_value_error.html b/integration/tests/error_assert_value_error.html deleted file mode 100644 index a8148b042..000000000 --- a/integration/tests/error_assert_value_error.html +++ /dev/null @@ -1 +0,0 @@ -
GET http://localhost:8000/error-assert-value
HTTP/1.0 200[Asserts]header "content-type" equals "XXX"header "content-type" notEquals "text/html; charset=utf-8"jsonpath "$.id" equals "000001"jsonpath "$.values" includes 100jsonpath "$.values" not contains "Hello"jsonpath "$.count" greaterThan 5jsonpath "$.count" isFloatbytes contains hex,00;
\ No newline at end of file diff --git a/integration/tests/error_assert_value_error.json b/integration/tests/error_assert_value_error.json deleted file mode 100644 index 272370219..000000000 --- a/integration/tests/error_assert_value_error.json +++ /dev/null @@ -1 +0,0 @@ -{"entries":[{"request":{"method":"GET","url":"http://localhost:8000/error-assert-value"},"response":{"version":"HTTP/1.0","status":200,"asserts":[{"query":{"type":"header","name":"content-type"},"predicate":{"type":"equal","value":"XXX"}},{"query":{"type":"header","name":"content-type"},"predicate":{"type":"not-equal","value":"text/html; charset=utf-8"}},{"query":{"type":"jsonpath","expr":"$.id"},"predicate":{"type":"equal","value":"000001"}},{"query":{"type":"jsonpath","expr":"$.values"},"predicate":{"type":"include","value":100}},{"query":{"type":"jsonpath","expr":"$.values"},"predicate":{"not":true,"type":"contain","value":"Hello"}},{"query":{"type":"jsonpath","expr":"$.count"},"predicate":{"type":"greater","value":5}},{"query":{"type":"jsonpath","expr":"$.count"},"predicate":{"type":"isFloat"}},{"query":{"type":"bytes"},"predicate":{"type":"contain","value":"AA==","encoding":"base64"}}]}}]} \ No newline at end of file diff --git a/integration/tests/error_assert_variable.html b/integration/tests/error_assert_variable.html deleted file mode 100644 index a2b6713f3..000000000 --- a/integration/tests/error_assert_variable.html +++ /dev/null @@ -1 +0,0 @@ -
GET http://localhost:8000/error-assert-variable
HTTP/1.0 200[Captures]status: statuslength: header "content-length"type: header "content-type"[Asserts]variable "toto" equals "tata"variable "status" equals {{unknown}}variable "status" equals {{type}}variable "status" equals {{length}}
\ No newline at end of file diff --git a/integration/tests/error_assert_variable.json b/integration/tests/error_assert_variable.json deleted file mode 100644 index a94be653a..000000000 --- a/integration/tests/error_assert_variable.json +++ /dev/null @@ -1 +0,0 @@ -{"entries":[{"request":{"method":"GET","url":"http://localhost:8000/error-assert-variable"},"response":{"version":"HTTP/1.0","status":200,"captures":[{"name":"status","query":{"type":"status"}},{"name":"length","query":{"type":"header","name":"content-length"}},{"name":"type","query":{"type":"header","name":"content-type"}}],"asserts":[{"query":{"type":"variable","name":"toto"},"predicate":{"type":"equal","value":"tata"}},{"query":{"type":"variable","name":"status"},"predicate":{"type":"equal","value":"unknown"}},{"query":{"type":"variable","name":"status"},"predicate":{"type":"equal","value":"type"}},{"query":{"type":"variable","name":"status"},"predicate":{"type":"equal","value":"length"}}]}}]} diff --git a/integration/tests/error_assert_xpath.html b/integration/tests/error_assert_xpath.html deleted file mode 100644 index 7e748bc5e..000000000 --- a/integration/tests/error_assert_xpath.html +++ /dev/null @@ -1 +0,0 @@ -
GET http://localhost:8000/error-assert-xpath
HTTP/1.0 200[Asserts]xpath "strong(//head/title)" equals "Welcome to Quiz!"
\ No newline at end of file diff --git a/integration/tests/error_assert_xpath.json b/integration/tests/error_assert_xpath.json deleted file mode 100644 index ec8306f49..000000000 --- a/integration/tests/error_assert_xpath.json +++ /dev/null @@ -1 +0,0 @@ -{"entries":[{"request":{"method":"GET","url":"http://localhost:8000/error-assert-xpath"},"response":{"version":"HTTP/1.0","status":200,"asserts":[{"query":{"type":"xpath","expr":"strong(//head/title)"},"predicate":{"type":"equal","value":"Welcome to Quiz!"}}]}}]} \ No newline at end of file diff --git a/integration/tests/error_body_json.html b/integration/tests/error_body_json.html deleted file mode 100644 index 5e7d2bdc7..000000000 --- a/integration/tests/error_body_json.html +++ /dev/null @@ -1 +0,0 @@ -
POST unused
{ "success": {{success}}}
\ No newline at end of file diff --git a/integration/tests/error_body_json.json b/integration/tests/error_body_json.json deleted file mode 100644 index 8864db27a..000000000 --- a/integration/tests/error_body_json.json +++ /dev/null @@ -1 +0,0 @@ -{"entries":[{"request":{"method":"POST","url":"unused","body":{"type":"json","value":{"success":"{{success}}"}}}}]} \ No newline at end of file diff --git a/integration/tests/error_connect_timeout.html b/integration/tests/error_connect_timeout.html deleted file mode 100644 index b21ad24ee..000000000 --- a/integration/tests/error_connect_timeout.html +++ /dev/null @@ -1 +0,0 @@ -
GET http://10.0.0.0
\ No newline at end of file diff --git a/integration/tests/error_connect_timeout.json b/integration/tests/error_connect_timeout.json deleted file mode 100644 index 3c467dbb8..000000000 --- a/integration/tests/error_connect_timeout.json +++ /dev/null @@ -1 +0,0 @@ -{"entries":[{"request":{"method":"GET","url":"http://10.0.0.0"}}]} \ No newline at end of file diff --git a/integration/tests/error_file_read_access.html b/integration/tests/error_file_read_access.html deleted file mode 100644 index 5b0fc16e9..000000000 --- a/integration/tests/error_file_read_access.html +++ /dev/null @@ -1 +0,0 @@ -
POST http://localhost:8000/error-file-read-access
file,does_not_exist;
HTTP/1.1 200
\ No newline at end of file diff --git a/integration/tests/error_file_read_access.hurl.json b/integration/tests/error_file_read_access.hurl.json deleted file mode 100644 index 3e1d88ccf..000000000 --- a/integration/tests/error_file_read_access.hurl.json +++ /dev/null @@ -1 +0,0 @@ -{"entries":[{"request":{"method":"POST","url":"http://localhost:8000/error-file-read-access"},"response":{"version":"HTTP/1.1","status":200}}]} diff --git a/integration/tests/error_file_read_access.json b/integration/tests/error_file_read_access.json deleted file mode 100644 index f171ed58c..000000000 --- a/integration/tests/error_file_read_access.json +++ /dev/null @@ -1 +0,0 @@ -{"entries":[{"request":{"method":"POST","url":"http://localhost:8000/error-file-read-access","body":{"type":"file","filename":"does_not_exist"}},"response":{"version":"HTTP/1.1","status":200}}]} diff --git a/integration/tests/error_http_connection.html b/integration/tests/error_http_connection.html deleted file mode 100644 index c2508c8f3..000000000 --- a/integration/tests/error_http_connection.html +++ /dev/null @@ -1 +0,0 @@ -
GET http://unknown
\ No newline at end of file diff --git a/integration/tests/error_http_connection.json b/integration/tests/error_http_connection.json deleted file mode 100644 index 9ae00d4ea..000000000 --- a/integration/tests/error_http_connection.json +++ /dev/null @@ -1 +0,0 @@ -{"entries":[{"request":{"method":"GET","url":"http://unknown"}}]} diff --git a/integration/tests/error_invalid_jsonpath.html b/integration/tests/error_invalid_jsonpath.html deleted file mode 100644 index 623256b32..000000000 --- a/integration/tests/error_invalid_jsonpath.html +++ /dev/null @@ -1 +0,0 @@ -
GET http://localhost:8000/error-invalid-jsonpath
HTTP/1.0 200[Asserts]jsonpath "" equals false
\ No newline at end of file diff --git a/integration/tests/error_invalid_jsonpath.json b/integration/tests/error_invalid_jsonpath.json deleted file mode 100644 index cb76e797a..000000000 --- a/integration/tests/error_invalid_jsonpath.json +++ /dev/null @@ -1 +0,0 @@ -{"entries":[{"request":{"method":"GET","url":"http://localhost:8000/error-invalid-jsonpath"},"response":{"version":"HTTP/1.0","status":200,"asserts":[{"query":{"type":"jsonpath","expr":""},"predicate":{"type":"equal","value":false}}]}}]} diff --git a/integration/tests/error_invalid_url.html b/integration/tests/error_invalid_url.html deleted file mode 100644 index 293156eba..000000000 --- a/integration/tests/error_invalid_url.html +++ /dev/null @@ -1 +0,0 @@ -
GET ???
\ No newline at end of file diff --git a/integration/tests/error_invalid_url.json b/integration/tests/error_invalid_url.json deleted file mode 100644 index 2d5e402fb..000000000 --- a/integration/tests/error_invalid_url.json +++ /dev/null @@ -1 +0,0 @@ -{"entries":[{"request":{"method":"GET","url":"???"}}]} diff --git a/integration/tests/error_invalid_xml.html b/integration/tests/error_invalid_xml.html deleted file mode 100644 index 3a2f48bf2..000000000 --- a/integration/tests/error_invalid_xml.html +++ /dev/null @@ -1 +0,0 @@ -
GET http://localhost:8000/error-invalid-xml
HTTP/1.0 200[Asserts]xpath "xx" equals 1
\ No newline at end of file diff --git a/integration/tests/error_invalid_xml.json b/integration/tests/error_invalid_xml.json deleted file mode 100644 index 51b226941..000000000 --- a/integration/tests/error_invalid_xml.json +++ /dev/null @@ -1 +0,0 @@ -{"entries":[{"request":{"method":"GET","url":"http://localhost:8000/error-invalid-xml"},"response":{"version":"HTTP/1.0","status":200,"asserts":[{"query":{"type":"xpath","expr":"xx"},"predicate":{"type":"equal","value":1}}]}}]} diff --git a/integration/tests/error_max_redirect.html b/integration/tests/error_max_redirect.html deleted file mode 100644 index 7665bb4ab..000000000 --- a/integration/tests/error_max_redirect.html +++ /dev/null @@ -1 +0,0 @@ -
GET http://localhost:8000/redirect/7
HTTP/1.0 200
\ No newline at end of file diff --git a/integration/tests/error_max_redirect.json b/integration/tests/error_max_redirect.json deleted file mode 100644 index df59e0035..000000000 --- a/integration/tests/error_max_redirect.json +++ /dev/null @@ -1 +0,0 @@ -{"entries":[{"request":{"method":"GET","url":"http://localhost:8000/redirect/7"},"response":{"version":"HTTP/1.0","status":200}}]} diff --git a/integration/tests/error_multipart_form_data.html b/integration/tests/error_multipart_form_data.html deleted file mode 100644 index 451df856a..000000000 --- a/integration/tests/error_multipart_form_data.html +++ /dev/null @@ -1 +0,0 @@ -
POST http://localhost:8000/unused
[MultipartFormData]key1: value1upload1: file,unknown;
\ No newline at end of file diff --git a/integration/tests/error_multipart_form_data.json b/integration/tests/error_multipart_form_data.json deleted file mode 100644 index f878cf4d2..000000000 --- a/integration/tests/error_multipart_form_data.json +++ /dev/null @@ -1 +0,0 @@ -{"entries":[{"request":{"method":"POST","url":"http://localhost:8000/unused","multipart_form_data":[{"name":"key1","value":"value1"},{"name":"upload1","filename":"unknown"}]}}]} diff --git a/integration/tests/error_output_decompress.html b/integration/tests/error_output_decompress.html deleted file mode 100644 index 35b43fb7e..000000000 --- a/integration/tests/error_output_decompress.html +++ /dev/null @@ -1 +0,0 @@ -
GET http://localhost:8000/error-output-decompress
HTTP/1.0 200
\ No newline at end of file diff --git a/integration/tests/error_output_decompress.json b/integration/tests/error_output_decompress.json deleted file mode 100644 index bbae172ea..000000000 --- a/integration/tests/error_output_decompress.json +++ /dev/null @@ -1 +0,0 @@ -{"entries":[{"request":{"method":"GET","url":"http://localhost:8000/error-output-decompress"},"response":{"version":"HTTP/1.0","status":200}}]} diff --git a/integration/tests/error_predicate.html b/integration/tests/error_predicate.html deleted file mode 100644 index ef6c5764e..000000000 --- a/integration/tests/error_predicate.html +++ /dev/null @@ -1 +0,0 @@ -
GET http://localhost:8000/predicate/error/type
HTTP/1.0 200[Asserts]jsonpath "$.status" equals "true"#jsonpath "$.count" equals "0"jsonpath "$.count" equals 0jsonpath "$.message" equals 0jsonpath "$.empty" equals 0jsonpath "$.number" equals 1.1jsonpath "$.message" startsWith "hi"jsonpath "$.message" endsWith "hi"jsonpath "$.message" contains "hi"jsonpath "$.message" matches "hi"jsonpath "$.message" count == 1jsonpath "$.toto" existsjsonpath "$.message" not existsjsonpath "$.list" count == 2
\ No newline at end of file diff --git a/integration/tests/error_predicate.json b/integration/tests/error_predicate.json deleted file mode 100644 index 57705e9ce..000000000 --- a/integration/tests/error_predicate.json +++ /dev/null @@ -1 +0,0 @@ -{"entries":[{"request":{"method":"GET","url":"http://localhost:8000/predicate/error/type"},"response":{"version":"HTTP/1.0","status":200,"asserts":[{"query":{"type":"jsonpath","expr":"$.status"},"predicate":{"type":"equal","value":"true"}},{"query":{"type":"jsonpath","expr":"$.count"},"predicate":{"type":"equal","value":0}},{"query":{"type":"jsonpath","expr":"$.message"},"predicate":{"type":"equal","value":0}},{"query":{"type":"jsonpath","expr":"$.empty"},"predicate":{"type":"equal","value":0}},{"query":{"type":"jsonpath","expr":"$.number"},"predicate":{"type":"equal","value":1.1}},{"query":{"type":"jsonpath","expr":"$.message"},"predicate":{"type":"start-with","value":"hi"}},{"query":{"type":"jsonpath","expr":"$.message"},"predicate":{"type":"end-with","value":"hi"}},{"query":{"type":"jsonpath","expr":"$.message"},"predicate":{"type":"contain","value":"hi"}},{"query":{"type":"jsonpath","expr":"$.message"},"predicate":{"type":"match","value":"hi"}},{"query":{"type":"jsonpath","expr":"$.message","subquery":{"type":"count"}},"predicate":{"type":"equal","value":1}},{"query":{"type":"jsonpath","expr":"$.toto"},"predicate":{"type":"exist"}},{"query":{"type":"jsonpath","expr":"$.message"},"predicate":{"not":true,"type":"exist"}},{"query":{"type":"jsonpath","expr":"$.list","subquery":{"type":"count"}},"predicate":{"type":"equal","value":2}}]}}]} \ No newline at end of file diff --git a/integration/tests/error_query_header_not_found.html b/integration/tests/error_query_header_not_found.html deleted file mode 100644 index b91669a94..000000000 --- a/integration/tests/error_query_header_not_found.html +++ /dev/null @@ -1 +0,0 @@ -
GET http://localhost:8000/error-query-header-not-found
HTTP/1.0 200Custom: XXX
\ No newline at end of file diff --git a/integration/tests/error_query_header_not_found.json b/integration/tests/error_query_header_not_found.json deleted file mode 100644 index fbfa7f8c5..000000000 --- a/integration/tests/error_query_header_not_found.json +++ /dev/null @@ -1 +0,0 @@ -{"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"}]}}]} diff --git a/integration/tests/error_query_invalid_json.html b/integration/tests/error_query_invalid_json.html deleted file mode 100644 index 14fa7833a..000000000 --- a/integration/tests/error_query_invalid_json.html +++ /dev/null @@ -1 +0,0 @@ -
GET http://localhost:8000/error-query-invalid-json
HTTP/1.0 200[Asserts]jsonpath "$.errors" count == 2
\ No newline at end of file diff --git a/integration/tests/error_query_invalid_json.json b/integration/tests/error_query_invalid_json.json deleted file mode 100644 index cf472addf..000000000 --- a/integration/tests/error_query_invalid_json.json +++ /dev/null @@ -1 +0,0 @@ -{"entries":[{"request":{"method":"GET","url":"http://localhost:8000/error-query-invalid-json"},"response":{"version":"HTTP/1.0","status":200,"asserts":[{"query":{"type":"jsonpath","expr":"$.errors","subquery":{"type":"count"}},"predicate":{"type":"equal","value":2}}]}}]} \ No newline at end of file diff --git a/integration/tests/error_query_invalid_utf8.html b/integration/tests/error_query_invalid_utf8.html deleted file mode 100644 index d31d36635..000000000 --- a/integration/tests/error_query_invalid_utf8.html +++ /dev/null @@ -1 +0,0 @@ -
GET http://localhost:8000/error-query-invalid-utf8
HTTP/1.0 200[Asserts]jsonpath "$.errors" count == 2
\ No newline at end of file diff --git a/integration/tests/error_query_invalid_utf8.json b/integration/tests/error_query_invalid_utf8.json deleted file mode 100644 index b5c302108..000000000 --- a/integration/tests/error_query_invalid_utf8.json +++ /dev/null @@ -1 +0,0 @@ -{"entries":[{"request":{"method":"GET","url":"http://localhost:8000/error-query-invalid-utf8"},"response":{"version":"HTTP/1.0","status":200,"asserts":[{"query":{"type":"jsonpath","expr":"$.errors","subquery":{"type":"count"}},"predicate":{"type":"equal","value":2}}]}}]} \ No newline at end of file diff --git a/integration/tests/error_template_variable_not_found.html b/integration/tests/error_template_variable_not_found.html deleted file mode 100644 index 49922c092..000000000 --- a/integration/tests/error_template_variable_not_found.html +++ /dev/null @@ -1 +0,0 @@ -
GET {{url}}
\ No newline at end of file diff --git a/integration/tests/error_template_variable_not_found.json b/integration/tests/error_template_variable_not_found.json deleted file mode 100644 index d0e1376f2..000000000 --- a/integration/tests/error_template_variable_not_found.json +++ /dev/null @@ -1 +0,0 @@ -{"entries":[{"request":{"method":"GET","url":"{{url}}"}}]} diff --git a/integration/tests/error_template_variable_not_renderable.html b/integration/tests/error_template_variable_not_renderable.html deleted file mode 100644 index 2cdab3c46..000000000 --- a/integration/tests/error_template_variable_not_renderable.html +++ /dev/null @@ -1 +0,0 @@ -
GET http://localhost:8000/get-list
HTTP/1.0 200[Captures]list: jsonpath "$.values"
GET http://localhost:8000/undefined
[QueryStringParams]param1: {{list}}
HTTP/1.1 200
\ No newline at end of file diff --git a/integration/tests/error_template_variable_not_renderable.json b/integration/tests/error_template_variable_not_renderable.json deleted file mode 100644 index ca8bdeef0..000000000 --- a/integration/tests/error_template_variable_not_renderable.json +++ /dev/null @@ -1 +0,0 @@ -{"entries":[{"request":{"method":"GET","url":"http://localhost:8000/get-list"},"response":{"version":"HTTP/1.0","status":200,"captures":[{"name":"list","query":{"type":"jsonpath","expr":"$.values"}}]}},{"request":{"method":"GET","url":"http://localhost:8000/undefined","query_string_params":[{"name":"param1","value":"{{list}}"}]},"response":{"version":"HTTP/1.1","status":200}}]} diff --git a/integration/tests/error_timeout.html b/integration/tests/error_timeout.html deleted file mode 100644 index e88e1bbd0..000000000 --- a/integration/tests/error_timeout.html +++ /dev/null @@ -1 +0,0 @@ -
GET http://localhost:8000/timeout
\ No newline at end of file diff --git a/integration/tests/error_timeout.json b/integration/tests/error_timeout.json deleted file mode 100644 index 1b0e3a5d1..000000000 --- a/integration/tests/error_timeout.json +++ /dev/null @@ -1 +0,0 @@ -{"entries":[{"request":{"method":"GET","url":"http://localhost:8000/timeout"}}]}