Diff of the two buildlogs: -- --- b1/build.log 2023-04-21 21:15:07.958651090 +0000 +++ b2/build.log 2023-04-21 21:17:12.285147630 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Thu May 23 15:37:24 -12 2024 -I: pbuilder-time-stamp: 1716521844 +I: Current time: Sat Apr 22 11:15:10 +14 2023 +I: pbuilder-time-stamp: 1682111710 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/bookworm-reproducible-base.tgz] I: copying local configuration @@ -16,7 +16,7 @@ I: copying [./ruby-httparty_0.21.0.orig.tar.gz] I: copying [./ruby-httparty_0.21.0-1.debian.tar.xz] I: Extracting source -gpgv: Signature made Mon Feb 6 04:27:48 2023 -12 +gpgv: Signature made Tue Feb 7 06:27:48 2023 +14 gpgv: using EDDSA key 84CFFDC21520F88306EC29D152699AB63F9F2BC3 gpgv: Can't check signature: No public key dpkg-source: warning: cannot verify inline signature for ./ruby-httparty_0.21.0-1.dsc: no acceptable signature found @@ -30,135 +30,167 @@ 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/3563232/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/322696/tmp/hooks/D01_modify_environment starting +debug: Running on ionos11-amd64. +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 Apr 22 11:15 /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/322696/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/322696/tmp/hooks/D02_print_environment starting I: set - BUILDDIR='/build' - BUILDUSERGECOS='first user,first room,first work-phone,first home-phone,first other' - BUILDUSERNAME='pbuilder1' - BUILD_ARCH='amd64' - DEBIAN_FRONTEND='noninteractive' - DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=16' - DISTRIBUTION='bookworm' - HOME='/root' - HOST_ARCH='amd64' + 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]="15" [3]="1" [4]="release" [5]="x86_64-pc-linux-gnu") + BASH_VERSION='5.2.15(1)-release' + BUILDDIR=/build + BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' + BUILDUSERNAME=pbuilder2 + BUILD_ARCH=amd64 + DEBIAN_FRONTEND=noninteractive + DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=15' + DIRSTACK=() + DISTRIBUTION=bookworm + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=x86_64 + HOST_ARCH=amd64 IFS=' ' - INVOCATION_ID='7086776db4834ed28bbf80e88118a661' - 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='3563232' - PS1='# ' - PS2='> ' + INVOCATION_ID=5b2bc984e4964d889261a7a8e201a4a8 + LANG=C + LANGUAGE=et_EE:et + LC_ALL=C + MACHTYPE=x86_64-pc-linux-gnu + MAIL=/var/mail/root + OPTERR=1 + OPTIND=1 + OSTYPE=linux-gnu + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path + PBCURRENTCOMMANDLINEOPERATION=build + PBUILDER_OPERATION=build + PBUILDER_PKGDATADIR=/usr/share/pbuilder + PBUILDER_PKGLIBDIR=/usr/lib/pbuilder + PBUILDER_SYSCONFDIR=/etc + PIPESTATUS=([0]="0") + POSIXLY_CORRECT=y + PPID=322696 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.vaXgPhUb/pbuilderrc_0wUq --distribution bookworm --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/bookworm-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.vaXgPhUb/b1 --logfile b1/build.log ruby-httparty_0.21.0-1.dsc' - SUDO_GID='110' - SUDO_UID='105' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://85.184.249.68:3128' + PWD=/ + SHELL=/bin/bash + SHELLOPTS=braceexpand:errexit:hashall:interactive-comments:posix + SHLVL=3 + SUDO_COMMAND='/usr/bin/timeout -k 24.1h 24h /usr/bin/ionice -c 3 /usr/bin/nice -n 11 /usr/bin/unshare --uts -- /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.vaXgPhUb/pbuilderrc_mTgj --distribution bookworm --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/bookworm-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.vaXgPhUb/b2 --logfile b2/build.log --extrapackages usrmerge ruby-httparty_0.21.0-1.dsc' + SUDO_GID=111 + SUDO_UID=106 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://78.137.99.97:3128 I: uname -a - Linux ionos5-amd64 6.1.0-0.deb11.5-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.12-1~bpo11+1 (2023-03-05) x86_64 GNU/Linux + Linux i-capture-the-hostname 5.10.0-21-amd64 #1 SMP Debian 5.10.162-1 (2023-01-21) x86_64 GNU/Linux I: ls -l /bin total 5632 - -rwxr-xr-x 1 root root 1265648 Feb 12 2023 bash - -rwxr-xr-x 3 root root 39224 Sep 18 2022 bunzip2 - -rwxr-xr-x 3 root root 39224 Sep 18 2022 bzcat - lrwxrwxrwx 1 root root 6 Sep 18 2022 bzcmp -> bzdiff - -rwxr-xr-x 1 root root 2225 Sep 18 2022 bzdiff - lrwxrwxrwx 1 root root 6 Sep 18 2022 bzegrep -> bzgrep - -rwxr-xr-x 1 root root 4893 Nov 27 2021 bzexe - lrwxrwxrwx 1 root root 6 Sep 18 2022 bzfgrep -> bzgrep - -rwxr-xr-x 1 root root 3775 Sep 18 2022 bzgrep - -rwxr-xr-x 3 root root 39224 Sep 18 2022 bzip2 - -rwxr-xr-x 1 root root 14568 Sep 18 2022 bzip2recover - lrwxrwxrwx 1 root root 6 Sep 18 2022 bzless -> bzmore - -rwxr-xr-x 1 root root 1297 Sep 18 2022 bzmore - -rwxr-xr-x 1 root root 44016 Sep 20 2022 cat - -rwxr-xr-x 1 root root 68656 Sep 20 2022 chgrp - -rwxr-xr-x 1 root root 64496 Sep 20 2022 chmod - -rwxr-xr-x 1 root root 72752 Sep 20 2022 chown - -rwxr-xr-x 1 root root 151152 Sep 20 2022 cp - -rwxr-xr-x 1 root root 125640 Jan 5 2023 dash - -rwxr-xr-x 1 root root 121904 Sep 20 2022 date - -rwxr-xr-x 1 root root 89240 Sep 20 2022 dd - -rwxr-xr-x 1 root root 102200 Sep 20 2022 df - -rwxr-xr-x 1 root root 151344 Sep 20 2022 dir - -rwxr-xr-x 1 root root 88656 Mar 22 2023 dmesg - lrwxrwxrwx 1 root root 8 Dec 19 2022 dnsdomainname -> hostname - lrwxrwxrwx 1 root root 8 Dec 19 2022 domainname -> hostname - -rwxr-xr-x 1 root root 43856 Sep 20 2022 echo - -rwxr-xr-x 1 root root 41 Jan 24 2023 egrep - -rwxr-xr-x 1 root root 35664 Sep 20 2022 false - -rwxr-xr-x 1 root root 41 Jan 24 2023 fgrep - -rwxr-xr-x 1 root root 85600 Mar 22 2023 findmnt - -rwsr-xr-x 1 root root 35128 Mar 22 2023 fusermount - -rwxr-xr-x 1 root root 203152 Jan 24 2023 grep - -rwxr-xr-x 2 root root 2346 Apr 9 2022 gunzip - -rwxr-xr-x 1 root root 6447 Apr 9 2022 gzexe - -rwxr-xr-x 1 root root 98136 Apr 9 2022 gzip - -rwxr-xr-x 1 root root 22680 Dec 19 2022 hostname - -rwxr-xr-x 1 root root 72824 Sep 20 2022 ln - -rwxr-xr-x 1 root root 53024 Mar 23 2023 login - -rwxr-xr-x 1 root root 151344 Sep 20 2022 ls - -rwxr-xr-x 1 root root 207168 Mar 22 2023 lsblk - -rwxr-xr-x 1 root root 97552 Sep 20 2022 mkdir - -rwxr-xr-x 1 root root 72912 Sep 20 2022 mknod - -rwxr-xr-x 1 root root 43952 Sep 20 2022 mktemp - -rwxr-xr-x 1 root root 59712 Mar 22 2023 more - -rwsr-xr-x 1 root root 59704 Mar 22 2023 mount - -rwxr-xr-x 1 root root 18744 Mar 22 2023 mountpoint - -rwxr-xr-x 1 root root 142968 Sep 20 2022 mv - lrwxrwxrwx 1 root root 8 Dec 19 2022 nisdomainname -> hostname - lrwxrwxrwx 1 root root 14 Apr 2 2023 pidof -> /sbin/killall5 - -rwxr-xr-x 1 root root 43952 Sep 20 2022 pwd - lrwxrwxrwx 1 root root 4 Feb 12 2023 rbash -> bash - -rwxr-xr-x 1 root root 52112 Sep 20 2022 readlink - -rwxr-xr-x 1 root root 72752 Sep 20 2022 rm - -rwxr-xr-x 1 root root 56240 Sep 20 2022 rmdir - -rwxr-xr-x 1 root root 27560 Nov 2 2022 run-parts - -rwxr-xr-x 1 root root 126424 Jan 5 2023 sed - lrwxrwxrwx 1 root root 4 Jan 5 2023 sh -> dash - -rwxr-xr-x 1 root root 43888 Sep 20 2022 sleep - -rwxr-xr-x 1 root root 85008 Sep 20 2022 stty - -rwsr-xr-x 1 root root 72000 Mar 22 2023 su - -rwxr-xr-x 1 root root 39824 Sep 20 2022 sync - -rwxr-xr-x 1 root root 531984 Apr 6 2023 tar - -rwxr-xr-x 1 root root 14520 Nov 2 2022 tempfile - -rwxr-xr-x 1 root root 109616 Sep 20 2022 touch - -rwxr-xr-x 1 root root 35664 Sep 20 2022 true - -rwxr-xr-x 1 root root 14568 Mar 22 2023 ulockmgr_server - -rwsr-xr-x 1 root root 35128 Mar 22 2023 umount - -rwxr-xr-x 1 root root 43888 Sep 20 2022 uname - -rwxr-xr-x 2 root root 2346 Apr 9 2022 uncompress - -rwxr-xr-x 1 root root 151344 Sep 20 2022 vdir - -rwxr-xr-x 1 root root 72024 Mar 22 2023 wdctl - lrwxrwxrwx 1 root root 8 Dec 19 2022 ypdomainname -> hostname - -rwxr-xr-x 1 root root 1984 Apr 9 2022 zcat - -rwxr-xr-x 1 root root 1678 Apr 9 2022 zcmp - -rwxr-xr-x 1 root root 6460 Apr 9 2022 zdiff - -rwxr-xr-x 1 root root 29 Apr 9 2022 zegrep - -rwxr-xr-x 1 root root 29 Apr 9 2022 zfgrep - -rwxr-xr-x 1 root root 2081 Apr 9 2022 zforce - -rwxr-xr-x 1 root root 8103 Apr 9 2022 zgrep - -rwxr-xr-x 1 root root 2206 Apr 9 2022 zless - -rwxr-xr-x 1 root root 1842 Apr 9 2022 zmore - -rwxr-xr-x 1 root root 4577 Apr 9 2022 znew -I: user script /srv/workspace/pbuilder/3563232/tmp/hooks/D02_print_environment finished + -rwxr-xr-x 1 root root 1265648 Feb 13 10:05 bash + -rwxr-xr-x 3 root root 39224 Sep 19 2022 bunzip2 + -rwxr-xr-x 3 root root 39224 Sep 19 2022 bzcat + lrwxrwxrwx 1 root root 6 Sep 19 2022 bzcmp -> bzdiff + -rwxr-xr-x 1 root root 2225 Sep 19 2022 bzdiff + lrwxrwxrwx 1 root root 6 Sep 19 2022 bzegrep -> bzgrep + -rwxr-xr-x 1 root root 4893 Nov 28 2021 bzexe + lrwxrwxrwx 1 root root 6 Sep 19 2022 bzfgrep -> bzgrep + -rwxr-xr-x 1 root root 3775 Sep 19 2022 bzgrep + -rwxr-xr-x 3 root root 39224 Sep 19 2022 bzip2 + -rwxr-xr-x 1 root root 14568 Sep 19 2022 bzip2recover + lrwxrwxrwx 1 root root 6 Sep 19 2022 bzless -> bzmore + -rwxr-xr-x 1 root root 1297 Sep 19 2022 bzmore + -rwxr-xr-x 1 root root 44016 Sep 21 2022 cat + -rwxr-xr-x 1 root root 68656 Sep 21 2022 chgrp + -rwxr-xr-x 1 root root 64496 Sep 21 2022 chmod + -rwxr-xr-x 1 root root 72752 Sep 21 2022 chown + -rwxr-xr-x 1 root root 151152 Sep 21 2022 cp + -rwxr-xr-x 1 root root 125640 Jan 6 03:20 dash + -rwxr-xr-x 1 root root 121904 Sep 21 2022 date + -rwxr-xr-x 1 root root 89240 Sep 21 2022 dd + -rwxr-xr-x 1 root root 102200 Sep 21 2022 df + -rwxr-xr-x 1 root root 151344 Sep 21 2022 dir + -rwxr-xr-x 1 root root 88656 Mar 24 00:02 dmesg + lrwxrwxrwx 1 root root 8 Dec 20 03:33 dnsdomainname -> hostname + lrwxrwxrwx 1 root root 8 Dec 20 03:33 domainname -> hostname + -rwxr-xr-x 1 root root 43856 Sep 21 2022 echo + -rwxr-xr-x 1 root root 41 Jan 25 04:43 egrep + -rwxr-xr-x 1 root root 35664 Sep 21 2022 false + -rwxr-xr-x 1 root root 41 Jan 25 04:43 fgrep + -rwxr-xr-x 1 root root 85600 Mar 24 00:02 findmnt + -rwsr-xr-x 1 root root 35128 Mar 23 22:35 fusermount + -rwxr-xr-x 1 root root 203152 Jan 25 04:43 grep + -rwxr-xr-x 2 root root 2346 Apr 10 2022 gunzip + -rwxr-xr-x 1 root root 6447 Apr 10 2022 gzexe + -rwxr-xr-x 1 root root 98136 Apr 10 2022 gzip + -rwxr-xr-x 1 root root 22680 Dec 20 03:33 hostname + -rwxr-xr-x 1 root root 72824 Sep 21 2022 ln + -rwxr-xr-x 1 root root 53024 Mar 24 02:40 login + -rwxr-xr-x 1 root root 151344 Sep 21 2022 ls + -rwxr-xr-x 1 root root 207168 Mar 24 00:02 lsblk + -rwxr-xr-x 1 root root 97552 Sep 21 2022 mkdir + -rwxr-xr-x 1 root root 72912 Sep 21 2022 mknod + -rwxr-xr-x 1 root root 43952 Sep 21 2022 mktemp + -rwxr-xr-x 1 root root 59712 Mar 24 00:02 more + -rwsr-xr-x 1 root root 59704 Mar 24 00:02 mount + -rwxr-xr-x 1 root root 18744 Mar 24 00:02 mountpoint + -rwxr-xr-x 1 root root 142968 Sep 21 2022 mv + lrwxrwxrwx 1 root root 8 Dec 20 03:33 nisdomainname -> hostname + lrwxrwxrwx 1 root root 14 Apr 3 20:25 pidof -> /sbin/killall5 + -rwxr-xr-x 1 root root 43952 Sep 21 2022 pwd + lrwxrwxrwx 1 root root 4 Feb 13 10:05 rbash -> bash + -rwxr-xr-x 1 root root 52112 Sep 21 2022 readlink + -rwxr-xr-x 1 root root 72752 Sep 21 2022 rm + -rwxr-xr-x 1 root root 56240 Sep 21 2022 rmdir + -rwxr-xr-x 1 root root 27560 Nov 3 06:31 run-parts + -rwxr-xr-x 1 root root 126424 Jan 6 09:55 sed + lrwxrwxrwx 1 root root 9 Apr 22 11:15 sh -> /bin/bash + -rwxr-xr-x 1 root root 43888 Sep 21 2022 sleep + -rwxr-xr-x 1 root root 85008 Sep 21 2022 stty + -rwsr-xr-x 1 root root 72000 Mar 24 00:02 su + -rwxr-xr-x 1 root root 39824 Sep 21 2022 sync + -rwxr-xr-x 1 root root 531984 Apr 7 04:25 tar + -rwxr-xr-x 1 root root 14520 Nov 3 06:31 tempfile + -rwxr-xr-x 1 root root 109616 Sep 21 2022 touch + -rwxr-xr-x 1 root root 35664 Sep 21 2022 true + -rwxr-xr-x 1 root root 14568 Mar 23 22:35 ulockmgr_server + -rwsr-xr-x 1 root root 35128 Mar 24 00:02 umount + -rwxr-xr-x 1 root root 43888 Sep 21 2022 uname + -rwxr-xr-x 2 root root 2346 Apr 10 2022 uncompress + -rwxr-xr-x 1 root root 151344 Sep 21 2022 vdir + -rwxr-xr-x 1 root root 72024 Mar 24 00:02 wdctl + lrwxrwxrwx 1 root root 8 Dec 20 03:33 ypdomainname -> hostname + -rwxr-xr-x 1 root root 1984 Apr 10 2022 zcat + -rwxr-xr-x 1 root root 1678 Apr 10 2022 zcmp + -rwxr-xr-x 1 root root 6460 Apr 10 2022 zdiff + -rwxr-xr-x 1 root root 29 Apr 10 2022 zegrep + -rwxr-xr-x 1 root root 29 Apr 10 2022 zfgrep + -rwxr-xr-x 1 root root 2081 Apr 10 2022 zforce + -rwxr-xr-x 1 root root 8103 Apr 10 2022 zgrep + -rwxr-xr-x 1 root root 2206 Apr 10 2022 zless + -rwxr-xr-x 1 root root 1842 Apr 10 2022 zmore + -rwxr-xr-x 1 root root 4577 Apr 10 2022 znew +I: user script /srv/workspace/pbuilder/322696/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -351,7 +383,7 @@ Get: 139 http://deb.debian.org/debian bookworm/main amd64 ruby-rspec-mocks all 3.12.0c0e1m1s0-1 [79.5 kB] Get: 140 http://deb.debian.org/debian bookworm/main amd64 ruby-rspec all 3.12.0c0e1m1s0-1 [5084 B] Get: 141 http://deb.debian.org/debian bookworm/main amd64 ruby-webmock all 3.18.1-2 [66.2 kB] -Fetched 47.2 MB in 1s (74.7 MB/s) +Fetched 47.2 MB in 2s (22.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 ... 19596 files and directories currently installed.) @@ -938,8 +970,19 @@ Writing extended state information... Building tag database... -> Finished parsing the build-deps +Reading package lists... +Building dependency tree... +Reading state information... +usrmerge is already the newest version (35). +0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. I: Building the package -I: Running cd /build/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/322696/tmp/hooks/A99_set_merged_usr starting +Re-configuring usrmerge... +removed '/etc/unsupported-skip-usrmerge-conversion' +The system has been successfully converted. +I: user script /srv/workspace/pbuilder/322696/tmp/hooks/A99_set_merged_usr finished +hostname: Name or service not known +I: Running cd /build/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 @@ -971,7 +1014,7 @@ dh_prep -O--buildsystem=ruby dh_auto_install --destdir=debian/ruby-httparty/ -O--buildsystem=ruby dh_ruby --install /build/ruby-httparty-0.21.0/debian/ruby-httparty -/usr/bin/ruby3.1 -S gem build --config-file /dev/null --verbose /tmp/d20240523-3573572-58ctrz/gemspec +/usr/bin/ruby3.1 -S gem build --config-file /dev/null --verbose /tmp/d20230422-347028-dac7y8/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 @@ -985,7 +1028,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/d20240523-3573572-58ctrz/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/d20230422-347028-dac7y8/httparty-0.21.0.gem Failed to load /dev/null because it doesn't contain valid YAML hash /build/ruby-httparty-0.21.0/debian/ruby-httparty/usr/share/rubygems-integration/all/gems/httparty-0.21.0/bin/httparty /build/ruby-httparty-0.21.0/debian/ruby-httparty/usr/share/rubygems-integration/all/gems/httparty-0.21.0/lib/httparty.rb @@ -1053,212 +1096,283 @@ All examples were filtered out; ignoring {:focus=>true} -Randomized with seed 29129 +Randomized with seed 57012 + +HTTParty::HeadersProcessor + when headers are dynamic + returns processed global and request specific headers + when only request specific headers are set + returns stringified request specific headers + 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 + when headers are not set at all + returns empty hash HTTParty::Response + allows headers to be accessed by mixed-case names in hash notation + returns response headers responds to predicates - should send missing methods to delegate - response to request - responds to anything parsed_response responds to - responds to headers + responds to parsed_response responds to hash methods - allows headers to be accessed by mixed-case names in hash notation responds to response - responds to parsed_response - does raise an error about itself when using #method + responds to anything parsed_response responds to returns a comma-delimited value when multiple values exist - 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 headers + should send missing methods to delegate + response to request responds to body - #inspect - works - response is array - should display the same as an array - should equal the string response object body - should respond to array methods - should be able to iterate + does raise an error about itself when invoking a method that does not exist + .underscore + works with one capitalized word + works with titlecase + works with all caps + headers + does not equal itself when not equivalent + does equal a hash + can initialize without headers + always equals itself + #tap + is possible to tap into a response + #kind_of? + is expected to be truthy + is expected to respond to #kind_of? with 1 argument + is expected to be truthy + #is_a? + is expected to be truthy + is expected to be truthy + is expected to respond to #is_a? with 1 argument semantic methods for response codes + major codes + is success + is redirection + is server error + is information + is client error for specific codes - responds to unsupported_media_type? - responds to reset_content? - responds to method_not_allowed? + responds to accepted? responds to requested_range_not_satisfiable? - responds to payload_too_large? - responds to not_implemented? - responds to multiple_choices? - responds to gone? - responds to not_acceptable? - responds to internal_server_error? - responds to version_not_supported? - responds to see_other? - responds to service_unavailable? - responds to proxy_authentication_required? - responds to use_proxy? responds to bad_gateway? - responds to accepted? - responds to precondition_failed? - responds to multiple_choice? - responds to no_content? - responds to uri_too_long? - responds to gateway_time_out? - responds to request_timeout? - responds to partial_content? - responds to unauthorized? - responds to payment_required? - responds to gateway_timeout? - responds to expectation_failed? - responds to conflict? - responds to request_time_out? responds to non_authoritative_information? - responds to not_found? - responds to continue? - responds to found? responds to switch_protocol? - responds to request_entity_too_large? - responds to range_not_satisfiable? responds to temporary_redirect? + responds to payload_too_large? + responds to use_proxy? + responds to unsupported_media_type? + responds to proxy_authentication_required? + responds to not_acceptable? + responds to reset_content? + responds to request_timeout? responds to forbidden? - responds to bad_request? - responds to length_required? + responds to continue? + responds to found? responds to request_uri_too_long? - responds to moved_permanently? - responds to ok? + responds to gone? + responds to not_implemented? + responds to precondition_failed? + responds to internal_server_error? + responds to bad_request? responds to not_modified? + responds to method_not_allowed? + responds to gateway_time_out? + responds to moved_permanently? + responds to not_found? + responds to range_not_satisfiable? + responds to no_content? responds to created? - major codes - is redirection - is client error - is success - is information - is server error + responds to length_required? + responds to conflict? + responds to multiple_choices? + responds to request_entity_too_large? + responds to payment_required? + responds to ok? + responds to see_other? + responds to request_time_out? + responds to gateway_timeout? + responds to partial_content? + responds to service_unavailable? + responds to multiple_choice? + responds to unauthorized? + responds to version_not_supported? + responds to expectation_failed? + responds to uri_too_long? + response is array + should equal the string response object body + should display the same as an array + should be able to iterate + should respond to array methods initialization + should set http_version + should set code + should set the Net::HTTP Response 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 not in range - does not throw exception and response's status code is in range throws exception - .underscore - works with all caps - works with one capitalized word - works with titlecase - #kind_of? - is expected to be truthy - is expected to be truthy - is expected to respond to #kind_of? with 1 argument - headers - does not equal itself when not equivalent - can initialize without headers - always equals itself - does equal a hash + and response's status code is not in range + does not throw exception + #inspect + works marshalling is expected to eq 200 - #tap - is possible to tap into a response - #is_a? - is expected to be truthy - is expected to respond to #is_a? with 1 argument - is expected to be truthy -HTTParty::ResponseFragment - has access to delegators - access to fragment +HTTParty::Parser + #parse + returns nil for a body with spaces only + returns nil for a nil body + does not raise exceptions for bodies with invalid encodings + parses frozen strings + ignores utf-8 bom + parses ascii 8bit encoding + attempts to parse supported formats + returns the unparsed body when the format is unsupported + returns nil for a 'null' body + returns nil for an empty body + .SupportedFormats + returns a hash + .formats + returns the SupportedFormats constant + returns the SupportedFormats constant for subclasses + .supported_formats + returns a unique set of supported formats represented by symbols + parsers + parses plain text by simply returning the body + parses json with JSON + parses csv with CSV + parses html by simply returning the body + parses xml with MultiXml + #supports_format? + utilizes the class method to determine if the format is supported + .supports_format? + returns false for an unsupported format + returns true for a supported format + .call + calls #parse on the parser + generates an HTTParty::Parser instance with the given body and format + #parse_supported_format + calls the parser for the given format + when a parsing method does not exist for the given format + raises an exception + raises a useful exception message for subclasses + .format_from_mimetype + returns a symbol representing the format mimetype + returns nil when the mimetype is not supported + +HTTParty::CookieHash + #add_cookies + with a string + should add new key/value pairs to the hash + should handle '=' within cookie value + should handle an empty cookie parameter + should overwrite any existing key + 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 mutate the hash + should not include client side only cookies even when attributes use camal case + should not include client side only cookies + should not include SameSite attribute + should format the key/value pairs, delimited by semi-colons + +HTTParty::Logger::CurlFormatter + #format + formats a response in a style that resembles a -v curl + when request is logged + and headers are not present + not log Headers + 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 headers are present + logs headers keys + logs Headers + and query is present + logs query params + logs Query + and query is not present + not logs Query + when response is logged + logs headers + logs body + logs http version and response code Net::HTTPHeader::DigestAuthenticator - with a cookie value in the response header - should set cookie header - Net::HTTPHeader#digest_auth - should set the authorization header with multiple authenticate headers - should set digest-uri should set qop - should set nonce-count - should set response - should set cnonce should set prefix should set username - without a cookie value in the response header - should set empty cookie header array - with specified quality of protection (qop) + should set cnonce + should set response should set nonce-count - should set username - should set qop should set digest-uri - should set response - should set prefix - should set cnonce - without an opaque valid in the response header - should not set opaque 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 a cookie value in the response header + should set cookie header with md5-sess algorithm specified should recognise algorithm was specified should set the algorithm header should set response using md5-sess algorithm + Net::HTTPHeader#digest_auth + should set the authorization header with algorithm specified - should recognise algorithm was specified should set the algorithm header - with an opaque value in the response header - should set opaque + should recognise algorithm was specified with unspecified quality of protection (qop) - should not set nonce-count - should set response + should set digest-uri should not set cnonce + should set response should set prefix - should set digest-uri + should not set nonce-count should not set qop should set username - -HTTParty::Request::Body - #multipart? - when params does not respond to to_hash - is expected to equal false - when params responds to to_hash - when it contains file - is expected to equal true - when force_multipart is true - is expected to equal true - when it does not contain a file - is expected to eq false - #call - 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 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" - 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" - 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 params is string - is expected to eq "name=Bob%20Jones" - -HTTParty::HeadersProcessor - when only global headers are set - returns stringified global headers - when headers are dynamic - returns processed global and request specific headers - when only request specific headers are set - returns stringified 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 + without a cookie value in the response header + should set empty cookie header array + without an opaque valid in the response header + should not set opaque + with an opaque value in the response header + should set opaque + with specified quality of protection (qop) + should set digest-uri + should set response + should set qop + should set cnonce + should set username + should set prefix + should set nonce-count + with http basic auth response when net digest auth expected + should not fail HTTParty::Decompressor + .SupportedEncodings + returns a hash #decompress - when encoding is blank + when body is blank + is expected to eq " " + when encoding is nil behaves like returns the body is expected to eq "body" - when encoding is nil + when encoding is "none" + behaves like returns the body + is expected to eq "body" + 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 encoding is blank behaves like returns the body is expected to eq "body" when encoding is "br" @@ -1269,511 +1383,247 @@ is expected to eq "foobar" when brotli raises error is expected to eq nil - when encoding is "zstd" - when zstd-ruby gem not included - behaves like returns nil - is expected to be nil - when zstd-ruby included - is expected to eq "foobar" - when zstd raises error - is expected to eq nil when encoding is "compress" - when ruby-lzws raises error - is expected to eq nil + when compress-lzw included + is expected to eq "foobar" when ruby-lzws included is expected to eq "foobar" 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 raises error + is expected to eq nil when body is nil behaves like returns nil is expected to be nil - when encoding is unsupported - 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 "identity" behaves like returns the body is expected to eq "body" - when body is blank - is expected to eq " " - .SupportedEncodings - returns a hash - -HTTParty::Logger::CurlFormatter - #format - formats a response in a style that resembles a -v curl - when request is logged - and query is present - logs query params - logs Query - when request raw_body is present - not logs request body - and request's option 'base_uri' is not present - logs url - and request's option 'base_uri' is present - logs url - and headers are not present - not log Headers - and query is not present - not logs Query - and headers are present - logs Headers - logs headers keys - when response is logged - logs http version and response code - logs body - logs headers - -HTTParty::ConnectionAdapter - .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 - 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 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 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 debug_output - is not provided - does not set_debug_output - is set to $stderr - has debug output set - when dealing with IPv6 - strips brackets from the address - when setting max_retries - to 5 times - #max_retries - is expected to eq 5 - to 0 times - #max_retries - is expected to eq 0 - and max_retries is a string - doesn't set the max_retries - specifying ciphers - should set the ciphers on the connection - 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" - when timeout is not set - doesn't set the timeout - 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 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 timeout is set and read_timeout is set to 6 seconds - should override the timeout option - #read_timeout - is expected to eq 6 - #open_timeout - is expected to eq 5 - #write_timeout - is expected to eq 5 - when setting timeout - and timeout is a string - doesn't set the timeout - to 5 seconds - #read_timeout - is expected to eq 5 - #open_timeout - is expected to eq 5 - #write_timeout - is expected to eq 5 - when not providing a proxy address - does not pass any proxy parameters to the connection - 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 providing proxy address and port - is expected to be a proxy - as well as proxy user and password - #proxy_pass - is expected to eq "pass" - #proxy_user - is expected to eq "user" - #proxy_address - is expected to eq "1.2.3.4" - #proxy_port - is expected to eq 8080 - using port 80 - is expected not to use ssl - 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 dealing with ssl - https scheme with non-standard port - is expected to use ssl - should use the specified cert store, when one is given - is expected to use cert store # - using port 443 for ssl - is expected to use ssl - https scheme with default port - is expected to use ssl - uses the system cert_store, by default - is expected to use cert store # - when ssl version is set - sets ssl version - 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 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 - initialization - sets the uri - sets the options - raises an ArgumentError if the uri is nil - raises an ArgumentError if the uri is a String - takes a URI as input - also accepts an optional options hash - -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::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 handle '=' within cookie value - should add new key/value pairs to the hash - should overwrite any existing key - #to_cookie_string - should format the key/value pairs, delimited by semi-colons - should not include SameSite attribute - should not include client side only cookies even when attributes use camal case - should not mutate the hash - should not include client side only cookies - -HTTParty::Logger - .build - defaults format to :apache - builds :curl style logger - raises error when formatter exists - defaults level to :info - builds :custom style logger - builds :logstash style logger - -HTTParty::Parser - parsers - parses html by simply returning the body - parses json with JSON - parses xml with MultiXml - parses plain text by simply returning the body - parses csv with CSV - .format_from_mimetype - returns nil when the mimetype is not supported - returns a symbol representing the format mimetype - #parse_supported_format - calls the parser for the given format - when a parsing method does not exist for the given format - raises an exception - raises a useful exception message for subclasses - .supported_formats - returns a unique set of supported formats represented by symbols - .formats - returns the SupportedFormats constant - returns the SupportedFormats constant for subclasses - .call - calls #parse on the parser - generates an HTTParty::Parser instance with the given body and format - .supports_format? - returns true for a supported format - returns false for an unsupported format - #parse - ignores utf-8 bom - does not raise exceptions for bodies with invalid encodings - parses ascii 8bit encoding - attempts to parse supported formats - returns the unparsed body when the format is unsupported - parses frozen strings - returns nil for a nil body - returns nil for a 'null' body - returns nil for an empty body - returns nil for a body with spaces only - #supports_format? - utilizes the class method to determine if the format is supported - .SupportedFormats - returns a hash - -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 -# 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/ruby-httparty-0.21.0/spec/support/ssl_test_server.rb:56:in `thread_main' - from /build/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 provide the certificate used by the server via peer_cert - should work when using ssl_ca_file with a certificate authority - should work when no trusted CA list is specified, when the verify option is set to false - 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: tlsv1 alert unknown ca (OpenSSL::SSL::SSLError) - from /usr/lib/ruby/3.1.0/openssl/ssl.rb:524:in `accept' - from /build/ruby-httparty-0.21.0/spec/support/ssl_test_server.rb:56:in `thread_main' - from /build/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 work when using ssl_ca_file with a self-signed CA -# 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/ruby-httparty-0.21.0/spec/support/ssl_test_server.rb:56:in `thread_main' - from /build/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: sslv3 alert bad certificate (OpenSSL::SSL::SSLError) - from /usr/lib/ruby/3.1.0/openssl/ssl.rb:524:in `accept' - from /build/ruby-httparty-0.21.0/spec/support/ssl_test_server.rb:56:in `thread_main' - from /build/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/ruby-httparty-0.21.0/spec/support/ssl_test_server.rb:56:in `thread_main' - from /build/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/ruby-httparty-0.21.0/spec/support/ssl_test_server.rb:56:in `thread_main' - from /build/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::LogstashFormatter - #format - formats a response to be compatible with Logstash + when encoding is unsupported + behaves like returns nil + is expected to be nil HTTParty - ssl_version - should set the ssl_version content + format + should allow csv + sets the default parser + should allow json + should allow plain + should not allow funky format + should allow xml + does not reset parser to the default parser + should only print each format once with an exception + with multiple class definitions + should not run over each others options + .raise_on + when parameters is an array + sets raise_on option + when parameters is a fixnum + sets raise_on option + headers + should pass options as argument to header block value + merges class headers with request headers + should default to empty hash + overrides class headers with request headers + uses the class headers when sending a request + should be able to be updated + should be able to accept block as header value + does not modify default_options when no arguments are passed + with cookies + utilizes the class-level cookies + adds cookies to the headers + adds optional cookies to the optional headers + doesnt modify default 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 + base uri + should not modify the parameter during assignment + should have writer + should have reader + #resend_on_redirect + sets resend_on_redirect option to false + sets resend_on_redirect to true by default + pkcs12 + should set the password + should set the p12 content + 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 basic http authentication should work - 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 - 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 pass the proper cookies when requested multiple times - should include that cookie in the request debug_output stores the given stream as a default_option stores the $stderr stream by default + connection_adapter + should set the connection_adapter + should set the connection_adapter_options when provided + should not set the connection_adapter_options when not provided + should process a request with a connection from the adapter + grand parent with inherited callback + continues running the #inherited on the parent + digest http authentication + should work with explicit override of automatic redirect handling - should fail with redirected HEAD - should fail with redirected PATCH + should fail with redirected PUT should fail with redirected POST - should fail with redirected OPTIONS + should fail with redirected DELETE + should fail with redirected GET + should fail with redirected PATCH + should fail with redirected MOVE should fail with redirected MKCOL should fail with redirected COPY - should fail with redirected MOVE - should fail with redirected GET - should fail with redirected DELETE - should fail with redirected PUT - .follow_redirects - sets the follow_redirects option to false - sets follow redirects to true by default + should fail with redirected OPTIONS + should fail with redirected HEAD + ciphers + should set the ciphers content + parser + should be able parse response with custom parser + does not validate format whe custom parser is a proc + raises UnsupportedFormat when the parser cannot handle the format + should set parser options + .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 + .normalize_base_uri + should add https if not present for ssl requests + should not modify the parameter + should add http if not present for non ssl requests + should not remove https for ssl requests + should not treat uri's with a port of 4430 as ssl + #no_follow + sets the no_follow option to true + sets no_follow to false by default + http_proxy + should set the proxy user and pass when they are provided + should set the address + cookies + should not be in the headers by default + should allow a cookie to be specified with a one-off request + should raise an ArgumentError if passed a non-Hash + 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 to get chunked html - should not get undefined method add_node for nil class for the following xml should be able parse response type csv automatically - should accept webcal URIs [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.12.1/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 be able parse response type json automatically should return an empty body if stream_body option is turned on - should be able to get html + should not get undefined method add_node for nil class for the following xml + should accept https URIs should accept http URIs - should be able parse response type json automatically + should be able to get chunked html + should accept webcal URIs + should be able to get html + should raise an InvalidURIError on URIs that can't be parsed at all should be able parse response type xml automatically - should accept https URIs when streaming body is expected to eq # + pem + should set the password to nil if it's not provided + should set the password + should set the pem content two child classes inheriting from one parent + doesn't modify the parent's default cookies + inherits default_options from the superclass + does not modify each others inherited attributes doesn't modify the parent's default options - doesn't modify hashes in the parent's default options + should dup the proc on the child class works with lambda values - inherits default_options from the superclass + doesn't modify hashes in the parent's default options inherits default_cookies from the parent class - should dup the proc on the child class - doesn't modify the parent's default cookies - does not modify each others inherited attributes - default timeout - should default to nil - should raise an exception if unsupported type provided - should support updating - should support floats - base uri - should have reader - should have writer - should not modify the parameter during assignment - headers - should default to empty hash - should be able to be updated - does not modify default_options when no arguments are passed - should be able to accept block as header value - overrides class headers with request headers - uses the class headers when sending a request - merges class headers with request headers - should pass options as argument to header block value - 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 optional cookies to the optional headers - adds cookies to the headers - doesnt modify default headers - utilizes the class-level cookies + head requests should follow redirects requesting HEAD only + should remain HEAD request across redirects, unless specified otherwise #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 - http_proxy - should set the address - should set the proxy user and pass when they are provided - ciphers - should set the ciphers content + should set maintain_method_across_redirects option if unspecified + ssl_version + should set the ssl_version content #maintain_method_across_redirects - sets the maintain_method_across_redirects option to false sets maintain_method_across_redirects to true by default - head requests should follow redirects requesting HEAD only - should remain HEAD request across redirects, unless specified otherwise - uri_adapter - with Addressable::URI - handles international domains - 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 + sets the maintain_method_across_redirects option to false + default timeout + should support updating + should raise an exception if unsupported type provided + should support floats + should default to nil default params - should be able to be updated should default to empty hash - #resend_on_redirect - sets resend_on_redirect option to false - sets resend_on_redirect to true by default - format - sets the default parser - does not reset parser to the default parser - should allow csv - should allow plain - should not allow funky format - should only print each format once with an exception - should allow json - should allow xml - .normalize_base_uri - 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 - should add http if not present for non ssl requests - parser - should be able parse response with custom parser - should set parser options - does not validate format whe custom parser is a proc - raises UnsupportedFormat when the parser cannot handle the format - connection_adapter - should set the connection_adapter_options when provided - should process a request with a connection from the adapter - should set the connection_adapter - should not set the connection_adapter_options when not provided - grand parent with inherited callback - continues running the #inherited on the parent - #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 - pem - should set the password - should set the password to nil if it's not provided - should set the pem content - digest http authentication - should work - .query_string_normalizer - sets the query_string_normalizer option - pkcs12 - should set the password - should set the p12 content - with multiple class definitions - should not run over each others options + should be able to be updated + .follow_redirects + sets follow redirects to true by default + sets the follow_redirects option to false -HTTParty::HashConversions - .to_params - creates a params string from a hash - nested params - creates a params string from a hash - .normalize_param - value is a string - creates a params string - value is an array - creates a params string - value is hash - creates a params string - value is an empty array - creates a params string +HTTParty::Error + HTTParty::DuplicateLocationHeader + #ancestors + is expected to include HTTParty::ResponseError + HTTParty::ResponseError + #ancestors + is expected to include HTTParty::Error + HTTParty::UnsupportedFormat + #ancestors + is expected to include HTTParty::Error + #ancestors + is expected to include StandardError + HTTParty::RedirectionTooDeep + #ancestors + is expected to include HTTParty::ResponseError + HTTParty::UnsupportedURIScheme + #ancestors + is expected to include HTTParty::Error + +HTTParty::ResponseFragment + access to fragment + has access to delegators + +HTTParty::Request::Body + #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 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" + is expected not to change `file.pos` + 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" + 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 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" + #multipart? + when params does not respond to to_hash + is expected to equal false + when params responds to to_hash + when it contains file + is expected to equal true + when force_multipart is true + is expected to equal true + when it does not contain a file + is expected to eq false + +HTTParty::Logger::LogstashFormatter + #format + formats a response to be compatible with Logstash + +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::Request should not fail for missing mime type @@ -1782,260 +1632,374 @@ [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.12.1/lib/rspec/matchers/built_in/be.rb:69:in `match' should not attempt to parse empty responses - #format_from_mimetype - should handle text/comma-separated-values - returns nil when using a default parser - should handle application/vnd.api+json - should handle text/xml - should handle text/json - should handle application/hal+json - should handle text/csv - should handle application/xml - should handle text/javascript - returns nil for an unrecognized mimetype - should handle application/csv - should handle application/json - should handle application/javascript + 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 merge cookies from request and a 401 response + should be used when configured and the response is 401 + should not send credentials more than once + should not be used when configured and the response is 200 + should maintain cookies returned from a 401 response + initialization + sets connection_adapter to HTTParty::ConnectionAdapter + sets connection_adapter to the optional connection_adapter + sets parser to the optional parser + sets parser to HTTParty::Parser + 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 + when sending an array with only one element + sets correct query + and it has an empty array + sets correct query string #uri query strings - does not add an empty query string when default_params are blank does not duplicate query string parameters when uri is called twice - does not append an ampersand when queries are embedded in paths respects the query string normalization proc + 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 redirects - 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 + 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 network-path reference location header is an absolute path - returns correct path when location has leading slash returns the correct path when location has no leading slash - a request that 303 redirects - infinitely - should raise an exception - once - should be handled by POST transparently - should update cookies with redirects - should keep cookies between redirects - should keep track of cookies between redirects - should be handled by OPTIONS transparently - 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 MKCOL transparently - should log the redirection - should make resulting request a get request if options[:maintain_method_across_redirects] is true but options[:resend_on_redirect] is false - should be handled by PUT transparently - should be handled by GET transparently - should be handled by PATCH transparently - should make resulting request a get request if options[:maintain_method_across_redirects] is false - should handle multiple Set-Cookie headers between redirects - should be handled by MOVE transparently - should make resulting request a get request if it not already - should be handled by UNLOCK transparently - should be handled by COPY transparently - should be handled by DELETE transparently - should be handled by HEAD transparently - should be handled by LOCK transparently + returns correct path when location has leading slash parsing responses - should perform no encoding if the charset is not available - should handle json automatically should assume utf-16 little endian if options has been chosen - should include any HTTP headers in the returned response - should perform no encoding if the content type is specified but no charset is specified + should process response with a nil body should process utf-16 charset with big endian bom correctly should handle utf-8 bom in json - should handle xml automatically - should handle utf-8 bom in xml - should process response with a nil body + should handle json automatically + should include any HTTP headers in the returned response + should perform no encoding if the content type is specified but no charset is specified + should perform no encoding if the charset is not available should handle csv automatically - when assume_utf16_is_big_endian is true - should process utf-16 charset with little endian bom correctly - processes stubbed frozen body correctly - when body has ascii-8bit encoding - processes charset in content type properly - processes charset in content type properly if it has a different case - processes quoted charset in content type properly - when stubed body is frozen - processes frozen body correctly + should handle utf-8 bom in xml + should handle xml automatically with non-200 responses - should return a valid object for 4xx response 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 + returns the HTTParty::Response when the 300 does not contain a location header + redirects if a 300 contains a location header redirects if a 300 contains a relative location header - redirects including port + raises an error if redirect has duplicate location header + handles multiple redirects and relative location headers on different hosts [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.12.1/lib/rspec/matchers/built_in/be.rb:69:in `match' returns a valid object for 304 not modified - handles multiple redirects and relative location headers on different hosts - redirects if a 300 contains a location header + redirects including port calls block given to perform with each redirect (PENDING: Temporarily skipped with xit) - returns the HTTParty::Response when the 300 does not contain a location header - raises an error if redirect has duplicate location header decompression - should not decompress unrecognized Content-Encoding - should remove the Content-Encoding header if uncompressed should decompress the body and remove the Content-Encoding header + should remove the Content-Encoding header if uncompressed should not decompress the body if the :skip_decompression option is set - a request that 300 redirects - infinitely - should raise an exception + should not decompress unrecognized Content-Encoding + when body has ascii-8bit encoding + processes charset in content type properly if it has a different case + processes quoted charset in content type properly + processes charset in content type properly + when stubed body is frozen + processes frozen body correctly + when assume_utf16_is_big_endian is true + should process utf-16 charset with little endian bom correctly + processes stubbed frozen body correctly + a request that 302 redirects once - should be handled by UNLOCK transparently - should keep track of cookies between redirects + should keep cookies between redirects + should update cookies with redirects should be handled by MKCOL transparently + should be handled by COPY transparently + should be handled by DELETE transparently + should be handled by POST transparently + should be handled by HEAD transparently + should be handled by GET transparently + should handle multiple Set-Cookie headers between redirects should make resulting request a get request if it not already + should be handled by MOVE transparently + should be handled by PUT transparently + should not make resulting request a get request if options[:maintain_method_across_redirects] is true + should log the redirection + should be handled by PATCH transparently + should be handled by OPTIONS transparently + should be handled by UNLOCK transparently + should be handled by LOCK transparently + should keep track of cookies between redirects + infinitely + should raise an exception + marshalling + properly marshals the request object + a request that returns 304 + should report 304 with a POST request + should report 304 with a HEAD request + should report 304 with a MKCOL request + should not log the redirection + should be handled by LOCK transparently + should report 304 with a PUT request + should report 304 with a OPTIONS request + should report 304 with a MOVE request + should report 304 with a GET request + should report 304 with a COPY request + should report 304 with a PATCH request + should be handled by UNLOCK transparently + should report 304 with a DELETE request + ::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 + a request that 305 redirects + once + should be handled by MOVE transparently + should log the redirection should be handled by DELETE transparently + should be handled by OPTIONS transparently + should handle multiple Set-Cookie headers between redirects + should be handled by COPY transparently should update cookies with redirects + should keep track of cookies between redirects + should be handled by HEAD transparently + should keep cookies between redirects + should be handled by PUT transparently should be handled by LOCK transparently should be handled by GET transparently - should keep cookies between redirects should be handled by PATCH transparently - should be handled by HEAD transparently - should be handled by OPTIONS transparently + should be handled by MKCOL transparently + should make resulting request a get request if it not already should not make resulting request a get request if options[:maintain_method_across_redirects] is true - should be handled by PUT transparently + should be handled by UNLOCK transparently should be handled by POST transparently + infinitely + should raise an exception + argument validation + should raise RedirectionTooDeep error if limit is negative + should raise argument error if basic_auth and digest_auth are both present + should raise argument error if options method is not http accepted method + should raise argument error if digest_auth is not a hash + should raise argument error if http method is post and query is not hash + should raise argument error if basic_auth is not a hash + should raise argument error if headers is not a hash + #format + request has been made + returns format option + returns the content-type from the last response when the option is not set + request yet to be made + returns format option + returns nil format + Net::HTTP decompression + with skip_decompression false (default) + with Accept-Encoding and other headers specified + behaves like enables Net::HTTP decompression + is expected to eq true + behaves like sets custom Accept-Encoding + is expected to eq "custom" + 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 enables Net::HTTP decompression + is expected to eq true + with other 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 enables Net::HTTP decompression + is expected to eq true + with accept-encoding (lowercase) specified + behaves like enables Net::HTTP decompression + is expected to eq true + behaves like sets custom Accept-Encoding + is expected to eq "custom" + with Accept-Encoding 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 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 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 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 + with other 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 specified + behaves like disables Net::HTTP decompression + is expected to eq false + behaves like sets custom Accept-Encoding + is expected to eq "custom" + http + should get a connection from the connection_adapter + a request that 303 redirects + once + should handle multiple Set-Cookie headers between redirects + should be handled by PUT transparently + should be handled by UNLOCK transparently + should be handled by PATCH transparently + should be handled by HEAD transparently should log the redirection + should keep cookies between redirects + should be handled by LOCK transparently + should make resulting request a get request if it not already should be handled by MOVE transparently + should be handled by MKCOL transparently + should be handled by OPTIONS transparently + should make resulting request a get request if options[:maintain_method_across_redirects] is true but options[:resend_on_redirect] is false + should be handled by GET transparently should be handled by COPY transparently - should handle multiple Set-Cookie headers between redirects - a request that 302 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 POST transparently + should update cookies with redirects + should keep track of cookies between redirects + should be handled by DELETE transparently + should make resulting request a get request if options[:maintain_method_across_redirects] is false + infinitely + should raise an exception + a request that 300 redirects + infinitely + should raise an exception once - should be handled by MOVE transparently should be handled by OPTIONS transparently + should handle multiple Set-Cookie headers between redirects + should be handled by PATCH transparently + should be handled by MOVE transparently should be handled by COPY transparently should be handled by DELETE transparently - should be handled by POST transparently - should be handled by PATCH transparently - should not make resulting request a get request if options[:maintain_method_across_redirects] is true should keep cookies between redirects - should be handled by MKCOL transparently - should make resulting request a get request if it not already + should keep track of cookies between redirects should be handled by UNLOCK transparently - should handle multiple Set-Cookie headers between redirects - should be handled by GET transparently + should not make resulting request a get request if options[:maintain_method_across_redirects] is true should be handled by HEAD transparently should update cookies with redirects - should be handled by LOCK transparently + should be handled by GET transparently should be handled by PUT transparently - should keep track of cookies between redirects should log the redirection - infinitely - should raise an exception + should make resulting request a get request if it not already + should be handled by LOCK transparently + should be handled by POST transparently + should be handled by MKCOL transparently a request that 301 redirects infinitely should raise an exception once - should be handled by PATCH transparently - should be handled by OPTIONS transparently + should not make resulting request a get request if options[:maintain_method_across_redirects] is true should keep cookies between redirects - should be handled by LOCK transparently - should handle multiple Set-Cookie headers between redirects + should be handled by OPTIONS transparently should be handled by HEAD transparently - should be handled by GET transparently - should make resulting request a get request if it not already - should be handled by UNLOCK transparently - should keep track of cookies between redirects should log the redirection - should update cookies with redirects - 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 DELETE transparently should be handled by COPY transparently - should be handled by POST transparently + should be handled by UNLOCK transparently + should keep track of cookies between redirects + should be handled by PATCH transparently + should be handled by GET transparently should be handled by PUT transparently + should be handled by POST transparently + should update cookies with redirects + should make resulting request a get request if it not already should be handled by MKCOL transparently - should be handled by DELETE transparently - should be handled by MOVE 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 + should be handled by LOCK transparently + should handle multiple Set-Cookie headers between redirects ::JSON_API_QUERY_STRING_NORMALIZER doesn't modify strings - when the query is a hash - correctly handles nil values when the query is an array URI encodes array values doesn't include brackets - options - should normalize base uri when specified as request option - should use basic auth when configured - should use body_stream when configured - digest_auth - should be used when configured and the response is 401 - should maintain cookies returned from a 401 response - should not send credentials more than once - 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 + when the query is a hash + correctly handles nil values + with POST http method + should raise argument error if query is not a hash + #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 + a request that 307 redirects once - should not make resulting request a get request if options[:maintain_method_across_redirects] is true - should be handled by MKCOL transparently - should make resulting request a get request if it not already - should log the redirection + should maintain method in resulting request + should handle multiple Set-Cookie headers between redirects should be handled by POST transparently - should be handled by HEAD transparently + should be handled by LOCK transparently + should maintain method in resulting request if options[:maintain_method_across_redirects] is false + should be handled by PATCH transparently + should maintain method in resulting request if options[:maintain_method_across_redirects] is true should keep track of cookies between redirects should be handled by PUT transparently - should be handled by UNLOCK transparently - should be handled by PATCH transparently should be handled by OPTIONS transparently - should be handled by MOVE transparently - should keep cookies between redirects - should update cookies with redirects should be handled by COPY transparently + should be handled by MKCOL transparently + should be handled by UNLOCK transparently should be handled by GET transparently should be handled by DELETE transparently - should be handled by LOCK transparently - should handle multiple Set-Cookie headers between redirects - http - should get a connection from the connection_adapter - marshalling - properly marshals the request object + should update cookies with redirects + should be handled by HEAD transparently + should keep cookies between redirects + should be handled by MOVE transparently + should log the redirection + infinitely + should raise an exception a request that 308 redirects once - should maintain method in resulting request - should keep cookies between redirects - should be handled by HEAD transparently should be handled by OPTIONS transparently should log the redirection + should be handled by COPY transparently + 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 UNLOCK transparently + should maintain method in resulting request should be handled by DELETE transparently + should be handled by MKCOL transparently + should be handled by MOVE transparently should maintain method in resulting request if options[:maintain_method_across_redirects] is true - should keep track of cookies between redirects + should keep cookies between redirects + should be handled by HEAD transparently should update cookies with redirects - should be handled by POST transparently - should handle multiple Set-Cookie headers between redirects - should be handled by MOVE transparently - should maintain method in resulting request if options[:maintain_method_across_redirects] is false - should be handled by MKCOL transparently + should be handled by PATCH transparently should be handled by PUT transparently - should be handled by COPY transparently should be handled by LOCK transparently + should keep track of cookies between redirects should be handled by GET transparently - should be handled by PATCH transparently - should be handled by UNLOCK transparently + should be handled by POST transparently infinitely should raise an exception - initialization - sets connection_adapter to HTTParty::ConnectionAdapter - sets connection_adapter to the optional connection_adapter - sets parser to HTTParty::Parser - sets parser to the optional parser - 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 - when sending an array with only one element - sets correct query - and it has an empty array - sets correct query string + #format_from_mimetype + should handle application/javascript + should handle text/comma-separated-values + should handle application/xml + should handle application/csv + returns nil for an unrecognized mimetype + should handle text/json + should handle text/csv + should handle application/json + returns nil when using a default parser + should handle application/hal+json + should handle text/javascript + should handle application/vnd.api+json + should handle text/xml #setup_raw_request when multipart when body contains file @@ -2046,139 +2010,218 @@ sets header Content-Type: multipart/form-data; boundary= when query_string_normalizer is set sets the body to the return value of the proc - #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 - 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 RedirectionTooDeep error if limit is negative - should raise argument error if http method is post and query is not 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 argument error if options method is not http accepted method - a request that returns 304 - should report 304 with a PUT request - should report 304 with a OPTIONS request - should report 304 with a COPY request - should report 304 with a MOVE request - should be handled by LOCK transparently - should report 304 with a GET request - should report 304 with a POST request - should report 304 with a DELETE request - should report 304 with a PATCH request - should report 304 with a MKCOL request - should be handled by UNLOCK transparently - should not log the redirection - should report 304 with a HEAD request - ::NON_RAILS_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 307 redirects - infinitely - should raise an exception - once - should log the redirection - should keep track of cookies between redirects - should be handled by UNLOCK transparently - should maintain method in resulting request if options[:maintain_method_across_redirects] is true - should keep cookies between redirects - should be handled by MOVE transparently - should be handled by PUT transparently - should be handled by HEAD transparently - should maintain method in resulting request if options[:maintain_method_across_redirects] is false - should be handled by LOCK transparently - should be handled by DELETE transparently - should update cookies with redirects - should handle multiple Set-Cookie headers between redirects - should be handled by POST transparently - should be handled by MKCOL transparently - should be handled by PATCH transparently - should be handled by OPTIONS transparently - should be handled by GET transparently - should maintain method in resulting request - should be handled by COPY transparently - with POST http method - should raise argument error if query is not a hash - Net::HTTP decompression - with skip_decompression true - 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 specified - behaves like sets custom Accept-Encoding - is expected to eq "custom" - behaves like disables Net::HTTP decompression - is expected to eq false - 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 other 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 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 specified - behaves like sets custom Accept-Encoding - is expected to eq "custom" - behaves like enables Net::HTTP decompression - is expected to eq true - 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" - 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 no 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" - with accept-encoding (lowercase) specified - behaves like enables Net::HTTP decompression - is expected to eq true - behaves like sets custom Accept-Encoding - is expected to eq "custom" -HTTParty::Error - HTTParty::DuplicateLocationHeader - #ancestors - is expected to include HTTParty::ResponseError - HTTParty::UnsupportedFormat - #ancestors - is expected to include HTTParty::Error - HTTParty::ResponseError - #ancestors - is expected to include HTTParty::Error - HTTParty::UnsupportedURIScheme - #ancestors - is expected to include HTTParty::Error - HTTParty::RedirectionTooDeep - #ancestors - is expected to include HTTParty::ResponseError - #ancestors - is expected to include StandardError +HTTParty::ConnectionAdapter + initialization + raises an ArgumentError if the uri is a String + raises an ArgumentError if the uri is nil + sets the uri + takes a URI as input + also accepts an optional options hash + sets the options + #connection + the resulting connection + is expected to be an instance of Net::HTTP + 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 providing nil as proxy address + is expected not to be a proxy + does pass nil proxy parameters to the connection, this forces to not use a proxy + 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 providing PEM certificates + 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 scheme is not https + has no PEM certificate + when timeout is not set + doesn't set the timeout + when setting 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 providing PKCS12 certificates + when scheme is https + uses the provided P12 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 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 dealing with IPv6 + strips brackets from the address + when timeout is not set and read_timeout is set to 6 seconds + should not set the write_timeout + should not set the open_timeout + #read_timeout + is expected to eq 6 + when dealing with ssl + using port 443 for ssl + 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 + https scheme with default port + is expected to use ssl + should use the specified cert store, when one is given + is expected to use cert store # + when timeout is set and open_timeout is set to 7 seconds + should override the timeout option + #open_timeout + is expected to eq 7 + #read_timeout + is expected to eq 5 + #write_timeout + is expected to eq 5 + when setting timeout + to 5 seconds + #read_timeout + is expected to eq 5 + #write_timeout + is expected to eq 5 + #open_timeout + is expected to eq 5 + and timeout is a string + doesn't set the timeout + 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 not providing a proxy address + does not pass any proxy parameters to the connection + using port 80 + is expected not to use ssl + when debug_output + is set to $stderr + has debug output set + is not provided + does not set_debug_output + specifying ciphers + should set the ciphers on the connection + when max_retries is not set + doesn't set the max_retries + 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 providing proxy address and port + is expected to be a proxy + #proxy_address + is expected to eq "1.2.3.4" + #proxy_port + is expected to eq 8080 + as well as proxy user and password + #proxy_user + is expected to eq "user" + #proxy_pass + is expected to eq "pass" + 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 + .call + calls #connection on the connection adapter + generates an HTTParty::ConnectionAdapter instance with the given uri and options + +HTTParty::HashConversions + .to_params + creates a params string from a hash + nested params + creates a params string from a hash + .normalize_param + value is hash + creates a params string + value is an empty array + creates a params string + value is a string + creates a params string + value is an array + creates a params string + +HTTParty::Request + SSL certificate verification + 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: sslv3 alert bad certificate (OpenSSL::SSL::SSLError) + from /usr/lib/ruby/3.1.0/openssl/ssl.rb:524:in `accept' + from /build/ruby-httparty-0.21.0/spec/support/ssl_test_server.rb:56:in `thread_main' + from /build/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/ruby-httparty-0.21.0/spec/support/ssl_test_server.rb:56:in `thread_main' + from /build/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/ruby-httparty-0.21.0/spec/support/ssl_test_server.rb:56:in `thread_main' + from /build/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 + should work when using ssl_ca_file with a self-signed CA + should work when using ssl_ca_file 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: tlsv1 alert unknown ca (OpenSSL::SSL::SSLError) + from /usr/lib/ruby/3.1.0/openssl/ssl.rb:524:in `accept' + from /build/ruby-httparty-0.21.0/spec/support/ssl_test_server.rb:56:in `thread_main' + from /build/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 using ssl_ca_path with a 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: tlsv1 alert unknown ca (OpenSSL::SSL::SSLError) + from /usr/lib/ruby/3.1.0/openssl/ssl.rb:524:in `accept' + from /build/ruby-httparty-0.21.0/spec/support/ssl_test_server.rb:56:in `thread_main' + from /build/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/ruby-httparty-0.21.0/spec/support/ssl_test_server.rb:56:in `thread_main' + from /build/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 + builds :custom style logger + raises error when formatter exists + builds :logstash style logger + defaults format to :apache + defaults level to :info + builds :curl style logger Pending: (Failures listed here are expected and do not affect your suite's status) @@ -2186,54 +2229,54 @@ # Temporarily skipped with xit # ./spec/httparty/request_spec.rb:691 -Top 10 slowest examples (1.25 seconds, 39.1% of total time): - HTTParty::Request SSL certificate verification should work when using ssl_ca_file with a self-signed CA - 0.18748 seconds ./spec/httparty/ssl_spec.rb:33 - HTTParty::Request SSL certificate verification should work when using ssl_ca_file with a certificate authority - 0.1845 seconds ./spec/httparty/ssl_spec.rb:37 +Top 10 slowest examples (1.97 seconds, 41.8% of total time): HTTParty::Request SSL certificate verification should provide the certificate used by the server via peer_cert - 0.18449 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.12916 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.12672 seconds ./spec/httparty/ssl_spec.rb:19 + 0.29811 seconds ./spec/httparty/ssl_spec.rb:74 + HTTParty::Request SSL certificate verification should work when using ssl_ca_file with a certificate authority + 0.23145 seconds ./spec/httparty/ssl_spec.rb:37 + HTTParty::Request SSL certificate verification should fail when using ssl_ca_path and the server uses an unrecognized certificate authority + 0.224 seconds ./spec/httparty/ssl_spec.rb:56 + HTTParty::Request SSL certificate verification should work when using ssl_ca_file with a self-signed CA + 0.21362 seconds ./spec/httparty/ssl_spec.rb:33 HTTParty::Request SSL certificate verification should fail when no trusted CA list is specified, with a bogus hostname, by default - 0.09086 seconds ./spec/httparty/ssl_spec.rb:23 + 0.21111 seconds ./spec/httparty/ssl_spec.rb:23 + HTTParty::Request SSL certificate verification should fail when using ssl_ca_path and the server uses a bogus hostname + 0.17944 seconds ./spec/httparty/ssl_spec.rb:68 + HTTParty::Request SSL certificate verification should work when no trusted CA list is specified, when the verify option is set to false + 0.16876 seconds ./spec/httparty/ssl_spec.rb:19 + 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.16025 seconds ./spec/httparty/ssl_spec.rb:29 + HTTParty::Request SSL certificate verification should work when using ssl_ca_path with a certificate authority + 0.15701 seconds ./spec/httparty/ssl_spec.rb:41 HTTParty::Request SSL certificate verification should fail when using ssl_ca_file and the server uses a bogus hostname - 0.08731 seconds ./spec/httparty/ssl_spec.rb:62 - HTTParty::Request SSL certificate verification should fail when using ssl_ca_file and the server uses an unrecognized certificate authority - 0.0867 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.08465 seconds ./spec/httparty/ssl_spec.rb:56 - HTTParty::Request SSL certificate verification should fail when no trusted CA list is specified, by default - 0.08337 seconds ./spec/httparty/ssl_spec.rb:13 + 0.13114 seconds ./spec/httparty/ssl_spec.rb:62 Top 10 slowest example groups: HTTParty::Request - 0.11765 seconds average (1.41 seconds / 12 examples) ./spec/httparty/ssl_spec.rb:3 + 0.18354 seconds average (2.2 seconds / 12 examples) ./spec/httparty/ssl_spec.rb:3 HTTParty::ConnectionAdapter - 0.01008 seconds average (0.70592 seconds / 70 examples) ./spec/httparty/connection_adapter_spec.rb:3 + 0.01278 seconds average (0.89487 seconds / 70 examples) ./spec/httparty/connection_adapter_spec.rb:3 + HTTParty::Logger::LogstashFormatter + 0.01175 seconds average (0.01175 seconds / 1 example) ./spec/httparty/logger/logstash_formatter_spec.rb:3 HTTParty::Request::Body - 0.00705 seconds average (0.07754 seconds / 11 examples) ./spec/httparty/request/body_spec.rb:6 + 0.01106 seconds average (0.12171 seconds / 11 examples) ./spec/httparty/request/body_spec.rb:6 + HTTParty::Error + 0.00648 seconds average (0.03886 seconds / 6 examples) ./spec/httparty/exception_spec.rb:3 + HTTParty::ResponseFragment + 0.00501 seconds average (0.01003 seconds / 2 examples) ./spec/httparty/response_fragment_spec.rb:3 HTTParty::Logger::CurlFormatter - 0.00296 seconds average (0.03852 seconds / 13 examples) ./spec/httparty/logger/curl_formatter_spec.rb:3 - HTTParty - 0.00195 seconds average (0.22773 seconds / 117 examples) ./spec/httparty_spec.rb:3 + 0.00296 seconds average (0.03853 seconds / 13 examples) ./spec/httparty/logger/curl_formatter_spec.rb:3 HTTParty::Request - 0.00187 seconds average (0.52235 seconds / 280 examples) ./spec/httparty/request_spec.rb:3 - HTTParty::Logger::LogstashFormatter - 0.00143 seconds average (0.00143 seconds / 1 example) ./spec/httparty/logger/logstash_formatter_spec.rb:3 - HTTParty::Response - 0.00117 seconds average (0.10729 seconds / 92 examples) ./spec/httparty/response_spec.rb:3 - Net::HTTPHeader::DigestAuthenticator - 0.00101 seconds average (0.03347 seconds / 33 examples) ./spec/httparty/net_digest_auth_spec.rb:3 - HTTParty::Decompressor - 0.00101 seconds average (0.0182 seconds / 18 examples) ./spec/httparty/decompressor_spec.rb:3 + 0.00278 seconds average (0.77964 seconds / 280 examples) ./spec/httparty/request_spec.rb:3 + HTTParty + 0.00273 seconds average (0.31998 seconds / 117 examples) ./spec/httparty_spec.rb:3 + HTTParty::Logger::ApacheFormatter + 0.00219 seconds average (0.00437 seconds / 2 examples) ./spec/httparty/logger/apache_formatter_spec.rb:3 -Finished in 3.19 seconds (files took 0.93289 seconds to load) +Finished in 4.73 seconds (files took 1.27 seconds to load) 715 examples, 0 failures, 1 pending -Randomized with seed 29129 +Randomized with seed 57012 ┌──────────────────────────────────────────────────────────────────────────────┐ @@ -2273,12 +2316,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/322696/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/322696/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/3563232 and its subdirectories -I: Current time: Thu May 23 15:38:09 -12 2024 -I: pbuilder-time-stamp: 1716521889 +I: removing directory /srv/workspace/pbuilder/322696 and its subdirectories +I: Current time: Sat Apr 22 11:17:11 +14 2023 +I: pbuilder-time-stamp: 1682111831