[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#695194: Fwd: https tests failing with webmock



[sending to itp also]

Hi Hideki,

I  can see there is a patch to set cacert path in excon and excon
adapter for webmock seems to work with https. I had a look at curb
files and it seems to be taking cacert path from curl-config --ca.

Packaging available at
http://anonscm.debian.org/gitweb/?p=pkg-ruby-extras/ruby-webmock.git

If we can fix these failing tests, we are ready for upload.

Failing tests,

1) Webmock with Curb using #http for requests it should behave like
Curb with WebMock when net connect is allowed should make a real https
request if request is not stubbed
     Failure/Error: Unable to find matching line from backtrace
     Curl::Err::SSLCaertBadFile:
       Curl::Err::SSLCaertBadFile
     Shared Example Group: "Curb" called from
     # ./lib/webmock/http_lib_adapters/curb_adapter.rb:200:in `block in perform'
     # ./lib/webmock/http_lib_adapters/curb_adapter.rb:70:in `curb_or_webmock'
     # ./lib/webmock/http_lib_adapters/curb_adapter.rb:200:in `perform'
     # ./lib/webmock/http_lib_adapters/curb_adapter.rb:176:in `http'
     # ./lib/webmock/http_lib_adapters/curb_adapter.rb:176:in `http'
     # ./spec/acceptance/curb/curb_spec_helper.rb:69:in `curb_http_request'
     # ./spec/acceptance/curb/curb_spec_helper.rb:8:in `http_request'
     # ./spec/acceptance/shared/allowing_and_disabling_net_connect.rb:14:in
`block (4 levels) in <top (required)>'

  2) Webmock with Curb using #http_* methods for requests it should
behave like Curb with WebMock when net connect is allowed should make
a real https request if request is not stubbed
     Failure/Error: Unable to find matching line from backtrace
     Curl::Err::SSLCaertBadFile:
       Curl::Err::SSLCaertBadFile
     Shared Example Group: "Curb" called from
     # ./lib/webmock/http_lib_adapters/curb_adapter.rb:200:in `block in perform'
     # ./lib/webmock/http_lib_adapters/curb_adapter.rb:70:in `curb_or_webmock'
     # ./lib/webmock/http_lib_adapters/curb_adapter.rb:200:in `perform'
     # ./lib/webmock/http_lib_adapters/curb_adapter.rb:176:in `http'
     # ./lib/webmock/http_lib_adapters/curb_adapter.rb:176:in `http'
     # ./lib/webmock/http_lib_adapters/curb_adapter.rb:182:in `block
(2 levels) in <class:WebMockCurlEasy>'
     # ./spec/acceptance/curb/curb_spec_helper.rb:82:in `curb_http_request'
     # ./spec/acceptance/curb/curb_spec_helper.rb:8:in `http_request'
     # ./spec/acceptance/shared/allowing_and_disabling_net_connect.rb:14:in
`block (4 levels) in <top (required)>'

  3) Webmock with Curb using #perform for requests it should behave
like Curb with WebMock when net connect is allowed should make a real
https request if request is not stubbed
     Failure/Error: Unable to find matching line from backtrace
     Curl::Err::SSLCaertBadFile:
       Curl::Err::SSLCaertBadFile
     Shared Example Group: "Curb" called from
     # ./lib/webmock/http_lib_adapters/curb_adapter.rb:200:in `block in perform'
     # ./lib/webmock/http_lib_adapters/curb_adapter.rb:70:in `curb_or_webmock'
     # ./lib/webmock/http_lib_adapters/curb_adapter.rb:200:in `perform'
     # ./spec/acceptance/curb/curb_spec_helper.rb:103:in `curb_http_request'
     # ./spec/acceptance/curb/curb_spec_helper.rb:8:in `http_request'
     # ./spec/acceptance/shared/allowing_and_disabling_net_connect.rb:14:in
`block (4 levels) in <top (required)>'

  4) Webmock with Curb using .http_* methods for requests it should
behave like Curb with WebMock when net connect is allowed should make
a real https request if request is not stubbed
     Failure/Error: Unable to find matching line from backtrace
     Curl::Err::SSLCaertBadFile:
       Curl::Err::SSLCaertBadFile
     Shared Example Group: "Curb" called from
     # ./lib/webmock/http_lib_adapters/curb_adapter.rb:200:in `block in perform'
     # ./lib/webmock/http_lib_adapters/curb_adapter.rb:70:in `curb_or_webmock'
     # ./lib/webmock/http_lib_adapters/curb_adapter.rb:200:in `perform'
     # ./lib/webmock/http_lib_adapters/curb_adapter.rb:176:in `http'
     # ./lib/webmock/http_lib_adapters/curb_adapter.rb:176:in `http'
     # ./lib/webmock/http_lib_adapters/curb_adapter.rb:182:in `block
(2 levels) in <class:WebMockCurlEasy>'
     # ./spec/acceptance/curb/curb_spec_helper.rb:113:in `curb_http_request'
     # ./spec/acceptance/curb/curb_spec_helper.rb:8:in `http_request'
     # ./spec/acceptance/shared/allowing_and_disabling_net_connect.rb:14:in
`block (4 levels) in <top (required)>'

  5) Webmock with Curb using .perform for requests it should behave
like Curb with WebMock when net connect is allowed should make a real
https request if request is not stubbed
     Failure/Error: Unable to find matching line from backtrace
     Curl::Err::SSLCaertBadFile:
       Curl::Err::SSLCaertBadFile
     Shared Example Group: "Curb" called from
     # ./lib/webmock/http_lib_adapters/curb_adapter.rb:200:in `block in perform'
     # ./lib/webmock/http_lib_adapters/curb_adapter.rb:70:in `curb_or_webmock'
     # ./lib/webmock/http_lib_adapters/curb_adapter.rb:200:in `perform'
     # ./lib/webmock/http_lib_adapters/curb_adapter.rb:176:in `http'
     # ./lib/webmock/http_lib_adapters/curb_adapter.rb:176:in `http'
     # ./lib/webmock/http_lib_adapters/curb_adapter.rb:182:in `block
(2 levels) in <class:WebMockCurlEasy>'
     # ./spec/acceptance/curb/curb_spec_helper.rb:126:in `curb_http_request'
     # ./spec/acceptance/curb/curb_spec_helper.rb:8:in `http_request'
     # ./spec/acceptance/shared/allowing_and_disabling_net_connect.rb:14:in
`block (4 levels) in <top (required)>'

  6) Patron with WebMock when net connect is allowed should make a
real https request if request is not stubbed
     Failure/Error: Unable to find matching line from backtrace
     Patron::Error:
     # ./lib/webmock/http_lib_adapters/patron_adapter.rb:31:in `handle_request'
     # ./lib/webmock/http_lib_adapters/patron_adapter.rb:31:in `handle_request'
     # ./spec/acceptance/patron/patron_spec_helper.rb:16:in `http_request'
     # ./spec/acceptance/shared/allowing_and_disabling_net_connect.rb:14:in
`block (4 levels) in <top (required)>'

  7) Patron when custom functionality is used file requests should
raise same error as Patron if file is not readable for get request
     Failure/Error: Unable to find matching line from backtrace
       expected ArgumentError with "Unable to open specified file."
but nothing was raised
     # ./spec/acceptance/patron/patron_spec.rb:47:in `block (4 levels)
in <top (required)>'

  8) Typhoeus::Hydra with WebMock when net connect is allowed should
make a real https request if request is not stubbed
     Failure/Error: Unable to find matching line from backtrace
       expected: /.*google.*/
            got: "" (using =~)
       Diff:
       @@ -1,2 +1,2 @@
       -/.*google.*/
       +""

     # ./spec/acceptance/shared/allowing_and_disabling_net_connect.rb:15:in
`block (4 levels) in <top (required)>'

Finished in 5 minutes 8.29 seconds
3222 examples, 8 failures, 2 pending


--
പ്രവീണ്‍ അരിമ്പ്രത്തൊടിയില്‍
You have to keep reminding your government that you don't get your
rights from them; you give them permission to rule, only so long as
they follow the rules: laws and constitution.


--
പ്രവീണ്‍ അരിമ്പ്രത്തൊടിയില്‍
You have to keep reminding your government that you don't get your
rights from them; you give them permission to rule, only so long as
they follow the rules: laws and constitution.


Reply to: