Commit Graph

394 Commits

Author SHA1 Message Date
Fabrice Reix
c407a51324
Add xpath filter 2023-06-17 07:11:54 +00:00
jcamiel
18115d6427
Use CURLOPT_COPYPOSTFIELDS instead of CURLOPT_READFUNCTION/CURLOPT_READDATA.
We give the whole body once, instead of providing it by reading data with callback.
There seems to be no performance cost (in both ways, the data is memcpy), but the timings looks much better: we can see all request having "transfer" timing. Before this, requests that have body suspicioulsy have no realistic data transfer...
2023-06-17 00:39:25 +02:00
jcamiel
7d0167e9d7
Add integration test for --report-html 2023-06-17 00:12:04 +02:00
jcamiel
b49c6eb6af
Fix extra request headers logs with large body. 2023-06-16 19:14:55 +02:00
jcamiel
577fee1bfe
Use --data-binary for curl command when posting file. 2023-06-16 17:33:47 +02:00
jcamiel
97bed9188d
Rename large.* to get_large.*. 2023-06-16 13:44:52 +00:00
jcamiel
93e7daa7b9
Add timings info to very verbose mode. 2023-06-15 22:16:01 +00:00
Fabrice Reix
d97c26309b
Add proxy in Options section 2023-06-15 21:49:39 +00:00
jcamiel
886f687635
Rename integration tests option_foo* to foo_option*. 2023-06-15 17:20:09 +02:00
jcamiel
1d8f45f4b9
Fix typo in JSON export (pre_transfert vs pre_transfer, start_transfert vs start_transfer). 2023-06-15 13:00:20 +00:00
Fabrice Reix
0c1da19c03
Make regex query/filter consistent with each other 2023-06-15 12:26:37 +02:00
Fabrice Reix
bdd43c7ae4
Print error message when no file is found with --glob option 2023-06-15 10:19:34 +02:00
Fabrice Reix
9e6e000d2b
Improve error message 2023-06-14 09:16:14 +02:00
Fabrice Reix
1c0c22d2f8
Add decode filter 2023-06-10 09:30:43 +00:00
Fabrice Reix
0709227099
Support arbitrary HTTP methods 2023-06-09 07:56:35 +02:00
Fabrice Reix
62243800e6
Delete Rust integ Test for libcurl/HTTP module
These tests should be covered in the .hurl integ tests.
2023-06-08 09:03:57 +00:00
Fabrice Reix
7b20289446
Make curl import retry more explicit 2023-06-06 16:56:59 +02:00
Fabrice Reix
9a08e77904
Import --retry option from curl 2023-06-04 07:16:00 +00:00
Fabrice Reix
1d9aece778
Add integ test for retry on HTTP status 2023-06-04 07:15:59 +00:00
Fabrice Reix
5e54b86719
hurlfmt Hurl files in tests_ok 2023-06-01 17:27:01 +02:00
Fabrice Reix
56bb2042b8
Remove whitespace after comma 2023-06-01 17:27:00 +02:00
Fabrice Reix
b5277b3349
Update --retry option to match curl option 2023-06-01 17:26:26 +02:00
jcamiel
a2f4bc3625
Add more charset tests. 2023-06-01 17:22:16 +02:00
jcamiel
64d3db2b14
Add integration tests with GB2312 encoding. 2023-06-01 17:22:16 +02:00
jcamiel
ff9b62faa1
Add integration tests for --error-format long. 2023-06-01 17:22:06 +02:00
jcamiel
b624003679
Fix very-verbose taken into account only if verbose is true. 2023-06-01 17:22:06 +02:00
Fabrice Reix
0f759e6226
Support additional dot in jsonpath expression 2023-06-01 17:20:15 +02:00
Fabrice Reix
62d85054d2
Refacto cli options 2023-06-01 17:17:35 +02:00
Fabrice Reix
63125a8dcc
Print actual/expected lines when number of lines does not match 2023-06-01 17:17:35 +02:00
Fabrice Reix
64cf02f386
Add version integ test 2023-06-01 17:17:34 +02:00
jcamiel
2f76f43cda
Fix arguments in integration test utf8.hurl. 2023-06-01 17:17:21 +02:00
jcamiel
a2d91cc197
Add unit text for eval_html / encoding. 2023-06-01 17:17:21 +02:00
Fabrice Reix
1cf4476b8f
Change API in jsonpath / remove single-entry coercion 2023-06-01 17:16:07 +02:00
jcamiel
2be143ba1c
Add JSON and HTML exports to ssl integration tests. 2023-06-01 17:16:07 +02:00
jcamiel
14aaa31372
Add quotes around certificate attribute in HTML export. 2023-06-01 17:15:15 +02:00
Fabrice Reix
942e4982e7
Support different error messages 2023-06-01 15:10:21 +02:00
Fabrice Reix
b2ea23c0aa
Update test integ
normalize subject/issuer value in the test itself
2023-06-01 15:10:19 +02:00
Fabrice Reix
f5acbddec1
Add tests external websites 2023-06-01 13:10:00 +02:00
jcamiel
47cc03a87d
Bump Flask to 2.3.2 2023-05-02 14:24:54 +02:00
Fabrice Reix
4550e75ae2
Add more integ tests for hurlfmt --in curl 2023-04-24 14:38:27 +02:00
Fabrice Reix
b90dbf4925
Add curl input to hurlfmt 2023-04-24 13:28:41 +02:00
joesantos418
f29899c033
Add test attributes to junit XML 2023-04-22 07:33:41 +00:00
jcamiel
6f9faa5bb6
Add --cookie-jar integration test. 2023-04-21 13:14:11 +02:00
jcamiel
54b7d3766d
Add JUnit integration test. 2023-04-20 15:01:52 +02:00
Fabrice Reix
dfcbad29a3
Add options --in and --out in hurlfmt
--out replaces the previous --format option

Currently --in can only take 'hurl' format,
but it will include other formats such as curl or har in the future.
2023-04-18 08:34:44 +02:00
Fabrice Reix
d3541c493b
Setting Content-Length header explicitly in the request 2023-04-17 16:15:32 +02:00
jcamiel
7d12f1890c
Fix multiline export when used as predicate value. 2023-04-17 14:13:50 +02:00
jcamiel
0b761c49ad
Remove uncessay span around : and =. 2023-04-17 13:05:34 +02:00
lepapareil
63b219d234
Add --fail-at-end integration tests 2023-04-14 15:59:02 +00:00
Fabrice Reix
798d87979c
Parse empty JSON array 2023-04-13 12:44:46 +00:00
jcamiel
4963821c23
Update HTML exports. 2023-04-11 17:28:28 +02:00
Filipe PINTO
453a99071d
Use squid instead of mitmproxy on ci 2023-04-09 14:03:14 +02:00
Fabrice Reix
ebdd5eabc7
Delete unused script
test_script.py is now used instead
2023-04-06 10:16:54 +02:00
Fabrice Reix
ccb1097090
Migrate integ tests to unit scripts 2023-04-06 08:50:20 +02:00
jcamiel
a90d78175a
Add raw multipart form data sample. 2023-04-05 23:45:39 +02:00
Fabrice Reix
d34730c968
Migrate integ test to unit scripts 2023-04-01 10:06:04 +02:00
Fabrice Reix
447bb06297
Do not test exact serial number because its changes for every renewal 2023-04-01 09:39:08 +02:00
Fabrice Reix
271bc82d2c
Migrate integ tests to unit scripts 2023-03-30 15:45:04 +02:00
Fabrice Reix
c0c4983148
Reduce Expire-Date check to 15 days 2023-03-30 09:39:22 +02:00
Filipe PINTO
246fab4639
Add integration/tests_ok/hurlfmt.ps1 2023-03-28 16:01:56 +02:00
fpinto
949e1370b0
Add stdin.ps1 to integration tests 2023-03-28 12:41:14 +02:00
fpinto
b98821c5ca
Fix integration *.ps1 tests 2023-03-28 11:34:25 +02:00
Fabrice Reix
56c52ab7f5
Migrate test integ SSL 2023-03-27 13:55:01 +02:00
Fabrice Reix
3541ae9498
Refactoring test integ
Encapsulate each integ test in its own shell script
2023-03-24 09:06:58 +01:00
Fabrice Reix
b85bdc29e1
add daysAfterNow/DaysBeforeNow filters 2023-03-19 12:37:45 +01:00
Rached Mejri
48447ce744
Implement isEmpty predicate
Signed-off-by: Rached Mejri <rached.mejri@orange.com>
2023-03-13 10:11:47 +01:00
Fabrice Reix
f3bfe66863
Remove option --no-format in hurlfmt 2023-03-12 14:23:19 +01:00
jcamiel
3cddc20f34
Update integration tests. 2023-03-11 00:14:16 +01:00
jcamiel
ed259a73f2
Invert %M and %m in date format. 2023-03-04 20:04:49 +01:00
Fabrice Reix
591eb7087c
Add certificate query 2023-03-04 10:23:58 +01:00
jcamiel
daa5e5ebd4
Update werkzeug from 2.0.3 to 2.2.3
This update solves security issue but bumps HTTP Flask version from HTTP/1.0 to HTTP/1.1.
2023-02-17 00:58:41 +01:00
jcamiel
361fd8bd63
Add progress bar for tests. 2023-02-12 14:59:55 +01:00
lepapareil
4bbcfb1337
Use long options for curl command 2023-02-06 16:35:21 +01:00
Fabrice Reix
bf96812212
Use Date for cookie Expires query 2023-02-05 19:06:19 +01:00
jcamiel
8dfd8b40b8
Replace google.fr by hurl.dev 2023-02-02 22:03:54 +01:00
Fabrice Reix
550c517149
Add Date value/filters 2023-02-02 13:00:40 +01:00
jcamiel
98f5db346f
Fix GraphQL query with variables to HTTP body request 2023-01-29 19:05:00 +01:00
fpinto
1b6b583e7a
Fix servers log artifacts 2023-01-27 07:49:09 +01:00
jcamiel
d39e975c05
Accept mutiple --variables-file options 2023-01-18 17:40:46 +01:00
Fabrice Reix
748a2084c5
Pass whether filters are applied in assert or not 2023-01-18 13:47:59 +01:00
Fabrice Reix
dd82208771
Support '-' in jsonpath dot notation 2023-01-17 20:09:44 +01:00
Fabrice Reix
a7e4c8c139
Fix allowfailure 2023-01-17 13:08:23 +01:00
Fabrice Reix
f12ce3e597
Add option ssl-no-revoke 2023-01-17 13:08:22 +01:00
jcamiel
79b2fcd099
Fixes various issues on HTML export. 2023-01-11 16:23:39 +01:00
Fabrice Reix
18f4ba1afe
Add Test integ SSL client Authentication 2023-01-11 15:44:04 +01:00
Fabrice Reix
0543431490
Refacto Test integ SSL 2023-01-11 14:55:13 +01:00
jcamiel
e15deb5ca7
Add number class for nth filter argument in HTML format. 2023-01-11 10:10:08 +01:00
Fabrice Reix
b46c82ce0f
Add nth/replace/split filters 2023-01-07 18:12:39 +01:00
jcamiel
28b5a49c1d
Update variables.hurl integration test.
We can define multiple variables in [Options] section. Contrary to other options, variables defined on this request are still available to following entries.
2023-01-03 17:43:13 +01:00
Filipe PINTO
3789f8abf3
Self-signed error test less flexible 2022-12-29 11:51:47 +01:00
Fabrice Reix
51ecec615d
Add SSL Test with trusted CA 2022-12-28 21:39:33 +01:00
fpinto
15a07fcd5d
Fix ssl tests for windows 2022-12-28 15:55:49 +01:00
lepapareil
6f0e666dce
Fix false negatives on dockerised tests 2022-12-15 18:09:44 +01:00
lepapareil
662ec8184e
Standardised shell scripts shebang and error handling 2022-12-15 18:09:34 +01:00
jcamiel
c2f0fe46ba
Implement html_escape and html_unescape.
This PR removes import of html-escape crate.
2022-12-14 13:10:43 +01:00
jcamiel
aa2f1d5b4d
Add connect-to option 2022-12-10 23:55:14 +01:00
jcamiel
b9dc82d22c
Harden integration test on GraphQL.
This test could have detected regression on header parsing.
2022-12-10 23:30:48 +01:00
jcamiel
6b7753e174
Check HTTP version and status first, then other asserts.
If HTTP version or status are not correct, we fail the test without running others asserts.
2022-12-10 14:44:23 +01:00
jcamiel
ec30da5b05
Normalize curl command line debug with the url at the end. 2022-12-09 15:10:35 +01:00
jcamiel
38c47501ab
Add --resolve options 2022-12-09 10:17:07 +01:00