265 Commits

Author SHA1 Message Date
ducaale
27cfaf0750 allow opting-out of the server hit checks 2021-11-28 18:11:36 +02:00
ducaale
b1154425a2 split http_all_proxy into two tests 2021-11-28 17:15:20 +02:00
ducaale
3eea30afb3 don't check server hits at the end of tests
This is for simple cases where the default server hit checks in Server::drop
is enough
2021-11-28 17:01:18 +02:00
Mohamed Daahir
752bc4d20a
Merge pull request #198 from blyxxyz/small-fixes
Small fixes
2021-11-26 21:46:06 +02:00
ducaale
702075615f Remove http crate from Cargo.toml 2021-11-26 21:00:42 +02:00
Jan Verbeek
c34c982820 tests: Fix Clippy lints 2021-11-26 19:09:08 +01:00
ducaale
6032dbaff5 temporarily disable cert_with_key test 2021-11-26 17:19:30 +02:00
ducaale
00be817826 update omit_response_body test to use hyper 2021-11-26 17:08:25 +02:00
ducaale
b90fd27560 Merge branch 'develop' into remove-httpmock 2021-11-26 17:02:26 +02:00
Jan Verbeek
918698d65c Do not print response body unconditionally 2021-11-22 21:40:23 +01:00
ducaale
2dbdc95824 remove the integration-tests feature flag 2021-11-15 16:17:44 +02:00
ducaale
b82224df8c Merge branch 'remove-httpmock' of https://github.com/ducaale/xh into remove-httpmock 2021-11-15 15:15:32 +02:00
ducaale
e9874de0e9 get integration tests to work on ARM
https://github.com/ducaale/xh/pull/190#issuecomment-968887892
2021-11-15 15:15:20 +02:00
Mohamed Daahir
cd52fa9884
Use the correct port for tls-v1-2.badssl.com
Co-authored-by: Jan Verbeek <jan.verbeek@posteo.nl>
2021-11-15 15:11:05 +02:00
ducaale
22c199350f update good_tls_version_nativetls test to use tls1.2
See https://github.com/ducaale/xh/pull/190#issuecomment-968859710
for why the test was failing on x86_64-unknown-linux-gnu before this
change
2021-11-15 14:54:26 +02:00
ducaale
f153c3c41b move digest_auth tests from httpmock to hyper 2021-11-15 10:15:44 +02:00
ducaale
e41f875963 Merge branch 'develop' into remove-httpmock 2021-11-14 22:09:12 +02:00
Mohamed Daahir
e72e17caec
Merge pull request #168 from blyxxyz/tls-version
Add --ssl option for forcing a TLS version
2021-11-14 21:06:41 +02:00
ducaale
fa510e9d1a Merge branch 'develop' into digest-auth 2021-11-14 19:37:14 +02:00
ducaale
23ab96af2e test digest auth using a httpbin.org 2021-11-14 19:30:58 +02:00
Jan Verbeek
f6709313d6 Test specifying unsupported --ssl versions 2021-11-14 18:30:47 +01:00
Jan Verbeek
f1bc21f87f tests/cli: Clean up use of predicate::str::contains() 2021-11-14 18:22:15 +01:00
Jan Verbeek
54c79ec3b3 Add --ssl option for forcing a TLS version 2021-11-14 17:54:27 +01:00
Jan Verbeek
4abb6a166e Disable bool_assert_comparison lint for integration tests 2021-11-14 16:32:26 +01:00
ducaale
89e5125697 Merge branch 'develop' into remove-httpmock 2021-11-11 20:53:35 +02:00
ducaale
211af8b923 add feature flag for disabling online tests 2021-11-11 20:38:02 +02:00
ducaale
790ecd77b7 reorder tests 2021-11-11 18:58:46 +02:00
ducaale
02979894f0 replace httpmock with hyper 2021-11-11 18:52:07 +02:00
ducaale
3d38ad2fa5 add some helpers to Server and hyper::Request 2021-11-11 18:38:00 +02:00
ducaale
429d105376 use args instead arg in tests
This has been done wherever it would reduce the number of lines needed
2021-11-11 18:37:54 +02:00
ducaale
06bb6d4d72 support HTTPie's --response-mime flag 2021-10-24 17:14:49 +03:00
ducaale
8abdaf346e support HTTPie's --response-charset flag 2021-10-24 16:03:44 +03:00
ducaale
5e7faa91ad Merge branch 'develop' into digest-auth 2021-10-22 19:22:13 +03:00
ducaale
f4affb8749 mention nginx behaviour to 1.0 requests 2021-10-13 16:52:45 +03:00
ducaale
bad4c80e2f Revert "disable tests that call self-signed.badssl.com"
This reverts commit a635aa6e09bb5814655ec1d7bb97d41a48cdc96a.
2021-10-12 21:38:50 +03:00
ducaale
9ad76b97b5 add tests for the --http-version flag 2021-10-12 21:37:08 +03:00
ducaale
8be92bd5a9 revert: disable tests that call self-signed.badssl.com 2021-10-12 21:26:33 +03:00
ducaale
a635aa6e09 disable tests that call self-signed.badssl.com 2021-10-11 20:15:19 +03:00
ducaale
291aab090d don't save netrc auth in session 2021-10-11 20:13:50 +03:00
ducaale
747d0e6c06 disable tests that call self-signed.badssl.com 2021-10-11 19:17:59 +03:00
ducaale
e483beee41 add tests for auth-digest 2021-10-03 18:53:21 +03:00
ducaale
20faf2c265 avoid printing extra line separators
For example, http -v --print= --follow httpbin.org/status/302 shouldn't
print any separators
2021-09-10 23:24:31 +03:00
ducaale
ae447b2ae3 Merge branch 'develop' into all-flag 2021-09-03 20:05:45 +03:00
Jan Verbeek
f5f24254c7 Remove stray stdout() check from test 2021-08-05 21:39:17 +02:00
Jan Verbeek
e6c8a050cf Merge remote-tracking branch 'origin/develop' into native-tls 2021-08-05 21:33:56 +02:00
Jan Verbeek
007719cd00 Add basic sanity test for --native-tls 2021-08-05 21:09:43 +02:00
Jan Verbeek
db7f09deb1 Warn if --native-tls is combined with --verify or --cert 2021-08-05 20:14:25 +02:00
ducaale
fa580d57dc Merge branch 'develop' into all-flag 2021-08-05 19:26:09 +03:00
ducaale
218202821a fix failing tests 2021-08-05 18:52:01 +03:00
ducaale
666d5d61b2 Merge branch 'develop' into sessions 2021-08-05 18:45:26 +03:00