Commit Graph

339 Commits

Author SHA1 Message Date
Fabrice Reix
0dd0942435 Add PredicateValue public type 2021-06-29 18:31:05 +02:00
Fabrice Reix
e3952b8d84 Improve error message with suggestions 2021-06-28 20:02:44 +02:00
Fabrice Reix
31809edb9f Add notEquals query (!=) 2021-06-27 14:00:19 +02:00
Fabrice Reix
609868c858 Add subquery count
predicate countEquals becomes deprecated and is replaced by count ==
2021-06-27 09:20:03 +02:00
Fabrice Reix
424f8a59a0 Fix json export for less predicate 2021-06-24 20:29:19 +02:00
Fabrice Reix
559e9d9192 Improve url parsing error 2021-06-19 14:20:14 +02:00
Fabrice Reix
8844c1e60a Add operators for arithmetic predicates 2021-06-19 08:52:45 +02:00
Fabrice Reix
2b0a38846a Improve assert Error for bytearray 2021-06-17 22:20:06 +02:00
Fabrice Reix
5faea0811a Add parsing error for odd number of hex digits 2021-06-17 21:54:25 +02:00
Fabrice Reix
ead46740ab Add sha256 query 2021-06-17 20:28:13 +02:00
Fabrice Reix
93c2fede66 Add bytes query and equals predicate for bytearray 2021-06-16 21:13:17 +02:00
Fabrice Reix
e9d00d42b3 return "real" HTTP request sent from HTTP client
Log in the json session all the headers sent by the client
2021-06-15 21:26:11 +02:00
Fabrice Reix
651e823a0b Specify Host in CouldNotResolveHost Error 2021-06-12 09:21:58 +02:00
Fabrice Reix
fa46137ebe Improve error message for countEquals predicate 2021-06-11 08:37:37 +02:00
Fabrice Reix
ae83a4cb52 Improve HTML report 2021-06-10 19:54:07 +02:00
Fabrice Reix
2f18340f00 Initialise Error Handler with a native "silent" callback
The callback can not be implemented because it needs to be variadic
2021-06-03 09:14:03 +02:00
Fabrice Reix
58e11a4acc Parse httpOnly cookies from cookie storage 2021-05-25 13:43:34 +02:00
Fabrice Reix
f9f3f55baf Output curl command for each request at runtime 2021-05-23 09:44:38 +02:00
Fabrice Reix
54e5d0a35f Refacto http client
Get closer to curl cli
2021-05-16 19:12:39 +02:00
Fabrice Reix
19857abf6b Update to Rust 1.52
fix new clippy warnings:
- inconsistent_struct_constructor
- manual_map
- copied
2021-05-14 14:26:54 +02:00
Fabrice Reix
ee47df6213 Fix new clippy warnings (Rust 1.51)
- upper_case_acronyms
- redundant_slicing
- vec_init_then_push
2021-03-28 09:51:21 +02:00
Fabrice Reix
2c84f299db Fix parsing quote in quoted template 2021-03-22 14:41:10 +01:00
Fabrice Reix
1d3a8ab664 Refacto parsing with template module
TBC: Performance issue when calling reader.is_eof()
Check len() call for a large vector.
2021-03-20 11:36:46 +01:00
Fabrice Reix
7ec43282ee Update Unit tests 2021-03-20 11:34:25 +01:00
Fabrice Reix
4f6750b41b Add test connect-timeout 2021-03-08 13:22:27 +01:00
Fabrice Reix
902ce4f897 Update version to 1.3.0 2021-03-03 13:39:02 +01:00
Fabrice Reix
68be658648 Type input variables 2021-02-25 20:47:46 +01:00
Fabrice Reix
6164c13737 Fix Reading body file bytes 2021-02-24 20:22:37 +01:00
Fabrice Reix
4df5f052b4 Run cargo tests in windows ci 2021-02-23 18:53:29 +01:00
Fabrice Reix
99b811fa70 Run Tests integ in windows
Decode hurlfmt output and error stream as text
supports both UTF-8 and UTF-16, both with and with BOM

Add optional os-specific expected error file
2021-02-16 09:13:17 +01:00
Fabrice Reix
6827671944 use crate colored in order to support Windows 2021-02-15 11:45:19 +01:00
Fabrice Reix
a60f054cc0 Support wildcard in jsonpath 2021-02-15 10:52:04 +01:00
Fabrice Reix
1f4e9e2a8b cargo fmt 2021-02-12 10:56:32 +01:00
Fabrice Reix
13bd92d27d Fix clippy unnecessary-wraps 2021-02-12 10:54:27 +01:00
Fabrice Reix
4f6e2a72ab Add documentation, homepage or repository in manifest 2021-02-10 20:17:10 +01:00
Fabrice Reix
d886a10a94 Update Licence identifier
unknown license from cargo publish
2021-02-10 20:12:17 +01:00
Fabrice Reix
2d7cd55a2e Support Hurl File encoded with UTF8 BOM 2021-02-10 19:53:09 +01:00
Fabrice Reix
54ac4babdf Update version to 1.2.0 2021-02-08 10:33:10 +01:00
Fabrice Reix
89f0968164 Set libcurl handle attributes in the execute method
Instead of the init method, so that they can be applied after the reset
2021-02-07 14:34:30 +01:00
Fabrice Reix
12aecfec1e Keep extra description from libcurl for SSL Certificate errors 2021-02-07 12:12:05 +01:00
Fabrice Reix
af75640fdd Add explicit error for invalid utf8 encoding 2021-02-03 20:10:32 +01:00
Fabrice Reix
874507578f Interactive mode not supported (yet) in windows 2021-02-02 18:53:25 +01:00
Fabrice Reix
5bdbe73163
Merge pull request #131 from Orange-OpenSource/feature/add-option-interactive
Add --interactive option
2021-01-24 17:15:28 +01:00
Fabrice Reix
379bd5aac2 Accept more characters in the cookie-value 2021-01-22 07:49:48 +01:00
Fabrice Reix
5b17e6f9ee Accept '.' in cookie-value 2021-01-18 20:00:47 +01:00
Fabrice Reix
da2dc6493b Add --interactive option 2021-01-16 17:23:39 +01:00
Fabrice Reix
6775014692 use i32 instead of u32 for windows 2021-01-14 20:26:57 +01:00
Fabrice Reix
07856bd820 Remove unnecessary lines 2021-01-14 18:21:45 +01:00
Fabrice Reix
eef4568e3f Support windows separator 2021-01-14 13:49:37 +01:00
Fabrice Reix
836ad872a7 do not create test files in /tmp anymore 2021-01-14 08:18:54 +01:00
Oraoto
46df63c0bd Fix cookies_input_file argument name mismatch 2021-01-11 21:13:07 +08:00
Fabrice Reix
d10045e320 Add option --variables-file 2021-01-09 20:31:26 +01:00
Fabrice Reix
8b12a574a6 Support template in json for null, boolean and numbers 2021-01-09 18:32:31 +01:00
Fabrice Reix
2589d46647 Specify explicit version for all your dependencies 2021-01-09 09:51:00 +01:00
Fabrice Reix
1c53be8119 Add metadata to Cargo.toml 2021-01-09 09:19:24 +01:00
Fabrice Reix
9518d158e8 Fix clippy warning 2021-01-05 08:18:08 +01:00
Fabrice Reix
35f0516b65 Update version to 1.1.0 2021-01-05 07:55:20 +01:00
Fabrice Reix
018ed06b75 Fix clippy warnings 2020-12-13 14:57:20 +01:00
Fabrice Reix
833e2bf157 Fix html export 2020-12-05 12:04:35 +01:00
Fabrice Reix
f3fd06945f Fix json export 2020-12-05 12:04:35 +01:00
Fabrice Reix
08fa600764
Merge pull request #106 from Orange-OpenSource/feature/update-rust-1.48.0
Update Rust 1.48.0
2020-12-05 11:46:41 +01:00
Fabrice Reix
3be178ed24 Fix clippy warning 2020-12-05 11:38:36 +01:00
Fabrice Reix
7588929755 Fix typo in json export 2020-11-30 15:38:44 +01:00
Fabrice Reix
79713ef647 Make predicates with numbers "arithmetic"
floats and integers can be replaced with each other
jsonpath "$.count" equals 5
jsonpath "$.count" equals 5.0
2020-11-29 17:34:30 +01:00
Fabrice Reix
367a26bf11 Add predicates for types 2020-11-28 18:36:51 +01:00
Fabrice Reix
842f3f6189 Parse extra dot in jsonpath expression
example: $.store.book.[0].title
not really standard
but parsed by jsonpath.com
2020-11-28 17:39:23 +01:00
Fabrice Reix
c3b6f85fde Add duration query 2020-11-22 08:55:07 +01:00
Fabrice Reix
91f0d244bf Add duration in the http response 2020-11-22 08:40:28 +01:00
Fabrice Reix
def109d673 Add comparison predicates 2020-11-21 17:28:31 +01:00
Fabrice Reix
104d6a2b43 Update version to 1.0.0 2020-11-17 09:16:22 +01:00
Fabrice Reix
22ef5583dc Use --format instead of --output 2020-11-16 22:18:16 +01:00
Fabrice Reix
0c2b439b3c Update format to html 2020-11-16 21:34:38 +01:00
Fabrice Reix
b9f1efd174 Update hurlfmt usage 2020-11-15 17:08:49 +01:00
Fabrice Reix
d0b31ee7ff Fix Linter 2020-11-15 17:01:31 +01:00
Fabrice Reix
9ce30efcda Export AST to json (continued) 2020-11-11 18:17:45 +01:00
Fabrice Reix
7798c8dcf9
Merge pull request #77 from Orange-OpenSource/feature/report-html-simplify-usage
Simplify usage for html report
2020-11-10 08:03:26 +01:00
Fabrice Reix
b0fea5a029 Simplify usage for html report 2020-11-10 07:52:09 +01:00
Fabrice Reix
1956ebcd94 Support user in url 2020-11-10 07:35:27 +01:00
Fabrice Reix
5634d29105 Update data file 2020-11-09 20:24:08 +01:00
Fabrice Reix
17301e0a76 Fix include headers to standard output 2020-11-08 15:33:03 +01:00
Fabrice Reix
42cff4055c Add json export for AST 2020-11-07 20:42:22 +01:00
Fabrice Reix
6a16e68900 Add your own json serializer 2020-11-07 20:42:22 +01:00
Fabrice Reix
92db6e505d Implement Display Trait in core 2020-11-07 20:39:18 +01:00
Fabrice Reix
9bf8d2e64f
Merge pull request #68 from Orange-OpenSource/feature/ignore-implicit-http-code-assert
Add wildcard to disable http status code assert
2020-11-03 23:14:31 +01:00
Fabrice Reix
698b6dcca6 add wildcard for http status code
in order to ignore implict assert on status code
2020-11-03 20:34:12 +01:00
Fabrice Reix
8fe2e3daf3 Add multipart form data params to json export 2020-11-03 20:32:52 +01:00
Fabrice Reix
d18358b2b7 Reorganize code between hurl and hurlfmt 2020-11-03 07:41:48 +01:00
Fabrice Reix
946482e45d Remove unused dependencies 2020-11-02 18:52:20 +01:00
Fabrice Reix
fb312a8b73 Split project into multiples packages 2020-11-02 18:30:13 +01:00