diff --git a/bin/test/test_integ.sh b/bin/test/test_integ.sh index 2d19d2c3f2a..fa61c116788 100755 --- a/bin/test/test_integ.sh +++ b/bin/test/test_integ.sh @@ -14,5 +14,5 @@ cd integration || exit ./integration.py ./test_curl_commands.sh ./test_html_output.py tests_ok/*.html tests_failed/*.html -./report.py +#./report.py TODO: review test report diff --git a/integration/integration.py b/integration/integration.py index 13daa7984d3..ad51c6b8dfa 100755 --- a/integration/integration.py +++ b/integration/integration.py @@ -26,8 +26,6 @@ def main(): [test_lint.test(f) for f in get_files("tests_error_lint/*.hurl")] [test_hurl.test(f) for f in get_files("tests_error_parser/*.hurl")] - # Dynamic run (with server) - [test_hurl.test(f) for f in get_files("tests_ok/*.hurl") if accept(f)] # Run test scripts extension = "ps1" if platform.system() == "Windows" else "sh" script_files = ( diff --git a/integration/ssl/letsencrypt.hurl b/integration/ssl/letsencrypt.hurl index 7efae8b9d6e..1e10943bc17 100644 --- a/integration/ssl/letsencrypt.hurl +++ b/integration/ssl/letsencrypt.hurl @@ -4,4 +4,4 @@ HTTP 200 certificate "Subject" == "CN=hurl.dev" certificate "Issuer" == "C=US, O=Let's Encrypt, CN=R3" certificate "Expire-Date" daysAfterNow > 15 -certificate "Serial-Number" == "03:db:c4:f3:c8:5e:13:66:cc:52:a3:69:2c:fa:04:a0:7b:b1" +certificate "Serial-Number" matches "[0-9af]+" diff --git a/integration/tests_ok/assert_base64.ps1 b/integration/tests_ok/assert_base64.ps1 new file mode 100644 index 00000000000..ce15b577bdb --- /dev/null +++ b/integration/tests_ok/assert_base64.ps1 @@ -0,0 +1,3 @@ +Set-StrictMode -Version latest +$ErrorActionPreference = 'Stop' +hurl tests_ok/assert_base64.hurl --verbose diff --git a/integration/tests_ok/assert_base64.sh b/integration/tests_ok/assert_base64.sh new file mode 100755 index 00000000000..2ffdcf0ffb1 --- /dev/null +++ b/integration/tests_ok/assert_base64.sh @@ -0,0 +1,3 @@ +#!/bin/bash +set -Eeuo pipefail +hurl tests_ok/assert_base64.hurl --verbose diff --git a/integration/tests_ok/assert_header.options b/integration/tests_ok/assert_header.options deleted file mode 100644 index 9b6bc3a5779..00000000000 --- a/integration/tests_ok/assert_header.options +++ /dev/null @@ -1 +0,0 @@ ---json diff --git a/integration/tests_ok/assert_header.ps1 b/integration/tests_ok/assert_header.ps1 new file mode 100644 index 00000000000..f4dfa5018c5 --- /dev/null +++ b/integration/tests_ok/assert_header.ps1 @@ -0,0 +1,3 @@ +Set-StrictMode -Version latest +$ErrorActionPreference = 'Stop' +hurl tests_ok/assert_header.hurl --json --verbose diff --git a/integration/tests_ok/assert_header.sh b/integration/tests_ok/assert_header.sh new file mode 100755 index 00000000000..6a6785dd67c --- /dev/null +++ b/integration/tests_ok/assert_header.sh @@ -0,0 +1,3 @@ +#!/bin/bash +set -Eeuo pipefail +hurl tests_ok/assert_header.hurl --json --verbose diff --git a/integration/tests_ok/assert_json.ps1 b/integration/tests_ok/assert_json.ps1 new file mode 100644 index 00000000000..08bac27f45e --- /dev/null +++ b/integration/tests_ok/assert_json.ps1 @@ -0,0 +1,3 @@ +Set-StrictMode -Version latest +$ErrorActionPreference = 'Stop' +hurl tests_ok/assert_json.hurl --verbose diff --git a/integration/tests_ok/assert_json.sh b/integration/tests_ok/assert_json.sh new file mode 100755 index 00000000000..4bb11afd1c4 --- /dev/null +++ b/integration/tests_ok/assert_json.sh @@ -0,0 +1,3 @@ +#!/bin/bash +set -Eeuo pipefail +hurl tests_ok/assert_json.hurl --verbose diff --git a/integration/tests_ok/assert_match.ps1 b/integration/tests_ok/assert_match.ps1 new file mode 100644 index 00000000000..974742b6376 --- /dev/null +++ b/integration/tests_ok/assert_match.ps1 @@ -0,0 +1,3 @@ +Set-StrictMode -Version latest +$ErrorActionPreference = 'Stop' +hurl tests_ok/assert_match.hurl --verbose diff --git a/integration/tests_ok/assert_match.sh b/integration/tests_ok/assert_match.sh new file mode 100755 index 00000000000..a0120589997 --- /dev/null +++ b/integration/tests_ok/assert_match.sh @@ -0,0 +1,3 @@ +#!/bin/bash +set -Eeuo pipefail +hurl tests_ok/assert_match.hurl --verbose diff --git a/integration/tests_ok/assert_regex.ps1 b/integration/tests_ok/assert_regex.ps1 new file mode 100644 index 00000000000..5b5793c937b --- /dev/null +++ b/integration/tests_ok/assert_regex.ps1 @@ -0,0 +1,3 @@ +Set-StrictMode -Version latest +$ErrorActionPreference = 'Stop' +hurl tests_ok/assert_regex.hurl --verbose diff --git a/integration/tests_ok/assert_regex.sh b/integration/tests_ok/assert_regex.sh new file mode 100755 index 00000000000..d44dcc93616 --- /dev/null +++ b/integration/tests_ok/assert_regex.sh @@ -0,0 +1,3 @@ +#!/bin/bash +set -Eeuo pipefail +hurl tests_ok/assert_regex.hurl --verbose diff --git a/integration/tests_ok/assert_status_code.ps1 b/integration/tests_ok/assert_status_code.ps1 new file mode 100644 index 00000000000..a88f015a121 --- /dev/null +++ b/integration/tests_ok/assert_status_code.ps1 @@ -0,0 +1,3 @@ +Set-StrictMode -Version latest +$ErrorActionPreference = 'Stop' +hurl tests_ok/assert_status_code.hurl --verbose diff --git a/integration/tests_ok/assert_status_code.sh b/integration/tests_ok/assert_status_code.sh new file mode 100755 index 00000000000..99aa6ca86b7 --- /dev/null +++ b/integration/tests_ok/assert_status_code.sh @@ -0,0 +1,3 @@ +#!/bin/bash +set -Eeuo pipefail +hurl tests_ok/assert_status_code.hurl --verbose diff --git a/integration/tests_ok/assert_xpath.ps1 b/integration/tests_ok/assert_xpath.ps1 new file mode 100644 index 00000000000..abd68a94074 --- /dev/null +++ b/integration/tests_ok/assert_xpath.ps1 @@ -0,0 +1,3 @@ +Set-StrictMode -Version latest +$ErrorActionPreference = 'Stop' +hurl tests_ok/assert_xpath.hurl --verbose diff --git a/integration/tests_ok/assert_xpath.sh b/integration/tests_ok/assert_xpath.sh new file mode 100755 index 00000000000..cd8d3bfbbb7 --- /dev/null +++ b/integration/tests_ok/assert_xpath.sh @@ -0,0 +1,3 @@ +#!/bin/bash +set -Eeuo pipefail +hurl tests_ok/assert_xpath.hurl --verbose diff --git a/integration/tests_ok/basic_authentication.options b/integration/tests_ok/basic_authentication.options deleted file mode 100644 index 76acab2fb92..00000000000 --- a/integration/tests_ok/basic_authentication.options +++ /dev/null @@ -1,2 +0,0 @@ ---user -bob@email.com:secret diff --git a/integration/tests_ok/basic_authentication.ps1 b/integration/tests_ok/basic_authentication.ps1 new file mode 100644 index 00000000000..f6cbcedb562 --- /dev/null +++ b/integration/tests_ok/basic_authentication.ps1 @@ -0,0 +1,3 @@ +Set-StrictMode -Version latest +$ErrorActionPreference = 'Stop' +hurl tests_ok/basic_authentication.hurl --user bob@email.com:secret --verbose diff --git a/integration/tests_ok/basic_authentication.sh b/integration/tests_ok/basic_authentication.sh new file mode 100755 index 00000000000..a50a1cee5a6 --- /dev/null +++ b/integration/tests_ok/basic_authentication.sh @@ -0,0 +1,3 @@ +#!/bin/bash +set -Eeuo pipefail +hurl tests_ok/basic_authentication.hurl --user bob@email.com:secret --verbose diff --git a/integration/tests_ok/basic_authentication_per_request.ps1 b/integration/tests_ok/basic_authentication_per_request.ps1 new file mode 100644 index 00000000000..da09f223935 --- /dev/null +++ b/integration/tests_ok/basic_authentication_per_request.ps1 @@ -0,0 +1,3 @@ +Set-StrictMode -Version latest +$ErrorActionPreference = 'Stop' +hurl tests_ok/basic_authentication_per_request.hurl --verbose diff --git a/integration/tests_ok/basic_authentication_per_request.sh b/integration/tests_ok/basic_authentication_per_request.sh new file mode 100755 index 00000000000..60364b977cb --- /dev/null +++ b/integration/tests_ok/basic_authentication_per_request.sh @@ -0,0 +1,3 @@ +#!/bin/bash +set -Eeuo pipefail +hurl tests_ok/basic_authentication_per_request.hurl --verbose diff --git a/integration/tests_ok/bom.ps1 b/integration/tests_ok/bom.ps1 new file mode 100644 index 00000000000..9fa7d21b7cc --- /dev/null +++ b/integration/tests_ok/bom.ps1 @@ -0,0 +1,3 @@ +Set-StrictMode -Version latest +$ErrorActionPreference = 'Stop' +hurl tests_ok/bom.hurl --verbose diff --git a/integration/tests_ok/bom.sh b/integration/tests_ok/bom.sh new file mode 100755 index 00000000000..11f5a8bacb3 --- /dev/null +++ b/integration/tests_ok/bom.sh @@ -0,0 +1,3 @@ +#!/bin/bash +set -Eeuo pipefail +hurl tests_ok/bom.hurl --verbose diff --git a/integration/tests_ok/bytes.ps1 b/integration/tests_ok/bytes.ps1 new file mode 100644 index 00000000000..536f5c4a047 --- /dev/null +++ b/integration/tests_ok/bytes.ps1 @@ -0,0 +1,3 @@ +Set-StrictMode -Version latest +$ErrorActionPreference = 'Stop' +hurl tests_ok/bytes.hurl --verbose diff --git a/integration/tests_ok/bytes.sh b/integration/tests_ok/bytes.sh new file mode 100755 index 00000000000..8579cdeb41c --- /dev/null +++ b/integration/tests_ok/bytes.sh @@ -0,0 +1,3 @@ +#!/bin/bash +set -Eeuo pipefail +hurl tests_ok/bytes.hurl --verbose diff --git a/integration/tests_ok/bytes_empty.ps1 b/integration/tests_ok/bytes_empty.ps1 new file mode 100644 index 00000000000..4b5626b087d --- /dev/null +++ b/integration/tests_ok/bytes_empty.ps1 @@ -0,0 +1,3 @@ +Set-StrictMode -Version latest +$ErrorActionPreference = 'Stop' +hurl tests_ok/bytes_empty.hurl diff --git a/integration/tests_ok/bytes_empty.sh b/integration/tests_ok/bytes_empty.sh new file mode 100755 index 00000000000..0cc24b6d99e --- /dev/null +++ b/integration/tests_ok/bytes_empty.sh @@ -0,0 +1,3 @@ +#!/bin/bash +set -Eeuo pipefail +hurl tests_ok/bytes_empty.hurl diff --git a/integration/tests_ok/capture_and_assert.ps1 b/integration/tests_ok/capture_and_assert.ps1 new file mode 100644 index 00000000000..089154c37ee --- /dev/null +++ b/integration/tests_ok/capture_and_assert.ps1 @@ -0,0 +1,3 @@ +Set-StrictMode -Version latest +$ErrorActionPreference = 'Stop' +hurl tests_ok/capture_and_assert.hurl --verbose diff --git a/integration/tests_ok/capture_and_assert.sh b/integration/tests_ok/capture_and_assert.sh new file mode 100755 index 00000000000..804b84a428f --- /dev/null +++ b/integration/tests_ok/capture_and_assert.sh @@ -0,0 +1,3 @@ +#!/bin/bash +set -Eeuo pipefail +hurl tests_ok/capture_and_assert.hurl --verbose diff --git a/integration/tests_ok/captures.ps1 b/integration/tests_ok/captures.ps1 new file mode 100644 index 00000000000..9a40ba3a3a4 --- /dev/null +++ b/integration/tests_ok/captures.ps1 @@ -0,0 +1,3 @@ +Set-StrictMode -Version latest +$ErrorActionPreference = 'Stop' +hurl tests_ok/captures.hurl --verbose diff --git a/integration/tests_ok/captures.sh b/integration/tests_ok/captures.sh new file mode 100755 index 00000000000..2ebf05beefe --- /dev/null +++ b/integration/tests_ok/captures.sh @@ -0,0 +1,3 @@ +#!/bin/bash +set -Eeuo pipefail +hurl tests_ok/captures.hurl --verbose diff --git a/integration/tests_ok/charset.ps1 b/integration/tests_ok/charset.ps1 new file mode 100644 index 00000000000..60769fd4b19 --- /dev/null +++ b/integration/tests_ok/charset.ps1 @@ -0,0 +1,3 @@ +Set-StrictMode -Version latest +$ErrorActionPreference = 'Stop' +hurl tests_ok/charset.hurl diff --git a/integration/tests_ok/charset.sh b/integration/tests_ok/charset.sh new file mode 100755 index 00000000000..17f775c17b4 --- /dev/null +++ b/integration/tests_ok/charset.sh @@ -0,0 +1,3 @@ +#!/bin/bash +set -Eeuo pipefail +hurl tests_ok/charset.hurl diff --git a/integration/tests_ok/color.options b/integration/tests_ok/color.options deleted file mode 100644 index 4e1e0d2f722..00000000000 --- a/integration/tests_ok/color.options +++ /dev/null @@ -1 +0,0 @@ ---color diff --git a/integration/tests_ok/color.ps1 b/integration/tests_ok/color.ps1 new file mode 100644 index 00000000000..3b98c4e928e --- /dev/null +++ b/integration/tests_ok/color.ps1 @@ -0,0 +1,3 @@ +Set-StrictMode -Version latest +$ErrorActionPreference = 'Stop' +hurl tests_ok/color.hurl --color --verbose diff --git a/integration/tests_ok/color.sh b/integration/tests_ok/color.sh new file mode 100755 index 00000000000..f0d2faffb5c --- /dev/null +++ b/integration/tests_ok/color.sh @@ -0,0 +1,3 @@ +#!/bin/bash +set -Eeuo pipefail +hurl tests_ok/color.hurl --color --verbose diff --git a/integration/tests_ok/compressed.options b/integration/tests_ok/compressed.options deleted file mode 100644 index cb691d5992b..00000000000 --- a/integration/tests_ok/compressed.options +++ /dev/null @@ -1 +0,0 @@ ---compressed diff --git a/integration/tests_ok/compressed.ps1 b/integration/tests_ok/compressed.ps1 new file mode 100644 index 00000000000..271e0742e12 --- /dev/null +++ b/integration/tests_ok/compressed.ps1 @@ -0,0 +1,3 @@ +Set-StrictMode -Version latest +$ErrorActionPreference = 'Stop' +hurl tests_ok/compressed.hurl --compressed --verbose diff --git a/integration/tests_ok/compressed.sh b/integration/tests_ok/compressed.sh new file mode 100755 index 00000000000..6927bc3a798 --- /dev/null +++ b/integration/tests_ok/compressed.sh @@ -0,0 +1,3 @@ +#!/bin/bash +set -Eeuo pipefail +hurl tests_ok/compressed.hurl --compressed --verbose diff --git a/integration/tests_ok/connect_to.options b/integration/tests_ok/connect_to.options deleted file mode 100644 index edbf20cb9ce..00000000000 --- a/integration/tests_ok/connect_to.options +++ /dev/null @@ -1,6 +0,0 @@ ---connect-to -foo.com:80:localhost:8000 ---connect-to -bar.com:80:localhost:8000 ---connect-to -baz.com:80:localhost:8000 diff --git a/integration/tests_ok/connect_to.ps1 b/integration/tests_ok/connect_to.ps1 new file mode 100644 index 00000000000..12062a74781 --- /dev/null +++ b/integration/tests_ok/connect_to.ps1 @@ -0,0 +1,3 @@ +Set-StrictMode -Version latest +$ErrorActionPreference = 'Stop' +hurl tests_ok/connect_to.hurl --connect-to foo.com:80:localhost:8000 --connect-to bar.com:80:localhost:8000 --connect-to baz.com:80:localhost:8000 --verbose diff --git a/integration/tests_ok/connect_to.sh b/integration/tests_ok/connect_to.sh new file mode 100755 index 00000000000..5efde215abb --- /dev/null +++ b/integration/tests_ok/connect_to.sh @@ -0,0 +1,3 @@ +#!/bin/bash +set -Eeuo pipefail +hurl tests_ok/connect_to.hurl --connect-to foo.com:80:localhost:8000 --connect-to bar.com:80:localhost:8000 --connect-to baz.com:80:localhost:8000 --verbose diff --git a/integration/tests_ok/cookie_file.options b/integration/tests_ok/cookie_file.options deleted file mode 100644 index fb82219c548..00000000000 --- a/integration/tests_ok/cookie_file.options +++ /dev/null @@ -1,2 +0,0 @@ ---cookie -tests_ok/cookie_file.cookies diff --git a/integration/tests_ok/cookie_file.ps1 b/integration/tests_ok/cookie_file.ps1 new file mode 100644 index 00000000000..68cd76621e1 --- /dev/null +++ b/integration/tests_ok/cookie_file.ps1 @@ -0,0 +1,3 @@ +Set-StrictMode -Version latest +$ErrorActionPreference = 'Stop' +hurl tests_ok/cookie_file.hurl --cookie tests_ok/cookie_file.cookies --verbose diff --git a/integration/tests_ok/cookie_file.sh b/integration/tests_ok/cookie_file.sh new file mode 100755 index 00000000000..8a7863e7b36 --- /dev/null +++ b/integration/tests_ok/cookie_file.sh @@ -0,0 +1,3 @@ +#!/bin/bash +set -Eeuo pipefail +hurl tests_ok/cookie_file.hurl --cookie tests_ok/cookie_file.cookies --verbose diff --git a/integration/tests_ok/cookie_storage.ps1 b/integration/tests_ok/cookie_storage.ps1 new file mode 100644 index 00000000000..37b9f05a02d --- /dev/null +++ b/integration/tests_ok/cookie_storage.ps1 @@ -0,0 +1,3 @@ +Set-StrictMode -Version latest +$ErrorActionPreference = 'Stop' +hurl tests_ok/cookie_storage.hurl --verbose diff --git a/integration/tests_ok/cookie_storage.sh b/integration/tests_ok/cookie_storage.sh new file mode 100755 index 00000000000..38cc3284ed7 --- /dev/null +++ b/integration/tests_ok/cookie_storage.sh @@ -0,0 +1,3 @@ +#!/bin/bash +set -Eeuo pipefail +hurl tests_ok/cookie_storage.hurl --verbose diff --git a/integration/tests_ok/cookies.options b/integration/tests_ok/cookies.options deleted file mode 100644 index 31e9faa1276..00000000000 --- a/integration/tests_ok/cookies.options +++ /dev/null @@ -1,3 +0,0 @@ ---variable -name=Bruce - diff --git a/integration/tests_ok/cookies.ps1 b/integration/tests_ok/cookies.ps1 new file mode 100644 index 00000000000..2d0ccfb9297 --- /dev/null +++ b/integration/tests_ok/cookies.ps1 @@ -0,0 +1,3 @@ +Set-StrictMode -Version latest +$ErrorActionPreference = 'Stop' +hurl tests_ok/cookies.hurl --variable name=Bruce --verbose diff --git a/integration/tests_ok/cookies.sh b/integration/tests_ok/cookies.sh new file mode 100755 index 00000000000..e434fb0f08b --- /dev/null +++ b/integration/tests_ok/cookies.sh @@ -0,0 +1,3 @@ +#!/bin/bash +set -Eeuo pipefail +hurl tests_ok/cookies.hurl --variable name=Bruce --verbose diff --git a/integration/tests_ok/delete.ps1 b/integration/tests_ok/delete.ps1 new file mode 100644 index 00000000000..323b79f30e9 --- /dev/null +++ b/integration/tests_ok/delete.ps1 @@ -0,0 +1,3 @@ +Set-StrictMode -Version latest +$ErrorActionPreference = 'Stop' +hurl tests_ok/delete.hurl --verbose diff --git a/integration/tests_ok/delete.sh b/integration/tests_ok/delete.sh new file mode 100755 index 00000000000..6ac3e685778 --- /dev/null +++ b/integration/tests_ok/delete.sh @@ -0,0 +1,3 @@ +#!/bin/bash +set -Eeuo pipefail +hurl tests_ok/delete.hurl --verbose diff --git a/integration/tests_ok/deprecated.err b/integration/tests_ok/deprecated.err index 8d89867e608..1876f103f86 100644 --- a/integration/tests_ok/deprecated.err +++ b/integration/tests_ok/deprecated.err @@ -1,3 +1,3 @@ warning: tests_ok/deprecated.hurl:3:1 'HTTP/*' keyword is deprecated, please use 'HTTP' instead warning: tests_ok/deprecated.hurl:7:1 'HTTP/*' keyword is deprecated, please use 'HTTP' instead -warning: tests_ok/deprecated.hurl:8:4 '```Hello World!```' response body is deprecated, please use '`Hello World!`' instead \ No newline at end of file +warning: tests_ok/deprecated.hurl:8:4 '```Hello World!```' response body is deprecated, please use '`Hello World!`' instead diff --git a/integration/tests_ok/deprecated.ps1 b/integration/tests_ok/deprecated.ps1 new file mode 100644 index 00000000000..ac6c9089dce --- /dev/null +++ b/integration/tests_ok/deprecated.ps1 @@ -0,0 +1,3 @@ +Set-StrictMode -Version latest +$ErrorActionPreference = 'Stop' +hurl tests_ok/deprecated.hurl diff --git a/integration/tests_ok/deprecated.sh b/integration/tests_ok/deprecated.sh new file mode 100755 index 00000000000..1a0be08df9d --- /dev/null +++ b/integration/tests_ok/deprecated.sh @@ -0,0 +1,3 @@ +#!/bin/bash +set -Eeuo pipefail +hurl tests_ok/deprecated.hurl diff --git a/integration/tests_ok/empty.ps1 b/integration/tests_ok/empty.ps1 new file mode 100644 index 00000000000..45f98490cd4 --- /dev/null +++ b/integration/tests_ok/empty.ps1 @@ -0,0 +1,3 @@ +Set-StrictMode -Version latest +$ErrorActionPreference = 'Stop' +hurl tests_ok/empty.hurl --verbose diff --git a/integration/tests_ok/empty.sh b/integration/tests_ok/empty.sh new file mode 100755 index 00000000000..6c268d8a7ca --- /dev/null +++ b/integration/tests_ok/empty.sh @@ -0,0 +1,3 @@ +#!/bin/bash +set -Eeuo pipefail +hurl tests_ok/empty.hurl --verbose diff --git a/integration/tests_ok/encoding.ps1 b/integration/tests_ok/encoding.ps1 new file mode 100644 index 00000000000..a5d5727a36a --- /dev/null +++ b/integration/tests_ok/encoding.ps1 @@ -0,0 +1,3 @@ +Set-StrictMode -Version latest +$ErrorActionPreference = 'Stop' +hurl tests_ok/encoding.hurl --verbose diff --git a/integration/tests_ok/encoding.sh b/integration/tests_ok/encoding.sh new file mode 100755 index 00000000000..3547d7014ae --- /dev/null +++ b/integration/tests_ok/encoding.sh @@ -0,0 +1,3 @@ +#!/bin/bash +set -Eeuo pipefail +hurl tests_ok/encoding.hurl --verbose diff --git a/integration/tests_ok/env_var.ps1 b/integration/tests_ok/env_var.ps1 new file mode 100644 index 00000000000..275f52aa0e4 --- /dev/null +++ b/integration/tests_ok/env_var.ps1 @@ -0,0 +1,4 @@ +Set-StrictMode -Version latest +$ErrorActionPreference = 'Stop' +$env:HURL_name = 'Bob' +hurl tests_ok/env_var.hurl diff --git a/integration/tests_ok/env_var.sh b/integration/tests_ok/env_var.sh new file mode 100755 index 00000000000..bc8deec14ef --- /dev/null +++ b/integration/tests_ok/env_var.sh @@ -0,0 +1,4 @@ +#!/bin/bash +set -Eeuo pipefail +export HURL_name=Bob +hurl tests_ok/env_var.hurl diff --git a/integration/tests_ok/expect.ps1 b/integration/tests_ok/expect.ps1 new file mode 100644 index 00000000000..0dcfaad4453 --- /dev/null +++ b/integration/tests_ok/expect.ps1 @@ -0,0 +1,3 @@ +Set-StrictMode -Version latest +$ErrorActionPreference = 'Stop' +hurl tests_ok/expect.hurl --verbose diff --git a/integration/tests_ok/expect.sh b/integration/tests_ok/expect.sh new file mode 100755 index 00000000000..11454676841 --- /dev/null +++ b/integration/tests_ok/expect.sh @@ -0,0 +1,3 @@ +#!/bin/bash +set -Eeuo pipefail +hurl tests_ok/expect.hurl --verbose diff --git a/integration/tests_ok/filter.ps1 b/integration/tests_ok/filter.ps1 new file mode 100644 index 00000000000..c10ffac837e --- /dev/null +++ b/integration/tests_ok/filter.ps1 @@ -0,0 +1,3 @@ +Set-StrictMode -Version latest +$ErrorActionPreference = 'Stop' +hurl tests_ok/filter.hurl diff --git a/integration/tests_ok/filter.sh b/integration/tests_ok/filter.sh new file mode 100755 index 00000000000..8eaf758fce9 --- /dev/null +++ b/integration/tests_ok/filter.sh @@ -0,0 +1,3 @@ +#!/bin/bash +set -Eeuo pipefail +hurl tests_ok/filter.hurl diff --git a/integration/tests_ok/float.ps1 b/integration/tests_ok/float.ps1 new file mode 100644 index 00000000000..82024283c5b --- /dev/null +++ b/integration/tests_ok/float.ps1 @@ -0,0 +1,3 @@ +Set-StrictMode -Version latest +$ErrorActionPreference = 'Stop' +hurl tests_ok/float.hurl diff --git a/integration/tests_ok/float.sh b/integration/tests_ok/float.sh new file mode 100755 index 00000000000..161d7024c2a --- /dev/null +++ b/integration/tests_ok/float.sh @@ -0,0 +1,3 @@ +#!/bin/bash +set -Eeuo pipefail +hurl tests_ok/float.hurl diff --git a/integration/tests_ok/follow_redirect.options b/integration/tests_ok/follow_redirect.options deleted file mode 100644 index aa528a5b24c..00000000000 --- a/integration/tests_ok/follow_redirect.options +++ /dev/null @@ -1 +0,0 @@ ---location diff --git a/integration/tests_ok/follow_redirect.ps1 b/integration/tests_ok/follow_redirect.ps1 new file mode 100644 index 00000000000..f816ee04e25 --- /dev/null +++ b/integration/tests_ok/follow_redirect.ps1 @@ -0,0 +1,3 @@ +Set-StrictMode -Version latest +$ErrorActionPreference = 'Stop' +hurl tests_ok/follow_redirect.hurl --location --verbose diff --git a/integration/tests_ok/follow_redirect.sh b/integration/tests_ok/follow_redirect.sh new file mode 100755 index 00000000000..b4a2bd0f1a4 --- /dev/null +++ b/integration/tests_ok/follow_redirect.sh @@ -0,0 +1,3 @@ +#!/bin/bash +set -Eeuo pipefail +hurl tests_ok/follow_redirect.hurl --location --verbose diff --git a/integration/tests_ok/form_params.ps1 b/integration/tests_ok/form_params.ps1 new file mode 100644 index 00000000000..23460bff2b2 --- /dev/null +++ b/integration/tests_ok/form_params.ps1 @@ -0,0 +1,3 @@ +Set-StrictMode -Version latest +$ErrorActionPreference = 'Stop' +hurl tests_ok/form_params.hurl --verbose diff --git a/integration/tests_ok/form_params.sh b/integration/tests_ok/form_params.sh new file mode 100755 index 00000000000..11c76d7a1cb --- /dev/null +++ b/integration/tests_ok/form_params.sh @@ -0,0 +1,3 @@ +#!/bin/bash +set -Eeuo pipefail +hurl tests_ok/form_params.hurl --verbose diff --git a/integration/tests_ok/graphql.ps1 b/integration/tests_ok/graphql.ps1 new file mode 100644 index 00000000000..dfabdcb9b86 --- /dev/null +++ b/integration/tests_ok/graphql.ps1 @@ -0,0 +1,3 @@ +Set-StrictMode -Version latest +$ErrorActionPreference = 'Stop' +hurl tests_ok/graphql.hurl --verbose diff --git a/integration/tests_ok/graphql.sh b/integration/tests_ok/graphql.sh new file mode 100755 index 00000000000..3e61ec0cd40 --- /dev/null +++ b/integration/tests_ok/graphql.sh @@ -0,0 +1,3 @@ +#!/bin/bash +set -Eeuo pipefail +hurl tests_ok/graphql.hurl --verbose diff --git a/integration/tests_ok/head.ps1 b/integration/tests_ok/head.ps1 new file mode 100644 index 00000000000..d4a3633b7b0 --- /dev/null +++ b/integration/tests_ok/head.ps1 @@ -0,0 +1,3 @@ +Set-StrictMode -Version latest +$ErrorActionPreference = 'Stop' +hurl tests_ok/head.hurl --verbose diff --git a/integration/tests_ok/head.sh b/integration/tests_ok/head.sh new file mode 100755 index 00000000000..711c195aef6 --- /dev/null +++ b/integration/tests_ok/head.sh @@ -0,0 +1,3 @@ +#!/bin/bash +set -Eeuo pipefail +hurl tests_ok/head.hurl --verbose diff --git a/integration/tests_ok/headers.ps1 b/integration/tests_ok/headers.ps1 new file mode 100644 index 00000000000..a74a946171b --- /dev/null +++ b/integration/tests_ok/headers.ps1 @@ -0,0 +1,3 @@ +Set-StrictMode -Version latest +$ErrorActionPreference = 'Stop' +hurl tests_ok/headers.hurl diff --git a/integration/tests_ok/headers.sh b/integration/tests_ok/headers.sh new file mode 100755 index 00000000000..658bc4dc3c9 --- /dev/null +++ b/integration/tests_ok/headers.sh @@ -0,0 +1,3 @@ +#!/bin/bash +set -Eeuo pipefail +hurl tests_ok/headers.hurl diff --git a/integration/tests_ok/hello.ps1 b/integration/tests_ok/hello.ps1 new file mode 100644 index 00000000000..b8d7dfba888 --- /dev/null +++ b/integration/tests_ok/hello.ps1 @@ -0,0 +1,3 @@ +Set-StrictMode -Version latest +$ErrorActionPreference = 'Stop' +hurl tests_ok/hello.hurl --verbose diff --git a/integration/tests_ok/hello.sh b/integration/tests_ok/hello.sh new file mode 100755 index 00000000000..cde9eaaae9d --- /dev/null +++ b/integration/tests_ok/hello.sh @@ -0,0 +1,3 @@ +#!/bin/bash +set -Eeuo pipefail +hurl tests_ok/hello.hurl --verbose diff --git a/integration/tests_ok/ignore_asserts.options b/integration/tests_ok/ignore_asserts.options deleted file mode 100644 index 6785c8abb30..00000000000 --- a/integration/tests_ok/ignore_asserts.options +++ /dev/null @@ -1 +0,0 @@ ---ignore-asserts \ No newline at end of file diff --git a/integration/tests_ok/ignore_asserts.ps1 b/integration/tests_ok/ignore_asserts.ps1 new file mode 100644 index 00000000000..88f4c562e14 --- /dev/null +++ b/integration/tests_ok/ignore_asserts.ps1 @@ -0,0 +1,3 @@ +Set-StrictMode -Version latest +$ErrorActionPreference = 'Stop' +hurl tests_ok/ignore_asserts.hurl --ignore-asserts diff --git a/integration/tests_ok/ignore_asserts.sh b/integration/tests_ok/ignore_asserts.sh new file mode 100755 index 00000000000..7a78f8d87a6 --- /dev/null +++ b/integration/tests_ok/ignore_asserts.sh @@ -0,0 +1,3 @@ +#!/bin/bash +set -Eeuo pipefail +hurl tests_ok/ignore_asserts.hurl --ignore-asserts diff --git a/integration/tests_ok/include.options b/integration/tests_ok/include.options deleted file mode 100644 index 2f34db276d8..00000000000 --- a/integration/tests_ok/include.options +++ /dev/null @@ -1 +0,0 @@ ---include \ No newline at end of file diff --git a/integration/tests_ok/include.ps1 b/integration/tests_ok/include.ps1 new file mode 100644 index 00000000000..98dc4169b4f --- /dev/null +++ b/integration/tests_ok/include.ps1 @@ -0,0 +1,3 @@ +Set-StrictMode -Version latest +$ErrorActionPreference = 'Stop' +hurl tests_ok/include.hurl --include --verbose diff --git a/integration/tests_ok/include.sh b/integration/tests_ok/include.sh new file mode 100755 index 00000000000..7d65455174a --- /dev/null +++ b/integration/tests_ok/include.sh @@ -0,0 +1,3 @@ +#!/bin/bash +set -Eeuo pipefail +hurl tests_ok/include.hurl --include --verbose diff --git a/integration/tests_ok/json_output.options b/integration/tests_ok/json_output.options deleted file mode 100644 index ccb10d2bd4d..00000000000 --- a/integration/tests_ok/json_output.options +++ /dev/null @@ -1 +0,0 @@ ---json \ No newline at end of file diff --git a/integration/tests_ok/json_output.ps1 b/integration/tests_ok/json_output.ps1 new file mode 100644 index 00000000000..45f85338c6e --- /dev/null +++ b/integration/tests_ok/json_output.ps1 @@ -0,0 +1,3 @@ +Set-StrictMode -Version latest +$ErrorActionPreference = 'Stop' +hurl tests_ok/json_output.hurl --json --verbose diff --git a/integration/tests_ok/json_output.sh b/integration/tests_ok/json_output.sh new file mode 100755 index 00000000000..2855bf7ed4f --- /dev/null +++ b/integration/tests_ok/json_output.sh @@ -0,0 +1,3 @@ +#!/bin/bash +set -Eeuo pipefail +hurl tests_ok/json_output.hurl --json --verbose diff --git a/integration/tests_ok/large.ps1 b/integration/tests_ok/large.ps1 new file mode 100644 index 00000000000..a33a747b6c1 --- /dev/null +++ b/integration/tests_ok/large.ps1 @@ -0,0 +1,3 @@ +Set-StrictMode -Version latest +$ErrorActionPreference = 'Stop' +hurl tests_ok/large.hurl --verbose diff --git a/integration/tests_ok/large.sh b/integration/tests_ok/large.sh new file mode 100755 index 00000000000..abf9bf6bb67 --- /dev/null +++ b/integration/tests_ok/large.sh @@ -0,0 +1,3 @@ +#!/bin/bash +set -Eeuo pipefail +hurl tests_ok/large.hurl --verbose diff --git a/integration/tests_ok/method.ps1 b/integration/tests_ok/method.ps1 new file mode 100644 index 00000000000..fc4bbf7148d --- /dev/null +++ b/integration/tests_ok/method.ps1 @@ -0,0 +1,3 @@ +Set-StrictMode -Version latest +$ErrorActionPreference = 'Stop' +hurl tests_ok/method.hurl --verbose diff --git a/integration/tests_ok/method.sh b/integration/tests_ok/method.sh new file mode 100755 index 00000000000..1d47dc9c882 --- /dev/null +++ b/integration/tests_ok/method.sh @@ -0,0 +1,3 @@ +#!/bin/bash +set -Eeuo pipefail +hurl tests_ok/method.hurl --verbose diff --git a/integration/tests_ok/multilines.ps1 b/integration/tests_ok/multilines.ps1 new file mode 100644 index 00000000000..4ef108cec47 --- /dev/null +++ b/integration/tests_ok/multilines.ps1 @@ -0,0 +1,3 @@ +Set-StrictMode -Version latest +$ErrorActionPreference = 'Stop' +hurl tests_ok/multilines.hurl --verbose diff --git a/integration/tests_ok/multilines.sh b/integration/tests_ok/multilines.sh new file mode 100755 index 00000000000..11dc716a52e --- /dev/null +++ b/integration/tests_ok/multilines.sh @@ -0,0 +1,3 @@ +#!/bin/bash +set -Eeuo pipefail +hurl tests_ok/multilines.hurl --verbose diff --git a/integration/tests_ok/multipart_form_data.ps1 b/integration/tests_ok/multipart_form_data.ps1 new file mode 100644 index 00000000000..be0f3eac785 --- /dev/null +++ b/integration/tests_ok/multipart_form_data.ps1 @@ -0,0 +1,3 @@ +Set-StrictMode -Version latest +$ErrorActionPreference = 'Stop' +hurl tests_ok/multipart_form_data.hurl --verbose diff --git a/integration/tests_ok/multipart_form_data.sh b/integration/tests_ok/multipart_form_data.sh new file mode 100755 index 00000000000..30224e0f5e2 --- /dev/null +++ b/integration/tests_ok/multipart_form_data.sh @@ -0,0 +1,3 @@ +#!/bin/bash +set -Eeuo pipefail +hurl tests_ok/multipart_form_data.hurl --verbose diff --git a/integration/tests_ok/no_entry.ps1 b/integration/tests_ok/no_entry.ps1 new file mode 100644 index 00000000000..08c18cae8ed --- /dev/null +++ b/integration/tests_ok/no_entry.ps1 @@ -0,0 +1,3 @@ +Set-StrictMode -Version latest +$ErrorActionPreference = 'Stop' +hurl tests_ok/no_entry.hurl --verbose diff --git a/integration/tests_ok/no_entry.sh b/integration/tests_ok/no_entry.sh new file mode 100755 index 00000000000..71587ef9112 --- /dev/null +++ b/integration/tests_ok/no_entry.sh @@ -0,0 +1,3 @@ +#!/bin/bash +set -Eeuo pipefail +hurl tests_ok/no_entry.hurl --verbose diff --git a/integration/tests_ok/non_utf8.ps1 b/integration/tests_ok/non_utf8.ps1 new file mode 100644 index 00000000000..f54cc20dd58 --- /dev/null +++ b/integration/tests_ok/non_utf8.ps1 @@ -0,0 +1,3 @@ +Set-StrictMode -Version latest +$ErrorActionPreference = 'Stop' +hurl tests_ok/non_utf8.hurl diff --git a/integration/tests_ok/non_utf8.sh b/integration/tests_ok/non_utf8.sh new file mode 100755 index 00000000000..d0ba8ad6f02 --- /dev/null +++ b/integration/tests_ok/non_utf8.sh @@ -0,0 +1,3 @@ +#!/bin/bash +set -Eeuo pipefail +hurl tests_ok/non_utf8.hurl diff --git a/integration/tests_ok/option_compressed.ps1 b/integration/tests_ok/option_compressed.ps1 new file mode 100644 index 00000000000..13fd42dc5bc --- /dev/null +++ b/integration/tests_ok/option_compressed.ps1 @@ -0,0 +1,3 @@ +Set-StrictMode -Version latest +$ErrorActionPreference = 'Stop' +hurl tests_ok/option_compressed.hurl --verbose diff --git a/integration/tests_ok/option_compressed.sh b/integration/tests_ok/option_compressed.sh new file mode 100755 index 00000000000..6b68d1a6ff1 --- /dev/null +++ b/integration/tests_ok/option_compressed.sh @@ -0,0 +1,3 @@ +#!/bin/bash +set -Eeuo pipefail +hurl tests_ok/option_compressed.hurl --verbose diff --git a/integration/tests_ok/option_follow_redirect.ps1 b/integration/tests_ok/option_follow_redirect.ps1 new file mode 100644 index 00000000000..95eec164ae8 --- /dev/null +++ b/integration/tests_ok/option_follow_redirect.ps1 @@ -0,0 +1,3 @@ +Set-StrictMode -Version latest +$ErrorActionPreference = 'Stop' +hurl tests_ok/option_follow_redirect.hurl --verbose diff --git a/integration/tests_ok/option_follow_redirect.sh b/integration/tests_ok/option_follow_redirect.sh new file mode 100755 index 00000000000..f5b7216fbaf --- /dev/null +++ b/integration/tests_ok/option_follow_redirect.sh @@ -0,0 +1,3 @@ +#!/bin/bash +set -Eeuo pipefail +hurl tests_ok/option_follow_redirect.hurl --verbose diff --git a/integration/tests_ok/option_insecure.ps1 b/integration/tests_ok/option_insecure.ps1 new file mode 100644 index 00000000000..067b610bc09 --- /dev/null +++ b/integration/tests_ok/option_insecure.ps1 @@ -0,0 +1,3 @@ +Set-StrictMode -Version latest +$ErrorActionPreference = 'Stop' +hurl tests_ok/option_insecure.hurl --verbose diff --git a/integration/tests_ok/option_insecure.sh b/integration/tests_ok/option_insecure.sh new file mode 100755 index 00000000000..9bbe7c03fa8 --- /dev/null +++ b/integration/tests_ok/option_insecure.sh @@ -0,0 +1,3 @@ +#!/bin/bash +set -Eeuo pipefail +hurl tests_ok/option_insecure.hurl --verbose diff --git a/integration/tests_ok/option_retry.options b/integration/tests_ok/option_retry.options deleted file mode 100644 index b80df0a8c88..00000000000 --- a/integration/tests_ok/option_retry.options +++ /dev/null @@ -1,2 +0,0 @@ ---verbose ---json \ No newline at end of file diff --git a/integration/tests_ok/option_retry.ps1 b/integration/tests_ok/option_retry.ps1 new file mode 100644 index 00000000000..9e0430fb838 --- /dev/null +++ b/integration/tests_ok/option_retry.ps1 @@ -0,0 +1,3 @@ +Set-StrictMode -Version latest +$ErrorActionPreference = 'Stop' +hurl tests_ok/option_retry.hurl --verbose --json diff --git a/integration/tests_ok/option_retry.sh b/integration/tests_ok/option_retry.sh new file mode 100755 index 00000000000..99c37c0d0ed --- /dev/null +++ b/integration/tests_ok/option_retry.sh @@ -0,0 +1,3 @@ +#!/bin/bash +set -Eeuo pipefail +hurl tests_ok/option_retry.hurl --verbose --json diff --git a/integration/tests_ok/option_verbose.ps1 b/integration/tests_ok/option_verbose.ps1 new file mode 100644 index 00000000000..1921550560e --- /dev/null +++ b/integration/tests_ok/option_verbose.ps1 @@ -0,0 +1,3 @@ +Set-StrictMode -Version latest +$ErrorActionPreference = 'Stop' +hurl tests_ok/option_verbose.hurl diff --git a/integration/tests_ok/option_verbose.sh b/integration/tests_ok/option_verbose.sh new file mode 100755 index 00000000000..d87c1232674 --- /dev/null +++ b/integration/tests_ok/option_verbose.sh @@ -0,0 +1,3 @@ +#!/bin/bash +set -Eeuo pipefail +hurl tests_ok/option_verbose.hurl diff --git a/integration/tests_ok/output.ps1 b/integration/tests_ok/output.ps1 new file mode 100644 index 00000000000..80c369ad7b6 --- /dev/null +++ b/integration/tests_ok/output.ps1 @@ -0,0 +1,3 @@ +Set-StrictMode -Version latest +$ErrorActionPreference = 'Stop' +hurl tests_ok/output.hurl diff --git a/integration/tests_ok/output.sh b/integration/tests_ok/output.sh new file mode 100755 index 00000000000..f7de7c35898 --- /dev/null +++ b/integration/tests_ok/output.sh @@ -0,0 +1,3 @@ +#!/bin/bash +set -Eeuo pipefail +hurl tests_ok/output.hurl diff --git a/integration/tests_ok/patch.ps1 b/integration/tests_ok/patch.ps1 new file mode 100644 index 00000000000..1cbf64f6d91 --- /dev/null +++ b/integration/tests_ok/patch.ps1 @@ -0,0 +1,3 @@ +Set-StrictMode -Version latest +$ErrorActionPreference = 'Stop' +hurl tests_ok/patch.hurl --verbose diff --git a/integration/tests_ok/patch.sh b/integration/tests_ok/patch.sh new file mode 100755 index 00000000000..9e7642a8112 --- /dev/null +++ b/integration/tests_ok/patch.sh @@ -0,0 +1,3 @@ +#!/bin/bash +set -Eeuo pipefail +hurl tests_ok/patch.hurl --verbose diff --git a/integration/tests_ok/post_base64.ps1 b/integration/tests_ok/post_base64.ps1 new file mode 100644 index 00000000000..8b3f095165f --- /dev/null +++ b/integration/tests_ok/post_base64.ps1 @@ -0,0 +1,3 @@ +Set-StrictMode -Version latest +$ErrorActionPreference = 'Stop' +hurl tests_ok/post_base64.hurl --verbose diff --git a/integration/tests_ok/post_base64.sh b/integration/tests_ok/post_base64.sh new file mode 100755 index 00000000000..909e4035f8e --- /dev/null +++ b/integration/tests_ok/post_base64.sh @@ -0,0 +1,3 @@ +#!/bin/bash +set -Eeuo pipefail +hurl tests_ok/post_base64.hurl --verbose diff --git a/integration/tests_ok/post_bytes.ps1 b/integration/tests_ok/post_bytes.ps1 new file mode 100644 index 00000000000..3cb5c1b0964 --- /dev/null +++ b/integration/tests_ok/post_bytes.ps1 @@ -0,0 +1,3 @@ +Set-StrictMode -Version latest +$ErrorActionPreference = 'Stop' +hurl tests_ok/post_bytes.hurl --verbose diff --git a/integration/tests_ok/post_bytes.sh b/integration/tests_ok/post_bytes.sh new file mode 100755 index 00000000000..8fc3afef0d0 --- /dev/null +++ b/integration/tests_ok/post_bytes.sh @@ -0,0 +1,3 @@ +#!/bin/bash +set -Eeuo pipefail +hurl tests_ok/post_bytes.hurl --verbose diff --git a/integration/tests_ok/post_file.ps1 b/integration/tests_ok/post_file.ps1 new file mode 100644 index 00000000000..b4739c488ef --- /dev/null +++ b/integration/tests_ok/post_file.ps1 @@ -0,0 +1,3 @@ +Set-StrictMode -Version latest +$ErrorActionPreference = 'Stop' +hurl tests_ok/post_file.hurl --verbose diff --git a/integration/tests_ok/post_file.sh b/integration/tests_ok/post_file.sh new file mode 100755 index 00000000000..5ca718948ac --- /dev/null +++ b/integration/tests_ok/post_file.sh @@ -0,0 +1,3 @@ +#!/bin/bash +set -Eeuo pipefail +hurl tests_ok/post_file.hurl --verbose diff --git a/integration/tests_ok/post_json.options b/integration/tests_ok/post_json.options deleted file mode 100644 index 47cf4ed8438..00000000000 --- a/integration/tests_ok/post_json.options +++ /dev/null @@ -1,6 +0,0 @@ ---variable -age=30 ---variable -strict=true ---variable -string_variable=\ diff --git a/integration/tests_ok/post_json.ps1 b/integration/tests_ok/post_json.ps1 new file mode 100644 index 00000000000..f1980de3eb6 --- /dev/null +++ b/integration/tests_ok/post_json.ps1 @@ -0,0 +1,3 @@ +Set-StrictMode -Version latest +$ErrorActionPreference = 'Stop' +hurl tests_ok/post_json.hurl --variable age=30 --variable strict=true --variable string_variable='\' --verbose diff --git a/integration/tests_ok/post_json.sh b/integration/tests_ok/post_json.sh new file mode 100755 index 00000000000..7d1e3cc759b --- /dev/null +++ b/integration/tests_ok/post_json.sh @@ -0,0 +1,3 @@ +#!/bin/bash +set -Eeuo pipefail +hurl tests_ok/post_json.hurl --variable age=30 --variable strict=true --variable string_variable=\\ --verbose diff --git a/integration/tests_ok/post_multilines.ps1 b/integration/tests_ok/post_multilines.ps1 new file mode 100644 index 00000000000..a71a4e2a7d2 --- /dev/null +++ b/integration/tests_ok/post_multilines.ps1 @@ -0,0 +1,3 @@ +Set-StrictMode -Version latest +$ErrorActionPreference = 'Stop' +hurl tests_ok/post_multilines.hurl --verbose diff --git a/integration/tests_ok/post_multilines.sh b/integration/tests_ok/post_multilines.sh new file mode 100755 index 00000000000..e1d3e21ae02 --- /dev/null +++ b/integration/tests_ok/post_multilines.sh @@ -0,0 +1,3 @@ +#!/bin/bash +set -Eeuo pipefail +hurl tests_ok/post_multilines.hurl --verbose diff --git a/integration/tests_ok/post_xml.ps1 b/integration/tests_ok/post_xml.ps1 new file mode 100644 index 00000000000..fa541d5aa15 --- /dev/null +++ b/integration/tests_ok/post_xml.ps1 @@ -0,0 +1,3 @@ +Set-StrictMode -Version latest +$ErrorActionPreference = 'Stop' +hurl tests_ok/post_xml.hurl diff --git a/integration/tests_ok/post_xml.sh b/integration/tests_ok/post_xml.sh new file mode 100755 index 00000000000..80a0c594306 --- /dev/null +++ b/integration/tests_ok/post_xml.sh @@ -0,0 +1,3 @@ +#!/bin/bash +set -Eeuo pipefail +hurl tests_ok/post_xml.hurl diff --git a/integration/tests_ok/predicates-string.ps1 b/integration/tests_ok/predicates-string.ps1 new file mode 100644 index 00000000000..c7e6b41276b --- /dev/null +++ b/integration/tests_ok/predicates-string.ps1 @@ -0,0 +1,3 @@ +Set-StrictMode -Version latest +$ErrorActionPreference = 'Stop' +hurl tests_ok/predicates-string.hurl --verbose diff --git a/integration/tests_ok/predicates-string.sh b/integration/tests_ok/predicates-string.sh new file mode 100755 index 00000000000..fe7d7460be2 --- /dev/null +++ b/integration/tests_ok/predicates-string.sh @@ -0,0 +1,3 @@ +#!/bin/bash +set -Eeuo pipefail +hurl tests_ok/predicates-string.hurl --verbose diff --git a/integration/tests_ok/proxy.options b/integration/tests_ok/proxy.options deleted file mode 100644 index 8931ebfbbfd..00000000000 --- a/integration/tests_ok/proxy.options +++ /dev/null @@ -1,2 +0,0 @@ ---proxy -localhost:8888 diff --git a/integration/tests_ok/proxy.ps1 b/integration/tests_ok/proxy.ps1 new file mode 100644 index 00000000000..d2a615871f5 --- /dev/null +++ b/integration/tests_ok/proxy.ps1 @@ -0,0 +1,3 @@ +Set-StrictMode -Version latest +$ErrorActionPreference = 'Stop' +hurl tests_ok/proxy.hurl --proxy localhost:8888 --verbose diff --git a/integration/tests_ok/proxy.sh b/integration/tests_ok/proxy.sh new file mode 100755 index 00000000000..5fb60f86188 --- /dev/null +++ b/integration/tests_ok/proxy.sh @@ -0,0 +1,3 @@ +#!/bin/bash +set -Eeuo pipefail +hurl tests_ok/proxy.hurl --proxy localhost:8888 --verbose diff --git a/integration/tests_ok/put.ps1 b/integration/tests_ok/put.ps1 new file mode 100644 index 00000000000..7508fdc2411 --- /dev/null +++ b/integration/tests_ok/put.ps1 @@ -0,0 +1,3 @@ +Set-StrictMode -Version latest +$ErrorActionPreference = 'Stop' +hurl tests_ok/put.hurl --verbose diff --git a/integration/tests_ok/put.sh b/integration/tests_ok/put.sh new file mode 100755 index 00000000000..524508d4a21 --- /dev/null +++ b/integration/tests_ok/put.sh @@ -0,0 +1,3 @@ +#!/bin/bash +set -Eeuo pipefail +hurl tests_ok/put.hurl --verbose diff --git a/integration/tests_ok/querystring_params.ps1 b/integration/tests_ok/querystring_params.ps1 new file mode 100644 index 00000000000..c6b29470cdd --- /dev/null +++ b/integration/tests_ok/querystring_params.ps1 @@ -0,0 +1,3 @@ +Set-StrictMode -Version latest +$ErrorActionPreference = 'Stop' +hurl tests_ok/querystring_params.hurl --verbose diff --git a/integration/tests_ok/querystring_params.sh b/integration/tests_ok/querystring_params.sh new file mode 100755 index 00000000000..db8cda2f862 --- /dev/null +++ b/integration/tests_ok/querystring_params.sh @@ -0,0 +1,3 @@ +#!/bin/bash +set -Eeuo pipefail +hurl tests_ok/querystring_params.hurl --verbose diff --git a/integration/tests_ok/redirect.ps1 b/integration/tests_ok/redirect.ps1 new file mode 100644 index 00000000000..f4c70ea8030 --- /dev/null +++ b/integration/tests_ok/redirect.ps1 @@ -0,0 +1,3 @@ +Set-StrictMode -Version latest +$ErrorActionPreference = 'Stop' +hurl tests_ok/redirect.hurl --verbose diff --git a/integration/tests_ok/redirect.sh b/integration/tests_ok/redirect.sh new file mode 100755 index 00000000000..9ed3f61e465 --- /dev/null +++ b/integration/tests_ok/redirect.sh @@ -0,0 +1,3 @@ +#!/bin/bash +set -Eeuo pipefail +hurl tests_ok/redirect.hurl --verbose diff --git a/integration/tests_ok/resolve.options b/integration/tests_ok/resolve.options deleted file mode 100644 index e2ebcadec66..00000000000 --- a/integration/tests_ok/resolve.options +++ /dev/null @@ -1,6 +0,0 @@ ---resolve -foo.com:8000:127.0.0.1 ---resolve -bar.com:8000:127.0.0.1 ---resolve -baz.com:8000:127.0.0.1 diff --git a/integration/tests_ok/resolve.ps1 b/integration/tests_ok/resolve.ps1 new file mode 100644 index 00000000000..554eccd546f --- /dev/null +++ b/integration/tests_ok/resolve.ps1 @@ -0,0 +1,3 @@ +Set-StrictMode -Version latest +$ErrorActionPreference = 'Stop' +hurl tests_ok/resolve.hurl --resolve foo.com:8000:127.0.0.1 --resolve bar.com:8000:127.0.0.1 --resolve baz.com:8000:127.0.0.1 --verbose diff --git a/integration/tests_ok/resolve.sh b/integration/tests_ok/resolve.sh new file mode 100755 index 00000000000..710e289c554 --- /dev/null +++ b/integration/tests_ok/resolve.sh @@ -0,0 +1,3 @@ +#!/bin/bash +set -Eeuo pipefail +hurl tests_ok/resolve.hurl --resolve foo.com:8000:127.0.0.1 --resolve bar.com:8000:127.0.0.1 --resolve baz.com:8000:127.0.0.1 --verbose diff --git a/integration/tests_ok/retry.options b/integration/tests_ok/retry.options deleted file mode 100644 index 6a809ba3b29..00000000000 --- a/integration/tests_ok/retry.options +++ /dev/null @@ -1,5 +0,0 @@ ---retry ---retry-interval -100 ---verbose ---json \ No newline at end of file diff --git a/integration/tests_ok/retry.ps1 b/integration/tests_ok/retry.ps1 new file mode 100644 index 00000000000..efec5a60cb8 --- /dev/null +++ b/integration/tests_ok/retry.ps1 @@ -0,0 +1,3 @@ +Set-StrictMode -Version latest +$ErrorActionPreference = 'Stop' +hurl tests_ok/retry.hurl --retry --retry-interval 100 --verbose --json diff --git a/integration/tests_ok/retry.sh b/integration/tests_ok/retry.sh new file mode 100755 index 00000000000..a6f837c2eab --- /dev/null +++ b/integration/tests_ok/retry.sh @@ -0,0 +1,3 @@ +#!/bin/bash +set -Eeuo pipefail +hurl tests_ok/retry.hurl --retry --retry-interval 100 --verbose --json diff --git a/integration/tests_ok/test.err.pattern b/integration/tests_ok/test.err.pattern index c23ec5bf496..0797e87223a 100644 --- a/integration/tests_ok/test.err.pattern +++ b/integration/tests_ok/test.err.pattern @@ -1,14 +1,12 @@ -tests_ok~test.hurl: Running [1/4] -tests_ok~test.hurl: Success (1 request(s) in ~~~ ms) -tests_ok~test.1.hurl: Running [2/4] +tests_ok~test.1.hurl: Running [1/3] tests_ok~test.1.hurl: Success (1 request(s) in ~~~ ms) -tests_ok~test.2.hurl: Running [3/4] +tests_ok~test.2.hurl: Running [2/3] tests_ok~test.2.hurl: Success (1 request(s) in ~~~ ms) -tests_ok~test.3.hurl: Running [4/4] +tests_ok~test.3.hurl: Running [3/3] tests_ok~test.3.hurl: Success (1 request(s) in ~~~ ms) -------------------------------------------------------------------------------- -Executed files: 4 -Succeeded files: 4 (100.0%) +Executed files: 3 +Succeeded files: 3 (100.0%) Failed files: 0 (0.0%) Duration: ~~~ ms diff --git a/integration/tests_ok/test.html b/integration/tests_ok/test.html deleted file mode 100644 index e460aee8c1d..00000000000 --- a/integration/tests_ok/test.html +++ /dev/null @@ -1,5 +0,0 @@ -
GET http://localhost:8000/hello
-
-HTTP 200
-`Hello World!`
-
diff --git a/integration/tests_ok/test.hurl b/integration/tests_ok/test.hurl deleted file mode 100644 index 19f3b0475c6..00000000000 --- a/integration/tests_ok/test.hurl +++ /dev/null @@ -1,4 +0,0 @@ -GET http://localhost:8000/hello - -HTTP 200 -`Hello World!` diff --git a/integration/tests_ok/test.json b/integration/tests_ok/test.json deleted file mode 100644 index 01ffc165bbf..00000000000 --- a/integration/tests_ok/test.json +++ /dev/null @@ -1 +0,0 @@ -{"entries":[{"request":{"method":"GET","url":"http://localhost:8000/hello"},"response":{"status":200,"body":{"type":"text","value":"Hello World!"}}}]} diff --git a/integration/tests_ok/test.options b/integration/tests_ok/test.options deleted file mode 100644 index 9d238b20790..00000000000 --- a/integration/tests_ok/test.options +++ /dev/null @@ -1,3 +0,0 @@ ---test ---glob -tests_ok/test.*.hurl \ No newline at end of file diff --git a/integration/tests_ok/test.ps1 b/integration/tests_ok/test.ps1 new file mode 100644 index 00000000000..106b370976f --- /dev/null +++ b/integration/tests_ok/test.ps1 @@ -0,0 +1,3 @@ +Set-StrictMode -Version latest +$ErrorActionPreference = 'Stop' +hurl --test --glob "tests_ok/test.*.hurl" diff --git a/integration/tests_ok/test.sh b/integration/tests_ok/test.sh new file mode 100755 index 00000000000..cda189d3575 --- /dev/null +++ b/integration/tests_ok/test.sh @@ -0,0 +1,3 @@ +#!/bin/bash +set -Eeuo pipefail +hurl --test --glob "tests_ok/test.*.hurl" diff --git a/integration/tests_ok/to_entry.options b/integration/tests_ok/to_entry.options deleted file mode 100644 index 73b8aeaf7f8..00000000000 --- a/integration/tests_ok/to_entry.options +++ /dev/null @@ -1,2 +0,0 @@ ---to-entry -3 diff --git a/integration/tests_ok/to_entry.ps1 b/integration/tests_ok/to_entry.ps1 new file mode 100644 index 00000000000..c794dc05f3e --- /dev/null +++ b/integration/tests_ok/to_entry.ps1 @@ -0,0 +1,3 @@ +Set-StrictMode -Version latest +$ErrorActionPreference = 'Stop' +hurl tests_ok/to_entry.hurl --to-entry 3 --verbose diff --git a/integration/tests_ok/to_entry.sh b/integration/tests_ok/to_entry.sh new file mode 100755 index 00000000000..0f988a07c3f --- /dev/null +++ b/integration/tests_ok/to_entry.sh @@ -0,0 +1,3 @@ +#!/bin/bash +set -Eeuo pipefail +hurl tests_ok/to_entry.hurl --to-entry 3 --verbose diff --git a/integration/tests_ok/url.ps1 b/integration/tests_ok/url.ps1 new file mode 100644 index 00000000000..a83b03b31e1 --- /dev/null +++ b/integration/tests_ok/url.ps1 @@ -0,0 +1,3 @@ +Set-StrictMode -Version latest +$ErrorActionPreference = 'Stop' +hurl tests_ok/url.hurl --verbose diff --git a/integration/tests_ok/url.sh b/integration/tests_ok/url.sh new file mode 100755 index 00000000000..c098c9a2f24 --- /dev/null +++ b/integration/tests_ok/url.sh @@ -0,0 +1,3 @@ +#!/bin/bash +set -Eeuo pipefail +hurl tests_ok/url.hurl --verbose diff --git a/integration/tests_ok/user_agent.options b/integration/tests_ok/user_agent.options deleted file mode 100644 index 3cff47a646b..00000000000 --- a/integration/tests_ok/user_agent.options +++ /dev/null @@ -1,2 +0,0 @@ ---user-agent -Mozilla/5.0 A diff --git a/integration/tests_ok/user_agent.ps1 b/integration/tests_ok/user_agent.ps1 new file mode 100644 index 00000000000..a59b93630bf --- /dev/null +++ b/integration/tests_ok/user_agent.ps1 @@ -0,0 +1,3 @@ +Set-StrictMode -Version latest +$ErrorActionPreference = 'Stop' +hurl tests_ok/user_agent.hurl --user-agent "Mozilla/5.0 A" diff --git a/integration/tests_ok/user_agent.sh b/integration/tests_ok/user_agent.sh new file mode 100755 index 00000000000..34b46c79e0c --- /dev/null +++ b/integration/tests_ok/user_agent.sh @@ -0,0 +1,3 @@ +#!/bin/bash +set -Eeuo pipefail +hurl tests_ok/user_agent.hurl --user-agent "Mozilla/5.0 A" diff --git a/integration/tests_ok/utf8.ps1 b/integration/tests_ok/utf8.ps1 new file mode 100644 index 00000000000..ee58a6aa707 --- /dev/null +++ b/integration/tests_ok/utf8.ps1 @@ -0,0 +1,3 @@ +Set-StrictMode -Version latest +$ErrorActionPreference = 'Stop' +hurl tests_ok/utf8.hurl --verbose diff --git a/integration/tests_ok/utf8.sh b/integration/tests_ok/utf8.sh new file mode 100755 index 00000000000..dab9ba64f53 --- /dev/null +++ b/integration/tests_ok/utf8.sh @@ -0,0 +1,3 @@ +#!/bin/bash +set -Eeuo pipefail +hurl tests_ok/utf8.hurl --verbose diff --git a/integration/tests_ok/variables.options b/integration/tests_ok/variables.options deleted file mode 100644 index 674012dc3b0..00000000000 --- a/integration/tests_ok/variables.options +++ /dev/null @@ -1,6 +0,0 @@ ---variables-file -tests_ok/variables0.properties ---variables-file -tests_ok/variables1.properties ---variable -female=true diff --git a/integration/tests_ok/variables.ps1 b/integration/tests_ok/variables.ps1 new file mode 100644 index 00000000000..9f1ac6ea723 --- /dev/null +++ b/integration/tests_ok/variables.ps1 @@ -0,0 +1,3 @@ +Set-StrictMode -Version latest +$ErrorActionPreference = 'Stop' +hurl tests_ok/variables.hurl --variables-file tests_ok/variables0.properties --variables-file tests_ok/variables1.properties --variable female=true --verbose diff --git a/integration/tests_ok/variables.sh b/integration/tests_ok/variables.sh new file mode 100755 index 00000000000..8beb65e42c1 --- /dev/null +++ b/integration/tests_ok/variables.sh @@ -0,0 +1,3 @@ +#!/bin/bash +set -Eeuo pipefail +hurl tests_ok/variables.hurl --variables-file tests_ok/variables0.properties --variables-file tests_ok/variables1.properties --variable female=true --verbose diff --git a/integration/tests_ok/verbose.options b/integration/tests_ok/verbose.options deleted file mode 100644 index 4342561a414..00000000000 --- a/integration/tests_ok/verbose.options +++ /dev/null @@ -1 +0,0 @@ ---verbose \ No newline at end of file diff --git a/integration/tests_ok/verbose.ps1 b/integration/tests_ok/verbose.ps1 new file mode 100644 index 00000000000..8a5d79e5e93 --- /dev/null +++ b/integration/tests_ok/verbose.ps1 @@ -0,0 +1,3 @@ +Set-StrictMode -Version latest +$ErrorActionPreference = 'Stop' +hurl tests_ok/verbose.hurl --verbose diff --git a/integration/tests_ok/verbose.sh b/integration/tests_ok/verbose.sh new file mode 100755 index 00000000000..ad70a72ccc4 --- /dev/null +++ b/integration/tests_ok/verbose.sh @@ -0,0 +1,3 @@ +#!/bin/bash +set -Eeuo pipefail +hurl tests_ok/verbose.hurl --verbose diff --git a/integration/tests_ok/very_verbose.options b/integration/tests_ok/very_verbose.options deleted file mode 100644 index 18a41073e36..00000000000 --- a/integration/tests_ok/very_verbose.options +++ /dev/null @@ -1,2 +0,0 @@ ---very-verbose ---location \ No newline at end of file diff --git a/integration/tests_ok/very_verbose.ps1 b/integration/tests_ok/very_verbose.ps1 new file mode 100644 index 00000000000..f09c8fb2aa8 --- /dev/null +++ b/integration/tests_ok/very_verbose.ps1 @@ -0,0 +1,3 @@ +Set-StrictMode -Version latest +$ErrorActionPreference = 'Stop' +hurl tests_ok/very_verbose.hurl --very-verbose --location --verbose diff --git a/integration/tests_ok/very_verbose.sh b/integration/tests_ok/very_verbose.sh new file mode 100755 index 00000000000..5851d6fca55 --- /dev/null +++ b/integration/tests_ok/very_verbose.sh @@ -0,0 +1,3 @@ +#!/bin/bash +set -Eeuo pipefail +hurl tests_ok/very_verbose.hurl --very-verbose --location --verbose