Diff of the two buildlogs: -- --- b1/build.log 2024-10-10 14:08:57.287282163 +0000 +++ b2/build.log 2024-10-10 14:11:31.904677145 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Thu Oct 10 02:07:28 -12 2024 -I: pbuilder-time-stamp: 1728569248 +I: Current time: Fri Oct 11 04:09:09 +14 2024 +I: pbuilder-time-stamp: 1728569349 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/unstable-reproducible-base.tgz] I: copying local configuration @@ -29,52 +29,84 @@ dpkg-source: info: applying skip-test-failing-in-ubuntu.patch I: Not using root during the build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/30583/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/3684/tmp/hooks/D01_modify_environment starting +debug: Running on virt32a. +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 Oct 10 14:09 /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/3684/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/3684/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='unstable' - 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=4 ' + DIRSTACK=() + DISTRIBUTION=unstable + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=arm + HOST_ARCH=armhf IFS=' ' - INVOCATION_ID='e85aba0e343e41af872d10bbc7419f42' - 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='30583' - PS1='# ' - PS2='> ' + INVOCATION_ID=9d268ee6ed9d4aeaa264e988d143c670 + 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=3684 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.dGcGnBFX/pbuilderrc_6zOi --distribution unstable --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/unstable-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.dGcGnBFX/b1 --logfile b1/build.log ruby-faraday_2.10.0-2.dsc' - SUDO_GID='110' - SUDO_UID='103' - 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.dGcGnBFX/pbuilderrc_QOQk --distribution unstable --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/unstable-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.dGcGnBFX/b2 --logfile b2/build.log ruby-faraday_2.10.0-2.dsc' + SUDO_GID=113 + SUDO_UID=107 + 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 virt64z 6.1.0-26-arm64 #1 SMP Debian 6.1.112-1 (2024-09-30) aarch64 GNU/Linux + Linux i-capture-the-hostname 6.1.0-26-armmp-lpae #1 SMP Debian 6.1.112-1 (2024-09-30) armv7l GNU/Linux I: ls -l /bin lrwxrwxrwx 1 root root 7 Aug 4 21:30 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/30583/tmp/hooks/D02_print_environment finished +I: user script /srv/workspace/pbuilder/3684/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -370,7 +402,7 @@ Get: 214 http://deb.debian.org/debian unstable/main armhf ruby-sinatra all 3.2.0-1 [121 kB] Get: 215 http://deb.debian.org/debian unstable/main armhf ruby-typhoeus all 1.4.0-4 [36.3 kB] Get: 216 http://deb.debian.org/debian unstable/main armhf ruby-webmock all 3.23.1-1 [67.7 kB] -Fetched 49.2 MB in 1s (66.9 MB/s) +Fetched 49.2 MB in 1s (43.3 MB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package libpython3.12-minimal:armhf. (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 ... 19519 files and directories currently installed.) @@ -1084,8 +1116,8 @@ Setting up tzdata (2024b-3) ... Current default time zone: 'Etc/UTC' -Local time is now: Thu Oct 10 14:08:18 UTC 2024. -Universal Time is now: Thu Oct 10 14:08:18 UTC 2024. +Local time is now: Thu Oct 10 14:10:42 UTC 2024. +Universal Time is now: Thu Oct 10 14:10:42 UTC 2024. Run 'dpkg-reconfigure tzdata' if you wish to change it. Setting up mariadb-common (1:11.4.3-1) ... @@ -1272,7 +1304,11 @@ Building tag database... -> Finished parsing the build-deps I: Building the package -I: Running cd /build/reproducible-path/ruby-faraday-2.10.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-faraday_2.10.0-2_source.changes +I: user script /srv/workspace/pbuilder/3684/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for unstable +I: user script /srv/workspace/pbuilder/3684/tmp/hooks/A99_set_merged_usr finished +hostname: Name or service not known +I: Running cd /build/reproducible-path/ruby-faraday-2.10.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-faraday_2.10.0-2_source.changes dpkg-buildpackage: info: source package ruby-faraday dpkg-buildpackage: info: source version 2.10.0-2 dpkg-buildpackage: info: source distribution unstable @@ -1301,7 +1337,7 @@ dh_prep -O--buildsystem=ruby dh_auto_install --destdir=debian/ruby-faraday/ -O--buildsystem=ruby dh_ruby --install /build/reproducible-path/ruby-faraday-2.10.0/debian/ruby-faraday -/usr/bin/ruby3.1 -S gem build --config-file /dev/null --verbose /tmp/d20241010-6670-iv9tf1/gemspec +/usr/bin/ruby3.1 -S gem build --config-file /dev/null --verbose /tmp/d20241011-9739-3m3v02/gemspec Failed to load /dev/null because it doesn't contain valid YAML hash WARNING: open-ended dependency on logger (>= 0) is not recommended use a bounded requirement, such as '~> x.y' @@ -1310,7 +1346,7 @@ Name: faraday Version: 2.10.0 File: faraday-2.10.0.gem -/usr/bin/ruby3.1 -S gem install --config-file /dev/null --verbose --local --verbose --no-document --ignore-dependencies --install-dir debian/ruby-faraday/usr/share/rubygems-integration/all /tmp/d20241010-6670-iv9tf1/faraday-2.10.0.gem +/usr/bin/ruby3.1 -S gem install --config-file /dev/null --verbose --local --verbose --no-document --ignore-dependencies --install-dir debian/ruby-faraday/usr/share/rubygems-integration/all /tmp/d20241011-9739-3m3v02/faraday-2.10.0.gem Failed to load /dev/null because it doesn't contain valid YAML hash /build/reproducible-path/ruby-faraday-2.10.0/debian/ruby-faraday/usr/share/rubygems-integration/all/gems/faraday-2.10.0/lib/faraday.rb /build/reproducible-path/ruby-faraday-2.10.0/debian/ruby-faraday/usr/share/rubygems-integration/all/gems/faraday-2.10.0/lib/faraday/adapter.rb @@ -1385,419 +1421,570 @@ RUBYLIB=. GEM_PATH=/build/reproducible-path/ruby-faraday-2.10.0/debian/ruby-faraday/usr/share/rubygems-integration/all:/build/reproducible-path/ruby-faraday-2.10.0/debian/.debhelper/generated/_source/home/.local/share/gem/ruby/3.1.0:/var/lib/gems/3.1.0:/usr/local/lib/ruby/gems/3.1.0:/usr/lib/ruby/gems/3.1.0:/usr/lib/arm-linux-gnueabihf/ruby/gems/3.1.0:/usr/share/rubygems-integration/3.1.0:/usr/share/rubygems-integration/all:/usr/lib/arm-linux-gnueabihf/rubygems-integration/3.1.0 ruby3.1 -S rake --rakelibdir /gem2deb-nonexistent -f debian/ruby-tests.rake /usr/bin/ruby3.1 -I/usr/share/rubygems-integration/all/gems/rspec-support-3.13.1/lib:/usr/share/rubygems-integration/all/gems/rspec-core-3.13.0/lib /usr/share/rubygems-integration/all/gems/rspec-core-3.13.0/exe/rspec ./spec/faraday/adapter/test_spec.rb ./spec/faraday/adapter_registry_spec.rb ./spec/faraday/adapter_spec.rb ./spec/faraday/connection_spec.rb ./spec/faraday/error_spec.rb ./spec/faraday/middleware_registry_spec.rb ./spec/faraday/middleware_spec.rb ./spec/faraday/options/env_spec.rb ./spec/faraday/options/options_spec.rb ./spec/faraday/options/proxy_options_spec.rb ./spec/faraday/options/request_options_spec.rb ./spec/faraday/params_encoders/flat_spec.rb ./spec/faraday/params_encoders/nested_spec.rb ./spec/faraday/rack_builder_spec.rb ./spec/faraday/request/authorization_spec.rb ./spec/faraday/request/instrumentation_spec.rb ./spec/faraday/request/json_spec.rb ./spec/faraday/request/url_encoded_spec.rb ./spec/faraday/request_spec.rb ./spec/faraday/response/json_spec.rb ./spec/faraday/response/logger_spec.rb ./spec/faraday/response/raise_error_spec.rb ./spec/faraday/response_spec.rb ./spec/faraday/utils/headers_spec.rb ./spec/faraday/utils_spec.rb ./spec/faraday_spec.rb --format documentation -Randomized with seed 13791 +Randomized with seed 53035 -Faraday::ProxyOptions - allows hash access - #from - works with string - works with no auth - defaults to http - treats empty string as nil - works with nil +Faraday::NestedParamsEncoder + decodes arrays + decodes nested ignores repeated array notation + encodes empty string array value + encodes rack compat + decodes nested arrays rack compat + encodes empty array value + decodes nested array mixed types + encodes boolean values in array + decodes nested ignores invalid array + decodes nested ignores malformed keys + encodes nil array value + encodes boolean values + encodes arrays indices when asked + encodes unsorted when asked + decodes hashes + decodes nested final value overrides any type + decodes nested subkeys dont have to be in brackets + when expecting hash but getting array + behaves like a wrong decoding + is expected to raise TypeError + when expecting hash but getting string + behaves like a wrong decoding + is expected to raise TypeError + when expecting nested hash but getting non nested + behaves like a wrong decoding + is expected to raise TypeError + when expecting array but getting hash + behaves like a wrong decoding + is expected to raise TypeError + when expecting array but getting string + behaves like a wrong decoding + is expected to raise TypeError + behaves like a params encoder + raises type error for empty string + escapes safe buffer + encodes nil -Faraday::RequestOptions - allows to set the request proxy +Faraday::Utils + URI parsing + parses with block + replaces headers hash + parses with URI + escapes safe buffer + parses with default parser + headers parsing + parse headers for aggregated responses + .deep_merge! + recursively merges the headers + when a target hash has an Options Struct value + does not overwrite an Options Struct value + +Faraday::Request::Instrumentation + defaults to ActiveSupport::Notifications + instruments with default name + is expected to eq "request.faraday" + with custom name + instruments with custom name + is expected to eq "custom" + with custom instrumenter + is expected to eq :custom + +Faraday::FlatParamsEncoder + encodes boolean values in array + decodes arrays + encodes unsorted when asked + encodes boolean values + decodes boolean values + encodes empty array in hash + behaves like a params encoder + encodes nil + raises type error for empty string + escapes safe buffer Faraday::Error .initialize with exception only is expected to be nil - is expected to eq nil - is expected to be nil - is expected to be nil + is expected to eq "#>" is expected to eq # is expected to eq "test" - is expected to eq "#>" - is expected to be nil - with response hash - is expected to eq 400 - is expected to eq "the server responded with status 400" is expected to be nil - is expected to eq "#400}>" is expected to be nil - is expected to eq {:status=>400} + is expected to eq nil is expected to be nil with anything else #to_s + is expected to be nil is expected to eq "[\"error1\", \"error2\"]" is expected to be nil is expected to be nil + is expected to be nil is expected to eq "#>" is expected to be nil + with string + is expected to be nil + is expected to be nil + is expected to be nil + is expected to eq "#>" is expected to be nil is expected to be nil + is expected to eq "custom message" with exception and response object - is expected to eq {:test=>"test"} - is expected to eq # + is expected to eq "test" is expected to eq {"Content-Type"=>"application/json"} + is expected to eq #"application/json"} @status=400 @response_body={:test=>"test"}>> is expected to eq 400 + is expected to eq {:test=>"test"} + is expected to eq # is expected to eq nil - is expected to eq "test" - is expected to eq #"application/json"} @status=400 @response_body={:test=>"test"}>, @on_complete_callbacks=[]> - with string - is expected to be nil - is expected to eq "#>" - is expected to be nil + with response hash + is expected to eq "the server responded with status 400" + is expected to eq "#400}>" + is expected to eq 400 is expected to be nil + is expected to eq {:status=>400} is expected to be nil is expected to be nil - is expected to eq "custom message" with exception string and response hash + is expected to be nil is expected to eq {:status=>400} is expected to be nil is expected to eq "custom message" - is expected to eq "#400}>" is expected to be nil is expected to eq 400 - is expected to be nil - -Faraday::Response::RaiseError - raises no exception for 200 responses - raises Faraday::RequestTimeoutError for 408 responses - raises Faraday::ServerError for 500 responses - raises Faraday::UnprocessableEntityError for 422 responses - raises Faraday::BadRequestError for 400 responses - raises Faraday::ResourceNotFound for 404 responses - raises Faraday::UnauthorizedError for 401 responses - raises Faraday::ConflictError for 409 responses - raises Faraday::ProxyAuthError for 407 responses - raises Faraday::ClientError for other 4xx responses - raises Faraday::NilStatusError for nil status in response - raises Faraday::TooManyRequestsError for 429 responses - raises Faraday::ForbiddenError for 403 responses - request info - returns the request info in the exception - DEFAULT_OPTION: include_request - when RaiseError DEFAULT_OPTION (include_request: true) is used - includes request info in the exception - when application sets default_options `include_request: false` - and when include_request option is explicitly set for instance - includes request info in the exception - and when include_request option is omitted - does not include request info in the exception - -Faraday::Env - retains custom members - allows to access members - handle verify_hostname when fetching - allows to access symbol non members - ignores false when fetching - allows to access string non members - #body - when response is finished - returns the response body - allows to access response_body - allows to access request_body - when response is not finished yet - returns the request body + is expected to eq "#400}>" -Faraday::Middleware - #on_error - is called by #call - #on_request - is called by #call - ::default_options - with subclass DEFAULT_OPTIONS defined - and without application options configured - is expected to eq "ok" - has only subclass defaults - and with two applications' options changed - is expected to eq "ok" - updates subclasses and parent independent of each other - is expected to eq "ok" - and with one application's options changed - only updates default options of target subclass - is expected to eq "ok" - default_options input validation - raises error if Faraday::Middleware option does not exist - raises error if subclass option does not exist - with FARADAY::MIDDLEWARE DEFAULT_OPTIONS and with Subclass DEFAULT_OPTIONS - and without application options configured - has only subclass defaults - is expected to eq "ok" - and with two applications' options changed - is expected to eq "ok" - is expected to eq "ok" - updates subclasses and parent independent of each other - #close - with app that supports #close - should issue warning - with app that doesn't support #close - should issue warning - options - when options are passed to the middleware - accepts options when initialized +Faraday::AdapterRegistry + #initialize + is expected to raise NameError + caches lookups with explicit name + is expected to raise NameError + looks up class by string name + caches lookups with implicit name + looks up class by symbol name Faraday::Options #merge - deeply merges options with hashes deeply merges options with options having nil sub-options + deeply merges options with nil merges options with hashes deeply merges two options - deeply merges options with nil - #dup - duplicate options but not sub-options - #empty? - returns true only if all options are nil - #each_value - allows to iterate through values - #from - works with options with sub object - works with hash - works with options - is expected to raise NoMethodError - works with hash with sub object - works with deep hash - works with nil - respects inheritance - #deep_dup - duplicate options and also suboptions - #key? - returns true if the key exists and is not nil - #each_key - allows to iterate through keys + deeply merges options with hashes #update updates options from hashes - #value? - returns true if any key has that value - #delete - allows to remove value for key + #each_key + allows to iterate through keys #memoized requires block accepts block - #clear - clears the options #fetch - when the fetched key has a value - grabs value - works with key when the fetched key has no value - needs a default if key is missing uses falsey default accepts block + needs a default if key is missing + when the fetched key has a value + works with key + grabs value + #value? + returns true if any key has that value + #deep_dup + duplicate options and also suboptions + #clear + clears the options + #each_value + allows to iterate through values + #from + works with options + works with hash + works with options with sub object + works with nil + is expected to raise NoMethodError + respects inheritance + works with deep hash + works with hash with sub object + #empty? + returns true only if all options are nil + #delete + allows to remove value for key + #key? + returns true if the key exists and is not nil + #dup + duplicate options but not sub-options + +Faraday + has a version number + proxies to default_connection + proxies methods that exist on the default_connection + proxied methods can be accessed + uses method_missing on Faraday if there is no proxyable method + +Faraday::ProxyOptions + allows hash access + #from + works with nil + works with string + treats empty string as nil + defaults to http + works with no auth + +Faraday::Utils::Headers + when Content-Type is set to application/xml + is expected to include "content-type" + is expected to eq "application/xml" + is expected to eq "application/xml" + is expected to eq "application/xml" + is expected to eq ["Content-Type"] + #delete + is expected to eq 0 + is expected to eq "application/json" + is expected to be nil + is expected not to include "content-type" + #fetch + is expected to eq "Invalid key" + is expected to eq "default" + is expected to eq "application/json" + raises an error if key not found + is expected to eq "application/json" + is expected to eq false + is expected to eq "application/json" + calls a block when provided + is expected to be nil + #parse + when response headers leave http status line out + is expected to eq "text/html" + is expected to eq "text/html" + is expected to eq ["Content-Type"] + when response headers values include a colon + is expected to eq "http://httpbingo.org/" + when response headers include a blank line + is expected to eq "text/html" + when response headers include already stored keys + is expected to eq "8, 123" + when Content-Type is set to application/json + is expected to eq "application/json" + is expected to eq "application/json" + is expected to eq ["Content-Type"] + is expected to include "content-type" + is expected to eq "application/json" + #dig + is expected to eq "application/json" + is expected to eq "application/json" + is expected to be nil + is expected to eq "application/json" + +Faraday::Response + is expected to be falsey + is expected to eq "text/plain" + is expected to eq 404 + is expected to be truthy + is expected to eq "yikes" + is expected to raise RuntimeError + is expected to eq "text/plain" + #on_complete + parse body on finish + can access response body in on_complete callback + can access response body in on_complete callback + marshal serialization support + is expected to eq {"Content-Type"=>"text/plain"} + is expected to eq 404 + is expected to eq # + is expected to eq "yikes" + is expected to be nil + #to_hash + is expected to eq 404 + is expected to be a kind of Hash + is expected to eq "yikes" + is expected to eq # + is expected to eq {"Content-Type"=>"text/plain"} + #apply_request + is expected to eq :post + is expected to eq "yikes" + +Faraday::Request::UrlEncoded + works with non nested params + works with files + works with nested keys + works with with headers + works with nested params + ignores custom content type + works with unicode + works with no headers + does nothing without payload + customising default_space_encoding + uses the custom character to encode spaces + +Faraday::Response::Logger + still returns output + logs method and url + does not log request body by default + logs filter url + logs request headers by default + does not log error message by default + logs filter headers + logs response headers by default + logs status + does not log response body by default + when logging response body + log only response body + when using log_level + does not log request/response body on the info level + does not log headers on the info level + logs headers on the debug level + logs request/request body on the specified level (debug) + with default formatter + delegates logging to the formatter + when no route + delegates logging to the formatter + when logging errors + logs error message + when not logging response headers + does not log response headers if option is false + with custom formatter + logs with custom formatter + when not logging request headers + does not log request headers if option is false + when logging headers and errors + logs error message + when logging request body + log only request body + without configuration + defaults to stdout + when logging request and response bodies + log request and response body + logs filter body + log response body object + +Faraday::Env + allows to access string non members + handle verify_hostname when fetching + retains custom members + allows to access members + allows to access symbol non members + ignores false when fetching + #body + when response is finished + allows to access response_body + allows to access request_body + returns the response body + when response is not finished yet + returns the request body + +Faraday::Request + supports marshal serialization + when nothing particular is configured + is expected to be falsey + is expected to be falsey + is expected to eq :get + when setting a header on setup with []= syntax + is expected to eq "Faraday" + is expected to eq "Faraday" + is expected to eq "1.0" + when setting the body on setup + is expected to eq "hi" + is expected to eq "hi" + when HTTP method is post + is expected to eq :post + with global request options set + is expected to eq 5 + is expected to eq 3 + is expected to eq 5 + is expected to eq 3 + and per-request options set + is expected to eq {:consumer_key=>"anonymous", :consumer_secret=>"xyz"} + is expected to eq "boo" + is expected to eq 5 + is expected to eq {:bar=>"bar", :foo=>"foo"} + is expected to eq 5 + is expected to eq 10 + is expected to eq 10 + when setting the url on setup with a URI + is expected to eq {"a"=>"1"} + is expected to eq # + is expected to eq "http://httpbingo.org/api/foo.json?a=1" + when setting the url on setup with a string path and params + is expected to eq {"a"=>1} + is expected to eq "http://httpbingo.org/api/foo.json?a=1" + is expected to eq "foo.json" + when setting the url on setup with a path including params + is expected to eq "http://httpbingo.org/api/foo.json?a=1&b=2" + is expected to eq {"a"=>"1", "b"=>"2"} + is expected to eq "foo.json" + +Faraday::Response::Json + chokes on invalid json + includes the response on the ParsingError instance + with decoder + when decoder is passed as object + passes relevant options to specified decoder's load method + when decoder is not passed + passes relevant options to JSON parse even when nil responds to :load + passes relevant options to JSON parse + when decoder is passed as an object-method pair + passes relevant options to specified decoder's method + with array type matching + ignores json body of incorrect type + parses json body of correct type + JSON options + passes relevant options to JSON parse + no type matching + parses json body + nullifies empty body + doesn't change nil body + with preserving raw + parses json body + with default regexp type matching + ignores json body of incorrect type + parses json body of correct type + HEAD responses + nullifies the body if it's two spaces + nullifies the body if it's only one space Faraday::Adapter::Test - with http headers - without header - is expected to eq "b" - with header - is expected to eq "a" - can handle regular expression path with captured result - is expected to eq "show specified" - with get params - is expected to eq "a" + different outcomes for the same request + the first request + is expected to eq "hello" + the second request + is expected to eq "world" can handle single parameter block is expected to eq "get" + request timeout + when request is within timeout + is expected to eq 200 + when request is too slow + raises an exception + ignoring unspecified get params + without params + is expected to raise Faraday::Adapter::Test::Stubs::NotFound + with single param + is expected to eq "a" + with multiple params + is expected to eq "a" + with simple path sets headers + is expected to eq "text/html" with simple path sets body is expected to eq "hello" - with host points to the right stub - is expected to eq "domain: hello" - different outcomes for the same request - the second request - is expected to eq "world" - the first request - is expected to eq "hello" strict_mode + behaves like raise NotFound when headers do not satisfy the strict check + with {:authorization=>"Bearer m_ck", :user_agent=>"My Agent", :x_special=>"special"} + is expected to raise Faraday::Adapter::Test::Stubs::NotFound behaves like raise NotFound when params do not satisfy the strict check - with {:additional=>"special", :a=>"12", :b=>"xy", :c=>"hello"} + with {:a=>"123", :b=>"xy"} + is expected to raise Faraday::Adapter::Test::Stubs::NotFound + behaves like raise NotFound when params do not satisfy the strict check + with {:a=>"12"} is expected to raise Faraday::Adapter::Test::Stubs::NotFound behaves like raise NotFound when headers do not satisfy the strict check with {:authorization=>"Bearer m_ck", :user_agent=>"Unknown"} is expected to raise Faraday::Adapter::Test::Stubs::NotFound + behaves like raise NotFound when params do not satisfy the strict check + with {:a=>"12", :b=>"xyz"} + is expected to raise Faraday::Adapter::Test::Stubs::NotFound + behaves like raise NotFound when params do not satisfy the strict check + with {:additional=>"special", :a=>"12", :b=>"xy", :c=>"hello"} + is expected to raise Faraday::Adapter::Test::Stubs::NotFound + when params and headers are exactly set + is expected to eq 200 + behaves like raise NotFound when headers do not satisfy the strict check + with {"X-C"=>"hello"} + is expected to raise Faraday::Adapter::Test::Stubs::NotFound + body_match? + when trying without any args for body + is expected to eq 200 + when trying with string body stubs + is expected to eq 200 + when trying with proc body stubs + is expected to eq 200 + behaves like raise NotFound when headers do not satisfy the strict check + with {:authorization=>"Bearer m_ck", :"x-c"=>"hello", :x_special=>"special"} + is expected to raise Faraday::Adapter::Test::Stubs::NotFound + behaves like raise NotFound when headers do not satisfy the strict check + with {:authorization=>"Bearer m_ck"} + is expected to raise Faraday::Adapter::Test::Stubs::NotFound + behaves like raise NotFound when headers do not satisfy the strict check + with {:authorization=>"Bearer m_ck"} + is expected to raise Faraday::Adapter::Test::Stubs::NotFound + when params and headers are exactly set with a custom user agent + is expected to eq 200 when strict_mode is disabled + behaves like does not raise NotFound even when headers do not satisfy the strict check + with {:authorization=>"Bearer m_ck", :user_agent=>"My Agent"} + is expected to eq 200 behaves like does not raise NotFound even when params do not satisfy the strict check with {:a=>"12", :b=>"xy"} is expected to eq 200 behaves like does not raise NotFound even when headers do not satisfy the strict check - with {:authorization=>"Bearer m_ck", :user_agent=>"My Agent"} + with {:authorization=>"Bearer m_ck", :"x-c"=>"hello"} is expected to eq 200 behaves like does not raise NotFound even when params do not satisfy the strict check - with {:additional=>"special", :a=>"12", :b=>"xy", :c=>"hello"} + with {:a=>"12", :b=>"xy", :c=>"hello"} is expected to eq 200 behaves like does not raise NotFound even when headers do not satisfy the strict check - with {:authorization=>"Bearer m_ck", :user_agent=>"My Agent", :x_special=>"special"} + with {:authorization=>"Bearer m_ck", :"x-c"=>"hello", :x_special=>"special"} is expected to eq 200 behaves like does not raise NotFound even when headers do not satisfy the strict check with {:authorization=>"Bearer m_ck", :"x-c"=>"hello", :user_agent=>"Special Agent"} is expected to eq 200 - behaves like does not raise NotFound even when params do not satisfy the strict check - with {:a=>"12", :b=>"xy", :c=>"hello"} - is expected to eq 200 behaves like does not raise NotFound even when headers do not satisfy the strict check - with {:authorization=>"Bearer m_ck", :"x-c"=>"hello"} + with {:authorization=>"Bearer m_ck", :user_agent=>"My Agent", :x_special=>"special"} is expected to eq 200 - behaves like does not raise NotFound even when headers do not satisfy the strict check - with {:authorization=>"Bearer m_ck", :"x-c"=>"hello", :x_special=>"special"} + behaves like does not raise NotFound even when params do not satisfy the strict check + with {:additional=>"special", :a=>"12", :b=>"xy", :c=>"hello"} is expected to eq 200 behaves like raise NotFound when headers do not satisfy the strict check - with {:authorization=>"Bearer m_ck", :"x-c"=>"hello", :x_special=>"special"} - is expected to raise Faraday::Adapter::Test::Stubs::NotFound - when params and headers are exactly set with a custom user agent - is expected to eq 200 - behaves like raise NotFound when headers do not satisfy the strict check with {:authorization=>"Bearer m_ck", :"x-c"=>"Hi"} is expected to raise Faraday::Adapter::Test::Stubs::NotFound - behaves like raise NotFound when headers do not satisfy the strict check - with {:authorization=>"Bearer m_ck"} - is expected to raise Faraday::Adapter::Test::Stubs::NotFound behaves like raise NotFound when params do not satisfy the strict check - with {:a=>"12", :b=>"xyz"} - is expected to raise Faraday::Adapter::Test::Stubs::NotFound - behaves like raise NotFound when params do not satisfy the strict check - with {:a=>"123", :b=>"xy"} + with {:b=>"xy"} is expected to raise Faraday::Adapter::Test::Stubs::NotFound behaves like raise NotFound when headers do not satisfy the strict check with {:authorization=>"Basic m_ck", :"x-c"=>"hello"} is expected to raise Faraday::Adapter::Test::Stubs::NotFound - behaves like raise NotFound when headers do not satisfy the strict check - with {:authorization=>"Bearer m_ck"} - is expected to raise Faraday::Adapter::Test::Stubs::NotFound - behaves like raise NotFound when headers do not satisfy the strict check - with {:authorization=>"Bearer m_ck", :user_agent=>"My Agent", :x_special=>"special"} - is expected to raise Faraday::Adapter::Test::Stubs::NotFound - behaves like raise NotFound when params do not satisfy the strict check - with {:a=>"12"} - is expected to raise Faraday::Adapter::Test::Stubs::NotFound - when params and headers are exactly set - is expected to eq 200 - body_match? - when trying with proc body stubs - is expected to eq 200 - when trying with string body stubs - is expected to eq 200 - when trying without any args for body - is expected to eq 200 - behaves like raise NotFound when headers do not satisfy the strict check - with {"X-C"=>"hello"} - is expected to raise Faraday::Adapter::Test::Stubs::NotFound - behaves like raise NotFound when params do not satisfy the strict check - with {:b=>"xy"} - is expected to raise Faraday::Adapter::Test::Stubs::NotFound behaves like raise NotFound when params do not satisfy the strict check with {:a=>"12", :b=>"xy", :c=>"hello"} is expected to raise Faraday::Adapter::Test::Stubs::NotFound - can be called several times - is expected to eq "hello" - can handle regular expression path - is expected to eq "show" + with simple path sets status + is expected to eq 200 + can handle regular expression path with captured result + is expected to eq "show specified" yielding env to stubs is expected to eq "a" - ignoring unspecified get params - with single param - is expected to eq "a" - with multiple params - is expected to eq "a" - without params - is expected to raise Faraday::Adapter::Test::Stubs::NotFound + can be called several times + is expected to eq "hello" for request with non default params encoder behaves like raise NotFound when params do not satisfy the flat param values - with {:a=>["x"]} - is expected to raise Faraday::Adapter::Test::Stubs::NotFound - behaves like raise NotFound when params do not satisfy the flat param values with {:a=>["x", "z", "y"]} is expected to raise Faraday::Adapter::Test::Stubs::NotFound behaves like raise NotFound when params do not satisfy the flat param values - with {:a=>["x", "y"]} + with {:b=>["x", "y", "z"]} is expected to raise Faraday::Adapter::Test::Stubs::NotFound when all flat param values are correctly set is expected to eq 200 behaves like raise NotFound when params do not satisfy the flat param values - with {:b=>["x", "y", "z"]} + with {:a=>["x"]} is expected to raise Faraday::Adapter::Test::Stubs::NotFound - request timeout - when request is too slow - raises an exception - when request is within timeout - is expected to eq 200 - params parsing - with default encoder - is expected to eq "a" - with flat encoder - is expected to eq "a" - with nested encoder - is expected to eq "a" + behaves like raise NotFound when params do not satisfy the flat param values + with {:a=>["x", "y"]} + is expected to raise Faraday::Adapter::Test::Stubs::NotFound + can handle regular expression path + is expected to eq "show" + with host points to the right stub + is expected to eq "domain: hello" raising an error if no stub was found - for request - is expected to raise Faraday::Adapter::Test::Stubs::NotFound for specified host is expected to raise Faraday::Adapter::Test::Stubs::NotFound + for request + is expected to raise Faraday::Adapter::Test::Stubs::NotFound for request without specified header is expected to raise Faraday::Adapter::Test::Stubs::NotFound - with simple path sets headers - is expected to eq "text/html" - with simple path sets status - is expected to eq 200 - -Faraday::Request::UrlEncoded - works with non nested params - ignores custom content type - works with nested keys - works with files - does nothing without payload - works with no headers - works with with headers - works with unicode - works with nested params - customising default_space_encoding - uses the custom character to encode spaces - -Faraday::Adapter - #request_timeout - gets :read timeout - attempts unknown timeout type - gets :open timeout - gets :write timeout - -Faraday::Request::Instrumentation - is expected to eq "request.faraday" - instruments with default name - defaults to ActiveSupport::Notifications - with custom instrumenter - is expected to eq :custom - with custom name - is expected to eq "custom" - instruments with custom name - -Faraday::Response::Logger - logs status - logs filter url - does not log request body by default - does not log response body by default - logs response headers by default - still returns output - does not log error message by default - logs method and url - logs filter headers - logs request headers by default - without configuration - defaults to stdout - when logging errors - logs error message - when logging request and response bodies - log request and response body - logs filter body - log response body object - when logging headers and errors - logs error message - when logging request body - log only request body - with custom formatter - logs with custom formatter - when logging response body - log only response body - when not logging request headers - does not log request headers if option is false - when using log_level - does not log request/response body on the info level - logs request/request body on the specified level (debug) - does not log headers on the info level - logs headers on the debug level - with default formatter - delegates logging to the formatter - when no route - delegates logging to the formatter - when not logging response headers - does not log response headers if option is false + params parsing + with flat encoder + is expected to eq "a" + with nested encoder + is expected to eq "a" + with default encoder + is expected to eq "a" + with get params + is expected to eq "a" + with http headers + with header + is expected to eq "a" + without header + is expected to eq "b" Faraday::Request::Authorization basic_auth @@ -1810,23 +1997,15 @@ and request already has an authentication header does not interfere with existing authorization authorization - when passed a string - is expected to eq "Bearer custom" - and request already has an authentication header - does not interfere with existing authorization when passed too many arguments is expected to raise ArgumentError and request already has an authentication header does not interfere with existing authorization - when passed a callable - is expected to eq "Bearer custom_from_callable" + when passed a string + is expected to eq "Bearer custom" and request already has an authentication header does not interfere with existing authorization with an argument - when passed a proc - is expected to eq "Bearer proc crunchy surprise" - and request already has an authentication header - does not interfere with existing authorization when passed a callable with an argument is expected to eq "Bearer callable crunchy surprise" and request already has an authentication header @@ -1835,406 +2014,265 @@ is expected to eq "Bearer lambda crunchy surprise" and request already has an authentication header does not interfere with existing authorization + when passed a proc + is expected to eq "Bearer proc crunchy surprise" + and request already has an authentication header + does not interfere with existing authorization when passed a proc is expected to eq "Bearer custom_from_proc" and request already has an authentication header does not interfere with existing authorization + when passed a callable + is expected to eq "Bearer custom_from_callable" + and request already has an authentication header + does not interfere with existing authorization + +Faraday::Adapter + #request_timeout + gets :read timeout + gets :open timeout + gets :write timeout + attempts unknown timeout type + +Faraday::RackBuilder + when a plain adapter is added with named arguments + adds a handler to construct adapter with options passed to adapter + with custom adapter only + is expected to be nil + is expected to eq Faraday::Adapter::Test + when a middleware is added with named arguments + adds a handler to construct response adapter with options passed to response + when having a single handler + allows insert_after + raises an error trying to use an unregistered symbol + allows use + allows insert_before + is expected to eq [Apple] + when adapter is added with named options + adds a handler to construct adapter with named options + when having two handlers + allows to delete a handler + allows insert_after + allows to swap handlers + allows insert_before + when a middleware is added with named arguments + adds a handler to construct request adapter with options passed to request + with default stack + is expected to eq Faraday::Request::UrlEncoded + is expected to eq Faraday::Adapter::Test + with custom empty block + is expected to be nil + is expected to eq Faraday::Adapter::Test + with custom handler and adapter + locks the stack after making a request + allows to compare handlers + dup stack is unlocked + when handlers are directly added or updated + adds a handler with options passed to swap + adds a handler with options passed to insert_after + adds a handler to construct adapter with options passed to insert + when middleware is added with named arguments + adds a handler to construct middleware with options passed to use + +Faraday::RequestOptions + allows to set the request proxy Faraday::MiddlewareRegistry - allows to register with string allows to register with symbol - allows to register with constant allows to register with Proc + allows to register with string + allows to register with constant -Faraday::FlatParamsEncoder - encodes boolean values in array - decodes boolean values - encodes empty array in hash - encodes boolean values - encodes unsorted when asked - decodes arrays - behaves like a params encoder - raises type error for empty string - escapes safe buffer - encodes nil - -Faraday::Response::Json - chokes on invalid json - includes the response on the ParsingError instance - JSON options - passes relevant options to JSON parse - HEAD responses - nullifies the body if it's only one space - nullifies the body if it's two spaces - no type matching - parses json body - doesn't change nil body - nullifies empty body - with array type matching - ignores json body of incorrect type - parses json body of correct type - with default regexp type matching - ignores json body of incorrect type - parses json body of correct type - with decoder - when decoder is passed as object - passes relevant options to specified decoder's load method - when decoder is not passed - passes relevant options to JSON parse even when nil responds to :load - passes relevant options to JSON parse - when decoder is passed as an object-method pair - passes relevant options to specified decoder's method - with preserving raw - parses json body +Faraday::Response::RaiseError + raises Faraday::UnprocessableEntityError for 422 responses + raises no exception for 200 responses + raises Faraday::NilStatusError for nil status in response + raises Faraday::UnauthorizedError for 401 responses + raises Faraday::ProxyAuthError for 407 responses + raises Faraday::ConflictError for 409 responses + raises Faraday::ClientError for other 4xx responses + raises Faraday::BadRequestError for 400 responses + raises Faraday::RequestTimeoutError for 408 responses + raises Faraday::ServerError for 500 responses + raises Faraday::ForbiddenError for 403 responses + raises Faraday::TooManyRequestsError for 429 responses + raises Faraday::ResourceNotFound for 404 responses + request info + returns the request info in the exception + DEFAULT_OPTION: include_request + when application sets default_options `include_request: false` + and when include_request option is omitted + does not include request info in the exception + and when include_request option is explicitly set for instance + includes request info in the exception + when RaiseError DEFAULT_OPTION (include_request: true) is used + includes request info in the exception Faraday::Request::Json - object body with vendor json type - doesn't change content type + object body with json type encodes body - object body with incompatible type - doesn't change body doesn't change content type - no body - doesn't change body + empty object body + encodes body + empty body doesn't add content type + doesn't change body + object body + adds content type + encodes body string body adds content type doesn't change body + object body with vendor json type + encodes body + doesn't change content type with encoder - when encoder is not passed - encodes body - calls JSON.generate - adds content type when encoder is passed as object - adds content type calls specified JSON encoder's dump method encodes body + adds content type when encoder is passed as an object-method pair calls specified JSON encoder encodes body adds content type - false body - encodes body - adds content type - object body with json type - encodes body - doesn't change content type - empty body - doesn't add content type - doesn't change body + when encoder is not passed + encodes body + calls JSON.generate + adds content type true body encodes body adds content type - object body + false body encodes body adds content type - empty object body - encodes body - -Faraday::Response - is expected to eq 404 - is expected to eq "yikes" - is expected to raise RuntimeError - is expected to eq "text/plain" - is expected to be truthy - is expected to eq "text/plain" - is expected to be falsey - marshal serialization support - is expected to be nil - is expected to eq 404 - is expected to eq {"Content-Type"=>"text/plain"} - is expected to eq "yikes" - is expected to eq # - #to_hash - is expected to eq {"Content-Type"=>"text/plain"} - is expected to eq 404 - is expected to eq # - is expected to be a kind of Hash - is expected to eq "yikes" - #apply_request - is expected to eq :post - is expected to eq "yikes" - #on_complete - can access response body in on_complete callback - can access response body in on_complete callback - parse body on finish - -Faraday::AdapterRegistry - #initialize - is expected to raise NameError - looks up class by symbol name - caches lookups with explicit name - caches lookups with implicit name - looks up class by string name - is expected to raise NameError - -Faraday::RackBuilder - with default stack - is expected to eq Faraday::Request::UrlEncoded - is expected to eq Faraday::Adapter::Test - when having two handlers - allows insert_before - allows to swap handlers - allows insert_after - allows to delete a handler - when adapter is added with named options - adds a handler to construct adapter with named options - when middleware is added with named arguments - adds a handler to construct middleware with options passed to use - when a plain adapter is added with named arguments - adds a handler to construct adapter with options passed to adapter - when a middleware is added with named arguments - adds a handler to construct response adapter with options passed to response - when having a single handler - allows use - is expected to eq [Apple] - allows insert_before - raises an error trying to use an unregistered symbol - allows insert_after - with custom empty block - is expected to eq Faraday::Adapter::Test - is expected to be nil - when handlers are directly added or updated - adds a handler with options passed to insert_after - adds a handler with options passed to swap - adds a handler to construct adapter with options passed to insert - when a middleware is added with named arguments - adds a handler to construct request adapter with options passed to request - with custom adapter only - is expected to be nil - is expected to eq Faraday::Adapter::Test - with custom handler and adapter - locks the stack after making a request - allows to compare handlers - dup stack is unlocked - -Faraday::Utils - .deep_merge! - recursively merges the headers - when a target hash has an Options Struct value - does not overwrite an Options Struct value - URI parsing - escapes safe buffer - parses with block - parses with URI - replaces headers hash - parses with default parser - headers parsing - parse headers for aggregated responses - -Faraday::NestedParamsEncoder - encodes rack compat - decodes nested arrays rack compat - encodes nil array value - encodes arrays indices when asked - encodes empty array value - encodes boolean values - decodes nested ignores malformed keys - decodes nested array mixed types - decodes nested ignores repeated array notation - encodes boolean values in array - decodes nested ignores invalid array - encodes unsorted when asked - decodes nested subkeys dont have to be in brackets - decodes hashes - encodes empty string array value - decodes arrays - decodes nested final value overrides any type - when expecting hash but getting string - behaves like a wrong decoding - is expected to raise TypeError - when expecting nested hash but getting non nested - behaves like a wrong decoding - is expected to raise TypeError - behaves like a params encoder - escapes safe buffer - encodes nil - raises type error for empty string - when expecting array but getting string - behaves like a wrong decoding - is expected to raise TypeError - when expecting hash but getting array - behaves like a wrong decoding - is expected to raise TypeError - when expecting array but getting hash - behaves like a wrong decoding - is expected to raise TypeError + no body + doesn't add content type + doesn't change body + object body with incompatible type + doesn't change body + doesn't change content type Faraday::Connection - #build_url - uses params - merges params - #dup - is expected to eq # - is expected to eq "1" - is expected to eq "text/plain" - after manual changes - is expected to be falsey - is expected to eq 5 - is expected to be nil - is expected to be falsey - is expected to eq 1 - is expected to eq 1 - default_connection_options - preserving a user_agent assigned via default_conncetion_options - when url is a Hash - is expected to eq {"CustomHeader"=>"CustomValue", "User-Agent"=>"My Agent 1.2"} - when url is a String - is expected to eq {"CustomHeader"=>"CustomValue", "User-Agent"=>"My Agent 1.2"} - assigning a hash - behaves like default connection options - works with instance connection options - works with option url - works with implicit url - default connection uses default connection options - default connection options persist with an instance overriding - assigning a default value - behaves like default connection options - works with option url - works with implicit url - default connection options persist with an instance overriding - works with instance connection options - default connection uses default connection options - proxy support - allows in multi element no proxy list - uses processes no_proxy before http_proxy - allows when url is not in no proxy list but ip address is - test proxy requires uri - allows when ip address is not in no proxy list but url is - allows when subdomain url is in no proxy list - allows when url in no proxy list - uses processes no_proxy before https_proxy - accepts string - ignores env proxy if set that way - accepts env without scheme - accepts http env with auth - does not accept uppercase env - allows when url in no proxy list with url_prefix - accepts hash with string uri - uses env https_proxy - gives priority to manually set proxy - accepts uri - fetches no proxy from nil env - fetches no proxy from blank env - accepts http env - allows when url not in no proxy list - allows when prefixed url is not in no proxy list - uses env http_proxy - accepts hash - performing a request - dynamically checks proxy - dynamically check no proxy - #close - can close underlying app - #build_request - is expected to be truthy - is expected to eq ["Authorization"] - is expected to be falsey - is expected to be empty - #respond_to? - is expected to be truthy - is expected to be truthy #to_env - without braketizing repeated params in query - escapes per spec parses url params into query bracketizes nested params in query + without braketizing repeated params in query + escapes per spec bracketizes repeated params in query #build_exclusive_url + overrides connection port for absolute url always returns new URI instance - allows to provide params argument does not use connection params + does not add ending slash given empty url handles uri instances + allows to provide params argument does not add ending slash given nil url - overrides connection port for absolute url - does not add ending slash given empty url with complete url - is expected to eq "/sake.html" is expected to eq 80 + is expected to eq "httpbingo.org" is expected to eq "a=1" is expected to eq "http" - is expected to eq "httpbingo.org" - with a custom `default_uri_parser` - does not raise error + is expected to eq "/sake.html" with colon in path - joins url to base when used absolute path joins url to base when used with path prefix joins url to base when used relative path - with url_prefixed connection - overrides base - parses url and changes scheme - joins url to base with ending slash - used default base with ending slash - with relative path - is expected to eq "/fish/sake.html" - is expected to eq "/fish/sake.html" - uses connection host as default host - is expected to eq "/fish/sake.html" - is expected to eq "/sake.html" + joins url to base when used absolute path with absolute path - example at ./spec/faraday/connection_spec.rb:207 + example at ./spec/faraday/connection_spec.rb:206 is expected to eq "/sake.html" is expected to eq "/sake.html" is expected to eq "/sake.html" - request params - with default params encoder - supports array params in params - supports array params in url - with url and extra params - allows to override all params - merges connection and request params - allows to set params_encoder for single request - with simple url - test_overrides_request_params_block_url - test_overrides_request_params - test_overrides_request_params_block - with flat params encoder - supports array params in params - with array param in url - example at ./spec/faraday/connection_spec.rb:802 + with relative path + is expected to eq "/fish/sake.html" + uses connection host as default host + is expected to eq "/sake.html" + is expected to eq "/fish/sake.html" + is expected to eq "/fish/sake.html" + with a custom `default_uri_parser` + does not raise error + with url_prefixed connection + used default base with ending slash + parses url and changes scheme + overrides base + joins url to base with ending slash + #close + can close underlying app + proxy support + allows when url in no proxy list with url_prefix + accepts hash + uses processes no_proxy before http_proxy + accepts hash with string uri + allows when subdomain url is in no proxy list + allows when prefixed url is not in no proxy list + allows when url not in no proxy list + allows in multi element no proxy list + fetches no proxy from blank env + does not accept uppercase env + allows when ip address is not in no proxy list but url is + uses env https_proxy + accepts env without scheme + ignores env proxy if set that way + test proxy requires uri + allows when url in no proxy list + allows when url is not in no proxy list but ip address is + uses processes no_proxy before https_proxy + accepts http env with auth + gives priority to manually set proxy + fetches no proxy from nil env + accepts http env + uses env http_proxy + accepts string + accepts uri + performing a request + dynamically checks proxy + dynamically check no proxy + #respond_to? + is expected to be truthy + is expected to be truthy + #build_url + merges params + uses params .new - with basic_auth in url - is expected to eq "Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==" + with verify_hostname false + is expected to be falsey with custom builder - is expected to eq # - with custom params - is expected to eq {"a"=>1} + is expected to eq # with implicit url param behaves like initializer with url with IPv6 address is expected to eq "[::1]" is expected to eq 85 with simple url - is expected to eq {} - is expected to eq "httpbingo.org" - is expected to eq "http" is expected to eq 80 + is expected to eq "http" + is expected to eq "httpbingo.org" + is expected to eq {} is expected to eq "/" with complex url - is expected to eq {"a"=>"1"} - is expected to eq 815 is expected to eq "/fish" + is expected to eq 815 + is expected to eq {"a"=>"1"} with empty block is expected to eq 0 with custom params and params in url is expected to eq {"a"=>3, "b"=>"2"} - with verify_hostname false - is expected to be falsey with explicit url param behaves like initializer with url - with complex url - is expected to eq "/fish" - is expected to eq 815 - is expected to eq {"a"=>"1"} with IPv6 address is expected to eq 85 is expected to eq "[::1]" with simple url - is expected to eq "/" - is expected to eq {} is expected to eq "httpbingo.org" - is expected to eq 80 + is expected to eq {} is expected to eq "http" + is expected to eq 80 + is expected to eq "/" + with complex url + is expected to eq {"a"=>"1"} + is expected to eq 815 + is expected to eq "/fish" + with basic_auth in url + is expected to eq "Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==" with block is expected to eq 0 is expected to eq "/omnom" @@ -2242,104 +2280,102 @@ is expected to eq "Faraday" with ssl false is expected to be falsey - -Faraday::Request - supports marshal serialization - when setting the url on setup with a path including params - is expected to eq {"a"=>"1", "b"=>"2"} - is expected to eq "foo.json" - is expected to eq "http://httpbingo.org/api/foo.json?a=1&b=2" - when setting the url on setup with a URI - is expected to eq "http://httpbingo.org/api/foo.json?a=1" - is expected to eq {"a"=>"1"} - is expected to eq # - when nothing particular is configured - is expected to be falsey + with custom params + is expected to eq {"a"=>1} + #build_request + is expected to be empty is expected to be falsey - is expected to eq :get - when setting the url on setup with a string path and params - is expected to eq "foo.json" - is expected to eq {"a"=>1} - is expected to eq "http://httpbingo.org/api/foo.json?a=1" - when setting a header on setup with []= syntax - is expected to eq "1.0" - is expected to eq "Faraday" - is expected to eq "Faraday" - when HTTP method is post - is expected to eq :post - when setting the body on setup - is expected to eq "hi" - is expected to eq "hi" - with global request options set - is expected to eq 3 - is expected to eq 3 - is expected to eq 5 - is expected to eq 5 - and per-request options set - is expected to eq 5 - is expected to eq 10 - is expected to eq 10 - is expected to eq "boo" - is expected to eq {:consumer_key=>"anonymous", :consumer_secret=>"xyz"} + is expected to be truthy + is expected to eq ["Authorization"] + request params + with url and extra params + allows to set params_encoder for single request + allows to override all params + merges connection and request params + with default params encoder + supports array params in params + supports array params in url + with simple url + test_overrides_request_params + test_overrides_request_params_block_url + test_overrides_request_params_block + with flat params encoder + supports array params in params + with array param in url + example at ./spec/faraday/connection_spec.rb:802 + #dup + is expected to eq "text/plain" + is expected to eq # + is expected to eq "1" + after manual changes + is expected to eq 1 + is expected to be falsey is expected to eq 5 - is expected to eq {:bar=>"bar", :foo=>"foo"} - -Faraday::Utils::Headers - #dig - is expected to eq "application/json" - is expected to be nil - is expected to eq "application/json" - is expected to eq "application/json" - when Content-Type is set to application/json - is expected to eq "application/json" - is expected to eq "application/json" - is expected to eq ["Content-Type"] - is expected to include "content-type" - is expected to eq "application/json" - when Content-Type is set to application/xml - is expected to eq "application/xml" - is expected to eq "application/xml" - is expected to eq "application/xml" - is expected to include "content-type" - is expected to eq ["Content-Type"] - #delete - is expected not to include "content-type" - is expected to eq 0 - is expected to eq "application/json" - is expected to be nil - #fetch - is expected to eq "default" - calls a block when provided - raises an error if key not found - is expected to eq "Invalid key" - is expected to eq "application/json" - is expected to eq "application/json" - is expected to be nil - is expected to eq false - is expected to eq "application/json" - #parse - when response headers values include a colon - is expected to eq "http://httpbingo.org/" - when response headers include a blank line - is expected to eq "text/html" - when response headers leave http status line out - is expected to eq "text/html" - is expected to eq ["Content-Type"] - is expected to eq "text/html" - when response headers include already stored keys - is expected to eq "8, 123" + is expected to be nil + is expected to be falsey + is expected to eq 1 + default_connection_options + preserving a user_agent assigned via default_conncetion_options + when url is a Hash + is expected to eq {"CustomHeader"=>"CustomValue", "User-Agent"=>"My Agent 1.2"} + when url is a String + is expected to eq {"CustomHeader"=>"CustomValue", "User-Agent"=>"My Agent 1.2"} + assigning a hash + behaves like default connection options + works with implicit url + default connection uses default connection options + default connection options persist with an instance overriding + works with option url + works with instance connection options + assigning a default value + behaves like default connection options + works with implicit url + default connection uses default connection options + default connection options persist with an instance overriding + works with option url + works with instance connection options -Faraday - has a version number - proxies to default_connection - uses method_missing on Faraday if there is no proxyable method - proxies methods that exist on the default_connection - proxied methods can be accessed +Faraday::Middleware + #on_request + is called by #call + #close + with app that doesn't support #close + should issue warning + with app that supports #close + should issue warning + options + when options are passed to the middleware + accepts options when initialized + #on_error + is called by #call + ::default_options + with subclass DEFAULT_OPTIONS defined + and with one application's options changed + only updates default options of target subclass + is expected to eq "ok" + and with two applications' options changed + is expected to eq "ok" + is expected to eq "ok" + updates subclasses and parent independent of each other + and without application options configured + is expected to eq "ok" + has only subclass defaults + with FARADAY::MIDDLEWARE DEFAULT_OPTIONS and with Subclass DEFAULT_OPTIONS + and without application options configured + has only subclass defaults + is expected to eq "ok" + and with two applications' options changed + updates subclasses and parent independent of each other + is expected to eq "ok" + is expected to eq "ok" + default_options input validation + raises error if Faraday::Middleware option does not exist + raises error if subclass option does not exist -Finished in 1.32 seconds (files took 2.45 seconds to load) +Finished in 1.6 seconds (files took 3.22 seconds to load) 591 examples, 0 failures -Randomized with seed 13791 +Randomized with seed 53035 Coverage report generated for RSpec to /build/reproducible-path/ruby-faraday-2.10.0/coverage. 0 / 0 LOC (100.0%) covered. [Coveralls] Outside the CI environment, not sending data. @@ -2373,12 +2409,14 @@ dpkg-buildpackage: info: binary-only upload (no source included) dpkg-genchanges: info: not including original source code in upload I: copying local configuration +I: user script /srv/workspace/pbuilder/3684/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/3684/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/30583 and its subdirectories -I: Current time: Thu Oct 10 02:08:51 -12 2024 -I: pbuilder-time-stamp: 1728569331 +I: removing directory /srv/workspace/pbuilder/3684 and its subdirectories +I: Current time: Fri Oct 11 04:11:27 +14 2024 +I: pbuilder-time-stamp: 1728569487