Package: ruby-rest-client Version: 2.1.0-3 Severity: normal Tags: patch X-Debbugs-Cc: vignesh.ra...@collabora.com
Dear Maintainer, ruby-rest-client is failing to build because its test suite depends on access to the internet, Failures: RestClient::Request timeouts raises OpenTimeout when it hits an open timeout Failure/Error: expect { request.execute }.to( raise_error(RestClient::Exceptions::OpenTimeout)) expected RestClient::Exceptions::OpenTimeout, got #<SocketError: Failed to open TCP connection to www.mozilla.org:80 (getaddrinfo: Name or service not known)> with backtrace: Already some network tests are disabled. Disable the other network tests which requires access to internet. Please find the patch for this issue. Thanks. Regards, Vignesh -- System Information: Debian Release: 12.0 APT prefers testing-security APT policy: (500, 'testing-security'), (500, 'testing') Architecture: amd64 (x86_64) Kernel: Linux 6.1.0-7-amd64 (SMP w/1 CPU thread; PREEMPT) Locale: LANG=en_IN, LC_CTYPE=en_IN (charmap=UTF-8), LANGUAGE=en_IN:en Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages ruby-rest-client depends on: ii ruby 1:3.1 ii ruby-http-accept 2.2.0-1 ii ruby-http-cookie 1.0.5-1 ii ruby-mime-types 3.4.1-2 ii ruby-netrc 0.11.0-4 ruby-rest-client recommends no packages. ruby-rest-client suggests no packages. -- no debconf information
>From 6e93dafa17821dde2f7ae5971bbd6d4597304251 Mon Sep 17 00:00:00 2001 From: Vignesh Raman <vignesh.ra...@collabora.com> Date: Fri, 5 May 2023 17:56:16 +0530 Subject: [PATCH] Disable network-dependent tests ruby-rest-client is failing to build because its test suite depends on access to the internet, Failures: RestClient::Request timeouts raises OpenTimeout when it hits an open timeout Failure/Error: expect { request.execute }.to( raise_error(RestClient::Exceptions::OpenTimeout)) expected RestClient::Exceptions::OpenTimeout, got #<SocketError: Failed to open TCP connection to www.mozilla.org:80 (getaddrinfo: Name or service not known)> with backtrace: Already some network tests are disabled. Disable the other network tests which requires access to internet. Signed-off-by: Vignesh Raman <vignesh.ra...@collabora.com> --- spec/integration/request_spec.rb | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/spec/integration/request_spec.rb b/spec/integration/request_spec.rb index 35552fd..3f0aa54 100644 --- a/spec/integration/request_spec.rb +++ b/spec/integration/request_spec.rb @@ -14,16 +14,7 @@ describe RestClient::Request do end describe "timeouts" do - it "raises OpenTimeout when it hits an open timeout" do - request = RestClient::Request.new( - :method => :get, - :url => 'http://www.mozilla.org', - :open_timeout => 1e-10, - ) - expect { request.execute }.to( - raise_error(RestClient::Exceptions::OpenTimeout)) - end - + # all removed; accessing the network end end -- 2.30.2