Commit Graph

1444 Commits

Author SHA1 Message Date
Fabrice Reix
954000f3ef
Rename ParseError 2024-05-15 15:08:08 +02:00
Fabrice Reix
4615283e9b
Rename Error trait to DisplaySourceError 2024-05-15 14:19:05 +02:00
Haoyu Cheng
4e588e9bbf
format code and sort filter in order 2024-05-15 06:50:14 +00:00
Haoyu Cheng
1ea8936c42
add ToFloat filter 2024-05-15 06:50:13 +00:00
Jean-Christophe Amiel
ec9af97161
Update binary installation. 2024-05-14 17:12:37 +02:00
Jean-Christophe Amiel
5e92ed95e2
Add optional directory argument to HurlResult::to_json method. 2024-05-14 00:04:31 +02:00
hurl-bot
dff555e8f5
Update crates 2024-05-09 03:02:01 +00:00
Jean-Christophe Amiel
651144541a
Update generated files. 2024-05-07 08:33:38 +00:00
Fabrice Reix
7e6e94f4f2
Fix Clippy warnings 2024-05-07 08:34:36 +02:00
Fabrice Reix
19b739f1ae
Update Rust 1.78.0 2024-05-07 08:28:30 +02:00
hurl-bot
fe26ca1c7a
Update crates 2024-05-07 03:02:11 +00:00
hurl-bot
63fd3dc713
Update crates 2024-05-05 03:02:02 +00:00
hurl-bot
c6752ff0fc
Update crates 2024-05-02 03:01:58 +00:00
Fabrice Reix
7a7d361204
Add support for importing curl url option 2024-05-01 11:14:55 +02:00
hurl-bot
25ef67b993
Update crates 2024-04-30 14:34:27 +00:00
Jean-Christophe Amiel
9638b9b2b4
Run tests in parallel. 2024-04-30 16:12:13 +02:00
Jean-Christophe Amiel
860585afaa
Update Archlinux installation. 2024-04-30 13:26:50 +02:00
Fabrice Reix
71d80fef30
Colorize error message in fixme 2024-04-30 11:20:03 +00:00
Jean-Christophe Amiel
dfef6931dd
Move BaseLogger outside of the hurl crate. 2024-04-26 17:57:28 +02:00
Jean-Christophe Amiel
fbd9ab1cb3
Micro cleans on hurlfmt main. 2024-04-26 16:02:15 +02:00
Fabrice Reix
ff7ff9543d
Include carets in fixme message 2024-04-25 14:42:51 +02:00
jcamiel
e3732fc703
Fix sample typo for --user. 2024-04-24 15:29:10 +00:00
hurl-bot
733e6a2426
Update hurl version to 5.0.0-SNAPSHOT 2024-04-24 14:48:27 +00:00
hurl-bot
733dd76b4a
Create 4.3.0 release 2024-04-23 11:50:35 +00:00
jcamiel
cedd86768c
Make the progress bar throttle effective after an initial delay. 2024-04-22 11:48:52 +02:00
jcamiel
fa46a56430
Export begin_call, end_call timings fields to RFC3339 (microseconds) 2024-04-22 08:58:58 +02:00
hurl-bot
174025b5fa
Update crates 2024-04-21 03:01:59 +00:00
jcamiel
48c6c26d42
Prevent script injection in HTML report 2024-04-19 16:27:03 +02:00
Fabrice Reix
ae29d8afe1
Support tab after HTTP version 2024-04-19 07:00:14 +00:00
jcamiel
c672529b8c
Set default duration to 0 instead of panic. 2024-04-18 17:58:38 +02:00
Fabrice Reix
58840f25d7
Replace tab in Hurl entry line 2024-04-18 13:16:35 +00:00
jcamiel
07c3ee8b37
Fix standalone css for regex. 2024-04-18 10:54:42 +02:00
Fabrice Reix
01ce239f54
Combine InvalidUrl RunnerError 2024-04-17 14:26:58 +02:00
jcamiel
f8ed01af7b
Fix typo in --parallel description. 2024-04-17 13:15:16 +02:00
hurl-bot
9f87d940cf
Update crates 2024-04-17 03:01:47 +00:00
jcamiel
2feb8d78df
Expose experimental --parallel / --jobs options. 2024-04-16 13:58:20 +02:00
Fabrice Reix
e60213a6a3
Update Rust 1.77.2 2024-04-16 08:39:01 +02:00
hurl-bot
0b24cb246a
Update crates 2024-04-16 03:02:51 +00:00
jcamiel
faef79453a
Fix --file-root documentation. 2024-04-15 13:54:56 +00:00
Fabrice Reix
190e396d45
Remove RunnerError::CouldNotParseResponse enum variant 2024-04-15 14:34:19 +02:00
hurl-bot
c8719e8b8c
Update crates 2024-04-14 03:23:35 +00:00
hurl-bot
5eca736654
Update crates 2024-04-13 03:01:47 +00:00
jcamiel
73829f4b4d
Use std:time::Instant for entry execution duration. 2024-04-12 10:07:46 +02:00
jcamiel
0538abb8e5
Change [Options] section lint order. 2024-04-11 15:08:58 +02:00
jcamiel
c0bbea2c9e
Add unit test on parallel progress string. 2024-04-10 16:44:31 +02:00
jcamiel
75042e210e
Fix refresh of progress bar throttle. 2024-04-10 10:24:13 +02:00
jcamiel
dd03c136c6
Add progress bar throttle to limit flickering. 2024-04-09 17:36:35 +02:00
Fabrice Reix
a28fe82622
Fix coloring in the error string 2024-04-09 11:10:14 +00:00
hurl-bot
f9c030586c
Update crates 2024-04-09 03:01:47 +00:00
jcamiel
fedc64c873
Fix progress display in parallel mode. 2024-04-08 17:51:39 +02:00
jcamiel
5123035fd9
Add integration test for parallel mode with --json 2024-04-08 15:27:26 +02:00
jcamiel
cd431d023a
Fix output in parallel mode. 2024-04-08 14:34:20 +02:00
Fabrice Reix
2227b91ee1
Refacto error_string in order to support diff messages 2024-04-08 11:37:30 +00:00
jcamiel
d1b593b4aa
Update docs with max-filesize cli only. 2024-04-08 11:59:05 +02:00
hurl-bot
ab4dfbc926
Update crates 2024-04-08 03:01:48 +00:00
Fabrice Reix
2305c8e049
Update Rust 1.77.1 2024-04-07 20:21:57 +02:00
jcamiel
8dbd6f67e7
Update doc for 4.3.0. 2024-04-04 17:22:04 +02:00
hurl-bot
ec70270fa2
Update crates 2024-04-04 03:01:55 +00:00
jcamiel
e727e0b826
Prevent raw binary response to be displayed on standard ouput 2024-04-02 16:31:25 +00:00
jcamiel
bb0008bfcb
Remove unnecessary clone. 2024-04-01 21:36:50 +02:00
baerwang
7787d711a3
feat: File size limits 2024-04-01 20:49:19 +02:00
hurl-bot
72967570a8
Update crates 2024-04-01 20:18:23 +02:00
jcamiel
59f785974f
Fix parallel integration tests. 2024-03-31 18:11:04 +02:00
jcamiel
bf472937f9
Rename workers option 2024-03-31 14:46:16 +02:00
jcamiel
e65c66b40b
Some refacto on results output (parallel and sequential). 2024-03-31 13:32:07 +02:00
jcamiel
b8783d365b
Fix various typos. 2024-03-30 15:19:30 +01:00
jcamiel
4adf90ebbe
Workers use a thread pool instead of spawing new thread for each job. 2024-03-29 17:58:52 +01:00
jcamiel
d306a38e1e
Add standard output for parallel run. 2024-03-29 15:43:54 +01:00
Anas Elgarhy
8253dca1cc
fix(imports): rm duplicated imports 2024-03-29 10:46:22 +00:00
jcamiel
3355adbff6
Refacto response output to take a stdout in parameter. 2024-03-28 18:46:12 +01:00
jcamiel
7a25ae4a9b
Output standard error in parallel mode. 2024-03-28 17:25:55 +01:00
jcamiel
531b42c6de
Update Rust to 1.77. 2024-03-28 16:54:50 +01:00
jcamiel
bc1303552a
Add isNumber predicate 2024-03-28 11:12:30 +01:00
jcamiel
f1ece5c9ef
Use Input struct in HurlRun. 2024-03-28 10:16:40 +01:00
hurl-bot
7af2276e0b
Update crates 2024-03-28 03:01:53 +00:00
jcamiel
169f0f9849
Run Hurl files in parallel (WIP). 2024-03-27 17:59:43 +00:00
hurl-bot
278cd6f3e3
Update crates 2024-03-27 03:01:42 +00:00
jcamiel
32a73ce7a4
Support --user option per request 2024-03-26 15:54:14 +01:00
jcamiel
fe15411ffe
Don't import function without module namespace.
This way is much more idiomateic. Unfortunately, I haven't find any clippy rules to enforce it.
2024-03-26 09:40:43 +00:00
jcamiel
68f37b23be
Fix case in error message. 2024-03-26 09:31:33 +01:00
hurl-bot
a50f128599
Update crates 2024-03-26 03:01:46 +00:00
jcamiel
3f5316d5f9
Remove unnecessary Box. 2024-03-25 14:12:01 +01:00
jcamiel
4cf86d24de
Add parallel runner (only parsing for the moment). 2024-03-24 19:10:48 +01:00
hurl-bot
d4c458cef0
Update crates 2024-03-23 11:52:05 +00:00
Fabrice Reix
1b3943168b
Update parser implem for filename with password 2024-03-23 09:44:37 +01:00
jcamiel
e1cdbc0ab2
Add multiline progress string support in Stderr. 2024-03-22 16:17:15 +01:00
jcamiel
7a99f477e8
Add doc comments. 2024-03-21 19:00:42 +00:00
jcamiel
f68bcc8eb3
Add isIsoDate predicate (take a string and checks YYYY-MM-DDTHH:mm:ss.sssZ) 2024-03-21 15:46:53 +01:00
jcamiel
dcd534a912
Add --from-entry option to execute a file from a given entry 2024-03-19 19:02:16 +01:00
jcamiel
7c00c15759
Create intermediate directory when using --report-html 2024-03-19 15:21:30 +01:00
hurl-bot
f0a1c7b9ed
Update crates 2024-03-19 03:01:45 +00:00
jcamiel
bbdd0f9569
Move empty result warning. 2024-03-18 14:58:15 +01:00
jcamiel
9444d6a058
Fix filename templatization bug under certains conditions. 2024-03-18 08:44:09 +00:00
hurl-bot
87eb7222dd
Update crates 2024-03-18 03:02:00 +00:00
jcamiel
f8437f26e5
Use PathBuf in some CliOptions fields 2024-03-17 16:17:17 +00:00
jcamiel
b05f70855f
Fix charset parsing logic of Content-Type header. 2024-03-17 16:32:58 +01:00
hurl-bot
dd6434e48d
Update crates 2024-03-17 03:01:51 +00:00
jcamiel
88b7c04ed5
Add experimental max-workers option. 2024-03-16 12:00:22 +01:00
jcamiel
0931c32510
Add experimental parallel flag. 2024-03-15 16:56:55 +01:00
jcamiel
2cac54911e
Modify Logger constructor. 2024-03-15 10:48:46 +01:00
jcamiel
f46f469f8b
Implements Display for CliOptionsError. 2024-03-14 14:00:05 +01:00
jcamiel
a749929a71
Use '-' to read Hurl file from standard input 2024-03-14 12:49:36 +01:00
jcamiel
a5120e9a25
Fix empty glob not always returning an error 2024-03-14 12:19:07 +01:00
jcamiel
5ed316d014
Use Path in ContextDir methods. 2024-03-14 09:45:02 +01:00
jcamiel
46e19d1024
Use PathBuf in Output enum. 2024-03-13 23:04:39 +01:00
jcamiel
8459db1bbf
Use PathBuf in FileWriteAccess error. 2024-03-13 18:35:28 +00:00
Fabrice Reix
1da6e1c6d4
Add Missing quote in Hurl export 2024-03-13 17:27:41 +00:00
jcamiel
74d76db2a2
Use PathBuf in FileReadAccess error. 2024-03-13 16:29:01 +00:00
jcamiel
982f60858f
Move fs package to util. 2024-03-13 12:57:33 +01:00
jcamiel
3b83d5a8f0
Rename Options to CliOptions. 2024-03-13 07:43:39 +01:00
jcamiel
4e153c1af2
Fix cargo doc errors. 2024-03-12 17:24:22 +01:00
jcamiel
314987918c
Creates Stdout struct (an indirection to sdtout that can be buffered or written immediately). 2024-03-12 09:52:49 +00:00
Fabrice Reix
b74bb8f7c7
Use input_format option (instead of deprecated format) 2024-03-12 09:08:39 +00:00
jcamiel
ad370cb62f
Fix --test progress bar not displayed when verbose is used 2024-03-11 18:10:40 +01:00
jcamiel
030a5bdca5
Add new method on Logger. 2024-03-11 15:10:06 +01:00
jcamiel
6d63b4dd00
Rename Term to Stderr and add method to manage progress string. 2024-03-11 14:06:29 +01:00
jcamiel
588443c849
Small refacto on output writing. 2024-03-11 11:48:13 +01:00
jcamiel
3bcf3a98ec
Implements buffered mode in Term. 2024-03-07 19:55:55 +01:00
jcamiel
624fd77e41
Split main in run package. 2024-03-07 13:22:22 +01:00
jcamiel
9b2601032a
Change CliError from struct to enum (and specify variant). 2024-03-07 10:41:39 +01:00
hurl-bot
27ce455005
Update crates 2024-03-07 03:01:30 +00:00
hurl-bot
76a0416ff7
Update crates 2024-03-06 17:58:15 +00:00
Fabrice Reix
0eb53bed0f
Update chrono crate
Replace deprecated methods
2024-03-06 17:03:07 +01:00
jcamiel
f5d65a06d9
Remove Logger instance from main.rs (use only BaseLogger). 2024-03-04 23:11:30 +01:00
jcamiel
0f457bd03b
Move clippy lint rules to Cargo.toml 2024-03-04 15:54:03 +01:00
jcamiel
3c4646dfdd
Create Term structure to manage immediate and buffered stdout/stderr. 2024-03-04 15:25:41 +01:00
hurl-bot
831dce6c8c
Update crates 2024-03-04 14:03:28 +00:00
hurl-bot
aac83805a7
Update crates 2024-03-02 03:02:04 +00:00
jcamiel
f3d7473ed1
Splits run function.
We begin to refcato the run function for parrallel execution. In this case, we want to reuse the bulk of the run function, while reusing the same logger instance. When run in parallel, we want to buffer log to sderr.
To do this, when we execute a file, we need to have a single (mut) instance of a logger.
2024-02-29 18:58:21 +00:00
jcamiel
2433a24887
Per request output takes file-root into account for path resolving 2024-02-29 09:34:07 +00:00
Fabrice Reix
84baecf464
Add semicolon_if_nothing_returned clippy lint 2024-02-29 08:33:24 +01:00
hurl-bot
39cf735b24
Update crates 2024-02-26 03:02:08 +00:00
jcamiel
6af3b682d9
Fix silent error when verbose option use unset variable. 2024-02-24 20:22:34 +01:00
jcamiel
7a943158dc
Update copyright from 2023 -> 2024. 2024-02-24 20:22:26 +01:00
hurl-bot
6fd1bb41ce
Update crates 2024-02-24 18:26:14 +00:00
jcamiel
d4ec4b4b1a
Some refacto on debug log. 2024-02-23 10:23:30 +01:00
jcamiel
315bacd81e
Clean logs on entry. 2024-02-22 16:10:34 +01:00
hurl-bot
8770e17f2b
Update crates 2024-02-21 03:01:56 +00:00
hurl-bot
746739c213
Update crates 2024-02-20 03:02:14 +00:00
hurl-bot
b0604463b4
Update crates 2024-02-17 03:02:06 +00:00
jcamiel
42dd0c1643
Add name_eq method on Header. 2024-02-15 18:26:46 +01:00
jcamiel
09266c9581
Add helpers methods on HeaderVec to get content type, character encoding and content encoding. 2024-02-15 18:02:29 +01:00
jcamiel
a0dffe429a
Use HeaderVec in http::Response. 2024-02-14 07:16:03 +00:00
hurl-bot
dd3068cd73
Update crates 2024-02-14 03:02:03 +00:00
hurl-bot
d29fb8dfe5
Update crates 2024-02-13 03:02:09 +00:00
jcamiel
9cf13593be
Fix Content-type header override when used in lowercase 2024-02-11 18:36:14 +01:00
hurl-bot
c76d6e3962
Update crates 2024-02-11 16:31:03 +00:00
jcamiel
6d77de105c
Introduces HeaderVec struct to represent a list of HTTP headers. 2024-02-09 19:31:56 +01:00
hurl-bot
9214951162
Update crates 2024-02-09 17:36:53 +00:00
Fabrice Reix
3c9df78960
Update to Rust 1.76.0 2024-02-09 08:07:01 +01:00
jcamiel
fb85c5083b
Use const for header names that matters. 2024-02-08 19:55:57 +00:00
hurl-bot
4662c65902
Update crates 2024-02-08 17:45:38 +00:00
jcamiel
7b7343bafe
Creates constructor methods for Request and Response. 2024-02-07 17:49:09 +01:00
hurl-bot
7f1eec0b38
Update crates 2024-02-01 14:37:52 +00:00
hurl-bot
701cd5d0a7
Update crates 2024-01-30 03:01:39 +00:00
jcamiel
22ca0ad934
Display source request when there are asserts/runtime errors 2024-01-28 20:25:45 +01:00
Fabrice Reix
cfa4437ec7
Close HTML tag
as defined in https://developer.mozilla.org/en-US/docs/Web/HTML/Element/br
2024-01-27 15:25:29 +01:00
hurl-bot
4da8bdbd1f
Update crates 2024-01-27 03:01:40 +00:00
jcamiel
145afa80c8
Refacto and add comments on error_string function. 2024-01-25 17:40:36 +00:00
hurl-bot
dae3951815
Update crates 2024-01-25 17:05:04 +00:00
jcamiel
494ce7fb31
Use generics instead of trait objects in error functions. 2024-01-25 11:29:34 +01:00
Fabrice Reix
5dc379cd0e
Specify generator script in the generated file 2024-01-23 16:03:29 +01:00
Fabrice Reix
e6c44a002e
Add conflict attribute for netrc* options 2024-01-23 16:01:04 +01:00
Teodorescu Robert-Andrei
c6bc18570d
Add --netrc, --netrc-file and --netrc-optional options
This is a feature provided by cURL that allows it to retrieve the
username and password for a host from a .netrc file.

https://curl.se/docs/manpage.html#-n
2024-01-23 12:32:14 +00:00
hurl-bot
ed0428be63
Update crates 2024-01-23 03:01:52 +00:00
Fabrice Reix
2a26671edf
Update options generator scripts 2024-01-22 11:29:38 +00:00
Fabrice Reix
cda3770092
Generate hurlfmt options source/doc from spec 2024-01-22 11:29:37 +00:00
hurl-bot
44ec1868ab
Update crates 2024-01-22 03:01:46 +00:00
hurl-bot
f6f64501d6
Update crates 2024-01-19 03:01:42 +00:00
Fabrice Reix
65e00babca
Using explicit stdout output 2024-01-17 15:07:56 +01:00
hurl-bot
3927dcc622
Update hurl version to 4.3.0-SNAPSHOT 2024-01-17 12:34:16 +00:00
hurl-bot
b8e224599a
Create 4.2.0 release 2024-01-11 15:57:38 +01:00
jcamiel
93f9a914e9
Update doc for 4.2.0 2024-01-10 17:13:46 +01:00
jcamiel
0f8207c890
Generate manual and manual dependencies. 2024-01-10 17:11:49 +01:00
Fabrice Reix
280b3451f2
Add short name -v for verbose option 2024-01-10 16:39:31 +01:00
hurl-bot
6bf8a9eee1
Update crates 2024-01-09 03:01:46 +00:00
Fabrice Reix
bb539ddad7
Add --location-trusted option 2024-01-07 13:41:01 +01:00
Zandt Tittle
98b0f50741
Add --unix-socket option
This is a feature provided by cURL that allows sending requests to
a web server via a Unix Domain Socket. Some use cases
include:

* Querying docker API
* Running a web server w/o opening a TCP port for security and/or performance reasons

https://curl.se/docs/manpage.html#--unix-socket
2024-01-06 13:05:58 -06:00
Fabrice Reix
0b5c1f1cfc
Do not forward Authorization header by default 2024-01-06 15:27:29 +01:00
Fabrice Reix
6ac325d879
Use Template for filename type 2024-01-06 09:14:16 +01:00
hurl-bot
4511e37e06
Update crates 2024-01-06 03:01:43 +00:00
jcamiel
c7e6018cf9
Tweak HTML report dark mode. 2024-01-05 17:18:43 +01:00
Ryan
d78081eda2
added dark mode 2024-01-05 12:06:56 +00:00
hurl-bot
06a9063722
Update crates 2024-01-05 03:01:40 +00:00
jcamiel
3f58c7374d
Add file access check for overridden --output option per request. 2024-01-04 17:58:40 +01:00
jcamiel
be6297cd5e
Export entry source line number in JSON output 2024-01-04 17:29:44 +01:00
hurl-bot
0de8f4f1b6
Update crates 2024-01-04 16:04:59 +00:00
lepapareil
39fca161bc
Improve update_crates.sh parsing 2024-01-03 13:38:17 +01:00
Fabrice Reix
529cdcf2ce
Update deps 2024-01-03 11:38:19 +01:00
Fabrice Reix
2a500c8412
Update to Rust 1.75.0 2024-01-03 11:19:54 +01:00
hurl-bot
e3b18eb70e
Update crates 2023-12-29 03:01:36 +00:00
Fabrice Reix
0ef619e056
Update Rust to 1.74.1 2023-12-19 08:16:50 +01:00
Fabrice Reix
537acaa2c1
Keep initial request headers when following redirects 2023-12-16 16:32:13 +01:00
Fabrice Reix
112d0e9457
Change StringNumber to BigInteger 2023-12-14 19:59:06 +00:00
jcamiel
1c24185aeb
Support key password in --cert option (certificate[:password]) 2023-12-14 17:54:14 +01:00
jcamiel
76d087f215
Move Error trait implementation to hurl_core::parser::error 2023-12-11 14:26:57 +01:00
hurl-bot
c14e005b3f
Update crates 2023-12-10 03:01:48 +00:00
Fabrice Reix
d42fb9bc95
Add file predicate value 2023-12-09 11:28:08 +01:00
jcamiel
d1944ac863
Use new constructor for error. 2023-12-08 16:30:02 +01:00
Fabrice Reix
0ec12b75c6
Fix HTML export for retry options 2023-12-08 15:05:59 +00:00
Fabrice Reix
29453534bb
Fix JSON export for max-redirs, retry and retry-interval 2023-12-08 15:05:58 +00:00
jcamiel
6498bd3449
Delete not reachable error. 2023-12-08 15:31:09 +01:00
jcamiel
a7807cfe21
Better unicode parsing error description. 2023-12-08 15:31:09 +01:00
jcamiel
95528ba5b9
Better option error description. 2023-12-08 14:58:17 +01:00
jcamiel
0c92430520
Better hexadecimal digit parsing error description. 2023-12-08 14:34:29 +01:00
jcamiel
0185c0be14
Remove specific end-of-file for regex error. 2023-12-08 14:34:29 +01:00
jcamiel
bdf0d05dcf
Better multi-part form data file content-type parsing error description. 2023-12-08 14:34:28 +01:00
jcamiel
e7e7faf4c7
Better XML parsing error description. 2023-12-08 14:34:28 +01:00
jcamiel
0c7f28748c
Replace else arm with all variant arms. 2023-12-08 14:34:27 +01:00
jcamiel
03dcb5361e
Fix unicode surrogate pair decoding in JSON request body 2023-12-08 11:43:41 +01:00
hurl-bot
ec647771a8
Update crates 2023-12-08 03:01:51 +00:00
hurl-bot
25fff31be1
Update crates 2023-12-05 03:01:52 +00:00
jcamiel
9c7e793ba1
Some refacto on output managment 2023-12-02 13:26:35 +01:00
jcamiel
35b1bcf24f
Add --output to curl command line output. 2023-11-30 17:44:49 +01:00
jcamiel
53d174588c
Add --output option per request 2023-11-30 16:59:24 +01:00
Fabrice Reix
8de89c16f9
Remove redundant field names in struct initialization 2023-11-30 16:06:11 +01:00
Fabrice Reix
2e01a79ceb
Split number parsers to its own module 2023-11-30 16:06:11 +01:00
Fabrice Reix
478f1a7555
Support String (Big) Number in Hurl file 2023-11-30 11:02:49 +01:00
Fabrice Reix
da89ecd587
Remove redundant field names in struct initialization 2023-11-30 11:02:49 +01:00
jcamiel
597127f568
Change JValue::format to take &self instead of self. 2023-11-28 09:52:53 +01:00
jcamiel
fcf18aa593
Implement Copy on ErrorFormat 2023-11-28 09:50:51 +01:00
jcamiel
9fc9bee091
Optimize some clone() calls. 2023-11-28 09:49:46 +01:00
hurl-bot
ebff4dc602
Update crates 2023-11-28 08:40:05 +00:00
hurl-bot
718ac341e5
Update crates 2023-11-28 03:01:58 +00:00
jcamiel
b7346a8c8e
Implement copy on jsonpath::Pos. 2023-11-27 16:42:56 +01:00
jcamiel
a8e7fe92ba
Create new on SourceInfo and Pos. 2023-11-27 16:42:33 +01:00
jcamiel
ce245c2559
Delete useless clone. 2023-11-27 13:24:28 +01:00
jcamiel
b1f7fc0055
Use Error::new when possible. 2023-11-27 13:19:19 +01:00
jcamiel
5af040c515
Add new constructor method on runner error. 2023-11-27 09:49:34 +01:00
Fabrice Reix
3752fe4323
Sort Variants 2023-11-27 08:13:17 +01:00
jcamiel
2a4d15fa7f
Delet unused runner error variant. 2023-11-26 17:17:24 +01:00
Fabrice Reix
f3909c21cf
Add String Number Value 2023-11-25 09:33:40 +01:00
jcamiel
5d8628662d
Sort core ParseError variant. 2023-11-24 18:16:11 +01:00
jcamiel
4fbbb6d683
Implement Copy for ReaderState. 2023-11-24 17:59:17 +01:00
jcamiel
bf8deaf1cd
Add documentation for XML parser (why we use a SAX parser etc...) 2023-11-24 17:26:41 +01:00
jcamiel
5f79ddb5e0
Implement copy for SourceInfoand Pos. 2023-11-24 14:14:12 +01:00
hurl-bot
39e937bb46
Update crates 2023-11-23 03:01:35 +00:00
jcamiel
2c67bd2569
Sor RunnerError variant. 2023-11-22 14:15:04 +01:00
hurl-bot
5f9db894e2
Update crates 2023-11-21 03:01:43 +00:00
Fabrice Reix
fabc76f9d2
Update Rust 1.74.0 2023-11-20 17:54:15 +00:00
hurl-bot
2ab5aedab8
Update crates 2023-11-20 17:05:52 +00:00
jcamiel
264c156565
Fix XML parsing: use SAX2 start/endElementNs instead of SAX1 start/endElement 2023-11-20 16:26:28 +01:00
jcamiel
481a13a3d6
Rename core module to result. 2023-11-17 10:16:56 +01:00
Fabrice Reix
68e181d455
Move each filter in its own source file 2023-11-17 08:00:39 +01:00
jcamiel
a525aeb81f
Sort import.
Run cargo +nightly fmt with rsutfm.toml uncommented.
2023-11-16 06:48:16 +01:00
jcamiel
b3e21bec81
Move runner errors from core.rs to error.rs 2023-11-16 06:48:05 +01:00
jcamiel
de78400764
Move CLI errors from mod.rs to error.rs 2023-11-15 18:22:03 +01:00
Fabrice Reix
11d8af6957
Use Number comparison to eval predicates 2023-11-15 17:04:37 +01:00
lepapareil
ddb5459f57
Update cc to max stable version 1.0.83 2023-11-15 15:29:34 +01:00
lepapareil
1f15d8709c
Improve version management for update_crates.sh 2023-11-15 15:19:44 +01:00
jcamiel
0b86a70d43
Fix undefined error for various I/O error using --output. 2023-11-14 16:03:05 +01:00
Fabrice Reix
06b2e19ad0
Compare value for number 2023-11-14 11:06:10 +00:00
jcamiel
6cf788b19e
Implements From trait for Number. 2023-11-13 13:42:01 +01:00
hurl-bot
2982b581cd
Update crates 2023-11-13 03:01:55 +00:00
Fabrice Reix
f280332875
Add Number in AST/PredicateValue 2023-11-12 12:27:28 +01:00
Fabrice Reix
fb6e940179
Add Number value 2023-11-11 09:57:56 +00:00
hurl-bot
2afc2f92af
Update crates 2023-11-11 03:05:13 +00:00
Fabrice Reix
39a5e473b9
Sort Value enum variants 2023-11-10 08:37:07 +01:00
lepapareil
4ab82d1bf7
Fix Archlinux pacman usage 2023-11-09 10:51:10 +01:00
Fabrice Reix
b62a09f887
Fix xpath filter in JSON output 2023-11-08 15:18:57 +01:00
Fabrice Reix
74edc18bd2
Add jsonpath filter 2023-11-08 15:18:52 +01:00
hurl-bot
1d4e265507
Update crates 2023-11-07 09:17:34 +00:00
Fabrice Reix
d2a220fb05
Generating Clap commands source file 2023-11-06 11:14:24 +01:00
Fabrice Reix
3551978a95
Uniformize report_ options 2023-11-02 17:46:15 +01:00
robozati
97a02f3990
Update the JSON parser to account for fabricereix changes 2023-11-02 08:59:45 +00:00
robozati
e0d9bb929e
Change ParserError::Json to use a JsonErrorVariant enum and add a
new check to account for unresolved names
2023-11-02 08:59:44 +00:00
robozati
678aaca9f3
Improve JSON body parsing error reporting
Adds more checks to account for empty elements, commas after the last
element that shouldn't be there and braces not closed.
2023-11-02 08:59:43 +00:00
jcamiel
c72f04fa0e
Remove xmltree/indexmap dependency.
Due to xmltree re-exposing an older version of indexmap, we couldnt' upgrade to the latest version of indemap.
xmltree is a tree in-memory representation of an XML document that we use for JUnit export. As xmltree is a thin layer above xml-rs, we re-implement a thin tree in-memory XML document using xml-rs directly and remove xmltree/indexmap dependency.
2023-11-01 20:23:49 +01:00
jcamiel
842a167433
Add DOM XML parser based on xml-rs. 2023-11-01 19:38:50 +01:00
hurl-bot
7313b61350
Update crates 2023-10-31 03:01:52 +00:00
jcamiel
0757d5e7aa
Add failed test in HTML/JUnit/TAP reports 2023-10-27 14:43:13 +02:00
msinton
20982f4ce7
Report failures with nok 2023-10-27 11:25:51 +02:00
hurl-bot
406da0cfd5
Update crates 2023-10-27 03:01:54 +00:00
hurl-bot
b8fe095800
Update crates 2023-10-25 03:01:52 +00:00
robozati
21235c655e
Add SourceInfo to Comment 2023-10-23 22:07:32 +00:00
hurl-bot
717857950d
Update crates 2023-10-23 14:46:55 +02:00
jcamiel
fe39f031b9
Update docs with HTTP/3 2023-10-21 19:34:42 +02:00
jcamiel
e504f5458e
Extract libcurl handle configuration to a method. 2023-10-21 19:12:10 +02:00
jcamiel
935a4cf170
Work on img docs. 2023-10-21 18:27:53 +02:00
Fabrice Reix
ada42acb32
Add option skip 2023-10-21 11:04:01 +02:00
Fabrice Reix
58b249ffa1
Support template in option values 2023-10-19 14:42:50 +00:00
jcamiel
5ee6aa393b
Synchronise manual with http1.0, http1.1, http2, http3, ipv4 and ipv6 options. 2023-10-19 13:39:18 +00:00
jcamiel
662c550eb8
Add --ipv4/--ipv6 option 2023-10-18 14:37:42 +00:00
hurl-bot
398a991510
Update crates 2023-10-18 13:16:45 +00:00
Fabrice Reix
b3e72f900b
Extract option parser in its own module 2023-10-17 10:53:24 +02:00
hurl-bot
03ee2840db
Update crates 2023-10-17 03:01:54 +00:00
Fabrice Reix
089dd46132
Refacto eval_expression returning a Value rather than a String 2023-10-16 08:56:34 +02:00
jcamiel
6a66b1dcd2
Remove unused url field in some errors structs 2023-10-14 23:33:52 +02:00
jcamiel
61fd37b2ae
Add error message for unsupported HTTP version. 2023-10-14 23:33:35 +02:00
hurl-bot
efadd8d858
Update crates 2023-10-14 20:26:20 +00:00
hurl-bot
897da088b8
Update crates 2023-10-13 06:32:25 +00:00
jcamiel
9d5b611b9e
Adapt test excepted stderr to take libcurl multipart boundary size change in 8.4.0+.
See https://github.com/curl/curl/pull/11838/files where `define MIME_RAND_BOUNDARY_CHARS` has been changed from 16 to 22.
The new pattern on 'Content-Lenght' works for previsous and newer libcurl version.
2023-10-12 23:23:11 +02:00
jcamiel
d58ecce62b
Change field name. 2023-10-11 10:23:38 +02:00
jcamiel
4363aa9875
Force refreshing libcurl connections if HTTP version requested change 2023-10-11 09:13:44 +02:00
jcamiel
8c57a78f08
Introduce RequestedHttpVersion enum for specify the requested HTTP version. 2023-10-10 18:47:39 +02:00
jcamiel
e843dc7785
Remove unnecessary clone. 2023-10-10 15:04:19 +02:00
hurl-bot
3d79234674
Update crates 2023-10-10 03:01:48 +00:00
jcamiel
4ae0465839
Add integration test for hurl --help. 2023-10-09 18:13:03 +02:00
Zac Pitones
f2e4023218
add timestamps to HTML reports 2023-10-09 09:58:43 -05:00
hurl-bot
b31a26f41d
Update crates 2023-10-09 14:14:06 +00:00