Diff of the two buildlogs: -- --- b1/build.log 2024-12-03 01:15:15.727989915 +0000 +++ b2/build.log 2024-12-03 01:19:18.408975425 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Mon Dec 2 13:07:11 -12 2024 -I: pbuilder-time-stamp: 1733188031 +I: Current time: Tue Dec 3 15:15:27 +14 2024 +I: pbuilder-time-stamp: 1733188527 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/trixie-reproducible-base.tgz] I: copying local configuration @@ -30,52 +30,84 @@ dpkg-source: info: applying clean_spec_helper.patch I: Not using root during the build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/17942/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/665/tmp/hooks/D01_modify_environment starting +debug: Running on ff64a. +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 Dec 3 01:16 /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/665/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/665/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='armhf' - DEBIAN_FRONTEND='noninteractive' - DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=3 ' - DISTRIBUTION='trixie' - HOME='/root' - HOST_ARCH='armhf' + 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]="32" [3]="1" [4]="release" [5]="arm-unknown-linux-gnueabihf") + BASH_VERSION='5.2.32(1)-release' + BUILDDIR=/build/reproducible-path + BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' + BUILDUSERNAME=pbuilder2 + BUILD_ARCH=armhf + DEBIAN_FRONTEND=noninteractive + DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=6 ' + DIRSTACK=() + DISTRIBUTION=trixie + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=arm + HOST_ARCH=armhf IFS=' ' - INVOCATION_ID='264dab3792bf428293b42be8b6b67aa8' - LANG='C' - LANGUAGE='en_US:en' - LC_ALL='C' - 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='17942' - PS1='# ' - PS2='> ' + INVOCATION_ID=f8a80a97276c4e9bb60dfd93c5b24ad0 + LANG=C + LANGUAGE=it_CH:it + LC_ALL=C + MACHTYPE=arm-unknown-linux-gnueabihf + MAIL=/var/mail/root + OPTERR=1 + OPTIND=1 + OSTYPE=linux-gnueabihf + 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=665 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.CvFiPi1q/pbuilderrc_o35A --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.CvFiPi1q/b1 --logfile b1/build.log ruby-httparty_0.21.0-1.dsc' - SUDO_GID='113' - SUDO_UID='107' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://10.0.0.15:3142/' + 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.CvFiPi1q/pbuilderrc_Fex6 --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.CvFiPi1q/b2 --logfile b2/build.log ruby-httparty_0.21.0-1.dsc' + SUDO_GID=114 + SUDO_UID=109 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://10.0.0.15:3142/ I: uname -a - Linux cbxi4a 6.1.0-23-armmp #1 SMP Debian 6.1.99-1 (2024-07-15) armv7l GNU/Linux + Linux i-capture-the-hostname 6.1.0-28-arm64 #1 SMP Debian 6.1.119-1 (2024-11-22) aarch64 GNU/Linux I: ls -l /bin lrwxrwxrwx 1 root root 7 Aug 4 21:30 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/17942/tmp/hooks/D02_print_environment finished +I: user script /srv/workspace/pbuilder/665/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -272,7 +304,7 @@ Get: 143 http://deb.debian.org/debian trixie/main armhf ruby-rspec-mocks all 3.13.0c0e0m0s1-2 [81.3 kB] Get: 144 http://deb.debian.org/debian trixie/main armhf ruby-rspec all 3.13.0c0e0m0s1-2 [5184 B] Get: 145 http://deb.debian.org/debian trixie/main armhf ruby-webmock all 3.23.1-1 [67.7 kB] -Fetched 42.5 MB in 6s (7282 kB/s) +Fetched 42.5 MB in 2s (20.4 MB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package liblocale-gettext-perl. (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 ... 19683 files and directories currently installed.) @@ -758,8 +790,8 @@ Setting up tzdata (2024b-3) ... Current default time zone: 'Etc/UTC' -Local time is now: Tue Dec 3 01:11:18 UTC 2024. -Universal Time is now: Tue Dec 3 01:11:18 UTC 2024. +Local time is now: Tue Dec 3 01:17:29 UTC 2024. +Universal Time is now: Tue Dec 3 01:17:29 UTC 2024. Run 'dpkg-reconfigure tzdata' if you wish to change it. Setting up autotools-dev (20220109.1) ... @@ -888,7 +920,11 @@ Building tag database... -> Finished parsing the build-deps I: Building the package -I: Running cd /build/reproducible-path/ruby-httparty-0.21.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-httparty_0.21.0-1_source.changes +I: user script /srv/workspace/pbuilder/665/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for trixie +I: user script /srv/workspace/pbuilder/665/tmp/hooks/A99_set_merged_usr finished +hostname: Name or service not known +I: Running cd /build/reproducible-path/ruby-httparty-0.21.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-httparty_0.21.0-1_source.changes dpkg-buildpackage: info: source package ruby-httparty dpkg-buildpackage: info: source version 0.21.0-1 dpkg-buildpackage: info: source distribution unstable @@ -925,7 +961,7 @@ │ ruby-httparty: Installing files and building extensions for ruby3.1 │ └──────────────────────────────────────────────────────────────────────────────┘ -/usr/bin/ruby3.1 -S gem build --config-file /dev/null --verbose /tmp/d20241202-27357-4d8ier/gemspec +/usr/bin/ruby3.1 -S gem build --config-file /dev/null --verbose /tmp/d20241203-15755-auq8cv/gemspec Failed to load /dev/null because it doesn't contain valid YAML hash WARNING: description and summary are identical WARNING: open-ended dependency on multi_xml (>= 0.5.2) is not recommended @@ -939,7 +975,7 @@ Name: httparty Version: 0.21.0 File: httparty-0.21.0.gem -/usr/bin/ruby3.1 -S gem install --config-file /dev/null --verbose --local --verbose --no-document --ignore-dependencies --install-dir debian/ruby-httparty/usr/share/rubygems-integration/all /tmp/d20241202-27357-4d8ier/httparty-0.21.0.gem +/usr/bin/ruby3.1 -S gem install --config-file /dev/null --verbose --local --verbose --no-document --ignore-dependencies --install-dir debian/ruby-httparty/usr/share/rubygems-integration/all /tmp/d20241203-15755-auq8cv/httparty-0.21.0.gem Failed to load /dev/null because it doesn't contain valid YAML hash /build/reproducible-path/ruby-httparty-0.21.0/debian/ruby-httparty/usr/share/rubygems-integration/all/gems/httparty-0.21.0/bin/httparty /build/reproducible-path/ruby-httparty-0.21.0/debian/ruby-httparty/usr/share/rubygems-integration/all/gems/httparty-0.21.0/lib/httparty.rb @@ -1007,541 +1043,112 @@ All examples were filtered out; ignoring {:focus=>true} -Randomized with seed 28864 +Randomized with seed 65121 -HTTParty::Response - responds to hash methods - returns response headers - does raise an error about itself when invoking a method that does not exist - response to request - responds to response - responds to parsed_response - responds to body - responds to anything parsed_response responds to - responds to headers - returns a comma-delimited value when multiple values exist - does raise an error about itself when using #method - should send missing methods to delegate - responds to predicates - allows headers to be accessed by mixed-case names in hash notation - #is_a? - is expected to respond to #is_a? with 1 argument - is expected to be truthy - is expected to be truthy - response is array - should respond to array methods - should equal the string response object body - should display the same as an array - should be able to iterate - semantic methods for response codes - major codes - is information - is server error - is client error - is redirection - is success - for specific codes - responds to method_not_allowed? - responds to partial_content? - responds to no_content? - responds to bad_gateway? - responds to conflict? - responds to moved_permanently? - responds to not_modified? - responds to range_not_satisfiable? - responds to reset_content? - responds to multiple_choices? - responds to continue? - responds to request_entity_too_large? - responds to found? - responds to uri_too_long? - responds to expectation_failed? - responds to request_uri_too_long? - responds to created? - responds to request_time_out? - responds to request_timeout? - responds to length_required? - responds to switch_protocol? - responds to not_found? - responds to precondition_failed? - responds to see_other? - responds to gateway_time_out? - responds to requested_range_not_satisfiable? - responds to not_implemented? - responds to payment_required? - responds to non_authoritative_information? - responds to not_acceptable? - responds to proxy_authentication_required? - responds to version_not_supported? - responds to gone? - responds to forbidden? - responds to unsupported_media_type? - responds to service_unavailable? - responds to bad_request? - responds to accepted? - responds to payload_too_large? - responds to internal_server_error? - responds to temporary_redirect? - responds to use_proxy? - responds to ok? - responds to unauthorized? - responds to multiple_choice? - responds to gateway_timeout? - #inspect - works - headers - does not equal itself when not equivalent - always equals itself - can initialize without headers - does equal a hash - #kind_of? - is expected to respond to #kind_of? with 1 argument - is expected to be truthy - is expected to be truthy - .underscore - works with titlecase - works with one capitalized word - works with all caps - marshalling - is expected to eq 200 - initialization - should set code - should set body - should set the Net::HTTP Response - should set http_version - should set code as an Integer - when raise_on is supplied - and response's status code is in range - throws exception - and response's status code is not in range - does not throw exception - #tap - is possible to tap into a response - -HTTParty - default timeout - should raise an exception if unsupported type provided - should support updating - should default to nil - should support floats - http_proxy - should set the address - should set the proxy user and pass when they are provided - #ensure_method_maintained_across_redirects - should not set maintain_method_across_redirects option if value is present - should set maintain_method_across_redirects option if unspecified - headers - overrides class headers with request headers - should pass options as argument to header block value - uses the class headers when sending a request - should be able to accept block as header value - should be able to be updated - does not modify default_options when no arguments are passed - should default to empty hash - merges class headers with request headers - when posting file - changes content-type headers to multipart/form-data - when headers passed as symbols - converts default headers to string - converts them to string - with cookies - doesnt modify default headers - adds cookies to the headers - adds optional cookies to the optional headers - utilizes the class-level cookies - ciphers - should set the ciphers content - parser - raises UnsupportedFormat when the parser cannot handle the format - does not validate format whe custom parser is a proc - should be able parse response with custom parser - should set parser options - debug_output - stores the given stream as a default_option - stores the $stderr stream by default - .normalize_base_uri - should add http if not present for non ssl requests - should not modify the parameter - should not treat uri's with a port of 4430 as ssl - should add https if not present for ssl requests - should not remove https for ssl requests - ssl_version - should set the ssl_version content - format - does not reset parser to the default parser - should allow json - should not allow funky format - should only print each format once with an exception - should allow plain - should allow csv - sets the default parser - should allow xml - digest http authentication - should work - .disable_rails_query_string_format - sets the query string normalizer to HTTParty::Request::NON_RAILS_QUERY_STRING_NORMALIZER - #maintain_method_across_redirects - sets maintain_method_across_redirects to true by default - sets the maintain_method_across_redirects option to false - basic http authentication - should work - with explicit override of automatic redirect handling - should fail with redirected MKCOL - should fail with redirected HEAD - should fail with redirected GET - should fail with redirected PUT - should fail with redirected OPTIONS - should fail with redirected DELETE - should fail with redirected POST - should fail with redirected COPY - should fail with redirected MOVE - should fail with redirected PATCH - pkcs12 - should set the p12 content - should set the password - base uri - should not modify the parameter during assignment - should have writer - should have reader - connection_adapter - should set the connection_adapter_options when provided - should not set the connection_adapter_options when not provided - should set the connection_adapter - should process a request with a connection from the adapter - default params - should be able to be updated - should default to empty hash - #no_follow - sets the no_follow option to true - sets no_follow to false by default - .raise_on - when parameters is an array - sets raise_on option - when parameters is a fixnum - sets raise_on option - head requests should follow redirects requesting HEAD only - should remain HEAD request across redirects, unless specified otherwise - #resend_on_redirect - sets resend_on_redirect to true by default - sets resend_on_redirect option to false - grand parent with inherited callback - continues running the #inherited on the parent - two child classes inheriting from one parent - works with lambda values - inherits default_cookies from the parent class - doesn't modify the parent's default cookies - doesn't modify hashes in the parent's default options - should dup the proc on the child class - does not modify each others inherited attributes - inherits default_options from the superclass - doesn't modify the parent's default options - pem - should set the password - should set the pem content - should set the password to nil if it's not provided - .follow_redirects - sets follow redirects to true by default - sets the follow_redirects option to false - with multiple class definitions - should not run over each others options - uri_adapter - with custom URI Adaptor - should set the uri_adapter - should process a request with a uri instance parsed from the uri_adapter - should raise an ArgumentError if uri_adapter doesn't implement parse method - with Addressable::URI - handles international domains - cookies - should allow a cookie to be specified with a one-off request - should raise an ArgumentError if passed a non-Hash - should not be in the headers by default - when a cookie is set at the class level - should include that cookie in the request - should pass the proper cookies when requested multiple times - should allow the class defaults to be overridden - in a class with multiple methods that use different cookies - should not allow cookies used in one method to carry over into other methods - #get - should be able parse response type xml automatically - should be able parse response type csv automatically - should return an empty body if stream_body option is turned on -[DEPRECATION] HTTParty will no longer override `response#nil?`. This functionality will be removed in future versions. Please, add explicit check `response.body.nil? || response.body.empty?`. For more info refer to: https://github.com/jnunemaker/httparty/issues/568 -/usr/share/rubygems-integration/all/gems/rspec-expectations-3.13.0/lib/rspec/matchers/built_in/be.rb:69:in `match' - should parse empty response fine - should raise an InvalidURIError on URIs that can't be parsed at all - should accept http URIs - should be able to get chunked html - should be able parse response type json automatically - should be able to get html - should accept https URIs - should not get undefined method add_node for nil class for the following xml - should accept webcal URIs - when streaming body - is expected to eq # - .query_string_normalizer - sets the query_string_normalizer option - -HTTParty::Error - #ancestors - is expected to include StandardError - HTTParty::DuplicateLocationHeader - #ancestors - is expected to include HTTParty::ResponseError - HTTParty::UnsupportedURIScheme - #ancestors - is expected to include HTTParty::Error - HTTParty::UnsupportedFormat - #ancestors - is expected to include HTTParty::Error - HTTParty::ResponseError - #ancestors - is expected to include HTTParty::Error - HTTParty::RedirectionTooDeep - #ancestors - is expected to include HTTParty::ResponseError - -HTTParty::Logger::ApacheFormatter - #format - formats a response in a style that resembles apache's access log - when there is a parsed response - can handle the Content-Length header - -HTTParty::HashConversions - .normalize_param - value is an empty array - creates a params string - value is a string - creates a params string - value is hash - creates a params string - value is an array - creates a params string - .to_params - creates a params string from a hash - nested params - creates a params string from a hash - -HTTParty::Decompressor - #decompress - when encoding is "compress" - when ruby-lzws raises error - is expected to eq nil - when LZW gem not included - behaves like returns nil - is expected to be nil - when ruby-lzws included - is expected to eq "foobar" - when compress-lzw included - is expected to eq "foobar" - when encoding is "br" - when brotli included - is expected to eq "foobar" - when brotli raises error - is expected to eq nil - when brotli gem not included - behaves like returns nil - is expected to be nil - when body is blank - is expected to eq " " - when encoding is blank - behaves like returns the body - is expected to eq "body" - when encoding is nil - behaves like returns the body - is expected to eq "body" - when encoding is "identity" - behaves like returns the body - is expected to eq "body" - when encoding is unsupported - behaves like returns nil - is expected to be nil - when encoding is "zstd" - when zstd-ruby included - is expected to eq "foobar" - when zstd raises error - is expected to eq nil - when zstd-ruby gem not included - behaves like returns nil - is expected to be nil - when body is nil - behaves like returns nil - is expected to be nil - when encoding is "none" - behaves like returns the body - is expected to eq "body" - .SupportedEncodings - returns a hash - -HTTParty::Request - SSL certificate verification - should work when using ssl_ca_file with a certificate authority - should work when using ssl_ca_file with a self-signed CA - should provide the certificate used by the server via peer_cert -# terminated with exception (report_on_exception is true): -/usr/lib/ruby/3.1.0/openssl/ssl.rb:524:in `accept': SSL_accept returned=1 errno=0 peeraddr=(null) state=error: tlsv1 alert unknown ca (OpenSSL::SSL::SSLError) - from /usr/lib/ruby/3.1.0/openssl/ssl.rb:524:in `accept' - from /build/reproducible-path/ruby-httparty-0.21.0/spec/support/ssl_test_server.rb:56:in `thread_main' - from /build/reproducible-path/ruby-httparty-0.21.0/spec/support/ssl_test_server.rb:34:in `block (2 levels) in start' - should fail when using ssl_ca_path and the server uses a bogus hostname - should work when no trusted CA list is specified, even with a bogus hostname, when the verify option is set to true - should work when no trusted CA list is specified, when the verify option is set to false -# terminated with exception (report_on_exception is true): -/usr/lib/ruby/3.1.0/openssl/ssl.rb:524:in `accept': SSL_accept returned=1 errno=0 peeraddr=(null) state=error: tlsv1 alert unknown ca (OpenSSL::SSL::SSLError) - from /usr/lib/ruby/3.1.0/openssl/ssl.rb:524:in `accept' - from /build/reproducible-path/ruby-httparty-0.21.0/spec/support/ssl_test_server.rb:56:in `thread_main' - from /build/reproducible-path/ruby-httparty-0.21.0/spec/support/ssl_test_server.rb:34:in `block (2 levels) in start' - should fail when using ssl_ca_file and the server uses an unrecognized certificate authority -# terminated with exception (report_on_exception is true): -/usr/lib/ruby/3.1.0/openssl/ssl.rb:524:in `accept': SSL_accept returned=1 errno=0 peeraddr=(null) state=error: tlsv1 alert unknown ca (OpenSSL::SSL::SSLError) - from /usr/lib/ruby/3.1.0/openssl/ssl.rb:524:in `accept' - from /build/reproducible-path/ruby-httparty-0.21.0/spec/support/ssl_test_server.rb:56:in `thread_main' - from /build/reproducible-path/ruby-httparty-0.21.0/spec/support/ssl_test_server.rb:34:in `block (2 levels) in start' - should fail when using ssl_ca_path and the server uses an unrecognized certificate authority -# terminated with exception (report_on_exception is true): -/usr/lib/ruby/3.1.0/openssl/ssl.rb:524:in `accept': SSL_accept returned=1 errno=0 peeraddr=(null) state=error: tlsv1 alert unknown ca (OpenSSL::SSL::SSLError) - from /usr/lib/ruby/3.1.0/openssl/ssl.rb:524:in `accept' - from /build/reproducible-path/ruby-httparty-0.21.0/spec/support/ssl_test_server.rb:56:in `thread_main' - from /build/reproducible-path/ruby-httparty-0.21.0/spec/support/ssl_test_server.rb:34:in `block (2 levels) in start' - should fail when no trusted CA list is specified, by default - should work when using ssl_ca_path with a certificate authority -# terminated with exception (report_on_exception is true): -/usr/lib/ruby/3.1.0/openssl/ssl.rb:524:in `accept': SSL_accept returned=1 errno=0 peeraddr=(null) state=error: ssl/tls alert bad certificate (OpenSSL::SSL::SSLError) - from /usr/lib/ruby/3.1.0/openssl/ssl.rb:524:in `accept' - from /build/reproducible-path/ruby-httparty-0.21.0/spec/support/ssl_test_server.rb:56:in `thread_main' - from /build/reproducible-path/ruby-httparty-0.21.0/spec/support/ssl_test_server.rb:34:in `block (2 levels) in start' - should fail when using ssl_ca_file and the server uses a bogus hostname -# terminated with exception (report_on_exception is true): -/usr/lib/ruby/3.1.0/openssl/ssl.rb:524:in `accept': SSL_accept returned=1 errno=0 peeraddr=(null) state=error: tlsv1 alert unknown ca (OpenSSL::SSL::SSLError) - from /usr/lib/ruby/3.1.0/openssl/ssl.rb:524:in `accept' - from /build/reproducible-path/ruby-httparty-0.21.0/spec/support/ssl_test_server.rb:56:in `thread_main' - from /build/reproducible-path/ruby-httparty-0.21.0/spec/support/ssl_test_server.rb:34:in `block (2 levels) in start' - should fail when no trusted CA list is specified, with a bogus hostname, by default - -HTTParty::Logger - .build - defaults level to :info - raises error when formatter exists - builds :custom style logger - builds :logstash style logger - builds :curl style logger - defaults format to :apache - -HTTParty::CookieHash - #add_cookies - with other class - should error - with a hash - should add new key/value pairs to the hash - should overwrite any existing key - with a string - should handle an empty cookie parameter - should overwrite any existing key - should add new key/value pairs to the hash - should handle '=' within cookie value - #to_cookie_string - should format the key/value pairs, delimited by semi-colons - should not mutate the hash - should not include client side only cookies even when attributes use camal case - should not include SameSite attribute - should not include client side only cookies - -HTTParty::Logger::CurlFormatter - #format - formats a response in a style that resembles a -v curl - when response is logged - logs http version and response code - logs headers - logs body - when request is logged - and query is present - logs query params - logs Query - and headers are present - logs Headers - logs headers keys - when request raw_body is present - not logs request body - and request's option 'base_uri' is not present - logs url - and headers are not present - not log Headers - and request's option 'base_uri' is present - logs url - and query is not present - not logs Query +HTTParty::HeadersProcessor + when global and request specific headers are set + returns merged global and request specific headers + when headers are dynamic + returns processed global and request specific headers + when headers are not set at all + returns empty hash + when only global headers are set + returns stringified global headers + when only request specific headers are set + returns stringified request specific headers HTTParty::ConnectionAdapter - initialization - raises an ArgumentError if the uri is nil - also accepts an optional options hash - raises an ArgumentError if the uri is a String - sets the options - sets the uri - takes a URI as input .call calls #connection on the connection adapter generates an HTTParty::ConnectionAdapter instance with the given uri and options #connection the resulting connection is expected to be an instance of Net::HTTP - using port 80 - is expected not to use ssl - when timeout is not set - doesn't set the timeout - when timeout is set and open_timeout is set to 7 seconds - should override the timeout option - #write_timeout - is expected to eq 5 - #read_timeout - is expected to eq 5 + when timeout is not set and open_timeout is set to 7 seconds + should not set the read_timeout + should not set the write_timeout #open_timeout is expected to eq 7 + when debug_output + is not provided + does not set_debug_output + is set to $stderr + has debug output set + when providing PEM certificates + when scheme is not https + has no PEM certificate + when scheme is https + uses the provided PEM certificate + will verify the certificate + when options include verify_peer=false + should not verify the certificate + when options include verify=false + should not verify the certificate when setting max_retries + and max_retries is a string + doesn't set the max_retries to 0 times #max_retries is expected to eq 0 to 5 times #max_retries is expected to eq 5 - and max_retries is a string - doesn't set the max_retries + when timeout is not set and read_timeout is set to 6 seconds + should not set the open_timeout + should not set the write_timeout + #read_timeout + is expected to eq 6 when timeout is set and read_timeout is set to 6 seconds should override the timeout option + #write_timeout + is expected to eq 5 #open_timeout is expected to eq 5 #read_timeout is expected to eq 6 + when timeout is not set and write_timeout is set to 8 seconds + should not set the open timeout + should not set the read timeout + #write_timeout + is expected to eq 8 + when timeout is set and write_timeout is set to 8 seconds + should override the timeout option #write_timeout + is expected to eq 8 + when timeout is set and open_timeout is set to 7 seconds + should override the timeout option + #open_timeout + is expected to eq 7 + #write_timeout + is expected to eq 5 + #read_timeout is expected to eq 5 + when uri port is not defined + falls back to 443 port on https + is expected to equal 443 + falls back to 80 port on http + is expected to equal 80 + when dealing with IPv6 + strips brackets from the address + when providing nil as proxy address + does pass nil proxy parameters to the connection, this forces to not use a proxy + is expected not to be a proxy when not providing a proxy address does not pass any proxy parameters to the connection + using port 80 + is expected not to use ssl + when max_retries is not set + doesn't set the max_retries when setting timeout to 5 seconds - #write_timeout + #read_timeout is expected to eq 5 #open_timeout is expected to eq 5 - #read_timeout + #write_timeout is expected to eq 5 and timeout is a string doesn't set the timeout - when max_retries is not set - doesn't set the max_retries - when providing PKCS12 certificates - when scheme is https - uses the provided P12 certificate - will verify the certificate - when options include verify=false - should not verify the certificate - when options include verify_peer=false - should not verify the certificate - when scheme is not https - has no PKCS12 certificate - when providing a local bind address and port - #local_host - is expected to eq "127.0.0.1" - #local_port - is expected to eq 12345 when providing proxy address and port is expected to be a proxy #proxy_address @@ -1549,158 +1156,352 @@ #proxy_port is expected to eq 8080 as well as proxy user and password - #proxy_pass - is expected to eq "pass" #proxy_user is expected to eq "user" - when debug_output - is set to $stderr - has debug output set - is not provided - does not set_debug_output - when providing PEM certificates - when scheme is https - will verify the certificate - uses the provided PEM certificate - when options include verify=false - should not verify the certificate - when options include verify_peer=false - should not verify the certificate - when scheme is not https - has no PEM certificate - specifying ciphers - should set the ciphers on the connection - when timeout is not set and open_timeout is set to 7 seconds - should not set the write_timeout - should not set the read_timeout - #open_timeout - is expected to eq 7 - when uri port is not defined - falls back to 80 port on http - is expected to equal 80 - falls back to 443 port on https - is expected to equal 443 - when dealing with IPv6 - strips brackets from the address - when timeout is set and write_timeout is set to 8 seconds - should override the timeout option - #write_timeout - is expected to eq 8 - when timeout is not set and write_timeout is set to 8 seconds - should not set the open timeout - should not set the read timeout - #write_timeout - is expected to eq 8 - when timeout is not set and read_timeout is set to 6 seconds - should not set the open_timeout - should not set the write_timeout - #read_timeout - is expected to eq 6 - when providing nil as proxy address - does pass nil proxy parameters to the connection, this forces to not use a proxy - is expected not to be a proxy + #proxy_pass + is expected to eq "pass" when dealing with ssl - using port 443 for ssl - is expected to use ssl - uses the system cert_store, by default - is expected to use cert store # - should use the specified cert store, when one is given - is expected to use cert store # https scheme with default port is expected to use ssl when ssl version is set sets ssl version + uses the system cert_store, by default + is expected to use cert store # https scheme with non-standard port is expected to use ssl + using port 443 for ssl + is expected to use ssl + should use the specified cert store, when one is given + is expected to use cert store # + when timeout is not set + doesn't set the timeout + when providing a local bind address and port + #local_port + is expected to eq 12345 + #local_host + is expected to eq "127.0.0.1" + specifying ciphers + should set the ciphers on the connection + when providing PKCS12 certificates + when scheme is not https + has no PKCS12 certificate + when scheme is https + will verify the certificate + uses the provided P12 certificate + when options include verify=false + should not verify the certificate + when options include verify_peer=false + should not verify the certificate + initialization + takes a URI as input + also accepts an optional options hash + sets the options + raises an ArgumentError if the uri is a String + raises an ArgumentError if the uri is nil + sets the uri HTTParty::Request::Body - #multipart? - when params responds to to_hash - when force_multipart is true - is expected to equal true - when it does not contain a file - is expected to eq false - when it contains file - is expected to equal true - when params does not respond to to_hash - is expected to equal false #call - when params is string - is expected to eq "name=Bob%20Jones" when params is hash is expected to eq "people%5B%5D=Bob%20Jones&people%5B%5D=Mike%20Smith" when params has file is expected not to change `file.pos` is expected to eq "--------------------------c772861a5109d5ef\r\nContent-Disposition: form-data; name=\"user[avatar]\";...: form-data; name=\"user[enabled]\"\r\n\r\ntrue\r\n--------------------------c772861a5109d5ef--\r\n" - when file name contains [ " \r \n ] - is expected to eq "--------------------------c772861a5109d5ef\r\nContent-Disposition: form-data; name=\"user[attachment...: form-data; name=\"user[enabled]\"\r\n\r\ntrue\r\n--------------------------c772861a5109d5ef--\r\n" when passing multipart as an option is expected to eq "--------------------------c772861a5109d5ef\r\nContent-Disposition: form-data; name=\"user[first_name...: form-data; name=\"user[enabled]\"\r\n\r\ntrue\r\n--------------------------c772861a5109d5ef--\r\n" file object responds to original_filename is expected to eq "--------------------------c772861a5109d5ef\r\nContent-Disposition: form-data; name=\"user[avatar]\";...: form-data; name=\"user[enabled]\"\r\n\r\ntrue\r\n--------------------------c772861a5109d5ef--\r\n" + when file name contains [ " \r \n ] + is expected to eq "--------------------------c772861a5109d5ef\r\nContent-Disposition: form-data; name=\"user[attachment...: form-data; name=\"user[enabled]\"\r\n\r\ntrue\r\n--------------------------c772861a5109d5ef--\r\n" + when params is string + is expected to eq "name=Bob%20Jones" + #multipart? + when params responds to to_hash + when it does not contain a file + is expected to eq false + when it contains file + is expected to equal true + when force_multipart is true + is expected to equal true + when params does not respond to to_hash + is expected to equal false + +HTTParty::Parser + .SupportedFormats + returns a hash + .call + generates an HTTParty::Parser instance with the given body and format + calls #parse on the parser + #parse_supported_format + calls the parser for the given format + when a parsing method does not exist for the given format + raises a useful exception message for subclasses + raises an exception + #supports_format? + utilizes the class method to determine if the format is supported + .formats + returns the SupportedFormats constant + returns the SupportedFormats constant for subclasses + .format_from_mimetype + returns a symbol representing the format mimetype + returns nil when the mimetype is not supported + .supported_formats + returns a unique set of supported formats represented by symbols + #parse + returns nil for a nil body + does not raise exceptions for bodies with invalid encodings + returns nil for a 'null' body + returns nil for an empty body + returns nil for a body with spaces only + parses frozen strings + attempts to parse supported formats + parses ascii 8bit encoding + ignores utf-8 bom + returns the unparsed body when the format is unsupported + .supports_format? + returns true for a supported format + returns false for an unsupported format + parsers + parses xml with MultiXml + parses plain text by simply returning the body + parses html by simply returning the body + parses json with JSON + parses csv with CSV + +HTTParty::HashConversions + .to_params + creates a params string from a hash + nested params + creates a params string from a hash + .normalize_param + value is an empty array + creates a params string + value is a string + creates a params string + value is hash + creates a params string + value is an array + creates a params string + +HTTParty::Logger::LogstashFormatter + #format + formats a response to be compatible with Logstash + +HTTParty::Decompressor + #decompress + when encoding is nil + behaves like returns the body + is expected to eq "body" + when encoding is "compress" + when ruby-lzws raises error + is expected to eq nil + when LZW gem not included + behaves like returns nil + is expected to be nil + when compress-lzw included + is expected to eq "foobar" + when ruby-lzws included + is expected to eq "foobar" + when body is nil + behaves like returns nil + is expected to be nil + when body is blank + is expected to eq " " + when encoding is unsupported + behaves like returns nil + is expected to be nil + when encoding is blank + behaves like returns the body + is expected to eq "body" + when encoding is "zstd" + when zstd raises error + is expected to eq nil + when zstd-ruby included + is expected to eq "foobar" + when zstd-ruby gem not included + behaves like returns nil + is expected to be nil + when encoding is "none" + behaves like returns the body + is expected to eq "body" + when encoding is "br" + when brotli gem not included + behaves like returns nil + is expected to be nil + when brotli included + is expected to eq "foobar" + when brotli raises error + is expected to eq nil + when encoding is "identity" + behaves like returns the body + is expected to eq "body" + .SupportedEncodings + returns a hash + +HTTParty::Logger + .build + builds :curl style logger + builds :logstash style logger + defaults level to :info + defaults format to :apache + raises error when formatter exists + builds :custom style logger Net::HTTPHeader::DigestAuthenticator - without an opaque valid in the response header - should not set opaque - without a cookie value in the response header - should set empty cookie header array - with a cookie value in the response header - should set cookie header with specified quality of protection (qop) - should set username - should set qop should set prefix - should set cnonce - should set response should set digest-uri + should set username + should set response + should set qop should set nonce-count - with an opaque value in the response header - should set opaque - with md5-sess algorithm specified + should set cnonce + Net::HTTPHeader#digest_auth + should set the authorization header + without a cookie value in the response header + should set empty cookie header array + with http basic auth response when net digest auth expected + should not fail + with algorithm specified should set the algorithm header should recognise algorithm was specified + with md5-sess algorithm specified + should set the algorithm header should set response using md5-sess algorithm + should recognise algorithm was specified with unspecified quality of protection (qop) + should not set nonce-count + should set prefix should not set cnonce + should set digest-uri + should set response should not set qop + should set username + with multiple authenticate headers should set response + should set qop should set prefix - should not set nonce-count should set digest-uri should set username + should set cnonce + should set nonce-count + without an opaque valid in the response header + should not set opaque + with a cookie value in the response header + should set cookie header when quality of protection (qop) is unquoted should still set qop - with http basic auth response when net digest auth expected - should not fail - with algorithm specified - should recognise algorithm was specified - should set the algorithm header - Net::HTTPHeader#digest_auth - should set the authorization header - with multiple authenticate headers - should set digest-uri - should set nonce-count - should set prefix - should set cnonce - should set username - should set qop - should set response - -HTTParty::HeadersProcessor - when only request specific headers are set - returns stringified request specific headers - when headers are dynamic - returns processed global and request specific headers - when headers are not set at all - returns empty hash - when global and request specific headers are set - returns merged global and request specific headers - when only global headers are set - returns stringified global headers + with an opaque value in the response header + should set opaque -HTTParty::ResponseFragment - has access to delegators - access to fragment +HTTParty::Response + responds to parsed_response + allows headers to be accessed by mixed-case names in hash notation + responds to response + responds to anything parsed_response responds to + responds to hash methods + response to request + returns response headers + does raise an error about itself when invoking a method that does not exist + does raise an error about itself when using #method + responds to body + returns a comma-delimited value when multiple values exist + should send missing methods to delegate + responds to headers + responds to predicates + #kind_of? + is expected to be truthy + is expected to respond to #kind_of? with 1 argument + is expected to be truthy + response is array + should respond to array methods + should be able to iterate + should equal the string response object body + should display the same as an array + #tap + is possible to tap into a response + marshalling + is expected to eq 200 + headers + does not equal itself when not equivalent + can initialize without headers + always equals itself + does equal a hash + semantic methods for response codes + major codes + is client error + is server error + is redirection + is success + is information + for specific codes + responds to uri_too_long? + responds to proxy_authentication_required? + responds to partial_content? + responds to temporary_redirect? + responds to non_authoritative_information? + responds to forbidden? + responds to moved_permanently? + responds to gateway_time_out? + responds to request_timeout? + responds to created? + responds to continue? + responds to request_uri_too_long? + responds to method_not_allowed? + responds to requested_range_not_satisfiable? + responds to internal_server_error? + responds to length_required? + responds to switch_protocol? + responds to unsupported_media_type? + responds to not_found? + responds to reset_content? + responds to see_other? + responds to multiple_choices? + responds to conflict? + responds to payment_required? + responds to ok? + responds to bad_gateway? + responds to payload_too_large? + responds to bad_request? + responds to no_content? + responds to request_entity_too_large? + responds to range_not_satisfiable? + responds to found? + responds to multiple_choice? + responds to accepted? + responds to precondition_failed? + responds to use_proxy? + responds to gone? + responds to not_acceptable? + responds to expectation_failed? + responds to version_not_supported? + responds to service_unavailable? + responds to gateway_timeout? + responds to request_time_out? + responds to not_modified? + responds to not_implemented? + responds to unauthorized? + #inspect + works + .underscore + works with one capitalized word + works with titlecase + works with all caps + initialization + should set code as an Integer + should set body + should set the Net::HTTP Response + should set code + should set http_version + when raise_on is supplied + and response's status code is in range + throws exception + and response's status code is not in range + does not throw exception + #is_a? + is expected to be truthy + is expected to be truthy + is expected to respond to #is_a? with 1 argument HTTParty::Request should not fail for missing mime type @@ -1710,159 +1511,131 @@ /usr/share/rubygems-integration/all/gems/rspec-expectations-3.13.0/lib/rspec/matchers/built_in/be.rb:69:in `match' should not attempt to parse empty responses a request that 302 redirects - infinitely - should raise an exception once + should keep track of cookies between redirects + should log the redirection + should be handled by DELETE transparently should be handled by PUT transparently - should be handled by OPTIONS transparently - should be handled by LOCK transparently - should not make resulting request a get request if options[:maintain_method_across_redirects] is true - should be handled by MOVE transparently - should be handled by GET transparently + should update cookies with redirects should be handled by MKCOL transparently - should make resulting request a get request if it not already should be handled by COPY transparently - should be handled by DELETE transparently - should be handled by HEAD transparently - should be handled by PATCH transparently - should log the redirection - should be handled by POST transparently - should keep track of cookies between redirects - should update cookies with redirects - should handle multiple Set-Cookie headers between redirects - should be handled by UNLOCK transparently should keep cookies between redirects - initialization - sets connection_adapter to the optional connection_adapter - sets parser to HTTParty::Parser - sets parser to the optional parser - sets connection_adapter to HTTParty::ConnectionAdapter - when basic authentication credentials provided in uri - when basic auth options wasn't set explicitly - sets basic auth from uri - when basic auth options was set explicitly - uses basic auth from url anyway - when using a query string - and it has an empty array - sets correct query string - when sending an array with only one element - sets correct query - a request that 300 redirects - once - should be handled by LOCK transparently - should be handled by UNLOCK transparently - should be handled by POST transparently + should handle multiple Set-Cookie headers between redirects + should make resulting request a get request if it not already should be handled by PATCH transparently should be handled by OPTIONS transparently - should update cookies with redirects - should be handled by MKCOL transparently - should be handled by DELETE transparently + should be handled by UNLOCK transparently + should be handled by POST transparently + should be handled by GET transparently should be handled by MOVE transparently + should be handled by LOCK transparently should be handled by HEAD transparently - should handle multiple Set-Cookie headers between redirects should not make resulting request a get request if options[:maintain_method_across_redirects] is true - should be handled by COPY transparently - should keep track of cookies between redirects - should log the redirection - should be handled by PUT transparently - should make resulting request a get request if it not already - should keep cookies between redirects - should be handled by GET transparently infinitely should raise an exception - with POST http method - should raise argument error if query is not a hash - #setup_raw_request - when multipart - when mulipart option is provided - sets header Content-Type: multipart/form-data; boundary= - when body contains file - sets header Content-Type: multipart/form-data; boundary= - and header Content-Type is provided - overwrites the header to: multipart/form-data; boundary= - when query_string_normalizer is set - sets the body to the return value of the proc - marshalling - properly marshals the request object - a request that 308 redirects + a request that 303 redirects infinitely should raise an exception once - should be handled by COPY transparently - should handle multiple Set-Cookie headers between redirects - should maintain method in resulting request if options[:maintain_method_across_redirects] is true + should update cookies with redirects + should not make resulting request a get request if options[:maintain_method_across_redirects] and options[:resend_on_redirect] is true + should be handled by DELETE transparently + should be handled by PUT transparently should keep cookies between redirects - should be handled by HEAD transparently - should be handled by MKCOL transparently - should maintain method in resulting request if options[:maintain_method_across_redirects] is false + should be handled by COPY transparently should be handled by GET transparently + should be handled by UNLOCK transparently + should be handled by PATCH transparently + should be handled by LOCK transparently + should make resulting request a get request if it not already should be handled by POST transparently should log the redirection - should be handled by DELETE transparently - should update cookies with redirects - should be handled by UNLOCK transparently - should maintain method in resulting request + should be handled by MOVE transparently should keep track of cookies between redirects - should be handled by LOCK transparently - should be handled by PUT transparently + should make resulting request a get request if options[:maintain_method_across_redirects] is false + should make resulting request a get request if options[:maintain_method_across_redirects] is true but options[:resend_on_redirect] is false + should handle multiple Set-Cookie headers between redirects + should be handled by HEAD transparently should be handled by OPTIONS transparently - should be handled by PATCH transparently - should be handled by MOVE transparently - a request that 307 redirects + should be handled by MKCOL transparently + #format + request yet to be made + returns nil format + returns format option + request has been made + returns the content-type from the last response when the option is not set + returns format option + a request that returns 304 + should be handled by LOCK transparently + should report 304 with a PUT request + should report 304 with a DELETE request + should be handled by UNLOCK transparently + should report 304 with a MKCOL request + should report 304 with a COPY request + should report 304 with a OPTIONS request + should not log the redirection + should report 304 with a PATCH request + should report 304 with a MOVE request + should report 304 with a HEAD request + should report 304 with a GET request + should report 304 with a POST request + with POST http method + should raise argument error if query is not a hash + a request that 305 redirects infinitely should raise an exception once - should keep track of cookies between redirects - should maintain method in resulting request if options[:maintain_method_across_redirects] is false - should handle multiple Set-Cookie headers between redirects - should be handled by OPTIONS transparently - should update cookies with redirects - should maintain method in resulting request + should be handled by UNLOCK transparently + should be handled by LOCK transparently should be handled by POST transparently - should be handled by MOVE transparently + should be handled by OPTIONS transparently should keep cookies between redirects should be handled by COPY transparently - should be handled by GET transparently - should be handled by LOCK transparently - should be handled by HEAD transparently - should be handled by UNLOCK transparently - should log the redirection + should be handled by DELETE transparently + should be handled by MKCOL transparently should be handled by PUT transparently - should maintain method in resulting request if options[:maintain_method_across_redirects] is true + should be handled by MOVE transparently + should keep track of cookies between redirects + should not make resulting request a get request if options[:maintain_method_across_redirects] is true + should log the redirection + should make resulting request a get request if it not already + should handle multiple Set-Cookie headers between redirects should be handled by PATCH transparently - should be handled by MKCOL transparently - should be handled by DELETE transparently + should update cookies with redirects + should be handled by HEAD transparently + should be handled by GET transparently + ::JSON_API_QUERY_STRING_NORMALIZER + doesn't modify strings + when the query is an array + doesn't include brackets + URI encodes array values + when the query is a hash + correctly handles nil values + argument validation + should raise argument error if basic_auth and digest_auth are both present + should raise argument error if basic_auth is not a hash + should raise argument error if http method is post and query is not hash + should raise argument error if options method is not http accepted method + should raise RedirectionTooDeep error if limit is negative + should raise argument error if digest_auth is not a hash + should raise argument error if headers is not a hash + ::NON_RAILS_QUERY_STRING_NORMALIZER + doesn't modify strings + when the query is a hash + correctly handles nil values + when the query is an array + doesn't include brackets + URI encodes array values Net::HTTP decompression - with skip_decompression true - with Accept-Encoding specified - behaves like sets custom Accept-Encoding - is expected to eq "custom" - behaves like disables Net::HTTP decompression - is expected to eq false + with skip_decompression false (default) with other headers specified - behaves like disables Net::HTTP decompression - is expected to eq false + behaves like enables Net::HTTP decompression + is expected to eq true behaves like sets default Accept-Encoding is expected to eq "gzip;q=1.0,deflate;q=0.6,identity;q=0.3" - with accept-encoding (lowercase) specified - behaves like disables Net::HTTP decompression - is expected to eq false - behaves like sets custom Accept-Encoding - is expected to eq "custom" with no headers specified - behaves like disables Net::HTTP decompression - is expected to eq false behaves like sets default Accept-Encoding is expected to eq "gzip;q=1.0,deflate;q=0.6,identity;q=0.3" - with Accept-Encoding and other headers specified - behaves like disables Net::HTTP decompression - is expected to eq false - behaves like sets custom Accept-Encoding - is expected to eq "custom" - with skip_decompression false (default) - with Accept-Encoding and other headers specified - behaves like sets custom Accept-Encoding - is expected to eq "custom" behaves like enables Net::HTTP decompression is expected to eq true with accept-encoding (lowercase) specified @@ -1870,269 +1643,532 @@ is expected to eq true behaves like sets custom Accept-Encoding is expected to eq "custom" - with no headers specified + with Accept-Encoding specified behaves like enables Net::HTTP decompression is expected to eq true - behaves like sets default Accept-Encoding - is expected to eq "gzip;q=1.0,deflate;q=0.6,identity;q=0.3" - with Accept-Encoding specified + behaves like sets custom Accept-Encoding + is expected to eq "custom" + with Accept-Encoding and other headers specified behaves like sets custom Accept-Encoding is expected to eq "custom" behaves like enables Net::HTTP decompression is expected to eq true + with skip_decompression true + with Accept-Encoding specified + behaves like sets custom Accept-Encoding + is expected to eq "custom" + behaves like disables Net::HTTP decompression + is expected to eq false with other headers specified - behaves like enables Net::HTTP decompression - is expected to eq true behaves like sets default Accept-Encoding is expected to eq "gzip;q=1.0,deflate;q=0.6,identity;q=0.3" - parsing responses - should include any HTTP headers in the returned response - should handle csv automatically - should process utf-16 charset with big endian bom correctly - should handle utf-8 bom in json - should assume utf-16 little endian if options has been chosen - should handle xml automatically - should perform no encoding if the content type is specified but no charset is specified - should handle json automatically - should handle utf-8 bom in xml - should perform no encoding if the charset is not available - should process response with a nil body - when assume_utf16_is_big_endian is true - processes stubbed frozen body correctly - should process utf-16 charset with little endian bom correctly - with non-200 responses - parses response lazily so codes can be checked prior - should return a valid object for 5xx response - should return a valid object for 4xx response - 3xx responses - redirects if a 300 contains a relative location header - calls block given to perform with each redirect (PENDING: Temporarily skipped with xit) - redirects including port - raises an error if redirect has duplicate location header - redirects if a 300 contains a location header -[DEPRECATION] HTTParty will no longer override `response#nil?`. This functionality will be removed in future versions. Please, add explicit check `response.body.nil? || response.body.empty?`. For more info refer to: https://github.com/jnunemaker/httparty/issues/568 -/usr/share/rubygems-integration/all/gems/rspec-expectations-3.13.0/lib/rspec/matchers/built_in/be.rb:69:in `match' - returns a valid object for 304 not modified - returns the HTTParty::Response when the 300 does not contain a location header - handles multiple redirects and relative location headers on different hosts - when body has ascii-8bit encoding - processes charset in content type properly - processes quoted charset in content type properly - processes charset in content type properly if it has a different case - when stubed body is frozen - processes frozen body correctly - decompression - should decompress the body and remove the Content-Encoding header - should not decompress the body if the :skip_decompression option is set - should not decompress unrecognized Content-Encoding - should remove the Content-Encoding header if uncompressed - options - should use basic auth when configured - should use body_stream when configured - should normalize base uri when specified as request option - digest_auth - should be used when configured and the response is 401 - should not send credentials more than once - should maintain cookies returned from a 401 response - should merge cookies from request and a 401 response - should not be used when configured and the response is 200 - a request that 305 redirects - infinitely - should raise an exception + behaves like disables Net::HTTP decompression + is expected to eq false + with Accept-Encoding and other headers specified + behaves like sets custom Accept-Encoding + is expected to eq "custom" + behaves like disables Net::HTTP decompression + is expected to eq false + with no headers specified + behaves like sets default Accept-Encoding + is expected to eq "gzip;q=1.0,deflate;q=0.6,identity;q=0.3" + behaves like disables Net::HTTP decompression + is expected to eq false + with accept-encoding (lowercase) specified + behaves like sets custom Accept-Encoding + is expected to eq "custom" + behaves like disables Net::HTTP decompression + is expected to eq false + #send_authorization_header? + basic_auth + should send Authorization header when redirecting to a relative path + should send Authorization header when redirecting to the same host + should not send Authorization header when redirecting to a different host + should send Authorization header when redirecting to a different port on the same host + a request that 307 redirects once + should log the redirection + should be handled by GET transparently + should update cookies with redirects + should be handled by PUT transparently should be handled by PATCH transparently - should be handled by MKCOL transparently + should handle multiple Set-Cookie headers between redirects + should be handled by DELETE transparently + should maintain method in resulting request should be handled by COPY transparently - should be handled by OPTIONS transparently - should be handled by PUT transparently - should make resulting request a get request if it not already should be handled by LOCK transparently - should log the redirection should keep track of cookies between redirects + should maintain method in resulting request if options[:maintain_method_across_redirects] is true + should be handled by UNLOCK transparently + should be handled by MKCOL transparently should keep cookies between redirects - should be handled by GET transparently - should be handled by DELETE transparently + should maintain method in resulting request if options[:maintain_method_across_redirects] is false + should be handled by POST transparently + should be handled by HEAD transparently should be handled by MOVE transparently + should be handled by OPTIONS transparently + infinitely + should raise an exception + #uri + redirects + returns correct path when the server sets the location header to a network-path reference + returns correct path when the server sets the location header to a filename + returns correct path when the server sets the location header to a full uri + location header is an absolute path + returns correct path when location has leading slash + returns the correct path when location has no leading slash + query strings + respects the query string normalization proc + does not duplicate query string parameters when uri is called twice + does not add an empty query string when default_params are blank + does not append an ampersand when queries are embedded in paths + when representing an array + returns a Rails style query string + a request that 301 redirects + infinitely + should raise an exception + once + should be handled by PUT transparently + should keep track of cookies between redirects + should make resulting request a get request if it not already + should be handled by OPTIONS transparently should be handled by UNLOCK transparently + should keep cookies between redirects + should be handled by DELETE transparently + should not make resulting request a get request if options[:maintain_method_across_redirects] is true should handle multiple Set-Cookie headers between redirects should be handled by HEAD transparently - should update cookies with redirects + should log the redirection + should be handled by PATCH transparently + should be handled by GET transparently + should be handled by MKCOL transparently should be handled by POST transparently - should not make resulting request a get request if options[:maintain_method_across_redirects] is true + should update cookies with redirects + should be handled by MOVE transparently + should be handled by LOCK transparently + should be handled by COPY transparently + marshalling + properly marshals the request object http should get a connection from the connection_adapter - a request that returns 304 - should be handled by UNLOCK transparently - should report 304 with a HEAD request - should report 304 with a PUT request - should report 304 with a POST request - should report 304 with a PATCH request - should report 304 with a MKCOL request - should report 304 with a COPY request - should report 304 with a DELETE request - should not log the redirection - should report 304 with a GET request - should report 304 with a OPTIONS request - should report 304 with a MOVE request - should be handled by LOCK transparently - #send_authorization_header? - basic_auth - should send Authorization header when redirecting to a different port on the same host - should send Authorization header when redirecting to the same host - should not send Authorization header when redirecting to a different host - should send Authorization header when redirecting to a relative path - ::NON_RAILS_QUERY_STRING_NORMALIZER - doesn't modify strings - when the query is a hash - correctly handles nil values - when the query is an array - doesn't include brackets - URI encodes array values - ::JSON_API_QUERY_STRING_NORMALIZER - doesn't modify strings - when the query is an array - URI encodes array values - doesn't include brackets - when the query is a hash - correctly handles nil values - a request that 301 redirects + options + should use basic auth when configured + should normalize base uri when specified as request option + should use body_stream when configured + digest_auth + should not be used when configured and the response is 200 + should maintain cookies returned from a 401 response + should not send credentials more than once + should be used when configured and the response is 401 + should merge cookies from request and a 401 response + a request that 308 redirects once - should be handled by OPTIONS transparently - should not make resulting request a get request if options[:maintain_method_across_redirects] is true - should be handled by DELETE transparently should be handled by PUT transparently - should be handled by LOCK transparently - should be handled by UNLOCK transparently - should be handled by MKCOL transparently - should update cookies with redirects - should make resulting request a get request if it not already - should keep cookies between redirects - should be handled by PATCH transparently - should keep track of cookies between redirects should log the redirection + should keep track of cookies between redirects + should maintain method in resulting request + should be handled by PATCH transparently + should be handled by DELETE transparently should be handled by MOVE transparently - should be handled by COPY transparently + should maintain method in resulting request if options[:maintain_method_across_redirects] is true + should keep cookies between redirects should handle multiple Set-Cookie headers between redirects - should be handled by HEAD transparently should be handled by GET transparently + should be handled by OPTIONS transparently + should be handled by LOCK transparently + should be handled by HEAD transparently + should be handled by MKCOL transparently + should maintain method in resulting request if options[:maintain_method_across_redirects] is false + should be handled by UNLOCK transparently + should update cookies with redirects should be handled by POST transparently + should be handled by COPY transparently infinitely should raise an exception - #format - request yet to be made - returns format option - returns nil format - request has been made - returns the content-type from the last response when the option is not set - returns format option - #format_from_mimetype - should handle application/csv - should handle application/json - should handle application/javascript - returns nil when using a default parser - should handle text/javascript - should handle application/hal+json - should handle text/json - returns nil for an unrecognized mimetype - should handle text/csv - should handle application/vnd.api+json - should handle text/xml - should handle application/xml - should handle text/comma-separated-values - a request that 303 redirects + #setup_raw_request + when query_string_normalizer is set + sets the body to the return value of the proc + when multipart + when body contains file + sets header Content-Type: multipart/form-data; boundary= + and header Content-Type is provided + overwrites the header to: multipart/form-data; boundary= + when mulipart option is provided + sets header Content-Type: multipart/form-data; boundary= + initialization + sets parser to the optional parser + sets connection_adapter to the optional connection_adapter + sets parser to HTTParty::Parser + sets connection_adapter to HTTParty::ConnectionAdapter + when using a query string + and it has an empty array + sets correct query string + when sending an array with only one element + sets correct query + when basic authentication credentials provided in uri + when basic auth options was set explicitly + uses basic auth from url anyway + when basic auth options wasn't set explicitly + sets basic auth from uri + a request that 300 redirects once - should be handled by MKCOL transparently + should keep track of cookies between redirects should be handled by GET transparently - should handle multiple Set-Cookie headers between redirects - should be handled by LOCK transparently - should update cookies with redirects - should make resulting request a get request if options[:maintain_method_across_redirects] is false should be handled by DELETE transparently - should keep track of cookies between redirects - should be handled by HEAD transparently should be handled by PATCH transparently - should be handled by UNLOCK transparently - should be handled by COPY transparently - should keep cookies between redirects - should make resulting request a get request if options[:maintain_method_across_redirects] is true but options[:resend_on_redirect] is false - should not make resulting request a get request if options[:maintain_method_across_redirects] and options[:resend_on_redirect] is true - should log the redirection + should not make resulting request a get request if options[:maintain_method_across_redirects] is true + should be handled by MKCOL transparently + should handle multiple Set-Cookie headers between redirects should be handled by PUT transparently + should be handled by OPTIONS transparently + should update cookies with redirects should make resulting request a get request if it not already - should be handled by MOVE transparently + should be handled by LOCK transparently + should be handled by UNLOCK transparently + should log the redirection + should be handled by HEAD transparently should be handled by POST transparently - should be handled by OPTIONS transparently + should keep cookies between redirects + should be handled by COPY transparently + should be handled by MOVE transparently infinitely should raise an exception - #uri - redirects - returns correct path when the server sets the location header to a network-path reference - returns correct path when the server sets the location header to a full uri - returns correct path when the server sets the location header to a filename - location header is an absolute path - returns correct path when location has leading slash - returns the correct path when location has no leading slash - query strings - does not add an empty query string when default_params are blank - does not append an ampersand when queries are embedded in paths - does not duplicate query string parameters when uri is called twice - respects the query string normalization proc - when representing an array - returns a Rails style query string - argument validation - should raise argument error if digest_auth is not a hash - should raise argument error if basic_auth is not a hash - should raise argument error if basic_auth and digest_auth are both present - should raise argument error if headers is not a hash - should raise RedirectionTooDeep error if limit is negative - should raise argument error if options method is not http accepted method - should raise argument error if http method is post and query is not hash + parsing responses + should handle csv automatically + should perform no encoding if the charset is not available + should handle json automatically + should handle xml automatically + should process response with a nil body + should assume utf-16 little endian if options has been chosen + should handle utf-8 bom in xml + should perform no encoding if the content type is specified but no charset is specified + should include any HTTP headers in the returned response + should handle utf-8 bom in json + should process utf-16 charset with big endian bom correctly + with non-200 responses + parses response lazily so codes can be checked prior + should return a valid object for 4xx response + should return a valid object for 5xx response + 3xx responses + redirects including port + calls block given to perform with each redirect (PENDING: Temporarily skipped with xit) + raises an error if redirect has duplicate location header + returns the HTTParty::Response when the 300 does not contain a location header + redirects if a 300 contains a location header + handles multiple redirects and relative location headers on different hosts + redirects if a 300 contains a relative location header +[DEPRECATION] HTTParty will no longer override `response#nil?`. This functionality will be removed in future versions. Please, add explicit check `response.body.nil? || response.body.empty?`. For more info refer to: https://github.com/jnunemaker/httparty/issues/568 +/usr/share/rubygems-integration/all/gems/rspec-expectations-3.13.0/lib/rspec/matchers/built_in/be.rb:69:in `match' + returns a valid object for 304 not modified + decompression + should not decompress the body if the :skip_decompression option is set + should remove the Content-Encoding header if uncompressed + should not decompress unrecognized Content-Encoding + should decompress the body and remove the Content-Encoding header + when body has ascii-8bit encoding + processes charset in content type properly + processes quoted charset in content type properly + processes charset in content type properly if it has a different case + when stubed body is frozen + processes frozen body correctly + when assume_utf16_is_big_endian is true + processes stubbed frozen body correctly + should process utf-16 charset with little endian bom correctly + #format_from_mimetype + should handle application/json + should handle text/csv + should handle text/javascript + should handle application/xml + returns nil when using a default parser + should handle application/javascript + should handle text/xml + should handle text/comma-separated-values + should handle application/vnd.api+json + should handle application/hal+json + should handle application/csv + returns nil for an unrecognized mimetype + should handle text/json -HTTParty::Parser - #parse_supported_format - calls the parser for the given format - when a parsing method does not exist for the given format - raises a useful exception message for subclasses - raises an exception - .SupportedFormats - returns a hash - .call - generates an HTTParty::Parser instance with the given body and format - calls #parse on the parser - .formats - returns the SupportedFormats constant for subclasses - returns the SupportedFormats constant - #parse - ignores utf-8 bom - parses ascii 8bit encoding - returns nil for an empty body - does not raise exceptions for bodies with invalid encodings - returns nil for a 'null' body - parses frozen strings - attempts to parse supported formats - returns nil for a nil body - returns nil for a body with spaces only - returns the unparsed body when the format is unsupported - #supports_format? - utilizes the class method to determine if the format is supported - parsers - parses html by simply returning the body - parses plain text by simply returning the body - parses csv with CSV - parses xml with MultiXml - parses json with JSON - .supports_format? - returns false for an unsupported format - returns true for a supported format - .supported_formats - returns a unique set of supported formats represented by symbols - .format_from_mimetype - returns a symbol representing the format mimetype - returns nil when the mimetype is not supported +HTTParty + #get + should be able parse response type csv automatically + should accept https URIs + should be able to get html +[DEPRECATION] HTTParty will no longer override `response#nil?`. This functionality will be removed in future versions. Please, add explicit check `response.body.nil? || response.body.empty?`. For more info refer to: https://github.com/jnunemaker/httparty/issues/568 +/usr/share/rubygems-integration/all/gems/rspec-expectations-3.13.0/lib/rspec/matchers/built_in/be.rb:69:in `match' + should parse empty response fine + should be able parse response type xml automatically + should raise an InvalidURIError on URIs that can't be parsed at all + should accept http URIs + should accept webcal URIs + should not get undefined method add_node for nil class for the following xml + should be able to get chunked html + should return an empty body if stream_body option is turned on + should be able parse response type json automatically + when streaming body + is expected to eq # + .follow_redirects + sets the follow_redirects option to false + sets follow redirects to true by default + #resend_on_redirect + sets resend_on_redirect to true by default + sets resend_on_redirect option to false + basic http authentication + should work + grand parent with inherited callback + continues running the #inherited on the parent + #maintain_method_across_redirects + sets the maintain_method_across_redirects option to false + sets maintain_method_across_redirects to true by default + connection_adapter + should set the connection_adapter_options when provided + should not set the connection_adapter_options when not provided + should set the connection_adapter + should process a request with a connection from the adapter + parser + raises UnsupportedFormat when the parser cannot handle the format + does not validate format whe custom parser is a proc + should be able parse response with custom parser + should set parser options + .raise_on + when parameters is an array + sets raise_on option + when parameters is a fixnum + sets raise_on option + default timeout + should default to nil + should support updating + should raise an exception if unsupported type provided + should support floats + pkcs12 + should set the p12 content + should set the password + pem + should set the pem content + should set the password + should set the password to nil if it's not provided + base uri + should have writer + should not modify the parameter during assignment + should have reader + debug_output + stores the given stream as a default_option + stores the $stderr stream by default + digest http authentication + should work + .normalize_base_uri + should not remove https for ssl requests + should add https if not present for ssl requests + should not treat uri's with a port of 4430 as ssl + should not modify the parameter + should add http if not present for non ssl requests + ciphers + should set the ciphers content + cookies + should raise an ArgumentError if passed a non-Hash + should allow a cookie to be specified with a one-off request + should not be in the headers by default + in a class with multiple methods that use different cookies + should not allow cookies used in one method to carry over into other methods + when a cookie is set at the class level + should allow the class defaults to be overridden + should include that cookie in the request + should pass the proper cookies when requested multiple times + with explicit override of automatic redirect handling + should fail with redirected COPY + should fail with redirected PATCH + should fail with redirected PUT + should fail with redirected MKCOL + should fail with redirected DELETE + should fail with redirected GET + should fail with redirected POST + should fail with redirected OPTIONS + should fail with redirected HEAD + should fail with redirected MOVE + headers + should be able to accept block as header value + does not modify default_options when no arguments are passed + uses the class headers when sending a request + merges class headers with request headers + should pass options as argument to header block value + overrides class headers with request headers + should be able to be updated + should default to empty hash + when posting file + changes content-type headers to multipart/form-data + when headers passed as symbols + converts default headers to string + converts them to string + with cookies + adds cookies to the headers + doesnt modify default headers + adds optional cookies to the optional headers + utilizes the class-level cookies + with multiple class definitions + should not run over each others options + #ensure_method_maintained_across_redirects + should set maintain_method_across_redirects option if unspecified + should not set maintain_method_across_redirects option if value is present + format + should not allow funky format + sets the default parser + should allow csv + should only print each format once with an exception + should allow json + should allow xml + should allow plain + does not reset parser to the default parser + head requests should follow redirects requesting HEAD only + should remain HEAD request across redirects, unless specified otherwise + two child classes inheriting from one parent + should dup the proc on the child class + doesn't modify the parent's default cookies + does not modify each others inherited attributes + doesn't modify hashes in the parent's default options + works with lambda values + inherits default_options from the superclass + doesn't modify the parent's default options + inherits default_cookies from the parent class + #no_follow + sets no_follow to false by default + sets the no_follow option to true + uri_adapter + with custom URI Adaptor + should process a request with a uri instance parsed from the uri_adapter + should raise an ArgumentError if uri_adapter doesn't implement parse method + should set the uri_adapter + with Addressable::URI + handles international domains + ssl_version + should set the ssl_version content + .query_string_normalizer + sets the query_string_normalizer option + .disable_rails_query_string_format + sets the query string normalizer to HTTParty::Request::NON_RAILS_QUERY_STRING_NORMALIZER + http_proxy + should set the proxy user and pass when they are provided + should set the address + default params + should be able to be updated + should default to empty hash -HTTParty::Logger::LogstashFormatter +HTTParty::ResponseFragment + access to fragment + has access to delegators + +HTTParty::Logger::ApacheFormatter #format - formats a response to be compatible with Logstash + formats a response in a style that resembles apache's access log + when there is a parsed response + can handle the Content-Length header + +HTTParty::Error + HTTParty::DuplicateLocationHeader + #ancestors + is expected to include HTTParty::ResponseError + HTTParty::ResponseError + #ancestors + is expected to include HTTParty::Error + HTTParty::RedirectionTooDeep + #ancestors + is expected to include HTTParty::ResponseError + #ancestors + is expected to include StandardError + HTTParty::UnsupportedURIScheme + #ancestors + is expected to include HTTParty::Error + HTTParty::UnsupportedFormat + #ancestors + is expected to include HTTParty::Error + +HTTParty::CookieHash + #add_cookies + with a string + should overwrite any existing key + should handle '=' within cookie value + should add new key/value pairs to the hash + should handle an empty cookie parameter + with a hash + should add new key/value pairs to the hash + should overwrite any existing key + with other class + should error + #to_cookie_string + should not include client side only cookies even when attributes use camal case + should not include client side only cookies + should format the key/value pairs, delimited by semi-colons + should not include SameSite attribute + should not mutate the hash + +HTTParty::Logger::CurlFormatter + #format + formats a response in a style that resembles a -v curl + when response is logged + logs http version and response code + logs headers + logs body + when request is logged + and query is not present + not logs Query + and request's option 'base_uri' is not present + logs url + and request's option 'base_uri' is present + logs url + when request raw_body is present + not logs request body + and query is present + logs Query + logs query params + and headers are not present + not log Headers + and headers are present + logs headers keys + logs Headers + +HTTParty::Request + SSL certificate verification + should work when no trusted CA list is specified, even with a bogus hostname, when the verify option is set to true + should work when no trusted CA list is specified, when the verify option is set to false +# terminated with exception (report_on_exception is true): +/usr/lib/ruby/3.1.0/openssl/ssl.rb:524:in `accept': SSL_accept returned=1 errno=0 peeraddr=(null) state=error: tlsv1 alert unknown ca (OpenSSL::SSL::SSLError) + from /usr/lib/ruby/3.1.0/openssl/ssl.rb:524:in `accept' + from /build/reproducible-path/ruby-httparty-0.21.0/spec/support/ssl_test_server.rb:56:in `thread_main' + from /build/reproducible-path/ruby-httparty-0.21.0/spec/support/ssl_test_server.rb:34:in `block (2 levels) in start' + should fail when using ssl_ca_file and the server uses an unrecognized certificate authority +# terminated with exception (report_on_exception is true): +/usr/lib/ruby/3.1.0/openssl/ssl.rb:524:in `accept': SSL_accept returned=1 errno=0 peeraddr=(null) state=error: tlsv1 alert unknown ca (OpenSSL::SSL::SSLError) + from /usr/lib/ruby/3.1.0/openssl/ssl.rb:524:in `accept' + from /build/reproducible-path/ruby-httparty-0.21.0/spec/support/ssl_test_server.rb:56:in `thread_main' + from /build/reproducible-path/ruby-httparty-0.21.0/spec/support/ssl_test_server.rb:34:in `block (2 levels) in start' + should fail when using ssl_ca_path and the server uses an unrecognized certificate authority + should provide the certificate used by the server via peer_cert +# terminated with exception (report_on_exception is true): +/usr/lib/ruby/3.1.0/openssl/ssl.rb:524:in `accept': SSL_accept returned=1 errno=0 peeraddr=(null) state=error: ssl/tls alert bad certificate (OpenSSL::SSL::SSLError) + from /usr/lib/ruby/3.1.0/openssl/ssl.rb:524:in `accept' + from /build/reproducible-path/ruby-httparty-0.21.0/spec/support/ssl_test_server.rb:56:in `thread_main' + from /build/reproducible-path/ruby-httparty-0.21.0/spec/support/ssl_test_server.rb:34:in `block (2 levels) in start' + should fail when using ssl_ca_file and the server uses a bogus hostname +# terminated with exception (report_on_exception is true): +/usr/lib/ruby/3.1.0/openssl/ssl.rb:524:in `accept': SSL_accept returned=1 errno=0 peeraddr=(null) state=error: tlsv1 alert unknown ca (OpenSSL::SSL::SSLError) + from /usr/lib/ruby/3.1.0/openssl/ssl.rb:524:in `accept' + from /build/reproducible-path/ruby-httparty-0.21.0/spec/support/ssl_test_server.rb:56:in `thread_main' + from /build/reproducible-path/ruby-httparty-0.21.0/spec/support/ssl_test_server.rb:34:in `block (2 levels) in start' + should fail when no trusted CA list is specified, by default +# terminated with exception (report_on_exception is true): +/usr/lib/ruby/3.1.0/openssl/ssl.rb:524:in `accept': SSL_accept returned=1 errno=0 peeraddr=(null) state=error: tlsv1 alert unknown ca (OpenSSL::SSL::SSLError) + from /usr/lib/ruby/3.1.0/openssl/ssl.rb:524:in `accept' + from /build/reproducible-path/ruby-httparty-0.21.0/spec/support/ssl_test_server.rb:56:in `thread_main' + from /build/reproducible-path/ruby-httparty-0.21.0/spec/support/ssl_test_server.rb:34:in `block (2 levels) in start' + should fail when no trusted CA list is specified, with a bogus hostname, by default +# terminated with exception (report_on_exception is true): +/usr/lib/ruby/3.1.0/openssl/ssl.rb:524:in `accept': SSL_accept returned=1 errno=0 peeraddr=(null) state=error: tlsv1 alert unknown ca (OpenSSL::SSL::SSLError) + from /usr/lib/ruby/3.1.0/openssl/ssl.rb:524:in `accept' + from /build/reproducible-path/ruby-httparty-0.21.0/spec/support/ssl_test_server.rb:56:in `thread_main' + from /build/reproducible-path/ruby-httparty-0.21.0/spec/support/ssl_test_server.rb:34:in `block (2 levels) in start' + should fail when using ssl_ca_path and the server uses a bogus hostname + should work when using ssl_ca_file with a certificate authority + should work when using ssl_ca_path with a certificate authority + should work when using ssl_ca_file with a self-signed CA Pending: (Failures listed here are expected and do not affect your suite's status) @@ -2140,54 +2176,54 @@ # Temporarily skipped with xit # ./spec/httparty/request_spec.rb:691 -Top 10 slowest examples (8.96 seconds, 24.3% of total time): - HTTParty::Request::Body#call when params is hash when params has file is expected not to change `file.pos` - 1.5 seconds ./spec/httparty/request/body_spec.rb:67 - HTTParty#get should be able parse response type xml automatically - 1.33 seconds ./spec/httparty_spec.rb:907 +Top 10 slowest examples (2.69 seconds, 29.5% of total time): + HTTParty::Request SSL certificate verification should work when using ssl_ca_file with a certificate authority + 0.33568 seconds ./spec/httparty/ssl_spec.rb:37 HTTParty::Request SSL certificate verification should work when using ssl_ca_file with a self-signed CA - 1.01 seconds ./spec/httparty/ssl_spec.rb:33 + 0.33463 seconds ./spec/httparty/ssl_spec.rb:33 HTTParty::Request SSL certificate verification should provide the certificate used by the server via peer_cert - 0.91079 seconds ./spec/httparty/ssl_spec.rb:74 - HTTParty::Request SSL certificate verification should fail when using ssl_ca_file and the server uses a bogus hostname - 0.83435 seconds ./spec/httparty/ssl_spec.rb:62 - HTTParty::Request SSL certificate verification should fail when no trusted CA list is specified, with a bogus hostname, by default - 0.76888 seconds ./spec/httparty/ssl_spec.rb:23 + 0.33363 seconds ./spec/httparty/ssl_spec.rb:74 + HTTParty::Request SSL certificate verification should work when no trusted CA list is specified, even with a bogus hostname, when the verify option is set to true + 0.28157 seconds ./spec/httparty/ssl_spec.rb:29 + HTTParty::Request SSL certificate verification should work when no trusted CA list is specified, when the verify option is set to false + 0.24931 seconds ./spec/httparty/ssl_spec.rb:19 + HTTParty::Request::Body#call when params is hash when params has file is expected not to change `file.pos` + 0.24038 seconds ./spec/httparty/request/body_spec.rb:67 HTTParty::Request SSL certificate verification should fail when using ssl_ca_path and the server uses a bogus hostname - 0.70478 seconds ./spec/httparty/ssl_spec.rb:68 + 0.22882 seconds ./spec/httparty/ssl_spec.rb:68 HTTParty::Request SSL certificate verification should fail when using ssl_ca_file and the server uses an unrecognized certificate authority - 0.68201 seconds ./spec/httparty/ssl_spec.rb:50 - HTTParty headers should pass options as argument to header block value - 0.6162 seconds ./spec/httparty_spec.rb:157 - HTTParty::ConnectionAdapter#connection the resulting connection when dealing with ssl https scheme with default port is expected to use ssl - 0.60423 seconds ./spec/httparty/connection_adapter_spec.rb:91 + 0.22833 seconds ./spec/httparty/ssl_spec.rb:50 + HTTParty::Request SSL certificate verification should fail when using ssl_ca_path and the server uses an unrecognized certificate authority + 0.22786 seconds ./spec/httparty/ssl_spec.rb:56 + HTTParty::Request SSL certificate verification should fail when using ssl_ca_file and the server uses a bogus hostname + 0.22662 seconds ./spec/httparty/ssl_spec.rb:62 Top 10 slowest example groups: HTTParty::Request - 0.66036 seconds average (7.92 seconds / 12 examples) ./spec/httparty/ssl_spec.rb:3 + 0.25056 seconds average (3.01 seconds / 12 examples) ./spec/httparty/ssl_spec.rb:3 HTTParty::Request::Body - 0.18804 seconds average (2.07 seconds / 11 examples) ./spec/httparty/request/body_spec.rb:6 + 0.02855 seconds average (0.31404 seconds / 11 examples) ./spec/httparty/request/body_spec.rb:6 HTTParty::ConnectionAdapter - 0.08348 seconds average (5.84 seconds / 70 examples) ./spec/httparty/connection_adapter_spec.rb:3 - HTTParty::Error - 0.05137 seconds average (0.30824 seconds / 6 examples) ./spec/httparty/exception_spec.rb:3 - HTTParty - 0.04549 seconds average (5.32 seconds / 117 examples) ./spec/httparty_spec.rb:3 - HTTParty::Logger::LogstashFormatter - 0.04272 seconds average (0.04272 seconds / 1 example) ./spec/httparty/logger/logstash_formatter_spec.rb:3 - HTTParty::Logger::CurlFormatter - 0.0419 seconds average (0.54474 seconds / 13 examples) ./spec/httparty/logger/curl_formatter_spec.rb:3 + 0.01862 seconds average (1.3 seconds / 70 examples) ./spec/httparty/connection_adapter_spec.rb:3 HTTParty::Request - 0.03617 seconds average (10.13 seconds / 280 examples) ./spec/httparty/request_spec.rb:3 + 0.00908 seconds average (2.54 seconds / 280 examples) ./spec/httparty/request_spec.rb:3 + HTTParty::Logger::CurlFormatter + 0.00835 seconds average (0.10861 seconds / 13 examples) ./spec/httparty/logger/curl_formatter_spec.rb:3 + HTTParty::Logger::LogstashFormatter + 0.00779 seconds average (0.00779 seconds / 1 example) ./spec/httparty/logger/logstash_formatter_spec.rb:3 + HTTParty + 0.00692 seconds average (0.80988 seconds / 117 examples) ./spec/httparty_spec.rb:3 HTTParty::Logger::ApacheFormatter - 0.03135 seconds average (0.06271 seconds / 2 examples) ./spec/httparty/logger/apache_formatter_spec.rb:3 + 0.00662 seconds average (0.01324 seconds / 2 examples) ./spec/httparty/logger/apache_formatter_spec.rb:3 HTTParty::Decompressor - 0.02871 seconds average (0.51683 seconds / 18 examples) ./spec/httparty/decompressor_spec.rb:3 + 0.00553 seconds average (0.09956 seconds / 18 examples) ./spec/httparty/decompressor_spec.rb:3 + Net::HTTPHeader::DigestAuthenticator + 0.00527 seconds average (0.17382 seconds / 33 examples) ./spec/httparty/net_digest_auth_spec.rb:3 -Finished in 36.86 seconds (files took 11.91 seconds to load) +Finished in 9.1 seconds (files took 3.68 seconds to load) 715 examples, 0 failures, 1 pending -Randomized with seed 28864 +Randomized with seed 65121 ┌──────────────────────────────────────────────────────────────────────────────┐ @@ -2227,12 +2263,14 @@ dpkg-buildpackage: info: binary-only upload (no source included) dpkg-genchanges: info: including full source code in upload I: copying local configuration +I: user script /srv/workspace/pbuilder/665/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/665/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/17942 and its subdirectories -I: Current time: Mon Dec 2 13:15:10 -12 2024 -I: pbuilder-time-stamp: 1733188510 +I: removing directory /srv/workspace/pbuilder/665 and its subdirectories +I: Current time: Tue Dec 3 15:19:13 +14 2024 +I: pbuilder-time-stamp: 1733188753