Commit Graph

1469 Commits

Author SHA1 Message Date
Fabrice Reix
7969910f3d
Add optional duration unit for options 2024-08-07 13:39:43 +00:00
Fabrice Reix
8cccaf8449
Update diff output using standard Hurl context source line 2024-08-06 18:51:38 +00:00
Jean-Christophe Amiel
cea1e0fbc4
Update docs for 5.0.0 2024-08-06 15:15:14 +02:00
hurl-bot
4e83e6616b
Update crates 2024-08-06 03:01:56 +00:00
Fabrice Reix
d3bcd4ec4a
Parse/export Multiline attributes 2024-08-05 17:31:39 +02:00
Fabrice Reix
2385cba3ff
Only use only one backtick for oneline string 2024-08-05 12:55:55 +02:00
Fabrice Reix
f57b5d8ad3
Update Rust 1.80.0 2024-08-02 12:05:49 +00:00
hurl-bot
6231abcca0
Update crates 2024-08-02 03:01:57 +00:00
Fabrice Reix
33fc97f4ba
Add attributes to MultilineString AST 2024-08-01 10:30:08 +02:00
Jean-Christophe Amiel
74294a045b
Remove filename from LoggerOptions in favor of parameter in hurl_file::run public function. 2024-08-01 07:38:57 +00:00
hurl-bot
50f608b9d6
Update crates 2024-08-01 03:01:43 +00:00
hurl-bot
b310dce8a3
Update crates 2024-07-31 03:01:56 +00:00
hurl-bot
68ffae47ee
Update crates 2024-07-30 03:01:59 +00:00
hurl-bot
ac518e0601
Update crates 2024-07-29 03:01:50 +00:00
hurl-bot
f499c35f72
Update crates 2024-07-26 03:02:41 +00:00
hurl-bot
a67f9360e7
Update crates 2024-07-24 03:02:20 +00:00
Jean-Christophe Amiel
3d88762c59
Add some comments on error construction. 2024-07-23 15:41:55 +02:00
Jean-Christophe Amiel
cf005a13fa
Replace split_lines function by str::lines. 2024-07-23 14:46:05 +02:00
Jean-Christophe Amiel
d9293cfbca
Make some functions private. 2024-07-23 14:12:01 +02:00
hurl-bot
4c22236f02
Update crates 2024-07-22 13:48:29 +00:00
hurl-bot
da4ccad29b
Update crates 2024-07-21 03:01:43 +00:00
Viktor Szépe
1c4679a724
Revert a fix in an assertion 2024-07-18 14:31:29 +00:00
Viktor Szépe
67e5f22a7d
Fix typos 2024-07-18 14:31:28 +00:00
Jean-Christophe Amiel
291938cb61
Add interactive integration test. 2024-07-18 11:33:28 +00:00
hurl-bot
a4dc35467c
Update crates 2024-07-15 03:02:05 +00:00
hurl-bot
b6a3895eab
Update crates 2024-07-14 03:01:47 +00:00
hurl-bot
f75f57769f
Update crates 2024-07-13 03:05:29 +00:00
Jean-Christophe Amiel
01063a1c24
Fix max-redirs: -1 in [Options] section 2024-07-11 15:56:49 +02:00
Jean-Christophe Amiel
cf1385e423
Remove dead code. 2024-07-11 13:11:28 +02:00
Jean-Christophe Amiel
152ba418fd
Add integration test on text assert against binary body. 2024-07-11 13:07:44 +02:00
Jean-Christophe Amiel
1a65170cef
Mutualise crate colored initialization. 2024-07-11 10:40:54 +02:00
Jean-Christophe Amiel
61b28c2787
Use Reader in curl parser. 2024-07-11 10:31:27 +02:00
Jean-Christophe Amiel
3f2f91fe3f
Rename Reader offset to index. 2024-07-11 09:36:04 +02:00
Jean-Christophe Amiel
e15dba8128
Move Input to hurl_core and use Input in hurlfmt. 2024-07-10 17:05:31 +02:00
Jean-Christophe Amiel
b58bdca4e9
Refacto on lint error display in hurlfmt. 2024-07-10 16:16:37 +02:00
Jean-Christophe Amiel
497e9cae0f
Refacto on parse error display in hurlfmt. 2024-07-10 13:37:20 +02:00
Jean-Christophe Amiel
f1c123655a
Add Logger to hurlfmt 2024-07-10 11:58:51 +02:00
hurl-bot
8c62d1a04f
Update crates 2024-07-10 03:01:48 +00:00
Jean-Christophe Amiel
733afabcf0
Get SSL certificates info on reused connections, from a cache 2024-07-09 16:24:51 +02:00
Jean-Christophe Amiel
52e13da9fc
Update README with Fedora build instructions. 2024-07-09 07:59:16 +00:00
hurl-bot
0b885028dc
Update crates 2024-07-09 07:30:27 +00:00
Jean-Christophe Amiel
690c2c7852
Sort import. 2024-07-08 12:21:23 +02:00
Jean-Christophe Amiel
18b545885f
Use Duration type instead of u128/u64 types in results. 2024-07-08 07:57:24 +00:00
hurl-bot
f62811cc29
Update crates 2024-07-08 03:01:53 +00:00
hurl-bot
6e120c042d
Update crates 2024-07-07 03:01:59 +00:00
Jean-Christophe Amiel
1cdc491867
Unify Retry and Repeat types with Count. 2024-07-06 23:02:51 +02:00
Jean-Christophe Amiel
25d6716145
Improve coverage on options section. 2024-07-06 21:52:41 +02:00
Jean-Christophe Amiel
76effdd2c7
Cached JSON parsing across queries. 2024-07-05 15:22:07 +02:00
Fabrice Reix
a58e020a3e
Use DisplaySourceError to_string in hurlfmt 2024-07-05 10:25:02 +02:00
Fabrice Reix
6913ce92e2
Display text body assert errors as diff 2024-07-05 08:52:02 +02:00
Jean-Christophe Amiel
17a1dd0a81
Add XPath body cache 2024-07-04 17:24:25 +02:00
Jean-Christophe Amiel
3141e344cd
Simplify response body decoding when there is no content encoding. 2024-07-04 13:20:48 +02:00
Jean-Christophe Amiel
decac0a685
Remove some unncessary clones. 2024-07-03 16:32:02 +02:00
Jean-Christophe Amiel
aed9addcb5
Splits XPath evaluation in parsing then eval. 2024-07-03 10:57:07 +00:00
Jean-Christophe Amiel
841ccabe07
Add function docs on query.rs 2024-07-02 09:57:09 +00:00
Jean-Christophe Amiel
fb96eb3163
Use slice in any_char function param. 2024-07-02 10:00:31 +02:00
hurl-bot
8a0b4aad48
Update crates 2024-07-02 03:01:44 +00:00
Jean-Christophe Amiel
b484ef8125
Some cosmetic changes on Reader. 2024-07-01 16:52:20 +02:00
Jean-Christophe Amiel
76b45a1ed1
Make Reader fields private. 2024-07-01 16:17:32 +02:00
Jean-Christophe Amiel
e7a6544494
Implement Reader::with_pos constructor. 2024-07-01 14:35:43 +02:00
Jean-Christophe Amiel
032a686422
Rename state: ReaderState to cursor: Cursor on reader.
There is no code change, only automatic refacto.
2024-07-01 13:54:55 +02:00
Jean-Christophe Amiel
42879603e2
Add reader test unit. 2024-07-01 13:54:55 +02:00
Jean-Christophe Amiel
e07470c326
Use combinator in jsonpath parser. 2024-07-01 13:54:24 +02:00
Fabrice Reix
89f7313ce6
Rename OutputFormat Variant to Plain 2024-07-01 13:13:56 +02:00
Jean-Christophe Amiel
8554f74bdd
Extract combinator from Hurl parser and use generic for Error. 2024-07-01 11:50:27 +02:00
hurl-bot
8507d11a7a
Update crates 2024-07-01 03:02:03 +00:00
Fabrice Reix
c49a89dd07
Move error_string to DisplaySourceError to_string 2024-06-30 08:42:55 +00:00
hurl-bot
07cb3514fa
Update crates 2024-06-30 03:01:51 +00:00
hurl-bot
db8511add2
Update crates 2024-06-29 03:01:52 +00:00
Jean-Christophe Amiel
b9342678a0
Delete unused Reader method. 2024-06-28 17:03:08 +02:00
Jean-Christophe Amiel
345e98c72c
Move hurl_core::ast::Pos to hurl_core::reader::Pos 2024-06-28 16:47:06 +02:00
Jean-Christophe Amiel
7743be6d0a
Move typing module. 2024-06-28 15:51:09 +02:00
Jean-Christophe Amiel
8c77f625f3
Reuse reader from core ni JSONPath parser. 2024-06-28 15:34:51 +02:00
Jean-Christophe Amiel
d026280b97
Rename jsonpath::parser::error::Error to jsonpath::parser::error::ParseError 2024-06-28 15:32:06 +02:00
Jean-Christophe Amiel
da4792b258
Remove try_literal method from JSONPath reader.
There is still a try_literal function in the parser.
2024-06-28 12:51:25 +02:00
Jean-Christophe Amiel
e8355a7e1d
Extract reader from parser module. 2024-06-28 12:50:56 +02:00
Jean-Christophe Amiel
257e9a8eac
Change param filters type to slice in eval_filters. 2024-06-28 11:22:47 +02:00
hurl-bot
c7bcd70966
Update crates 2024-06-28 03:02:09 +00:00
Jean-Christophe Amiel
95800e85ae
Add lifetimes name. 2024-06-26 13:50:09 +00:00
Fabrice Reix
4a67bd5cb0
Add actual value type in assert error message 2024-06-26 11:00:01 +00:00
hurl-bot
668dd36343
Update crates 2024-06-26 03:01:56 +00:00
Jean-Christophe Amiel
884019c090
Fix inconsistent case for fields queryString and httpVersion in --json 2024-06-25 14:12:43 +02:00
hurl-bot
7ea41a38e8
Update crates 2024-06-25 03:01:53 +00:00
Fabrice Reix
37d836388c
Fix empty JSON key parsing 2024-06-24 21:51:59 +02:00
Jean-Christophe Amiel
15579a457b
Fix error displayed in double with bad option. 2024-06-24 14:26:16 +00:00
Jean-Christophe Amiel
8aba7c2bef
Fix test progress bar for small screens. 2024-06-24 12:07:06 +02:00
Jean-Christophe Amiel
6546d11cf8
Add wrap method on StyleString to limit maximum width of lines. 2024-06-24 09:09:16 +02:00
hurl-bot
6b15baa1d3
Update crates 2024-06-24 03:01:52 +00:00
hurl-bot
38dff74115
Update crates 2024-06-22 03:01:45 +00:00
Jean-Christophe Amiel
0143e3e77a
Som refacto on progress bar. 2024-06-21 14:29:31 +00:00
Fabrice Reix
ef2a85d7e7
Use different error string output for Terminal and JSON 2024-06-21 12:53:13 +00:00
Fabrice Reix
9054a3434e
Include line number prefix in DisplaySourceError message 2024-06-21 12:53:12 +00:00
Jean-Christophe Amiel
57f465e3b1
Use StyledString in response_debug.rs 2024-06-21 14:19:06 +02:00
Jean-Christophe Amiel
34840a55dd
Use StyledString in base logger. 2024-06-21 11:16:40 +02:00
Jean-Christophe Amiel
a3d25d447d
Fix parallel output using per request standard output. 2024-06-20 12:00:28 +00:00
Jean-Christophe Amiel
c2f4514a24
Add repeat option per request 2024-06-19 22:22:00 +02:00
Jean-Christophe Amiel
dc6be76339
Move Repeat to core types. 2024-06-19 16:48:19 +02:00
Jean-Christophe Amiel
bde10d3102
Move Retry to core types. 2024-06-19 16:28:39 +02:00
Fabrice Reix
05fd81f8c3
Fix Clippy warnings 2024-06-19 11:01:03 +02:00
Fabrice Reix
0ddb0a9c1b
Update to Rust 1.79 2024-06-19 11:01:03 +02:00
hurl-bot
023f2ba76f
Update crates 2024-06-19 03:01:59 +00:00
Jean-Christophe Amiel
90bb395bae
Apply delay only once per entry, no matter how many retry. 2024-06-18 17:38:13 +02:00
Jean-Christophe Amiel
438fbf721a
Update docs for --delay. 2024-06-18 16:53:56 +02:00
Fabrice Reix
e67ffc0f88
Move message function to DisplaySourceError trait 2024-06-18 13:55:11 +00:00
baerwang
2ddea77f66
fix: date add equal and not equal 2024-06-17 06:05:02 +00:00
Fabrice Reix
33a8b67a9d
Update Diff API with hunks 2024-06-15 23:03:36 +02:00
Jean-Christophe Amiel
aceb5fc61e
Accept directory as Hurl arguments for processing file 2024-06-14 13:43:06 +02:00
Jean-Christophe Amiel
d51c275fc6
Fix Rust 1.79 warnings. 2024-06-14 10:21:36 +02:00
hurl-bot
2fb29f3633
Update crates 2024-06-13 03:02:09 +00:00
Jean-Christophe Amiel
1d6bec4c51
Expose request comments in --out json. 2024-06-12 17:02:54 +02:00
Jean-Christophe Amiel
8a67d77912
Truncate file then append it when dumping response with --output. 2024-06-12 15:24:55 +02:00
hurl-bot
d915b754e3
Update crates 2024-06-12 12:32:30 +00:00
baerwang
3d98c7caa6
fix: crash expires cookie attributes 2024-06-12 04:35:38 +00:00
Jean-Christophe Amiel
46482d3511
Small code refacto on ResponseCookie. 2024-06-11 16:16:10 +02:00
Jean-Christophe Amiel
123fd981c9
Remove too specific variant StatuslineIsMissing in favor of CouldNotParseResponse. 2024-06-11 13:23:25 +00:00
hurl-bot
fdb36cedde
Update crates 2024-06-11 03:01:58 +00:00
Jean-Christophe Amiel
54f3bf5b1a
Implement repeat for sequential runner. 2024-06-10 21:24:43 +02:00
Jean-Christophe Amiel
16f902a7e1
Delete test mode in sequential runner.
In test mode, the parallel runner is now always use, even if tests are run one-by-one (--jobs=1). The sequential runner don't need to report test progress.
2024-06-10 15:35:05 +02:00
Jean-Christophe Amiel
330d6041e5
Implement repeat option on parallel runner. 2024-06-10 10:12:09 +02:00
Jean-Christophe Amiel
fe7cba7003
Add --repeat option. 2024-06-10 10:12:08 +02:00
hurl-bot
1ffd708e5b
Update crates 2024-06-10 03:01:49 +00:00
Jean-Christophe Amiel
ce856f92c9
Update docs with --parallel option. 2024-06-09 21:10:30 +02:00
Jean-Christophe Amiel
655e87b093
Use an iterator instead of a reversed vec for the job queue. 2024-06-08 16:53:15 +02:00
hurl-bot
ae39f603b2
Update crates 2024-06-08 03:01:38 +00:00
Jean-Christophe Amiel
fa08c11bf2
Add requests rate to test summary. 2024-06-07 16:24:37 +02:00
Jean-Christophe Amiel
d0ce2a8573
Move summary module in cli. 2024-06-07 14:49:21 +02:00
hurl-bot
48847abeaa
Update crates 2024-06-07 03:02:05 +00:00
Jean-Christophe Amiel
b74ddf49fa
Print the total number of executed requests in test mode. 2024-06-06 17:22:04 +02:00
Jean-Christophe Amiel
79cc10cd89
Append existing JSON report. 2024-06-05 23:08:01 +02:00
Jean-Christophe Amiel
2f5b28a1d6
Add comment on SSL certificate's subject and issuer parsing. 2024-06-05 12:42:13 +00:00
Fabrice Reix
07aab17edd
Return diff output as StyledString 2024-06-05 11:39:51 +00:00
Fabrice Reix
4a4a172cf3
Update push to update last token if possible 2024-06-05 11:39:50 +00:00
Jean-Christophe Amiel
e484b1746d
Fix typo in issuer field when exporting SSL certificate to JSON 2024-06-05 10:05:18 +02:00
Fabrice Reix
fb6379a8ba
Update fixme to return a StyledString 2024-06-04 14:50:43 +00:00
Jean-Christophe Amiel
76ef2c98bc
Fix crash with --json option when capturing 'HttpOnly' and 'Secure' cookie attribute 2024-06-04 16:14:27 +02:00
Jean-Christophe Amiel
7488c4c128
Update capture_to_json integration test to improve code coverage. 2024-06-04 10:54:09 +02:00
Jean-Christophe Amiel
1b3c755f04
Use serde::Serialize macro in HurlResult serialization. 2024-06-03 21:25:17 +00:00
Fabrice Reix
d785fe06cf
Remove lifetime from StyledString struct 2024-06-03 20:57:54 +02:00
Fabrice Reix
1831f4eb4d
Add append and split methods to StyledString 2024-06-01 10:02:40 +02:00
Jean-Christophe Amiel
efbc41bf1b
USe StyledText in logger instead of colored::* 2024-05-31 18:06:59 +02:00
Fabrice Reix
b35fd1bdc0
Refacto RichText to StyledText 2024-05-31 15:28:04 +00:00
Jean-Christophe Amiel
f3858f7c18
Create intermediary directories if necessary when producing JUnit report 2024-05-31 16:57:44 +02:00
Jean-Christophe Amiel
085e67b7e9
Add more colors to RichText 2024-05-31 13:03:01 +02:00
Jean-Christophe Amiel
492ea25fee
Implementaion of builder method bold.
Note: bold method doesn't create a new token, it modifies the last token.
2024-05-31 09:16:05 +00:00
Jean-Christophe Amiel
7b6527ff16
Update docs. 2024-05-31 09:44:39 +02:00
Jean-Christophe Amiel
6f98d51092
Use FromStr trait on Url instead of dedicated associated method. 2024-05-30 17:00:39 +02:00
Fabrice Reix
165077ed21
Add RichText type 2024-05-30 15:47:15 +02:00
Jean-Christophe Amiel
e471a9aee6
Create intermediary directories if necessary when producing TAP report 2024-05-28 18:19:13 +02:00
Jean-Christophe Amiel
570741ade1
Improve JUnit error report. 2024-05-28 18:00:54 +02:00
Jean-Christophe Amiel
6ff8e0223e
Improve error reporting for TAP report. 2024-05-28 16:31:45 +02:00