mirror of
https://github.com/Orange-OpenSource/hurl.git
synced 2025-01-08 20:54:28 +03:00
Remove color default options for running tests.
This commit is contained in:
parent
1daf83dc99
commit
4888f44759
@ -5,7 +5,7 @@ set -e
|
||||
for hurl_file in "$@"; do
|
||||
set +e
|
||||
|
||||
options=("--color")
|
||||
options=("")
|
||||
if test -f "${hurl_file%.*}.options"; then
|
||||
options+=("$(cat "${hurl_file%.*}.options")")
|
||||
fi
|
||||
|
@ -1,4 +1,4 @@
|
||||
[1;31merror[0m: Assert Body Value
|
||||
error: Assert Body Value
|
||||
--> tests/error_assert_base64.hurl:12:8
|
||||
|
|
||||
12 | base64,bGluZTEKbGluZTIKbGluZTMK;
|
||||
|
@ -1,4 +1,4 @@
|
||||
[1;31merror[0m: Assert Body Value
|
||||
error: Assert Body Value
|
||||
--> tests/error_assert_file.hurl:8:1
|
||||
|
|
||||
8 | file,hello.txt;
|
||||
|
@ -1,4 +1,4 @@
|
||||
[1;31merror[0m: Header not Found
|
||||
error: Header not Found
|
||||
--> tests/error_assert_header_not_found.hurl:3:1
|
||||
|
|
||||
3 | Custom: ???
|
||||
|
@ -1,4 +1,4 @@
|
||||
[1;31merror[0m: Assert Header Value
|
||||
error: Assert Header Value
|
||||
--> tests/error_assert_header_value.hurl:3:15
|
||||
|
|
||||
3 | Content-Type: ???
|
||||
|
@ -1,4 +1,4 @@
|
||||
[1;31merror[0m: Assert Http Version
|
||||
error: Assert Http Version
|
||||
--> tests/error_assert_http_version.hurl:2:6
|
||||
|
|
||||
2 | HTTP/2 200
|
||||
|
@ -1,4 +1,4 @@
|
||||
[1;31merror[0m: Assert Failure
|
||||
error: Assert Failure
|
||||
--> tests/error_assert_invalid_predicate_type.hurl:4:0
|
||||
|
|
||||
4 | header "content-type" equals 1
|
||||
|
@ -1,4 +1,4 @@
|
||||
[1;31merror[0m: Invalid Utf8
|
||||
error: Invalid Utf8
|
||||
--> tests/error_assert_match_utf8.hurl:4:1
|
||||
|
|
||||
4 | body matches ".*"
|
||||
|
@ -1,4 +1,4 @@
|
||||
[1;31merror[0m: Invalid regex
|
||||
error: Invalid regex
|
||||
--> tests/error_assert_query_invalid_regex.hurl:4:7
|
||||
|
|
||||
4 | regex "[x" exists
|
||||
|
@ -1,4 +1,4 @@
|
||||
[1;31merror[0m: Invalid xpath expression
|
||||
error: Invalid xpath expression
|
||||
--> tests/error_assert_query_invalid_xpath.hurl:4:7
|
||||
|
|
||||
4 | xpath "//" equals 1
|
||||
|
@ -1,4 +1,4 @@
|
||||
[1;31merror[0m: Assert Status
|
||||
error: Assert Status
|
||||
--> tests/error_assert_status.hurl:2:10
|
||||
|
|
||||
2 | HTTP/1.0 200
|
||||
|
@ -1,4 +1,4 @@
|
||||
[1;31merror[0m: Undefined Variable
|
||||
error: Undefined Variable
|
||||
--> tests/error_assert_template_variable_not_found.hurl:4:33
|
||||
|
|
||||
4 | header "content-type" equals "{{content_type}}"
|
||||
|
@ -1,4 +1,4 @@
|
||||
[1;31merror[0m: Assert Failure
|
||||
error: Assert Failure
|
||||
--> tests/error_assert_value_error.hurl:4:0
|
||||
|
|
||||
4 | header "content-type" equals "XXX"
|
||||
@ -6,7 +6,7 @@
|
||||
| expected: string <XXX>
|
||||
|
|
||||
|
||||
[1;31merror[0m: Assert Failure
|
||||
error: Assert Failure
|
||||
--> tests/error_assert_value_error.hurl:5:0
|
||||
|
|
||||
5 | jsonpath "$.id" equals "000001"
|
||||
@ -14,7 +14,7 @@
|
||||
| expected: string <000001>
|
||||
|
|
||||
|
||||
[1;31merror[0m: Assert Failure
|
||||
error: Assert Failure
|
||||
--> tests/error_assert_value_error.hurl:6:0
|
||||
|
|
||||
6 | jsonpath "$.values" includes 100
|
||||
|
1
integration/tests/error_assert_variable.options
Normal file
1
integration/tests/error_assert_variable.options
Normal file
@ -0,0 +1 @@
|
||||
--color
|
@ -1,4 +1,4 @@
|
||||
[1;31merror[0m: File ReadAccess
|
||||
error: File ReadAccess
|
||||
--> tests/error_file_read_access.hurl:2:6
|
||||
|
|
||||
2 | file,does_not_exist;
|
||||
|
@ -1,4 +1,4 @@
|
||||
[1;31merror[0m: Http Connection
|
||||
error: Http Connection
|
||||
--> tests/error_http_connection.hurl:1:5
|
||||
|
|
||||
1 | GET http://unknown
|
||||
|
@ -1,4 +1,4 @@
|
||||
[1;31merror[0m: Invalid jsonpath
|
||||
error: Invalid jsonpath
|
||||
--> tests/error_invalid_jsonpath.hurl:4:10
|
||||
|
|
||||
4 | jsonpath "" equals false
|
||||
|
@ -1,4 +1,4 @@
|
||||
[1;31merror[0m: Invalid url
|
||||
error: Invalid url
|
||||
--> tests/error_invalid_url.hurl:1:5
|
||||
|
|
||||
1 | GET unknown
|
||||
|
@ -1,4 +1,4 @@
|
||||
[1;31merror[0m: Invalid XML
|
||||
error: Invalid XML
|
||||
--> tests/error_invalid_xml.hurl:4:1
|
||||
|
|
||||
4 | xpath "xx" equals 1
|
||||
|
@ -1,4 +1,4 @@
|
||||
[1;31merror[0m: File ReadAccess
|
||||
error: File ReadAccess
|
||||
--> tests/error_multipart_form_data.hurl:4:15
|
||||
|
|
||||
4 | upload1: file,unknown;
|
||||
|
@ -1,4 +1,4 @@
|
||||
[1;31merror[0m: Assert Failure
|
||||
error: Assert Failure
|
||||
--> tests/error_predicate.hurl:4:0
|
||||
|
|
||||
4 | jsonpath "$.status" equals "true"
|
||||
@ -6,7 +6,7 @@
|
||||
| expected: string <true>
|
||||
|
|
||||
|
||||
[1;31merror[0m: Assert Failure
|
||||
error: Assert Failure
|
||||
--> tests/error_predicate.hurl:6:0
|
||||
|
|
||||
6 | jsonpath "$.count" equals 0
|
||||
@ -14,7 +14,7 @@
|
||||
| expected: int <0>
|
||||
|
|
||||
|
||||
[1;31merror[0m: Assert Failure
|
||||
error: Assert Failure
|
||||
--> tests/error_predicate.hurl:7:0
|
||||
|
|
||||
7 | jsonpath "$.message" equals 0
|
||||
@ -22,7 +22,7 @@
|
||||
| expected: int <0>
|
||||
|
|
||||
|
||||
[1;31merror[0m: Assert Failure
|
||||
error: Assert Failure
|
||||
--> tests/error_predicate.hurl:8:0
|
||||
|
|
||||
8 | jsonpath "$.empty" equals 0
|
||||
@ -30,7 +30,7 @@
|
||||
| expected: int <0>
|
||||
|
|
||||
|
||||
[1;31merror[0m: Assert Failure
|
||||
error: Assert Failure
|
||||
--> tests/error_predicate.hurl:9:0
|
||||
|
|
||||
9 | jsonpath "$.number" equals 1.1
|
||||
@ -38,7 +38,7 @@
|
||||
| expected: float <1.100000000000000000>
|
||||
|
|
||||
|
||||
[1;31merror[0m: Assert Failure
|
||||
error: Assert Failure
|
||||
--> tests/error_predicate.hurl:10:0
|
||||
|
|
||||
10 | jsonpath "$.message" startsWith "hi"
|
||||
@ -46,7 +46,7 @@
|
||||
| expected: starts with string <hi>
|
||||
|
|
||||
|
||||
[1;31merror[0m: Assert Failure
|
||||
error: Assert Failure
|
||||
--> tests/error_predicate.hurl:11:0
|
||||
|
|
||||
11 | jsonpath "$.message" contains "hi"
|
||||
@ -54,7 +54,7 @@
|
||||
| expected: contains string <hi>
|
||||
|
|
||||
|
||||
[1;31merror[0m: Assert Failure
|
||||
error: Assert Failure
|
||||
--> tests/error_predicate.hurl:12:0
|
||||
|
|
||||
12 | jsonpath "$.message" matches "hi"
|
||||
@ -62,7 +62,7 @@
|
||||
| expected: matches regex <hi>
|
||||
|
|
||||
|
||||
[1;31merror[0m: Assert Failure
|
||||
error: Assert Failure
|
||||
--> tests/error_predicate.hurl:13:0
|
||||
|
|
||||
13 | jsonpath "$.message" countEquals 1
|
||||
@ -70,7 +70,7 @@
|
||||
| expected: count equals to <1>
|
||||
|
|
||||
|
||||
[1;31merror[0m: Assert Failure
|
||||
error: Assert Failure
|
||||
--> tests/error_predicate.hurl:14:0
|
||||
|
|
||||
14 | jsonpath "$.toto" exists
|
||||
@ -78,7 +78,7 @@
|
||||
| expected: something
|
||||
|
|
||||
|
||||
[1;31merror[0m: Assert Failure
|
||||
error: Assert Failure
|
||||
--> tests/error_predicate.hurl:15:0
|
||||
|
|
||||
15 | jsonpath "$.message" not exists
|
||||
|
@ -1,4 +1,4 @@
|
||||
[1;31merror[0m: Header not Found
|
||||
error: Header not Found
|
||||
--> tests/error_query_header_not_found.hurl:3:1
|
||||
|
|
||||
3 | Custom: XXX
|
||||
|
@ -1,4 +1,4 @@
|
||||
[1;31merror[0m: Invalid Json
|
||||
error: Invalid Json
|
||||
--> tests/error_query_invalid_json.hurl:4:1
|
||||
|
|
||||
4 | jsonpath "$.errors" countEquals 2
|
||||
|
@ -1,4 +1,4 @@
|
||||
[1;31merror[0m: Invalid Utf8
|
||||
error: Invalid Utf8
|
||||
--> tests/error_query_invalid_utf8.hurl:4:1
|
||||
|
|
||||
4 | jsonpath "$.errors" countEquals 2
|
||||
|
@ -0,0 +1 @@
|
||||
--color
|
@ -1,4 +1,4 @@
|
||||
[1;31merror[0m: Unrenderable Variable
|
||||
error: Unrenderable Variable
|
||||
--> tests/error_template_variable_not_renderable.hurl:8:11
|
||||
|
|
||||
8 | param1: {{list}}
|
||||
|
@ -1 +1 @@
|
||||
-L --verbose
|
||||
-L
|
@ -1,4 +1,4 @@
|
||||
[1;31merror[0m: Parsing literal
|
||||
error: Parsing literal
|
||||
--> tests_error_parser/base64.hurl:2:14
|
||||
|
|
||||
2 | base64, aaaaa?
|
||||
|
@ -1,4 +1,4 @@
|
||||
[1;31merror[0m: Parsing section
|
||||
error: Parsing section
|
||||
--> tests_error_parser/duplicate_section.hurl:4:1
|
||||
|
|
||||
4 | [QueryStringParams]
|
||||
|
@ -1,4 +1,4 @@
|
||||
[1;31merror[0m: Parsing Filename
|
||||
error: Parsing Filename
|
||||
--> tests_error_parser/file.hurl:2:6
|
||||
|
|
||||
2 | file,
|
||||
|
@ -1,4 +1,4 @@
|
||||
[1;31merror[0m: Parsing literal
|
||||
error: Parsing literal
|
||||
--> tests_error_parser/file_missing_delimiter.hurl:2:16
|
||||
|
|
||||
2 | file, data.bin ?
|
||||
|
@ -1,4 +1,4 @@
|
||||
[1;31merror[0m: Parsing Method
|
||||
error: Parsing Method
|
||||
--> tests_error_parser/invalid_character_at_end.hurl:3:1
|
||||
|
|
||||
3 | XXX
|
||||
|
@ -1,4 +1,4 @@
|
||||
[1;31merror[0m: Parsing cookie attribute
|
||||
error: Parsing cookie attribute
|
||||
--> tests_error_parser/invalid_cookiepath.hurl:4:17
|
||||
|
|
||||
4 | cookie "cookie1[X]" equals "1"
|
||||
|
@ -1,4 +1,4 @@
|
||||
[1;31merror[0m: Parsing escape character
|
||||
error: Parsing escape character
|
||||
--> tests_error_parser/invalid_escape.hurl:4:25
|
||||
|
|
||||
4 | xpath "//item" equals "\d\d\d\d-\d\d-\d\d"
|
||||
|
@ -1,4 +1,4 @@
|
||||
[1;31merror[0m: Parsing Filename
|
||||
error: Parsing Filename
|
||||
--> tests_error_parser/invalid_file.hurl:2:6
|
||||
|
|
||||
2 | file,/data.bin;
|
||||
|
@ -1,4 +1,4 @@
|
||||
[1;31merror[0m: Parsing literal
|
||||
error: Parsing literal
|
||||
--> tests_error_parser/invalid_jsonpath.hurl:4:10
|
||||
|
|
||||
4 | jsonpath ?? equals 1
|
||||
|
@ -1,4 +1,4 @@
|
||||
[1;31merror[0m: Parsing section
|
||||
error: Parsing section
|
||||
--> tests_error_parser/invalid_section.hurl:2:1
|
||||
|
|
||||
2 | [Asserts]
|
||||
|
@ -1,4 +1,4 @@
|
||||
[1;31merror[0m: Parsing literal
|
||||
error: Parsing literal
|
||||
--> tests_error_parser/invalid_url.hurl:1:26
|
||||
|
|
||||
1 | GET http://localhost:8000> #
|
||||
|
@ -1,4 +1,4 @@
|
||||
[1;31merror[0m: Parsing literal
|
||||
error: Parsing literal
|
||||
--> tests_error_parser/invalid_xpath.hurl:4:7
|
||||
|
|
||||
4 | xpath ?? equals 1
|
||||
|
@ -1,4 +1,4 @@
|
||||
[1;31merror[0m: Parsing json
|
||||
error: Parsing json
|
||||
--> tests_error_parser/json.hurl:2:10
|
||||
|
|
||||
2 | { "name":
|
||||
|
@ -1,4 +1,4 @@
|
||||
[1;31merror[0m: Parsing json
|
||||
error: Parsing json
|
||||
--> tests_error_parser/json_unexpected_character.hurl:2:10
|
||||
|
|
||||
2 | { "name": x
|
||||
|
@ -1,4 +1,4 @@
|
||||
[1;31merror[0m: Parsing json
|
||||
error: Parsing json
|
||||
--> tests_error_parser/json_unexpected_eof.hurl:2:10
|
||||
|
|
||||
2 | { "name":
|
||||
|
@ -1,4 +1,4 @@
|
||||
[1;31merror[0m: Parsing jsonpath expression
|
||||
error: Parsing jsonpath expression
|
||||
--> tests_error_parser/jsonpath.hurl:4:10
|
||||
|
|
||||
4 | jsonpath ? equals 1
|
||||
|
@ -1,4 +1,4 @@
|
||||
[1;31merror[0m: Parsing Method
|
||||
error: Parsing Method
|
||||
--> tests_error_parser/method.hurl:1:1
|
||||
|
|
||||
1 | GeT http://localhost:8000/hello
|
||||
|
@ -1,4 +1,4 @@
|
||||
[1;31merror[0m: Parsing predicate
|
||||
error: Parsing predicate
|
||||
--> tests_error_parser/predicate.hurl:3:15
|
||||
|
|
||||
3 | header "toto" tata startsWith "hello"
|
||||
|
@ -1,4 +1,4 @@
|
||||
[1;31merror[0m: Parsing predicate value
|
||||
error: Parsing predicate value
|
||||
--> tests_error_parser/predicate_count_equal_value.hurl:3:28
|
||||
|
|
||||
3 | xpath "//user" countEquals true
|
||||
|
@ -1,4 +1,4 @@
|
||||
[1;31merror[0m: Parsing predicate value
|
||||
error: Parsing predicate value
|
||||
--> tests_error_parser/predicate_equal_value.hurl:3:22
|
||||
|
|
||||
3 | header "toto" equals xx
|
||||
|
@ -1,4 +1,4 @@
|
||||
[1;31merror[0m: Parsing literal
|
||||
error: Parsing literal
|
||||
--> tests_error_parser/predicate_startwith_value.hurl:3:26
|
||||
|
|
||||
3 | header "toto" startsWith 1
|
||||
|
@ -1,4 +1,4 @@
|
||||
[1;31merror[0m: Parsing literal
|
||||
error: Parsing literal
|
||||
--> tests_error_parser/regex.hurl:5:7
|
||||
|
|
||||
5 | regex ?? not exists
|
||||
|
@ -1,4 +1,4 @@
|
||||
[1;31merror[0m: Parsing section name
|
||||
error: Parsing section name
|
||||
--> tests_error_parser/section_name.hurl:2:2
|
||||
|
|
||||
2 | [Unknown]
|
||||
|
@ -1,4 +1,4 @@
|
||||
[1;31merror[0m: Parsing space
|
||||
error: Parsing space
|
||||
--> tests_error_parser/space.hurl:1:4
|
||||
|
|
||||
1 | GET
|
||||
|
@ -1,4 +1,4 @@
|
||||
[1;31merror[0m: Parsing Status
|
||||
error: Parsing Status
|
||||
--> tests_error_parser/status.hurl:2:10
|
||||
|
|
||||
2 | HTTP/1.1 oa0
|
||||
|
@ -1,4 +1,4 @@
|
||||
[1;31merror[0m: Parsing template variable
|
||||
error: Parsing template variable
|
||||
--> tests_error_parser/template_variable.hurl:1:7
|
||||
|
|
||||
1 | GET {{}}
|
||||
|
@ -1,4 +1,4 @@
|
||||
[1;31merror[0m: Parsing Version
|
||||
error: Parsing Version
|
||||
--> tests_error_parser/version.hurl:2:6
|
||||
|
|
||||
2 | HTTP/11 200
|
||||
|
@ -1,4 +1,4 @@
|
||||
[1;31merror[0m: Error { pos: Pos { line: 2, column: 1 }, recoverable: false, inner: Xml }
|
||||
error: Error { pos: Pos { line: 2, column: 1 }, recoverable: false, inner: Xml }
|
||||
--> tests_error_parser/xml.hurl:2:1
|
||||
|
|
||||
2 | <users><user>
|
||||
|
Loading…
Reference in New Issue
Block a user