Diff of the two buildlogs: -- --- b1/build.log 2025-03-12 21:17:28.269398360 +0000 +++ b2/build.log 2025-03-12 21:19:05.393014649 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Tue Apr 14 15:39:51 -12 2026 -I: pbuilder-time-stamp: 1776224391 +I: Current time: Thu Mar 13 11:17:37 +14 2025 +I: pbuilder-time-stamp: 1741814257 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/trixie-reproducible-base.tgz] I: copying local configuration @@ -31,54 +31,86 @@ dpkg-source: info: applying 0007-Skip-test-that-hits-the-network.patch I: Not using root during the build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/82042/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/49523/tmp/hooks/D01_modify_environment starting +debug: Running on ionos12-i386. +I: Changing host+domainname to test build reproducibility +I: Adding a custom variable just for the fun of it... +I: Changing /bin/sh to bash +'/bin/sh' -> '/bin/bash' +lrwxrwxrwx 1 root root 9 Mar 12 21:18 /bin/sh -> /bin/bash +I: Setting pbuilder2's login shell to /bin/bash +I: Setting pbuilder2's GECOS to second user,second room,second work-phone,second home-phone,second other +I: user script /srv/workspace/pbuilder/49523/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/49523/tmp/hooks/D02_print_environment starting I: set - BUILDDIR='/build/reproducible-path' - BUILDUSERGECOS='first user,first room,first work-phone,first home-phone,first other' - BUILDUSERNAME='pbuilder1' - BUILD_ARCH='i386' - DEBIAN_FRONTEND='noninteractive' - DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=22 ' - DISTRIBUTION='trixie' - HOME='/root' - HOST_ARCH='i386' + BASH=/bin/sh + BASHOPTS=checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:globskipdots:hostcomplete:interactive_comments:patsub_replacement:progcomp:promptvars:sourcepath + BASH_ALIASES=() + BASH_ARGC=() + BASH_ARGV=() + BASH_CMDS=() + BASH_LINENO=([0]="12" [1]="0") + BASH_LOADABLES_PATH=/usr/local/lib/bash:/usr/lib/bash:/opt/local/lib/bash:/usr/pkg/lib/bash:/opt/pkg/lib/bash:. + BASH_SOURCE=([0]="/tmp/hooks/D02_print_environment" [1]="/tmp/hooks/D02_print_environment") + BASH_VERSINFO=([0]="5" [1]="2" [2]="37" [3]="1" [4]="release" [5]="i686-pc-linux-gnu") + BASH_VERSION='5.2.37(1)-release' + BUILDDIR=/build/reproducible-path + BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' + BUILDUSERNAME=pbuilder2 + BUILD_ARCH=i386 + DEBIAN_FRONTEND=noninteractive + DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=10 ' + DIRSTACK=() + DISTRIBUTION=trixie + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=i686 + HOST_ARCH=i386 IFS=' ' - INVOCATION_ID='f2511cec3cd94dae98e49f107d0d146c' - LANG='C' - LANGUAGE='en_US:en' - LC_ALL='C' - LD_LIBRARY_PATH='/usr/lib/libeatmydata' - LD_PRELOAD='libeatmydata.so' - MAIL='/var/mail/root' - OPTIND='1' - PATH='/usr/sbin:/usr/bin:/sbin:/bin:/usr/games' - PBCURRENTCOMMANDLINEOPERATION='build' - PBUILDER_OPERATION='build' - PBUILDER_PKGDATADIR='/usr/share/pbuilder' - PBUILDER_PKGLIBDIR='/usr/lib/pbuilder' - PBUILDER_SYSCONFDIR='/etc' - PPID='82042' - PS1='# ' - PS2='> ' + INVOCATION_ID=1990b57c17944737ab5f05d179ee4406 + LANG=C + LANGUAGE=de_CH:de + LC_ALL=C + LD_LIBRARY_PATH=/usr/lib/libeatmydata + LD_PRELOAD=libeatmydata.so + MACHTYPE=i686-pc-linux-gnu + MAIL=/var/mail/root + OPTERR=1 + OPTIND=1 + OSTYPE=linux-gnu + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path + PBCURRENTCOMMANDLINEOPERATION=build + PBUILDER_OPERATION=build + PBUILDER_PKGDATADIR=/usr/share/pbuilder + PBUILDER_PKGLIBDIR=/usr/lib/pbuilder + PBUILDER_SYSCONFDIR=/etc + PIPESTATUS=([0]="0") + POSIXLY_CORRECT=y + PPID=49523 PS4='+ ' - PWD='/' - SHELL='/bin/bash' - SHLVL='2' - SUDO_COMMAND='/usr/bin/timeout -k 18.1h 18h /usr/bin/ionice -c 3 /usr/bin/nice /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.EUm4JtHq/pbuilderrc_nB9k --distribution trixie --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/trixie-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.EUm4JtHq/b1 --logfile b1/build.log ruby-rest-client_2.1.0-4.dsc' - SUDO_GID='112' - SUDO_UID='107' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://213.165.73.152:3128' + PWD=/ + SHELL=/bin/bash + SHELLOPTS=braceexpand:errexit:hashall:interactive-comments:posix + SHLVL=3 + SUDO_COMMAND='/usr/bin/timeout -k 24.1h 24h /usr/bin/ionice -c 3 /usr/bin/nice -n 11 /usr/bin/unshare --uts -- /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.EUm4JtHq/pbuilderrc_89EM --distribution trixie --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/trixie-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.EUm4JtHq/b2 --logfile b2/build.log ruby-rest-client_2.1.0-4.dsc' + SUDO_GID=112 + SUDO_UID=107 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://46.16.76.132:3128 I: uname -a - Linux ionos16-i386 6.1.0-31-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.128-1 (2025-02-07) x86_64 GNU/Linux + Linux i-capture-the-hostname 6.1.0-31-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.128-1 (2025-02-07) x86_64 GNU/Linux I: ls -l /bin - lrwxrwxrwx 1 root root 7 Mar 4 2025 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/82042/tmp/hooks/D02_print_environment finished + lrwxrwxrwx 1 root root 7 Mar 4 11:20 /bin -> usr/bin +I: user script /srv/workspace/pbuilder/49523/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -283,7 +315,7 @@ Get: 149 http://deb.debian.org/debian trixie/main i386 ruby-rspec-mocks all 3.13.0c0e0m0s1-2 [81.3 kB] Get: 150 http://deb.debian.org/debian trixie/main i386 ruby-rspec all 3.13.0c0e0m0s1-2 [5184 B] Get: 151 http://deb.debian.org/debian trixie/main i386 ruby-webmock all 3.25.1-1 [68.8 kB] -Fetched 50.1 MB in 0s (127 MB/s) +Fetched 50.1 MB in 1s (55.7 MB/s) Preconfiguring packages ... Selecting previously unselected package libpython3.13-minimal:i386. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 19787 files and directories currently installed.) @@ -783,8 +815,8 @@ Setting up tzdata (2025a-2) ... Current default time zone: 'Etc/UTC' -Local time is now: Wed Apr 15 03:40:14 UTC 2026. -Universal Time is now: Wed Apr 15 03:40:14 UTC 2026. +Local time is now: Wed Mar 12 21:18:30 UTC 2025. +Universal Time is now: Wed Mar 12 21:18:30 UTC 2025. Run 'dpkg-reconfigure tzdata' if you wish to change it. Setting up ruby-minitest (5.25.4-2) ... @@ -922,7 +954,11 @@ Building tag database... -> Finished parsing the build-deps I: Building the package -I: Running cd /build/reproducible-path/ruby-rest-client-2.1.0/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-genchanges -S > ../ruby-rest-client_2.1.0-4_source.changes +I: user script /srv/workspace/pbuilder/49523/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for trixie +I: user script /srv/workspace/pbuilder/49523/tmp/hooks/A99_set_merged_usr finished +hostname: Name or service not known +I: Running cd /build/reproducible-path/ruby-rest-client-2.1.0/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-genchanges -S > ../ruby-rest-client_2.1.0-4_source.changes dpkg-buildpackage: info: source package ruby-rest-client dpkg-buildpackage: info: source version 2.1.0-4 dpkg-buildpackage: info: source distribution unstable @@ -996,368 +1032,368 @@ RUBYLIB=/build/reproducible-path/ruby-rest-client-2.1.0/debian/ruby-rest-client/usr/lib/ruby/vendor_ruby:. GEM_PATH=/build/reproducible-path/ruby-rest-client-2.1.0/debian/ruby-rest-client/usr/share/rubygems-integration/all:/build/reproducible-path/ruby-rest-client-2.1.0/debian/.debhelper/generated/_source/home/.local/share/gem/ruby/3.3.0:/var/lib/gems/3.3.0:/usr/local/lib/ruby/gems/3.3.0:/usr/lib/ruby/gems/3.3.0:/usr/lib/i386-linux-gnu/ruby/gems/3.3.0:/usr/share/rubygems-integration/3.3.0:/usr/share/rubygems-integration/all:/usr/lib/i386-linux-gnu/rubygems-integration/3.3.0 ruby3.3 -S rake --rakelibdir /gem2deb-nonexistent -f debian/ruby-tests.rake /usr/bin/ruby3.3 -I/usr/share/rubygems-integration/all/gems/rspec-support-3.13.1/lib:/usr/share/rubygems-integration/all/gems/rspec-core-3.13.0/lib /usr/share/rubygems-integration/all/gems/rspec-core-3.13.0/exe/rspec --pattern ./spec/\*\*/\*_spec.rb --format documentation -Randomized with seed 48300 +Randomized with seed 2427 -RestClient::Request - catches OpenSSL::SSL::SSLError and raise it back without more informative message - IPv6: executes by constructing the Net::HTTP object, headers, and payload and calling transmit - strips out cookies set for a different domain name - catches Net::ReadTimeout and raises RestClient's ReadTimeout - transmits the request with Net::HTTP - assumes default domain and path for cookies set by hash - catches Errno::ETIMEDOUT and raise the more informative ReadTimeout - doesn't classify successful requests as failed - strips the charset from the response content type - class method execute wraps constructor - catches Timeout::Error and raise the more informative ReadTimeout - uses credentials in the url in preference to netrc - catches Net::OpenTimeout and raises RestClient's OpenTimeout - does not escape or unescape cookies - does not warn when overriding user header with header derived from payload if those header values were identical - correctly formats cookies provided to the constructor - processes a successful result - accept */* mimetype - uses correct error message for ReadTimeout - rejects or warns with contradictory cookie options - determines the Net::HTTP class to instantiate by the method name - uses correct error message for OpenTimeout - rejects cookie names containing invalid characters - set urlencoded content_type header on hash payloads - should still return a response object for 204 No Content responses - catches EOFError and shows the more informative ServerBrokeConnection - executes by constructing the Net::HTTP object, headers, and payload and calling transmit - warns when overriding existing headers via payload - uses netrc credentials - does not warn for a normal looking payload - rejects cookie values containing invalid characters - credentials - does not attempt to send credentials if Authorization header is set - setup credentials when there's a user - does not attempt to send any credentials if user is nil - sets up the credentials prior to the request - process_url_params - should handle ParamsArray objects - should handle complex nested URL params per Rack / Rails conventions - should handle basic URL params - should combine with & when URL params already exist - block usage - returns what asked to - .normalize_url - does not add http:// to the front of https resources - does not add http:// to the front of capital HTTP resources - adds http:// to resources containing a colon - does not add http:// to the front of capital HTTPS resources - raises with invalid URI - adds http:// to the front of resources specified in the syntax example.com/resource - timeout - sets open_timeout - sets read_timeout - deprecated: warns when disabling timeout by setting it to -1 - supersedes :timeout with open/read_timeout - sets both timeouts with :timeout - disable timeout by setting it to nil - does not set timeouts if not specified - deprecated: disable timeout by setting it to -1 - proxy - creates a non-proxy class if a proxy url is not given - disables proxy on a per-request basis - overrides proxy from environment - overrides global proxy with per-request proxy - sets proxy on a per-request basis - creates a proxy class with the correct address if a IPv6 proxy url is given - creates a proxy class if a proxy url is given - logging - logs a post request with a small payload - logs a get request - logs a response with a nil body - logs input headers as a hash - logs to a passed logger, if provided - does not log request password - logs a post request with a large payload - logs a response including the status code, content type, and result body size in bytes - logs a response with a nil Content-type - payloads - should accept string payloads - should accept streaming IO payloads - header symbols - converts content-type from extension to real content-type - only convert symbols in header - converts accept from extension(s) to real content-type(s) - converts header values to strings - converts header symbols from :content_type to 'Content-Type' - exception - raises Unauthorized when the response is 401 - raises RequestFailed otherwise - raises ResourceNotFound when the response is 404 - user - password - uses the username and password from the URL - extracts with escaping the username and password when parsing http://user:password@example.com/ - extracts the username and password when parsing http://user:password@example.com/ - overrides URL user/pass with explicit options - doesn't overwrite user and password (which may have already been set by the Resource constructor) if there is no user/password in the url - ssl - should set the ssl_ca_path if provided - should not set the ssl_ca_file if it is not provided - should default to not having an ssl_client_key - should not set the ssl_client_cert if it is not provided - should set the ssl_ca_file if provided - should set the ssl_cert_store if provided - should not set the ssl_version if not provided - should default to not having an ssl_ca_path - should not set the ssl_ca_path if it is not provided - should set the ssl_verify_callback if passed - should set the ssl_client_cert if provided - should not set the ssl_cert_store if it is set falsy - should default to not having an ssl_client_cert - should set net.verify_mode to the passed value if verify_ssl is an OpenSSL constant - should set the ssl_client_key if provided - should default to not having an ssl_ca_file - should set the ssl_ciphers if provided - should set net.verify_mode to OpenSSL::SSL::VERIFY_NONE if verify_ssl is false - should set net.verify_mode to OpenSSL::SSL::VERIFY_PEER if verify_ssl is true - should not set net.verify_mode to OpenSSL::SSL::VERIFY_NONE if verify_ssl is true - should by default set the ssl_cert_store if no CA info is provided - uses SSL when the URI refers to a https address - should not set the ssl_verify_callback by default - should not set the ssl_client_key if it is not provided - should set net.verify_mode to OpenSSL::SSL::VERIFY_PEER if verify_ssl is not given - should set the ssl_version if provided - should have expected values for VERIFY_PEER and VERIFY_NONE - should default to verifying ssl certificates - should not set the ssl_ciphers if set to nil - constructor - should reject invalid URIs - should reject valid URIs with no hostname - payload - converts a hash payload to urlencoded data - passes non-hash payloads straight through - accepts nested hashes in payload - sends nil payloads - raw response - should read the response into a binary-mode tempfile - user headers - prefers the user header when the same header exists in the defaults - converts user headers to string before calling CGI::unescape which fails on non string values - merges user headers with the default headers - -RestClient::AbstractResponse - fetches the numeric response code - doesn't escape cookies - fetches the headers - can access the net http result directly - extracts cookies from response headers - extract strange cookies - has a nice description - #return! - should return the response itself on 200-codes - should raise an error on a redirection after non-GET/HEAD requests - should raise RequestFailed on unknown codes - should follow 302 redirect - should gracefully handle 302 redirect with no location header - .beautify_headers - beautifies the headers by turning the values to strings instead of one-element arrays - leaves set-cookie headers as array - joins multiple header values by comma - beautifies the headers by turning the keys to symbols - .cookie_jar - handles cookies when URI scheme is implicit - extracts cookies into cookie jar +RestClient::ServerBrokeConnection + should have a default message of 'Server broke connection' RestClient::Utils - .cgi_parse_header - parses headers - .get_encoding_from_headers - returns nil on failures - handles various charsets - assumes no encoding by default for text .encode_query_string - handles nested ParamsArrays - handles null and empty values - handles multiple fields with the same name using ParamsArray - handles simple hashes handles nested nulls - handles nested hashes handles simple arrays + handles simple hashes + handles multiple fields with the same name using ParamsArray + handles nested hashes handles deep nesting - -RestClient::Request - timeouts - raises OpenTimeout when it hits an open timeout (PENDING: Temporarily skipped with xit) - -RestClient::Payload - A multipart Payload - should handle hash in hash parameters - should detect optional (original) content type and filename - should not error on close if stream already closed - should use standard enctype as default content-type - should ignore the name attribute when it's not set - should form properly separated multipart data - should not escape parameters names - should form properly separated multipart data - should correctly format hex boundary - Payload generation - should be multipart if forced - should recognize other payloads that can be streamed - shouldn't treat hashes as streameable - should recognize nested multipart payloads in hashes - should recognize standard urlencoded params - should recognize multipart payload wrapped in ParamsArray - should recognize file payloads that can be streamed - should recognize nested multipart payloads in arrays - should recognize multipart params - should return data if no of the above - should handle non-multipart payload wrapped in ParamsArray - should pass through Payload::Base and subclasses unchanged - should handle deeply nested multipart - streamed payloads - should properly determine the size of file payloads - should have a closed? method - should properly determine the size of other kinds of streaming payloads - A regular Payload - should handle attributes inside an array inside an hash - should properly handle hashes as parameter - should not close if stream already closed - should escape parameters - should handle many attributes inside a hash - should properly handle arrays as repeated parameters - should handle arrays inside a hash inside a hash - should use standard enctype as default content-type - should form properly use symbols as parameters - should form properly encoded params - Base Payload - should reset stream after to_s - -RestClient - a simple request - a 404 - charset parsing - handles utf-8 - handles windows-1252 - handles binary - handles euc-jp - handles invalid encoding - leaves images as binary - defaults to the default encoding - -RestClient::ServerBrokeConnection - should have a default message of 'Server broke connection' - -RestClient::Exception - sets the exception message to ErrorMessage - contains exceptions in RestClient - returns the 'message' that was set - returns a 'message' equal to the class name if the message is not set, because 'message' should not be nil - -RestClient::RawResponse - behaves like string - includes AbstractResponse - exposes a Tempfile - -RestClient::RequestFailed - http_body convenience method for fetching the body (decoding when necessary) - shows the status code in the message - http_code convenience method for fetching the code as an integer - stores the http response on the exception + handles nested ParamsArrays + handles null and empty values + .get_encoding_from_headers + assumes no encoding by default for text + returns nil on failures + handles various charsets + .cgi_parse_header + parses headers RestClient::Response behaves like string accepts nil strings and sets it to empty for the case of HEAD logging uses the request's logger + exceptions processing + should throw an exception for other codes + should return itself for normal codes + header processing + handles multiple headers by joining with comma + test headers and raw headers + cookie processing + should correctly deal with one Set-Cookie header with one cookie inside + should correctly deal with multiple cookies [one Set-Cookie header with multiple cookies] + should correctly deal with multiple cookies [multiple Set-Cookie headers] redirection - follows no more than 10 redirections before raising error follows a redirection when the request is a head - follows a redirection when the request is a get - doesn't follow a 301 when the request is a post - allows for manual following of redirects + doesn't follow a 307 when the request is a post + handles redirects with relative path and query string + keeps redirection history respects cookie domains on redirect + handles redirects with relative paths + follows no more than 10 redirections before raising error + allows for manual following of redirects + doesn't follow a 301 when the request is a post + doesn't follow a 302 when the request is a post + doesn't follow a redirection when the request is a put follows a redirection and keep the parameters - follow a redirection when the request is a get and the response is in the 30x range - doesn't follow a 307 when the request is a post follows a redirection when the request is a post and result is a 303 follows no more than max_redirects redirections, if specified - doesn't follow a 302 when the request is a post - doesn't follow a redirection when the request is a put - handles redirects with relative path and query string follows a redirection and keep the cookies - handles redirects with relative paths - keeps redirection history - exceptions processing - should return itself for normal codes - should throw an exception for other codes - cookie processing - should correctly deal with multiple cookies [one Set-Cookie header with multiple cookies] - should correctly deal with multiple cookies [multiple Set-Cookie headers] - should correctly deal with one Set-Cookie header with one cookie inside - header processing - test headers and raw headers - handles multiple headers by joining with comma + follows a redirection when the request is a get + follow a redirection when the request is a get and the response is in the 30x range -RestClient::NotFound - also has the http response attached - stores the body on the response of the exception +RestClient::Request + can use a block to process response + closes payload if not nil + params for GET requests + manage params for get requests + encodes nested GET params + adds GET params when params are present in URL -RestClient - version - has a version > 2.0.0.alpha, < 3.0 - logging - displays the log to stdout - displays the log to stderr - uses << if the log is not a string - append the log to the requested filename - API - DELETE - HEAD - POST - PATCH - PUT - OPTIONS - GET +RestClient::ParamsArray + .new + accepts various types of containers + rejects various invalid input RestClient::Resource + passes a given block to subresources the block should be overrideable in ruby 1.9 syntax - prints its url with to_s + transports options to subresources + offers subresources via [] + is backwards compatible with previous constructor concatenates urls, using no slash if the first url ends with a slash - concatenates urls, using no slash if the second url starts with a slash - passes a given block to subresources - the block should be overrideable + prints its url with to_s concatenates urls, inserting a slash when it needs one - transports options to subresources + the block should be overrideable can instantiate with no user/password + concatenates urls, using no slash if the second url starts with a slash concatenates even non-string urls, :posts + 1 => 'posts/1' - offers subresources via [] - is backwards compatible with previous constructor Resource delegation - HEAD - PUT DELETE + HEAD PATCH - POST overrides resource headers GET + POST + PUT block can use block when creating the resource can use block when executing the resource execution block override resource block -RestClient::ParamsArray - .new - accepts various types of containers - rejects various invalid input +RestClient::NotFound + stores the body on the response of the exception + also has the http response attached + +RestClient::Exception + contains exceptions in RestClient + returns a 'message' equal to the class name if the message is not set, because 'message' should not be nil + sets the exception message to ErrorMessage + returns the 'message' that was set + +RestClient + a 404 + a simple request + charset parsing + handles utf-8 + defaults to the default encoding + leaves images as binary + handles windows-1252 + handles euc-jp + handles binary + handles invalid encoding RestClient::Request - closes payload if not nil - can use a block to process response - params for GET requests - encodes nested GET params - manage params for get requests - adds GET params when params are present in URL + timeouts + raises OpenTimeout when it hits an open timeout (PENDING: Temporarily skipped with xit) + +RestClient::RequestFailed + stores the http response on the exception + shows the status code in the message + http_body convenience method for fetching the body (decoding when necessary) + http_code convenience method for fetching the code as an integer + +RestClient::Payload + A regular Payload + should form properly use symbols as parameters + should form properly encoded params + should handle many attributes inside a hash + should properly handle hashes as parameter + should handle arrays inside a hash inside a hash + should handle attributes inside an array inside an hash + should properly handle arrays as repeated parameters + should use standard enctype as default content-type + should not close if stream already closed + should escape parameters + Payload generation + should be multipart if forced + should return data if no of the above + should recognize file payloads that can be streamed + should recognize nested multipart payloads in hashes + should recognize multipart params + should recognize nested multipart payloads in arrays + should recognize standard urlencoded params + should recognize multipart payload wrapped in ParamsArray + shouldn't treat hashes as streameable + should recognize other payloads that can be streamed + should pass through Payload::Base and subclasses unchanged + should handle deeply nested multipart + should handle non-multipart payload wrapped in ParamsArray + A multipart Payload + should handle hash in hash parameters + should form properly separated multipart data + should not escape parameters names + should ignore the name attribute when it's not set + should detect optional (original) content type and filename + should correctly format hex boundary + should form properly separated multipart data + should use standard enctype as default content-type + should not error on close if stream already closed + Base Payload + should reset stream after to_s + streamed payloads + should properly determine the size of other kinds of streaming payloads + should properly determine the size of file payloads + should have a closed? method + +RestClient::AbstractResponse + extract strange cookies + has a nice description + fetches the numeric response code + extracts cookies from response headers + fetches the headers + can access the net http result directly + doesn't escape cookies + #return! + should follow 302 redirect + should raise an error on a redirection after non-GET/HEAD requests + should return the response itself on 200-codes + should gracefully handle 302 redirect with no location header + should raise RequestFailed on unknown codes + .cookie_jar + handles cookies when URI scheme is implicit + extracts cookies into cookie jar + .beautify_headers + leaves set-cookie headers as array + joins multiple header values by comma + beautifies the headers by turning the keys to symbols + beautifies the headers by turning the values to strings instead of one-element arrays + +RestClient::RawResponse + behaves like string + exposes a Tempfile + includes AbstractResponse + +RestClient::Request + rejects cookie values containing invalid characters + transmits the request with Net::HTTP + should still return a response object for 204 No Content responses + uses credentials in the url in preference to netrc + rejects or warns with contradictory cookie options + uses netrc credentials + catches Net::ReadTimeout and raises RestClient's ReadTimeout + processes a successful result + warns when overriding existing headers via payload + class method execute wraps constructor + strips out cookies set for a different domain name + correctly formats cookies provided to the constructor + catches OpenSSL::SSL::SSLError and raise it back without more informative message + determines the Net::HTTP class to instantiate by the method name + doesn't classify successful requests as failed + accept */* mimetype + executes by constructing the Net::HTTP object, headers, and payload and calling transmit + strips the charset from the response content type + catches EOFError and shows the more informative ServerBrokeConnection + catches Errno::ETIMEDOUT and raise the more informative ReadTimeout + assumes default domain and path for cookies set by hash + does not escape or unescape cookies + uses correct error message for OpenTimeout + catches Net::OpenTimeout and raises RestClient's OpenTimeout + IPv6: executes by constructing the Net::HTTP object, headers, and payload and calling transmit + catches Timeout::Error and raise the more informative ReadTimeout + uses correct error message for ReadTimeout + set urlencoded content_type header on hash payloads + rejects cookie names containing invalid characters + does not warn for a normal looking payload + does not warn when overriding user header with header derived from payload if those header values were identical + raw response + should read the response into a binary-mode tempfile + header symbols + converts header symbols from :content_type to 'Content-Type' + converts content-type from extension to real content-type + only convert symbols in header + converts accept from extension(s) to real content-type(s) + converts header values to strings + constructor + should reject valid URIs with no hostname + should reject invalid URIs + block usage + returns what asked to + ssl + should not set the ssl_version if not provided + should not set the ssl_cert_store if it is set falsy + should not set the ssl_ciphers if set to nil + uses SSL when the URI refers to a https address + should default to not having an ssl_ca_file + should not set the ssl_ca_path if it is not provided + should set net.verify_mode to OpenSSL::SSL::VERIFY_NONE if verify_ssl is false + should set the ssl_client_key if provided + should not set the ssl_ca_file if it is not provided + should set the ssl_cert_store if provided + should set the ssl_client_cert if provided + should default to verifying ssl certificates + should set the ssl_ca_file if provided + should default to not having an ssl_client_key + should set net.verify_mode to OpenSSL::SSL::VERIFY_PEER if verify_ssl is true + should default to not having an ssl_ca_path + should set the ssl_ciphers if provided + should set the ssl_verify_callback if passed + should by default set the ssl_cert_store if no CA info is provided + should default to not having an ssl_client_cert + should not set the ssl_client_key if it is not provided + should have expected values for VERIFY_PEER and VERIFY_NONE + should set net.verify_mode to OpenSSL::SSL::VERIFY_PEER if verify_ssl is not given + should not set net.verify_mode to OpenSSL::SSL::VERIFY_NONE if verify_ssl is true + should not set the ssl_verify_callback by default + should set the ssl_version if provided + should set the ssl_ca_path if provided + should not set the ssl_client_cert if it is not provided + should set net.verify_mode to the passed value if verify_ssl is an OpenSSL constant + logging + logs a response with a nil Content-type + logs a response with a nil body + logs to a passed logger, if provided + logs a get request + logs a post request with a small payload + logs a response including the status code, content type, and result body size in bytes + logs input headers as a hash + logs a post request with a large payload + does not log request password + user - password + extracts with escaping the username and password when parsing http://user:password@example.com/ + doesn't overwrite user and password (which may have already been set by the Resource constructor) if there is no user/password in the url + overrides URL user/pass with explicit options + extracts the username and password when parsing http://user:password@example.com/ + uses the username and password from the URL + exception + raises RequestFailed otherwise + raises ResourceNotFound when the response is 404 + raises Unauthorized when the response is 401 + timeout + deprecated: disable timeout by setting it to -1 + sets both timeouts with :timeout + disable timeout by setting it to nil + deprecated: warns when disabling timeout by setting it to -1 + sets read_timeout + does not set timeouts if not specified + supersedes :timeout with open/read_timeout + sets open_timeout + credentials + setup credentials when there's a user + does not attempt to send credentials if Authorization header is set + sets up the credentials prior to the request + does not attempt to send any credentials if user is nil + payloads + should accept string payloads + should accept streaming IO payloads + user headers + merges user headers with the default headers + prefers the user header when the same header exists in the defaults + converts user headers to string before calling CGI::unescape which fails on non string values + .normalize_url + does not add http:// to the front of capital HTTP resources + does not add http:// to the front of capital HTTPS resources + adds http:// to the front of resources specified in the syntax example.com/resource + adds http:// to resources containing a colon + does not add http:// to the front of https resources + raises with invalid URI + process_url_params + should handle complex nested URL params per Rack / Rails conventions + should combine with & when URL params already exist + should handle ParamsArray objects + should handle basic URL params + proxy + overrides global proxy with per-request proxy + creates a proxy class with the correct address if a IPv6 proxy url is given + overrides proxy from environment + creates a non-proxy class if a proxy url is not given + sets proxy on a per-request basis + disables proxy on a per-request basis + creates a proxy class if a proxy url is given + payload + sends nil payloads + accepts nested hashes in payload + passes non-hash payloads straight through + converts a hash payload to urlencoded data + +RestClient + API + PUT + DELETE + PATCH + GET + OPTIONS + HEAD + POST + version + has a version > 2.0.0.alpha, < 3.0 + logging + displays the log to stderr + append the log to the requested filename + displays the log to stdout + uses << if the log is not a string backwards compatibility aliases old names for HTTP 413, 414, 416 - subclasses timeout from RestClient::RequestTimeout, RequestFailed, EWR aliases RestClient::NotFound as ResourceNotFound subclasses NotFound from RequestFailed, ExceptionWithResponse + subclasses timeout from RestClient::RequestTimeout, RequestFailed, EWR Pending: (Failures listed here are expected and do not affect your suite's status) @@ -1365,10 +1401,10 @@ # Temporarily skipped with xit # ./spec/integration/request_spec.rb:17 -Finished in 0.76646 seconds (files took 0.66956 seconds to load) +Finished in 1.73 seconds (files took 1.5 seconds to load) 286 examples, 0 failures, 1 pending -Randomized with seed 48300 +Randomized with seed 2427 ┌──────────────────────────────────────────────────────────────────────────────┐ @@ -1403,12 +1439,14 @@ dpkg-buildpackage: info: binary-only upload (no source included) dpkg-genchanges: info: not including original source code in upload I: copying local configuration +I: user script /srv/workspace/pbuilder/49523/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/49523/tmp/hooks/B01_cleanup finished I: unmounting dev/ptmx filesystem I: unmounting dev/pts filesystem I: unmounting dev/shm filesystem I: unmounting proc filesystem I: unmounting sys filesystem I: cleaning the build env -I: removing directory /srv/workspace/pbuilder/82042 and its subdirectories -I: Current time: Tue Apr 14 15:40:27 -12 2026 -I: pbuilder-time-stamp: 1776224427 +I: removing directory /srv/workspace/pbuilder/49523 and its subdirectories +I: Current time: Thu Mar 13 11:19:04 +14 2025 +I: pbuilder-time-stamp: 1741814344