ducaale
27a10f400b
add support for nested json syntax
2022-02-05 18:59:34 +00:00
ducaale
477fbff466
default to a different config_dir during tests
2022-01-21 23:40:33 +00:00
ducaale
b8ca1bf0d4
check output in tilde_expanded_in_request_items
2021-12-04 12:43:29 +02:00
ducaale
4c5d36ea13
expand tilde in request items that contain a path
2021-12-03 22:26:34 +02:00
Jan Verbeek
adcd19441f
Add browser-style text encoding detection
...
- If there's no explicit encoding it's detected using BOM sniffing or
using chardetng, which was made for Firefox.
- BOM sniffing is no longer used when the encoding is explicit.
- Streaming and non-streaming decodes now behave the same.
2021-12-02 15:19:25 +01:00
Jan Verbeek
9f7f548304
Ignore user netrc in tests
2021-12-01 21:44:00 +01:00
ducaale
30c60ed280
pipe binary data directly in tests
2021-11-30 15:10:06 +02:00
ducaale
16f4bd5508
add tests for default method, --raw and stdin
2021-11-29 20:11:19 +02:00
ducaale
e397720d1f
add tests for --raw
2021-11-29 16:48:23 +02:00
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