Ben Hanzl
245873dad1
Skip Patron tests if Ruby version less than 1.9
2015-06-12 01:58:58 +02:00
Rahul Horé
15a045d348
Skip Typhoeus tests for Ruby 2.2+
...
Old Typhoeus version doesn't seem to compile on this version of Ruby anymore.
2015-02-03 21:36:09 -08:00
Alexander Pepper
c877521697
httpclient: Enable gzip compression.
...
Motivation: httpclient support gzip compression since late 2010 (see https://github.com/nahi/httpclient/issues/42 ).
2015-01-14 15:27:00 +01:00
Erik Michaels-Ober
ac7cc3a7bf
Merge pull request #277 from stve/log_bodies
...
log request bodies in logger middleware
2014-10-05 19:22:32 +02:00
Mislav Marohnić
362baf728e
Avoid Ruby 2.1.0 crash due to Excon bug when connection is failed
...
geemus/excon#358
2014-01-09 10:23:22 -08:00
Mislav Marohnić
010f81976f
skip SSL peer verification test for Patron
2013-07-27 14:38:20 +02:00
Mislav Marohnić
4ac193943b
wrap OpenSSL exceptions in Faraday's own SSLError class
2013-07-27 14:38:20 +02:00
Mislav Marohnić
7380ffc137
bump multipart-post dependency for Ruby 2.0 compatibility
2013-07-27 00:29:46 +02:00
Mislav Marohnić
9427063d97
hack HTTPClient to enable proxy integration tests
...
HTTPClient considers "localhost" to always be on a no-proxy list, thus
disabling our attempts to have integration tests on localhost. We
override its NO_PROXY_HOSTS constant during tests.
2013-07-27 00:29:45 +02:00
Mislav Marohnić
0a1deaf173
add integration tests for HTTP proxy support
...
Spins up a proxy server in a separate process, runs a few requests
through it with each adapter to verify that both proxy support and basic
authentication take effect.
2013-07-27 00:29:44 +02:00
Mislav Marohnić
f28bf056cf
ensure consistent handling of connection failures
...
All adapters should now raise Faraday::Error::ConnectionFailed
2013-07-27 00:29:41 +02:00
Steve Agalloco
853b874480
use an array instead of a hash for testing pretty_inspect of objects
2013-07-05 11:42:26 -04:00
Steve Agalloco
fb6ed87714
added options hash to Logger to support logging bodies
2013-07-05 11:42:26 -04:00
Steve Agalloco
0e5c87ee43
log request bodies in logger middleware
2013-07-05 11:42:26 -04:00
Mislav Marohnić
a23124ea7b
avoid ruby syntax warnings
2013-06-25 04:11:31 +02:00
rick
7cdff322cf
respect Faraday::RequestOptions#params_encoder
...
Fixes #269
2013-05-13 14:38:14 -06:00
Mislav Marohnić
50f853048e
skip Typhoeus file upload test
...
Avoids random failures that happen in combination with WEBrick
2013-04-04 03:34:19 +02:00
Mislav Marohnić
7a38f177dc
fix net-http-persistent timeout detection on Ruby 2.0
...
Re-enable timeout test because drbrain/net-http-persistent#33 got fixed
in net-http-persistent 2.8
2013-04-02 21:41:58 +02:00
Mislav Marohnić
ebbf413b36
skip Typhoeus cert test in non-SSL mode
2013-02-25 02:37:05 +01:00
Colin Jones
4f37e8c0ef
Add test to prove rejection of invalid peer
2013-01-16 15:25:42 -06:00
technoweenie
55c03addc2
Merge commit 'f9b8fe8546c2546811d7b68e4020cd17f890d45e' into fix-ci
2012-12-28 01:42:28 -07:00
technoweenie
758ad95587
removed autoload, caused problems with the Test adapter tests SOMETIMES
2012-12-28 01:41:27 -07:00
Karl Eklund
f9b8fe8546
Add support for headers to the test adapter
2012-12-20 12:07:07 +01:00
Erik Michaels-Ober
faab1b08cd
Replace test-unit with minitest
2012-12-16 20:22:03 -08:00
technoweenie
bbc69369e5
merge
2012-10-27 10:27:50 -06:00
technoweenie
fa397470e2
simplify test requires
2012-10-21 10:25:34 -06:00
technoweenie
223b160954
shove ruby autoloading to 'faraday/autoload'
2012-10-20 17:38:48 -06:00
Mislav Marohnić
e8a50ed068
skip EM tests against JRuby + SSL
2012-08-16 18:21:04 +02:00
Mislav Marohnić
88c76087c8
work around Excon problem with JRuby + SSL
2012-08-16 18:21:04 +02:00
Mislav Marohnić
79022619ac
add jruby?
, ssl_mode?
test helpers
2012-08-16 18:21:04 +02:00
Mislav Marohnić
9b3923f62c
move WEBrick SSL config to script/test
2012-08-16 18:21:00 +02:00
Jerry Cheung
cc918842fb
enable test suite in SSL mode
2012-08-16 18:20:23 +02:00
Dan Dofter
790a3c6535
Require excon 0.14.1 which fixes timeout issue
...
See: https://github.com/geemus/excon/issues/127
2012-08-12 17:23:23 +02:00
Mislav Marohnić
3ac2e3f7bc
disable timeout test for net-http-persistent due to bug
2012-08-12 15:59:46 +02:00
Mislav Marohnić
bcdd1f3edb
stop using Webmock
...
We only used it for one test (now removed) and it doesn't support
Net::HTTP::Persistent, preventing us from testing that adapter properly.
2012-08-12 15:59:45 +02:00
Mislav Marohnić
049ff25ddc
all adapters return string for empty responses now
2012-08-12 15:59:45 +02:00
Myron Marston
f41ffaabb7
Ensure empty body responses are consistently returned as empty strings.
...
Zero-byte response bodies can be represented as either nil or '' in ruby.
Most ruby HTTP clients use '' (which, conveniently, allows clients
to assume the body is always a string), but Net::HTTP, for whatever
reason, uses nil.
This change makes it so that all faraday adapters consistently return
'' for zero-byte response bodies.
2012-08-12 13:49:20 +02:00
Mislav Marohnić
aa300717d2
enable Excon tests on Rubinius
2012-06-19 11:15:11 +02:00
Mislav Marohnić
a69357d8cf
Excon: fix file uploads
2012-06-19 11:15:11 +02:00
Mislav Marohnić
e6787c144b
script/test
spins up test server, runs test suite
2012-06-19 11:15:11 +02:00
Dan Dofter
55a98d7d9f
Disabled failing timeout test.
2012-05-29 11:38:02 -07:00
Dan Dofter
e27df4e915
set excon timeouts from faraday configuration and handle timeout errors
2012-05-29 08:55:03 -07:00
Hakan Ensari
8fe63e1651
Use :bind instead of :socket_local to set local socket
2012-05-07 18:28:50 +02:00
Hakan Ensari
b0c6cbd24d
Merge branch 'master' into httpclient
2012-05-07 17:54:39 +02:00
rick
58c8ca8356
move bind tests inside the Integration.apply block
2012-05-05 18:15:31 -06:00
Ezekiel Templin
d4d88a1de8
Add bind option to Typhoeus [ #154 ]
2012-05-03 14:55:40 -04:00
Hakan Ensari
5b91734495
Expose local socket config in EM::HTTP and ilk
2012-05-02 17:31:05 +01:00
Hakan Ensari
e42b439f14
Add local socket support for HTTPClient adapter
...
So you can utilise all IPs on a server…
2012-05-02 02:56:50 +01:00
Hakan Ensari
c2d88ffd3e
Add HTTPClient adapter
...
nahi/httpclient#90
2012-05-02 02:24:50 +01:00
rick
b6410720b8
rescue is more forgiving
2012-04-21 11:38:39 -06:00