Input buildinfo: https://buildinfos.debian.net/buildinfo-pool/g/golang-github-go-resty-resty/golang-github-go-resty-resty_2.4.0-1_all.buildinfo Use metasnap for getting required timestamps New buildinfo file: /tmp/golang-github-go-resty-resty-2.4.0-1_7p7df_g/golang-github-go-resty-resty_2.4.0-1_all.buildinfo Get source package info: golang-github-go-resty-resty=2.4.0-1 Source URL: http://snapshot.notset.fr/mr/package/golang-github-go-resty-resty/2.4.0-1/srcfiles?fileinfo=1 env -i PATH=/usr/sbin:/usr/bin:/sbin:/bin TMPDIR=/tmp mmdebstrap --arch=amd64 --include=autoconf=2.69-14 automake=1:1.16.3-2 autopoint=0.21-3 autotools-dev=20180224.1+nmu1 base-files=11 base-passwd=3.5.48 bash=5.1-2 binutils=2.35.1-7 binutils-common=2.35.1-7 binutils-x86-64-linux-gnu=2.35.1-7 bsdextrautils=2.36.1-5 bsdutils=1:2.36.1-5 build-essential=12.9 bzip2=1.0.8-4 coreutils=8.32-4+b1 cpp=4:10.2.1-1 cpp-10=10.2.1-6 dash=0.5.11+git20200708+dd9ef66-5 debconf=1.5.74 debhelper=13.3.1 debianutils=4.11.2 dh-autoreconf=19 dh-golang=1.49 dh-strip-nondeterminism=1.9.0-1 diffutils=1:3.7-5 dpkg=1.20.7.1 dpkg-dev=1.20.7.1 dwz=0.13+20201015-2 file=1:5.39-3 findutils=4.8.0-1 g++=4:10.2.1-1 g++-10=10.2.1-6 gcc=4:10.2.1-1 gcc-10=10.2.1-6 gcc-10-base=10.2.1-6 gettext=0.21-3 gettext-base=0.21-3 golang-1.15-go=1.15.6-1 golang-1.15-src=1.15.6-1 golang-any=2:1.15~1 golang-go=2:1.15~1 golang-golang-x-net-dev=1:0.0+git20201031.ff519b6+dfsg-1 golang-golang-x-sys-dev=0.0~git20201223.0d417f6-1 golang-golang-x-text-dev=0.3.4-1 golang-src=2:1.15~1 grep=3.6-1 groff-base=1.22.4-5 gzip=1.10-2 hostname=3.23 init-system-helpers=1.60 intltool-debian=0.35.0+20060710.5 libacl1=2.2.53-9 libarchive-zip-perl=1.68-1 libasan6=10.2.1-6 libatomic1=10.2.1-6 libattr1=1:2.4.48-6 libaudit-common=1:3.0-2 libaudit1=1:3.0-2 libbinutils=2.35.1-7 libblkid1=2.36.1-5 libbz2-1.0=1.0.8-4 libc-bin=2.31-9 libc-dev-bin=2.31-9 libc6=2.31-9 libc6-dev=2.31-9 libcap-ng0=0.7.9-2.2+b1 libcc1-0=10.2.1-6 libcom-err2=1.45.6-1 libcrypt-dev=1:4.4.17-1 libcrypt1=1:4.4.17-1 libctf-nobfd0=2.35.1-7 libctf0=2.35.1-7 libdb5.3=5.3.28+dfsg1-0.6 libdebconfclient0=0.256 libdebhelper-perl=13.3.1 libdpkg-perl=1.20.7.1 libelf1=0.182-3 libfile-stripnondeterminism-perl=1.9.0-1 libgcc-10-dev=10.2.1-6 libgcc-s1=10.2.1-6 libgcrypt20=1.8.7-2 libgdbm-compat4=1.18.1-5.1 libgdbm6=1.18.1-5.1 libgmp10=2:6.2.1+dfsg-1 libgomp1=10.2.1-6 libgpg-error0=1.38-2 libgssapi-krb5-2=1.18.3-4 libicu67=67.1-6 libisl23=0.23-1 libitm1=10.2.1-6 libk5crypto3=1.18.3-4 libkeyutils1=1.6.1-2 libkrb5-3=1.18.3-4 libkrb5support0=1.18.3-4 liblsan0=10.2.1-6 liblz4-1=1.9.3-1 liblzma5=5.2.5-1.0 libmagic-mgc=1:5.39-3 libmagic1=1:5.39-3 libmount1=2.36.1-5 libmpc3=1.2.0-1 libmpfr6=4.1.0-3 libnsl-dev=1.3.0-2 libnsl2=1.3.0-2 libpam-modules=1.4.0-2 libpam-modules-bin=1.4.0-2 libpam-runtime=1.4.0-2 libpam0g=1.4.0-2 libpcre2-8-0=10.36-2 libpcre3=2:8.39-13 libperl5.32=5.32.0-6 libpipeline1=1.5.3-1 libquadmath0=10.2.1-6 libseccomp2=2.5.1-1 libselinux1=3.1-2+b2 libsigsegv2=2.12-3 libsmartcols1=2.36.1-5 libssl1.1=1.1.1i-1 libstdc++-10-dev=10.2.1-6 libstdc++6=10.2.1-6 libsub-override-perl=0.09-2 libsystemd0=247.2-4 libtinfo6=6.2+20201114-2 libtirpc-common=1.3.1-1 libtirpc-dev=1.3.1-1 libtirpc3=1.3.1-1 libtool=2.4.6-15 libtsan0=10.2.1-6 libubsan1=10.2.1-6 libuchardet0=0.0.7-1 libudev1=247.2-4 libunistring2=0.9.10-4 libuuid1=2.36.1-5 libxml2=2.9.10+dfsg-6.3+b1 libzstd1=1.4.8+dfsg-1 linux-libc-dev=5.10.5-1 login=1:4.8.1-1 lsb-base=11.1.0 m4=1.4.18-5 make=4.3-4 man-db=2.9.3-2 mawk=1.3.4.20200120-2 ncurses-base=6.2+20201114-2 ncurses-bin=6.2+20201114-2 patch=2.7.6-7 perl=5.32.0-6 perl-base=5.32.0-6 perl-modules-5.32=5.32.0-6 po-debconf=1.0.21+nmu1 sed=4.7-1 sensible-utils=0.0.14 sysvinit-utils=2.96-5 tar=1.32+dfsg-1 util-linux=2.36.1-5 xz-utils=5.2.5-1.0 zlib1g=1:1.2.11.dfsg-2 --variant=apt --aptopt=Acquire::Check-Valid-Until "false" --aptopt=Acquire::http::Dl-Limit "1000"; --aptopt=Acquire::https::Dl-Limit "1000"; --aptopt=Acquire::Retries "5"; --aptopt=APT::Get::allow-downgrades "true"; --keyring=/usr/share/keyrings/ --essential-hook=chroot "$1" sh -c "apt-get --yes install fakeroot util-linux" --essential-hook=copy-in /usr/share/keyrings/debian-archive-bullseye-automatic.gpg /usr/share/keyrings/debian-archive-bullseye-security-automatic.gpg /usr/share/keyrings/debian-archive-bullseye-stable.gpg /usr/share/keyrings/debian-archive-buster-automatic.gpg /usr/share/keyrings/debian-archive-buster-security-automatic.gpg /usr/share/keyrings/debian-archive-buster-stable.gpg /usr/share/keyrings/debian-archive-keyring.gpg /usr/share/keyrings/debian-archive-removed-keys.gpg /usr/share/keyrings/debian-archive-stretch-automatic.gpg /usr/share/keyrings/debian-archive-stretch-security-automatic.gpg /usr/share/keyrings/debian-archive-stretch-stable.gpg /usr/share/keyrings/debian-ports-archive-keyring-removed.gpg /usr/share/keyrings/debian-ports-archive-keyring.gpg /usr/share/keyrings/debian-keyring.gpg /etc/apt/trusted.gpg.d/ --essential-hook=chroot "$1" sh -c "rm /etc/apt/sources.list && echo 'deb http://snapshot.notset.fr/archive/debian/20210814T212851Z/ bookworm main deb-src http://snapshot.notset.fr/archive/debian/20210814T212851Z/ bookworm main deb http://snapshot.notset.fr/archive/debian/20210115T144157Z/ unstable main' >> /etc/apt/sources.list && apt-get update" --customize-hook=chroot "$1" useradd --no-create-home -d /nonexistent -p "" builduser -s /bin/bash --customize-hook=chroot "$1" env sh -c "apt-get source --only-source -d golang-github-go-resty-resty=2.4.0-1 && mkdir -p /build/golang-github-go-resty-resty-gUejBh && dpkg-source --no-check -x /*.dsc /build/golang-github-go-resty-resty-gUejBh/golang-github-go-resty-resty-2.4.0 && chown -R builduser:builduser /build/golang-github-go-resty-resty-gUejBh" --customize-hook=chroot "$1" env --unset=TMPDIR runuser builduser -c "cd /build/golang-github-go-resty-resty-gUejBh/golang-github-go-resty-resty-2.4.0 && env DEB_BUILD_OPTIONS="parallel=4" LANG="C.UTF-8" LC_ALL="C.UTF-8" SOURCE_DATE_EPOCH="1610608732" dpkg-buildpackage -uc -a amd64 --build=all" --customize-hook=sync-out /build/golang-github-go-resty-resty-gUejBh /tmp/golang-github-go-resty-resty-2.4.0-1_7p7df_g bullseye /dev/null deb http://snapshot.notset.fr/archive/debian/20210115T144157Z unstable main I: automatically chosen mode: root I: chroot architecture amd64 is equal to the host's architecture I: automatically chosen format: tar I: using /tmp/mmdebstrap._LUAr_AMLR as tempdir I: running apt-get update... I: downloading packages with apt... I: extracting archives... I: installing essential packages... I: running --essential-hook in shell: sh -c 'chroot "$1" sh -c "apt-get --yes install fakeroot util-linux"' exec /tmp/mmdebstrap._LUAr_AMLR Reading package lists... Building dependency tree... util-linux is already the newest version (2.36.1-5). The following NEW packages will be installed: fakeroot libfakeroot 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. Need to get 134 kB of archives. After this operation, 397 kB of additional disk space will be used. Get:1 http://snapshot.notset.fr/archive/debian/20210115T144157Z unstable/main amd64 libfakeroot amd64 1.25.3-1.1 [47.0 kB] Get:2 http://snapshot.notset.fr/archive/debian/20210115T144157Z unstable/main amd64 fakeroot amd64 1.25.3-1.1 [87.0 kB] debconf: delaying package configuration, since apt-utils is not installed Fetched 134 kB in 0s (927 kB/s) Selecting previously unselected package libfakeroot:amd64. (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 ... 4661 files and directories currently installed.) Preparing to unpack .../libfakeroot_1.25.3-1.1_amd64.deb ... Unpacking libfakeroot:amd64 (1.25.3-1.1) ... Selecting previously unselected package fakeroot. Preparing to unpack .../fakeroot_1.25.3-1.1_amd64.deb ... Unpacking fakeroot (1.25.3-1.1) ... Setting up libfakeroot:amd64 (1.25.3-1.1) ... Setting up fakeroot (1.25.3-1.1) ... update-alternatives: using /usr/bin/fakeroot-sysv to provide /usr/bin/fakeroot (fakeroot) in auto mode Processing triggers for libc-bin (2.31-9) ... I: running special hook: copy-in /usr/share/keyrings/debian-archive-bullseye-automatic.gpg /usr/share/keyrings/debian-archive-bullseye-security-automatic.gpg /usr/share/keyrings/debian-archive-bullseye-stable.gpg /usr/share/keyrings/debian-archive-buster-automatic.gpg /usr/share/keyrings/debian-archive-buster-security-automatic.gpg /usr/share/keyrings/debian-archive-buster-stable.gpg /usr/share/keyrings/debian-archive-keyring.gpg /usr/share/keyrings/debian-archive-removed-keys.gpg /usr/share/keyrings/debian-archive-stretch-automatic.gpg /usr/share/keyrings/debian-archive-stretch-security-automatic.gpg /usr/share/keyrings/debian-archive-stretch-stable.gpg /usr/share/keyrings/debian-ports-archive-keyring-removed.gpg /usr/share/keyrings/debian-ports-archive-keyring.gpg /usr/share/keyrings/debian-keyring.gpg /etc/apt/trusted.gpg.d/ I: running --essential-hook in shell: sh -c 'chroot "$1" sh -c "rm /etc/apt/sources.list && echo 'deb http://snapshot.notset.fr/archive/debian/20210814T212851Z/ bookworm main deb-src http://snapshot.notset.fr/archive/debian/20210814T212851Z/ bookworm main deb http://snapshot.notset.fr/archive/debian/20210115T144157Z/ unstable main' >> /etc/apt/sources.list && apt-get update"' exec /tmp/mmdebstrap._LUAr_AMLR Get:1 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm InRelease [81.6 kB] Hit:2 http://snapshot.notset.fr/archive/debian/20210115T144157Z unstable InRelease Ign:3 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main Sources Ign:4 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main amd64 Packages Ign:3 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main Sources Ign:4 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main amd64 Packages Ign:3 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main Sources Ign:4 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main amd64 Packages Get:3 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main Sources [11.4 MB] Get:4 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main amd64 Packages [11.1 MB] Fetched 22.6 MB in 19s (1186 kB/s) Reading package lists... I: installing remaining packages inside the chroot... I: running --customize-hook in shell: sh -c 'chroot "$1" useradd --no-create-home -d /nonexistent -p "" builduser -s /bin/bash' exec /tmp/mmdebstrap._LUAr_AMLR I: running --customize-hook in shell: sh -c 'chroot "$1" env sh -c "apt-get source --only-source -d golang-github-go-resty-resty=2.4.0-1 && mkdir -p /build/golang-github-go-resty-resty-gUejBh && dpkg-source --no-check -x /*.dsc /build/golang-github-go-resty-resty-gUejBh/golang-github-go-resty-resty-2.4.0 && chown -R builduser:builduser /build/golang-github-go-resty-resty-gUejBh"' exec /tmp/mmdebstrap._LUAr_AMLR Reading package lists... NOTICE: 'golang-github-go-resty-resty' packaging is maintained in the 'Git' version control system at: https://salsa.debian.org/go-team/packages/golang-github-go-resty-resty.git Please use: git clone https://salsa.debian.org/go-team/packages/golang-github-go-resty-resty.git to retrieve the latest (possibly unreleased) updates to the package. Need to get 2647 kB of source archives. Get:1 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main golang-github-go-resty-resty 2.4.0-1 (dsc) [2304 B] Get:2 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main golang-github-go-resty-resty 2.4.0-1 (tar) [2642 kB] Get:3 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main golang-github-go-resty-resty 2.4.0-1 (diff) [2944 B] Fetched 2647 kB in 2s (1239 kB/s) Download complete and in download only mode W: Download is performed unsandboxed as root as file 'golang-github-go-resty-resty_2.4.0-1.dsc' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied) dpkg-source: info: extracting golang-github-go-resty-resty in /build/golang-github-go-resty-resty-gUejBh/golang-github-go-resty-resty-2.4.0 dpkg-source: info: unpacking golang-github-go-resty-resty_2.4.0.orig.tar.gz dpkg-source: info: unpacking golang-github-go-resty-resty_2.4.0-1.debian.tar.xz I: running --customize-hook in shell: sh -c 'chroot "$1" env --unset=TMPDIR runuser builduser -c "cd /build/golang-github-go-resty-resty-gUejBh/golang-github-go-resty-resty-2.4.0 && env DEB_BUILD_OPTIONS="parallel=4" LANG="C.UTF-8" LC_ALL="C.UTF-8" SOURCE_DATE_EPOCH="1610608732" dpkg-buildpackage -uc -a amd64 --build=all"' exec /tmp/mmdebstrap._LUAr_AMLR dpkg-buildpackage: info: source package golang-github-go-resty-resty dpkg-buildpackage: info: source version 2.4.0-1 dpkg-buildpackage: info: source distribution unstable dpkg-buildpackage: info: source changed by Aloïs Micard dpkg-source --before-build . debian/rules clean dh clean --builddirectory=_build --buildsystem=golang --with=golang dh_auto_clean -O--builddirectory=_build -O--buildsystem=golang dh_autoreconf_clean -O--builddirectory=_build -O--buildsystem=golang dh_clean -O--builddirectory=_build -O--buildsystem=golang debian/rules binary-indep dh binary-indep --builddirectory=_build --buildsystem=golang --with=golang dh_update_autotools_config -i -O--builddirectory=_build -O--buildsystem=golang dh_autoreconf -i -O--builddirectory=_build -O--buildsystem=golang dh_auto_configure -i -O--builddirectory=_build -O--buildsystem=golang dh_auto_build -i -O--builddirectory=_build -O--buildsystem=golang cd _build && go install -trimpath -v -p 4 github.com/go-resty/resty internal/unsafeheader runtime/internal/sys runtime/internal/atomic internal/cpu internal/race sync/atomic runtime/internal/math unicode unicode/utf8 math/bits internal/bytealg internal/testlog math container/list crypto/internal/subtle runtime crypto/subtle unicode/utf16 vendor/golang.org/x/crypto/cryptobyte/asn1 internal/nettrace vendor/golang.org/x/crypto/internal/subtle runtime/cgo encoding internal/reflectlite sync internal/singleflight math/rand errors sort io internal/oserror strconv syscall vendor/golang.org/x/net/dns/dnsmessage bytes strings reflect hash hash/crc32 bufio crypto crypto/internal/randutil crypto/hmac internal/syscall/unix time internal/syscall/execenv crypto/rc4 vendor/golang.org/x/crypto/hkdf vendor/golang.org/x/text/transform path regexp/syntax context internal/poll internal/fmtsort encoding/binary regexp os crypto/cipher crypto/sha512 crypto/ed25519/internal/edwards25519 crypto/md5 crypto/aes fmt crypto/des crypto/sha1 crypto/sha256 encoding/base64 encoding/pem path/filepath net vendor/golang.org/x/crypto/chacha20 compress/flate math/big encoding/hex io/ioutil net/url compress/gzip vendor/golang.org/x/crypto/poly1305 vendor/golang.org/x/sys/cpu vendor/golang.org/x/crypto/curve25519 vendor/golang.org/x/crypto/chacha20poly1305 encoding/json crypto/elliptic encoding/asn1 crypto/rand vendor/golang.org/x/crypto/cryptobyte crypto/ed25519 crypto/rsa crypto/dsa crypto/x509/pkix crypto/ecdsa encoding/xml log vendor/golang.org/x/text/unicode/norm vendor/golang.org/x/text/unicode/bidi vendor/golang.org/x/text/secure/bidirule vendor/golang.org/x/net/http2/hpack mime vendor/golang.org/x/net/idna mime/quotedprintable net/http/internal vendor/golang.org/x/net/http/httpproxy net/textproto crypto/x509 vendor/golang.org/x/net/http/httpguts mime/multipart crypto/tls net/http/httptrace net/http net/http/cookiejar golang.org/x/net/publicsuffix github.com/go-resty/resty dh_auto_test -i -O--builddirectory=_build -O--buildsystem=golang cd _build && go test -vet=off -v -p 4 github.com/go-resty/resty === RUN TestClientBasicAuth resty_test.go:404: Method: POST resty_test.go:405: Path: /login resty_test.go:406: Content-Type: resty_test.go:435: Basic Auth: Basic bXl1c2VyOmJhc2ljYXV0aA== client_test.go:40: Result Success: &{"success" "login successful"} resty_test.go:647: Response Status: 200 OK resty_test.go:648: Response Time: 2.999908ms resty_test.go:649: Response Headers: map[Content-Length:[50] Content-Type:[application/json; charset=utf-8] Date:[Fri, 08 Oct 2021 12:29:29 GMT]] resty_test.go:650: Response Cookies: [] resty_test.go:651: Response Body: { "id": "success", "message": "login successful" } --- PASS: TestClientBasicAuth (0.00s) === RUN TestClientAuthToken resty_test.go:404: Method: GET resty_test.go:405: Path: /profile resty_test.go:406: Content-Type: resty_test.go:412: Bearer Auth: Bearer 004DDB79-6801-4587-B976-F093E6AC44FF --- PASS: TestClientAuthToken (0.00s) === RUN TestClientAuthScheme resty_test.go:404: Method: GET resty_test.go:405: Path: /profile resty_test.go:406: Content-Type: resty_test.go:412: Bearer Auth: Bearer 004DDB79-6801-4587-B976-F093E6AC44FF resty_test.go:404: Method: GET resty_test.go:405: Path: /profile resty_test.go:406: Content-Type: resty_test.go:412: Bearer Auth: Bearer 004DDB79-6801-4587-B976-F093E6AC44FF --- PASS: TestClientAuthScheme (0.00s) === RUN TestOnAfterMiddleware resty_test.go:460: Method: PUT resty_test.go:461: Path: /plaintext client_test.go:89: Request sent at: 2021-10-08 12:29:29.920617438 +0000 UTC m=+0.011697610 client_test.go:90: Response Received at: 2021-10-08 12:29:29.921178399 +0000 UTC m=+0.012258527 --- PASS: TestOnAfterMiddleware (0.00s) === RUN TestClientRedirectPolicy resty_test.go:531: Method: GET resty_test.go:532: Path: /redirect-1 resty_test.go:531: Method: GET resty_test.go:532: Path: /redirect-2 resty_test.go:531: Method: GET resty_test.go:532: Path: /redirect-3 resty_test.go:531: Method: GET resty_test.go:532: Path: /redirect-4 resty_test.go:531: Method: GET resty_test.go:532: Path: /redirect-5 resty_test.go:531: Method: GET resty_test.go:532: Path: /redirect-6 resty_test.go:531: Method: GET resty_test.go:532: Path: /redirect-7 resty_test.go:531: Method: GET resty_test.go:532: Path: /redirect-8 resty_test.go:531: Method: GET resty_test.go:532: Path: /redirect-9 resty_test.go:531: Method: GET resty_test.go:532: Path: /redirect-10 resty_test.go:531: Method: GET resty_test.go:532: Path: /redirect-11 resty_test.go:531: Method: GET resty_test.go:532: Path: /redirect-12 resty_test.go:531: Method: GET resty_test.go:532: Path: /redirect-13 resty_test.go:531: Method: GET resty_test.go:532: Path: /redirect-14 resty_test.go:531: Method: GET resty_test.go:532: Path: /redirect-15 resty_test.go:531: Method: GET resty_test.go:532: Path: /redirect-16 resty_test.go:531: Method: GET resty_test.go:532: Path: /redirect-17 resty_test.go:531: Method: GET resty_test.go:532: Path: /redirect-18 resty_test.go:531: Method: GET resty_test.go:532: Path: /redirect-19 resty_test.go:531: Method: GET resty_test.go:532: Path: /redirect-20 resty_test.go:531: Method: GET resty_test.go:532: Path: /redirect-1 --- PASS: TestClientRedirectPolicy (0.02s) === RUN TestClientTimeout resty_test.go:41: Method: GET resty_test.go:42: Path: /set-timeout-test --- PASS: TestClientTimeout (6.00s) === RUN TestClientTimeoutWithinThreshold resty_test.go:41: Method: GET resty_test.go:42: Path: /set-timeout-test-with-sequence resty_test.go:41: Method: GET resty_test.go:42: Path: /set-timeout-test-with-sequence --- PASS: TestClientTimeoutWithinThreshold (4.00s) === RUN TestClientTimeoutInternalError --- PASS: TestClientTimeoutInternalError (0.00s) === RUN TestClientProxy --- PASS: TestClientProxy (0.09s) === RUN TestClientSetCertificates --- PASS: TestClientSetCertificates (0.00s) === RUN TestClientSetRootCertificate --- PASS: TestClientSetRootCertificate (0.00s) === RUN TestClientSetRootCertificateNotExists --- PASS: TestClientSetRootCertificateNotExists (0.00s) === RUN TestClientSetRootCertificateFromString --- PASS: TestClientSetRootCertificateFromString (0.00s) === RUN TestClientSetRootCertificateFromStringErrorTls --- PASS: TestClientSetRootCertificateFromStringErrorTls (0.00s) === RUN TestClientOnBeforeRequestModification resty_test.go:41: Method: GET resty_test.go:42: Path: / resty_test.go:647: Response Status: 200 OK resty_test.go:648: Response Time: 591.882µs resty_test.go:649: Response Headers: map[Content-Length:[22] Content-Type:[text/plain; charset=utf-8] Date:[Fri, 08 Oct 2021 12:29:40 GMT]] resty_test.go:650: Response Cookies: [] resty_test.go:651: Response Body: TestGet: text response --- PASS: TestClientOnBeforeRequestModification (0.00s) === RUN TestClientSetTransport --- PASS: TestClientSetTransport (0.00s) === RUN TestClientSetScheme --- PASS: TestClientSetScheme (0.00s) === RUN TestClientSetCookieJar --- PASS: TestClientSetCookieJar (0.00s) === RUN TestClientOptions --- PASS: TestClientOptions (0.00s) === RUN TestClientPreRequestHook resty_test.go:234: Method: POST resty_test.go:235: Path: /login resty_test.go:236: RawQuery: resty_test.go:237: Content-Type: application/json resty_test.go:234: Method: POST resty_test.go:235: Path: /login resty_test.go:236: RawQuery: resty_test.go:237: Content-Type: application/json --- PASS: TestClientPreRequestHook (0.00s) === RUN TestClientAllowsGetMethodPayload resty_test.go:41: Method: GET resty_test.go:42: Path: /get-method-payload-test --- PASS: TestClientAllowsGetMethodPayload (0.00s) === RUN TestClientRoundTripper --- PASS: TestClientRoundTripper (0.00s) === RUN TestClientNewRequest --- PASS: TestClientNewRequest (0.00s) === RUN TestDebugBodySizeLimit resty_test.go:41: Method: GET resty_test.go:42: Path: / resty_test.go:41: Method: GET resty_test.go:42: Path: /no-content resty_test.go:41: Method: GET resty_test.go:42: Path: /json resty_test.go:41: Method: GET resty_test.go:42: Path: /json-invalid resty_test.go:41: Method: GET resty_test.go:42: Path: /long-text resty_test.go:41: Method: GET resty_test.go:42: Path: /long-json --- PASS: TestDebugBodySizeLimit (0.00s) === RUN TestAutoGzip resty_test.go:460: Method: GET resty_test.go:461: Path: /gzip-test resty_test.go:647: Response Status: 200 OK resty_test.go:648: Response Time: 2.861976ms resty_test.go:649: Response Headers: map[Content-Encoding:[gzip] Content-Length:[53] Content-Type:[text/plain; charset=utf-8] Date:[Fri, 08 Oct 2021 12:29:40 GMT]] resty_test.go:650: Response Cookies: [] resty_test.go:651: Response Body: This is Gzip response testing resty_test.go:460: Method: GET resty_test.go:461: Path: /gzip-test-gziped-empty-body resty_test.go:647: Response Status: 200 OK resty_test.go:648: Response Time: 454.856µs resty_test.go:649: Response Headers: map[Content-Encoding:[gzip] Content-Length:[23] Content-Type:[text/plain; charset=utf-8] Date:[Fri, 08 Oct 2021 12:29:40 GMT]] resty_test.go:650: Response Cookies: [] resty_test.go:651: Response Body: resty_test.go:460: Method: GET resty_test.go:461: Path: /gzip-test-no-gziped-body resty_test.go:647: Response Status: 200 OK resty_test.go:648: Response Time: 227.304µs resty_test.go:649: Response Headers: map[Content-Encoding:[gzip] Content-Length:[0] Content-Type:[text/plain; charset=utf-8] Date:[Fri, 08 Oct 2021 12:29:40 GMT]] resty_test.go:650: Response Cookies: [] resty_test.go:651: Response Body: --- PASS: TestAutoGzip (0.00s) === RUN TestLogCallbacks resty_test.go:404: Method: GET resty_test.go:405: Path: /profile resty_test.go:406: Content-Type: resty_test.go:412: Bearer Auth: Bearer 004DDB79-6801-4587-B976-F093E6AC44FF-Request resty_test.go:404: Method: GET resty_test.go:405: Path: /profile resty_test.go:406: Content-Type: resty_test.go:412: Bearer Auth: Bearer 004DDB79-6801-4587-B976-F093E6AC44FF-Request --- PASS: TestLogCallbacks (0.00s) === RUN TestNewWithLocalAddr resty_test.go:41: Method: GET resty_test.go:42: Path: / --- PASS: TestNewWithLocalAddr (0.00s) === RUN TestClientOnResponseError === RUN TestClientOnResponseError/successful_request === CONT TestClientOnResponseError resty_test.go:404: Method: GET resty_test.go:405: Path: /profile resty_test.go:406: Content-Type: resty_test.go:412: Bearer Auth: Bearer 004DDB79-6801-4587-B976-F093E6AC44FF === RUN TestClientOnResponseError/http_status_error === CONT TestClientOnResponseError resty_test.go:404: Method: GET resty_test.go:405: Path: /profile resty_test.go:406: Content-Type: resty_test.go:412: Bearer Auth: Bearer BAD === RUN TestClientOnResponseError/before_request_error === RUN TestClientOnResponseError/before_request_error_retry === RUN TestClientOnResponseError/after_response_error === CONT TestClientOnResponseError resty_test.go:404: Method: GET resty_test.go:405: Path: /profile resty_test.go:406: Content-Type: resty_test.go:412: Bearer Auth: Bearer 004DDB79-6801-4587-B976-F093E6AC44FF === RUN TestClientOnResponseError/after_response_error_retry === CONT TestClientOnResponseError resty_test.go:404: Method: GET resty_test.go:405: Path: /profile resty_test.go:406: Content-Type: resty_test.go:412: Bearer Auth: Bearer 004DDB79-6801-4587-B976-F093E6AC44FF resty_test.go:404: Method: GET resty_test.go:405: Path: /profile resty_test.go:406: Content-Type: resty_test.go:412: Bearer Auth: Bearer 004DDB79-6801-4587-B976-F093E6AC44FF resty_test.go:404: Method: GET resty_test.go:405: Path: /profile resty_test.go:406: Content-Type: resty_test.go:412: Bearer Auth: Bearer 004DDB79-6801-4587-B976-F093E6AC44FF resty_test.go:404: Method: GET resty_test.go:405: Path: /profile resty_test.go:406: Content-Type: resty_test.go:412: Bearer Auth: Bearer 004DDB79-6801-4587-B976-F093E6AC44FF --- PASS: TestClientOnResponseError (0.82s) --- PASS: TestClientOnResponseError/successful_request (0.00s) --- PASS: TestClientOnResponseError/http_status_error (0.01s) --- PASS: TestClientOnResponseError/before_request_error (0.00s) --- PASS: TestClientOnResponseError/before_request_error_retry (0.40s) --- PASS: TestClientOnResponseError/after_response_error (0.00s) --- PASS: TestClientOnResponseError/after_response_error_retry (0.41s) === RUN TestResponseError --- PASS: TestResponseError (0.00s) === RUN TestSetContext resty_test.go:41: Method: GET resty_test.go:42: Path: / resty_test.go:647: Response Status: 200 OK resty_test.go:648: Response Time: 456.737µs resty_test.go:649: Response Headers: map[Content-Length:[22] Content-Type:[text/plain; charset=utf-8] Date:[Fri, 08 Oct 2021 12:29:40 GMT]] resty_test.go:650: Response Cookies: [] resty_test.go:651: Response Body: TestGet: text response --- PASS: TestSetContext (0.00s) === RUN TestSetContextWithError resty_test.go:41: Method: GET resty_test.go:42: Path: /mypage resty_test.go:647: Response Status: 400 Bad Request resty_test.go:648: Response Time: 316.746µs resty_test.go:649: Response Headers: map[Content-Length:[0] Date:[Fri, 08 Oct 2021 12:29:40 GMT]] resty_test.go:650: Response Cookies: [] resty_test.go:651: Response Body: --- PASS: TestSetContextWithError (0.00s) === RUN TestSetContextCancel context_test.go:57: Server: GET / context_test.go:62: Server: wrote 30 bytes context_test.go:63: Server: err is context_test.go:82: Error: Get "http://127.0.0.1:43207/": context canceled --- PASS: TestSetContextCancel (0.00s) === RUN TestSetContextCancelRetry context_test.go:96: Server: GET / context_test.go:101: Server: wrote 30 bytes context_test.go:102: Server: err is context_test.go:125: Error: Get "http://127.0.0.1:44175/": context canceled --- PASS: TestSetContextCancelRetry (0.00s) === RUN TestSetContextCancelWithError context_test.go:141: Server: GET / context_test.go:142: Server: sending StatusBadRequest response context_test.go:148: Server: wrote 39 bytes context_test.go:149: Server: err is context_test.go:168: Error: Get "http://127.0.0.1:40825/": context canceled --- PASS: TestSetContextCancelWithError (0.00s) === RUN TestClientRetryWithSetContext context_test.go:177: Method: GET context_test.go:178: Path: / context_test.go:177: Method: GET context_test.go:178: Path: / context_test.go:177: Method: GET context_test.go:178: Path: / context_test.go:177: Method: GET context_test.go:178: Path: / --- PASS: TestClientRetryWithSetContext (5.58s) === RUN TestRequestContext --- PASS: TestRequestContext (0.00s) === RUN TestGet resty_test.go:41: Method: GET resty_test.go:42: Path: / resty_test.go:647: Response Status: 200 OK resty_test.go:648: Response Time: 574.862µs resty_test.go:649: Response Headers: map[Content-Length:[22] Content-Type:[text/plain; charset=utf-8] Date:[Fri, 08 Oct 2021 12:29:46 GMT]] resty_test.go:650: Response Cookies: [] resty_test.go:651: Response Body: TestGet: text response --- PASS: TestGet (0.00s) === RUN TestGetCustomUserAgent resty_test.go:41: Method: GET resty_test.go:42: Path: / resty_test.go:647: Response Status: 200 OK resty_test.go:648: Response Time: 666.564µs resty_test.go:649: Response Headers: map[Content-Length:[22] Content-Type:[text/plain; charset=utf-8] Date:[Fri, 08 Oct 2021 12:29:46 GMT]] resty_test.go:650: Response Cookies: [] resty_test.go:651: Response Body: TestGet: text response --- PASS: TestGetCustomUserAgent (0.00s) === RUN TestGetClientParamRequestParam resty_test.go:41: Method: GET resty_test.go:42: Path: / resty_test.go:647: Response Status: 200 OK resty_test.go:648: Response Time: 509.759µs resty_test.go:649: Response Headers: map[Content-Length:[22] Content-Type:[text/plain; charset=utf-8] Date:[Fri, 08 Oct 2021 12:29:46 GMT]] resty_test.go:650: Response Cookies: [] resty_test.go:651: Response Body: TestGet: text response --- PASS: TestGetClientParamRequestParam (0.00s) === RUN TestGetRelativePath resty_test.go:41: Method: GET resty_test.go:42: Path: /mypage2 resty_test.go:647: Response Status: 200 OK resty_test.go:648: Response Time: 425.667µs resty_test.go:649: Response Headers: map[Content-Length:[35] Content-Type:[text/plain; charset=utf-8] Date:[Fri, 08 Oct 2021 12:29:46 GMT]] resty_test.go:650: Response Cookies: [] resty_test.go:651: Response Body: TestGet: text response from mypage2 --- PASS: TestGetRelativePath (0.00s) === RUN TestGet400Error resty_test.go:41: Method: GET resty_test.go:42: Path: /mypage resty_test.go:647: Response Status: 400 Bad Request resty_test.go:648: Response Time: 936.918µs resty_test.go:649: Response Headers: map[Content-Length:[0] Date:[Fri, 08 Oct 2021 12:29:46 GMT]] resty_test.go:650: Response Cookies: [] resty_test.go:651: Response Body: --- PASS: TestGet400Error (0.00s) === RUN TestPostJSONStringSuccess resty_test.go:234: Method: POST resty_test.go:235: Path: /login resty_test.go:236: RawQuery: resty_test.go:237: Content-Type: application/json; charset=utf-8 resty_test.go:647: Response Status: 200 OK resty_test.go:648: Response Time: 410.08µs resty_test.go:649: Response Headers: map[Content-Length:[50] Content-Type:[application/json] Date:[Fri, 08 Oct 2021 12:29:46 GMT]] resty_test.go:650: Response Cookies: [] resty_test.go:651: Response Body: { "id": "success", "message": "login successful" } resty_test.go:234: Method: POST resty_test.go:235: Path: /login resty_test.go:236: RawQuery: resty_test.go:237: Content-Type: application/json; charset=utf-8 resty_test.go:148: Error: &json.SyntaxError{msg:"invalid character '\"' after object key:value pair", Offset:24} resty_test.go:647: Response Status: 400 Bad Request resty_test.go:648: Response Time: 242.849µs resty_test.go:649: Response Headers: map[Content-Length:[62] Content-Type:[application/json] Date:[Fri, 08 Oct 2021 12:29:46 GMT]] resty_test.go:650: Response Cookies: [] resty_test.go:651: Response Body: { "id": "bad_request", "message": "Unable to read user info" } --- PASS: TestPostJSONStringSuccess (0.00s) === RUN TestPostJSONBytesSuccess resty_test.go:234: Method: POST resty_test.go:235: Path: /login resty_test.go:236: RawQuery: resty_test.go:237: Content-Type: application/json; charset=utf-8 resty_test.go:647: Response Status: 200 OK resty_test.go:648: Response Time: 387.155µs resty_test.go:649: Response Headers: map[Content-Length:[50] Content-Type:[application/json] Date:[Fri, 08 Oct 2021 12:29:46 GMT]] resty_test.go:650: Response Cookies: [] resty_test.go:651: Response Body: { "id": "success", "message": "login successful" } --- PASS: TestPostJSONBytesSuccess (0.00s) === RUN TestPostJSONBytesIoReader resty_test.go:234: Method: POST resty_test.go:235: Path: /login resty_test.go:236: RawQuery: resty_test.go:237: Content-Type: application/json; charset=utf-8 resty_test.go:647: Response Status: 200 OK resty_test.go:648: Response Time: 438.823µs resty_test.go:649: Response Headers: map[Content-Length:[50] Content-Type:[application/json] Date:[Fri, 08 Oct 2021 12:29:46 GMT]] resty_test.go:650: Response Cookies: [] resty_test.go:651: Response Body: { "id": "success", "message": "login successful" } --- PASS: TestPostJSONBytesIoReader (0.00s) === RUN TestPostJSONStructSuccess resty_test.go:234: Method: POST resty_test.go:235: Path: /login resty_test.go:236: RawQuery: resty_test.go:237: Content-Type: application/json; charset=utf-8 request_test.go:204: Result Success: &{"success" "login successful"} resty_test.go:647: Response Status: 200 OK resty_test.go:648: Response Time: 393.472µs resty_test.go:649: Response Headers: map[Content-Length:[50] Content-Type:[application/json] Date:[Fri, 08 Oct 2021 12:29:46 GMT]] resty_test.go:650: Response Cookies: [] resty_test.go:651: Response Body: { "id": "success", "message": "login successful" } --- PASS: TestPostJSONStructSuccess (0.00s) === RUN TestPostJSONRPCStructSuccess resty_test.go:234: Method: POST resty_test.go:235: Path: /login resty_test.go:236: RawQuery: ct=rpc resty_test.go:237: Content-Type: application/json-rpc request_test.go:226: Result Success: &{"success" "login successful"} resty_test.go:647: Response Status: 200 OK resty_test.go:648: Response Time: 427.781µs resty_test.go:649: Response Headers: map[Content-Length:[50] Content-Type:[application/json-rpc] Date:[Fri, 08 Oct 2021 12:29:46 GMT]] resty_test.go:650: Response Cookies: [] resty_test.go:651: Response Body: { "id": "success", "message": "login successful" } --- PASS: TestPostJSONRPCStructSuccess (0.00s) === RUN TestPostJSONStructInvalidLogin resty_test.go:234: Method: POST resty_test.go:235: Path: /login resty_test.go:236: RawQuery: resty_test.go:237: Content-Type: application/json; charset=utf-8 request_test.go:251: Result Error: &{"unauthorized" "Invalid credentials"} resty_test.go:647: Response Status: 401 Unauthorized resty_test.go:648: Response Time: 360.78µs resty_test.go:649: Response Headers: map[Content-Length:[58] Content-Type:[application/json] Date:[Fri, 08 Oct 2021 12:29:46 GMT]] resty_test.go:650: Response Cookies: [] resty_test.go:651: Response Body: { "id": "unauthorized", "message": "Invalid credentials" } --- PASS: TestPostJSONStructInvalidLogin (0.00s) === RUN TestPostJSONErrorRFC7807 resty_test.go:234: Method: POST resty_test.go:235: Path: /login resty_test.go:236: RawQuery: ct=problem resty_test.go:237: Content-Type: application/json; charset=utf-8 request_test.go:273: Result Error: &{"unauthorized" "Invalid credentials"} resty_test.go:647: Response Status: 401 Unauthorized resty_test.go:648: Response Time: 357.423µs resty_test.go:649: Response Headers: map[Content-Length:[58] Content-Type:[application/problem+json; charset=utf-8] Date:[Fri, 08 Oct 2021 12:29:46 GMT]] resty_test.go:650: Response Cookies: [] resty_test.go:651: Response Body: { "id": "unauthorized", "message": "Invalid credentials" } --- PASS: TestPostJSONErrorRFC7807 (0.00s) === RUN TestPostJSONMapSuccess resty_test.go:234: Method: POST resty_test.go:235: Path: /login resty_test.go:236: RawQuery: resty_test.go:237: Content-Type: application/json request_test.go:293: Result Success: &{"success" "login successful"} resty_test.go:647: Response Status: 200 OK resty_test.go:648: Response Time: 393.706µs resty_test.go:649: Response Headers: map[Content-Length:[50] Content-Type:[application/json] Date:[Fri, 08 Oct 2021 12:29:46 GMT]] resty_test.go:650: Response Cookies: [] resty_test.go:651: Response Body: { "id": "success", "message": "login successful" } --- PASS: TestPostJSONMapSuccess (0.00s) === RUN TestPostJSONMapInvalidResponseJson resty_test.go:234: Method: POST resty_test.go:235: Path: /login resty_test.go:236: RawQuery: resty_test.go:237: Content-Type: application/json request_test.go:314: Result Success: &{"" ""} resty_test.go:647: Response Status: 200 OK resty_test.go:648: Response Time: 336.4µs resty_test.go:649: Response Headers: map[Content-Length:[51] Content-Type:[application/json] Date:[Fri, 08 Oct 2021 12:29:46 GMT]] resty_test.go:650: Response Cookies: [] resty_test.go:651: Response Body: { "id": "success", "message": "login successful", } --- PASS: TestPostJSONMapInvalidResponseJson (0.00s) === RUN TestPostJSONMarshalError --- PASS: TestPostJSONMarshalError (0.00s) === RUN TestForceContentTypeForGH276andGH240 resty_test.go:234: Method: POST resty_test.go:235: Path: /login-json-html resty_test.go:236: RawQuery: resty_test.go:237: Content-Type: application/json request_test.go:368: Result Success: &{"" ""} resty_test.go:647: Response Status: 200 OK resty_test.go:648: Response Time: 302.593µs resty_test.go:649: Response Headers: map[Content-Length:[61] Content-Type:[text/html] Date:[Fri, 08 Oct 2021 12:29:46 GMT]] resty_test.go:650: Response Cookies: [] resty_test.go:651: Response Body: Test JSON request with HTML response --- PASS: TestForceContentTypeForGH276andGH240 (0.00s) === RUN TestPostXMLStringSuccess resty_test.go:234: Method: POST resty_test.go:235: Path: /login resty_test.go:236: RawQuery: request_no=1633696186 resty_test.go:237: Content-Type: application/xml resty_test.go:647: Response Status: 200 OK resty_test.go:648: Response Time: 642.571µs resty_test.go:649: Response Headers: map[Content-Length:[116] Content-Type:[application/xml] Date:[Fri, 08 Oct 2021 12:29:46 GMT]] resty_test.go:650: Response Cookies: [] resty_test.go:651: Response Body: successlogin successful --- PASS: TestPostXMLStringSuccess (0.00s) === RUN TestPostXMLMarshalError --- PASS: TestPostXMLMarshalError (0.00s) === RUN TestPostXMLStringError resty_test.go:234: Method: POST resty_test.go:235: Path: /login resty_test.go:236: RawQuery: resty_test.go:237: Content-Type: application/xml resty_test.go:173: Error: XML syntax error on line 1: element closed by resty_test.go:647: Response Status: 400 Bad Request resty_test.go:648: Response Time: 539.777µs resty_test.go:649: Response Headers: map[Content-Length:[124] Content-Type:[application/xml] Date:[Fri, 08 Oct 2021 12:29:46 GMT]] resty_test.go:650: Response Cookies: [] resty_test.go:651: Response Body: bad_requestUnable to read user info --- PASS: TestPostXMLStringError (0.00s) === RUN TestPostXMLBytesSuccess resty_test.go:234: Method: POST resty_test.go:235: Path: /login resty_test.go:236: RawQuery: request_no=1633696186 resty_test.go:237: Content-Type: application/xml resty_test.go:647: Response Status: 200 OK resty_test.go:648: Response Time: 644.197µs resty_test.go:649: Response Headers: map[Content-Length:[116] Content-Type:[application/xml] Date:[Fri, 08 Oct 2021 12:29:46 GMT]] resty_test.go:650: Response Cookies: [] resty_test.go:651: Response Body: successlogin successful --- PASS: TestPostXMLBytesSuccess (0.00s) === RUN TestPostXMLStructSuccess resty_test.go:234: Method: POST resty_test.go:235: Path: /login resty_test.go:236: RawQuery: resty_test.go:237: Content-Type: application/xml request_test.go:468: Result Success: &{"" "login successful"} resty_test.go:647: Response Status: 200 OK resty_test.go:648: Response Time: 589.507µs resty_test.go:649: Response Headers: map[Content-Length:[116] Content-Type:[application/xml] Date:[Fri, 08 Oct 2021 12:29:46 GMT]] resty_test.go:650: Response Cookies: [] resty_test.go:651: Response Body: successlogin successful --- PASS: TestPostXMLStructSuccess (0.00s) === RUN TestPostXMLStructInvalidLogin resty_test.go:234: Method: POST resty_test.go:235: Path: /login resty_test.go:236: RawQuery: resty_test.go:237: Content-Type: application/xml request_test.go:489: Result Error: &{"" "Invalid credentials"} resty_test.go:647: Response Status: 401 Unauthorized resty_test.go:648: Response Time: 639.941µs resty_test.go:649: Response Headers: map[Content-Length:[120] Content-Type:[application/xml] Date:[Fri, 08 Oct 2021 12:29:46 GMT] Www-Authenticate:[Protected Realm]] resty_test.go:650: Response Cookies: [] resty_test.go:651: Response Body: unauthorizedInvalid credentials --- PASS: TestPostXMLStructInvalidLogin (0.00s) === RUN TestPostXMLStructInvalidResponseXml resty_test.go:234: Method: POST resty_test.go:235: Path: /login resty_test.go:236: RawQuery: resty_test.go:237: Content-Type: application/xml request_test.go:507: Result Success: &{"" ""} resty_test.go:647: Response Status: 200 OK resty_test.go:648: Response Time: 631.69µs resty_test.go:649: Response Headers: map[Content-Length:[106] Content-Type:[application/xml] Date:[Fri, 08 Oct 2021 12:29:46 GMT]] resty_test.go:650: Response Cookies: [] resty_test.go:651: Response Body: successlogin successful --- PASS: TestPostXMLStructInvalidResponseXml (0.00s) === RUN TestPostXMLMapNotSupported --- PASS: TestPostXMLMapNotSupported (0.00s) === RUN TestRequestBasicAuth resty_test.go:404: Method: POST resty_test.go:405: Path: /login resty_test.go:406: Content-Type: resty_test.go:435: Basic Auth: Basic bXl1c2VyOmJhc2ljYXV0aA== request_test.go:540: Result Success: &{"success" "login successful"} resty_test.go:647: Response Status: 200 OK resty_test.go:648: Response Time: 3.614679ms resty_test.go:649: Response Headers: map[Content-Length:[50] Content-Type:[application/json; charset=utf-8] Date:[Fri, 08 Oct 2021 12:29:46 GMT]] resty_test.go:650: Response Cookies: [] resty_test.go:651: Response Body: { "id": "success", "message": "login successful" } --- PASS: TestRequestBasicAuth (0.00s) === RUN TestRequestBasicAuthFail resty_test.go:404: Method: POST resty_test.go:405: Path: /login resty_test.go:406: Content-Type: resty_test.go:435: Basic Auth: Basic bXl1c2VyOmJhc2ljYXV0aDE= request_test.go:559: Result Error: &{"unauthorized" "Invalid credentials"} resty_test.go:647: Response Status: 401 Unauthorized resty_test.go:648: Response Time: 3.559299ms resty_test.go:649: Response Headers: map[Content-Length:[58] Content-Type:[application/json; charset=utf-8] Date:[Fri, 08 Oct 2021 12:29:46 GMT] Www-Authenticate:[Protected Realm]] resty_test.go:650: Response Cookies: [] resty_test.go:651: Response Body: { "id": "unauthorized", "message": "Invalid credentials" } --- PASS: TestRequestBasicAuthFail (0.00s) === RUN TestRequestAuthToken resty_test.go:404: Method: GET resty_test.go:405: Path: /profile resty_test.go:406: Content-Type: resty_test.go:412: Bearer Auth: Bearer 004DDB79-6801-4587-B976-F093E6AC44FF-Request --- PASS: TestRequestAuthToken (0.01s) === RUN TestRequestAuthScheme resty_test.go:404: Method: GET resty_test.go:405: Path: /profile resty_test.go:406: Content-Type: resty_test.go:412: Bearer Auth: Bearer 004DDB79-6801-4587-B976-F093E6AC44FF-Request --- PASS: TestRequestAuthScheme (0.00s) === RUN TestFormData resty_test.go:302: Method: POST resty_test.go:303: Path: /profile resty_test.go:304: Content-Type: application/x-www-form-urlencoded resty_test.go:310: FirstName: Jeevanandam resty_test.go:311: LastName: M resty_test.go:312: City: Los Angeles resty_test.go:313: Zip Code: 00001 --- PASS: TestFormData (0.00s) === RUN TestMultiValueFormData resty_test.go:302: Method: POST resty_test.go:303: Path: /search resty_test.go:304: Content-Type: resty_test.go:319: Received Form Encoded values: search_criteria=book&search_criteria=glass&search_criteria=pencil --- PASS: TestMultiValueFormData (0.00s) === RUN TestFormDataDisableWarn resty_test.go:302: Method: POST resty_test.go:303: Path: /profile resty_test.go:304: Content-Type: application/x-www-form-urlencoded resty_test.go:310: FirstName: Jeevanandam resty_test.go:311: LastName: M resty_test.go:312: City: Los Angeles resty_test.go:313: Zip Code: 00001 --- PASS: TestFormDataDisableWarn (0.00s) === RUN TestMultiPartUploadFile resty_test.go:302: Method: POST resty_test.go:303: Path: /upload resty_test.go:304: Content-Type: multipart/form-data; boundary=cbec7698130009c032e69dd39a57ff64f7b267e5e19a06f65057de563cd9 resty_test.go:327: FirstName: resty_test.go:328: LastName: resty_test.go:335: Name: test-img.png resty_test.go:336: Header: map[Content-Disposition:[form-data; name="profile_img"; filename="test-img.png"] Content-Type:[image/png]] resty_test.go:340: Write name: test-img-1633696186.png --- PASS: TestMultiPartUploadFile (0.07s) === RUN TestMultiPartUploadFileError --- PASS: TestMultiPartUploadFileError (0.00s) === RUN TestMultiPartUploadFiles resty_test.go:302: Method: POST resty_test.go:303: Path: /upload resty_test.go:304: Content-Type: multipart/form-data; boundary=bc0413de89edb5226b7be744856e64fe8115c65672749ca2c70b86e01983 resty_test.go:327: FirstName: Jeevanandam resty_test.go:328: LastName: M resty_test.go:335: Name: test-img.png resty_test.go:336: Header: map[Content-Disposition:[form-data; name="profile_img"; filename="test-img.png"] Content-Type:[image/png]] resty_test.go:340: Write name: test-img-1633696186.png resty_test.go:335: Name: text-file.txt resty_test.go:336: Header: map[Content-Disposition:[form-data; name="notes"; filename="text-file.txt"] Content-Type:[application/octet-stream]] resty_test.go:340: Write name: text-file-1633696186.txt --- PASS: TestMultiPartUploadFiles (0.03s) === RUN TestMultiPartIoReaderFiles request_test.go:738: File Info: ParamName: test_param; FileName: test_file_name.jpg resty_test.go:302: Method: POST resty_test.go:303: Path: /upload resty_test.go:304: Content-Type: multipart/form-data; boundary=0c46d796e37c699dcbf513eaf0ae8c1159ba2e1cf7f90d37e74064680fab resty_test.go:327: FirstName: Jeevanandam resty_test.go:328: LastName: M resty_test.go:335: Name: test-img.png resty_test.go:336: Header: map[Content-Disposition:[form-data; name="profile_img"; filename="test-img.png"] Content-Type:[image/png]] resty_test.go:340: Write name: test-img-1633696186.png resty_test.go:335: Name: text-file.txt resty_test.go:336: Header: map[Content-Disposition:[form-data; name="notes"; filename="text-file.txt"] Content-Type:[application/octet-stream]] resty_test.go:340: Write name: text-file-1633696186.txt --- PASS: TestMultiPartIoReaderFiles (0.09s) === RUN TestMultiPartUploadFileNotOnGetOrDelete --- PASS: TestMultiPartUploadFileNotOnGetOrDelete (0.00s) === RUN TestMultiPartFormData resty_test.go:302: Method: POST resty_test.go:303: Path: /profile resty_test.go:304: Content-Type: multipart/form-data; boundary=045bd7783fc0e4f3985294f98d22fb1798ac1fb3d4a788892d70c5527b47 resty_test.go:310: FirstName: Jeevanandam resty_test.go:311: LastName: M resty_test.go:312: City: resty_test.go:313: Zip Code: 00001 --- PASS: TestMultiPartFormData (0.00s) === RUN TestMultiPartMultipartField resty_test.go:302: Method: POST resty_test.go:303: Path: /upload resty_test.go:304: Content-Type: multipart/form-data; boundary=a115c2484b8d5f6fc21ad73919626fa19855b27dcd17b8face2ff00b1349 resty_test.go:327: FirstName: Jeevanandam resty_test.go:328: LastName: M resty_test.go:335: Name: upload-file.json resty_test.go:336: Header: map[Content-Disposition:[form-data; name="uploadManifest"; filename="upload-file.json"] Content-Type:[application/json]] resty_test.go:340: Write name: upload-file-1633696186.json --- PASS: TestMultiPartMultipartField (0.00s) === RUN TestMultiPartMultipartFields resty_test.go:302: Method: POST resty_test.go:303: Path: /upload resty_test.go:304: Content-Type: multipart/form-data; boundary=5457604f2446942006aa4213c7d9b00940dd0d0302d4359480804861a494 resty_test.go:327: FirstName: Jeevanandam resty_test.go:328: LastName: M resty_test.go:335: Name: upload-file-1.json resty_test.go:336: Header: map[Content-Disposition:[form-data; name="uploadManifest1"; filename="upload-file-1.json"] Content-Type:[application/json]] resty_test.go:340: Write name: upload-file-1-1633696186.json resty_test.go:335: Name: upload-file-2.json resty_test.go:336: Header: map[Content-Disposition:[form-data; name="uploadManifest2"; filename="upload-file-2.json"] Content-Type:[application/json]] resty_test.go:340: Write name: upload-file-2-1633696186.json --- PASS: TestMultiPartMultipartFields (0.00s) === RUN TestGetWithCookie resty_test.go:41: Method: GET resty_test.go:42: Path: /mypage2 resty_test.go:647: Response Status: 200 OK resty_test.go:648: Response Time: 548.47µs resty_test.go:649: Response Headers: map[Content-Length:[35] Content-Type:[text/plain; charset=utf-8] Date:[Fri, 08 Oct 2021 12:29:46 GMT]] resty_test.go:650: Response Cookies: [] resty_test.go:651: Response Body: TestGet: text response from mypage2 --- PASS: TestGetWithCookie (0.00s) === RUN TestGetWithCookies resty_test.go:41: Method: GET resty_test.go:42: Path: /mypage2 resty_test.go:41: Method: GET resty_test.go:42: Path: /mypage2 resty_test.go:647: Response Status: 200 OK resty_test.go:648: Response Time: 315.988µs resty_test.go:649: Response Headers: map[Content-Length:[35] Content-Type:[text/plain; charset=utf-8] Date:[Fri, 08 Oct 2021 12:29:46 GMT]] resty_test.go:650: Response Cookies: [] resty_test.go:651: Response Body: TestGet: text response from mypage2 --- PASS: TestGetWithCookies (0.00s) === RUN TestPutPlainString resty_test.go:460: Method: PUT resty_test.go:461: Path: /plaintext --- PASS: TestPutPlainString (0.00s) === RUN TestPutJSONString resty_test.go:460: Method: PUT resty_test.go:461: Path: /json --- PASS: TestPutJSONString (0.00s) === RUN TestPutXMLString resty_test.go:460: Method: PUT resty_test.go:461: Path: /xml --- PASS: TestPutXMLString (0.00s) === RUN TestOnBeforeMiddleware resty_test.go:460: Method: PUT resty_test.go:461: Path: /plaintext --- PASS: TestOnBeforeMiddleware (0.00s) === RUN TestHTTPAutoRedirectUpTo10 resty_test.go:531: Method: GET resty_test.go:532: Path: /redirect-1 resty_test.go:531: Method: GET resty_test.go:532: Path: /redirect-2 resty_test.go:531: Method: GET resty_test.go:532: Path: /redirect-3 resty_test.go:531: Method: GET resty_test.go:532: Path: /redirect-4 resty_test.go:531: Method: GET resty_test.go:532: Path: /redirect-5 resty_test.go:531: Method: GET resty_test.go:532: Path: /redirect-6 resty_test.go:531: Method: GET resty_test.go:532: Path: /redirect-7 resty_test.go:531: Method: GET resty_test.go:532: Path: /redirect-8 resty_test.go:531: Method: GET resty_test.go:532: Path: /redirect-9 resty_test.go:531: Method: GET resty_test.go:532: Path: /redirect-10 --- PASS: TestHTTPAutoRedirectUpTo10 (0.00s) === RUN TestHostCheckRedirectPolicy resty_test.go:531: Method: GET resty_test.go:532: Path: /redirect-host-check-1 resty_test.go:531: Method: GET resty_test.go:532: Path: /redirect-host-check-2 resty_test.go:531: Method: GET resty_test.go:532: Path: /redirect-host-check-3 resty_test.go:531: Method: GET resty_test.go:532: Path: /redirect-host-check-4 resty_test.go:531: Method: GET resty_test.go:532: Path: /redirect-host-check-5 --- PASS: TestHostCheckRedirectPolicy (0.00s) === RUN TestHeadMethod resty_test.go:41: Method: HEAD resty_test.go:42: Path: / --- PASS: TestHeadMethod (0.00s) === RUN TestOptionsMethod resty_test.go:460: Method: OPTIONS resty_test.go:461: Path: /options --- PASS: TestOptionsMethod (0.00s) === RUN TestPatchMethod resty_test.go:460: Method: PATCH resty_test.go:461: Path: /patch --- PASS: TestPatchMethod (0.06s) === RUN TestSendMethod === RUN TestSendMethod/send-get === CONT TestSendMethod resty_test.go:460: Method: GET resty_test.go:461: Path: /gzip-test === RUN TestSendMethod/send-options === CONT TestSendMethod resty_test.go:460: Method: OPTIONS resty_test.go:461: Path: /options === RUN TestSendMethod/send-patch === CONT TestSendMethod resty_test.go:460: Method: PATCH resty_test.go:461: Path: /patch === RUN TestSendMethod/send-put === CONT TestSendMethod resty_test.go:460: Method: PUT resty_test.go:461: Path: /plaintext --- PASS: TestSendMethod (0.00s) --- PASS: TestSendMethod/send-get (0.00s) --- PASS: TestSendMethod/send-options (0.00s) --- PASS: TestSendMethod/send-patch (0.00s) --- PASS: TestSendMethod/send-put (0.00s) === RUN TestRawFileUploadByBody resty_test.go:302: Method: PUT resty_test.go:303: Path: /raw-upload resty_test.go:304: Content-Type: image/png --- PASS: TestRawFileUploadByBody (0.51s) === RUN TestProxySetting --- PASS: TestProxySetting (0.00s) === RUN TestGetClient --- PASS: TestGetClient (0.00s) === RUN TestIncorrectURL --- PASS: TestIncorrectURL (0.00s) === RUN TestDetectContentTypeForPointer resty_test.go:234: Method: POST resty_test.go:235: Path: /login resty_test.go:236: RawQuery: resty_test.go:237: Content-Type: application/json request_test.go:1207: Result Success: &{"success" "login successful"} resty_test.go:647: Response Status: 200 OK resty_test.go:648: Response Time: 694.967µs resty_test.go:649: Response Headers: map[Content-Length:[50] Content-Type:[application/json] Date:[Fri, 08 Oct 2021 12:29:47 GMT]] resty_test.go:650: Response Cookies: [] resty_test.go:651: Response Body: { "id": "success", "message": "login successful" } --- PASS: TestDetectContentTypeForPointer (0.00s) === RUN TestDetectContentTypeForPointerWithSlice resty_test.go:234: Method: POST resty_test.go:235: Path: /users resty_test.go:236: RawQuery: resty_test.go:237: Content-Type: application/json request_test.go:1235: Result Success: "{ \"message\": \"Accepted\" }" resty_test.go:647: Response Status: 202 Accepted resty_test.go:648: Response Time: 489.502µs resty_test.go:649: Response Headers: map[Content-Length:[25] Content-Type:[application/json] Date:[Fri, 08 Oct 2021 12:29:47 GMT]] resty_test.go:650: Response Cookies: [] resty_test.go:651: Response Body: { "message": "Accepted" } --- PASS: TestDetectContentTypeForPointerWithSlice (0.00s) === RUN TestDetectContentTypeForPointerWithSliceMap resty_test.go:234: Method: POST resty_test.go:235: Path: /usersmap resty_test.go:236: RawQuery: resty_test.go:237: Content-Type: application/json request_test.go:1260: Result Success: "{ \"message\": \"Accepted\" }" resty_test.go:647: Response Status: 202 Accepted resty_test.go:648: Response Time: 517.404µs resty_test.go:649: Response Headers: map[Content-Length:[25] Content-Type:[application/json; charset=utf-8] Date:[Fri, 08 Oct 2021 12:29:47 GMT]] resty_test.go:650: Response Cookies: [] resty_test.go:651: Response Body: { "message": "Accepted" } --- PASS: TestDetectContentTypeForPointerWithSliceMap (0.00s) === RUN TestDetectContentTypeForSlice resty_test.go:234: Method: POST resty_test.go:235: Path: /users resty_test.go:236: RawQuery: resty_test.go:237: Content-Type: application/json request_test.go:1282: Result Success: "{ \"message\": \"Accepted\" }" resty_test.go:647: Response Status: 202 Accepted resty_test.go:648: Response Time: 409.031µs resty_test.go:649: Response Headers: map[Content-Length:[25] Content-Type:[application/json] Date:[Fri, 08 Oct 2021 12:29:47 GMT]] resty_test.go:650: Response Cookies: [] resty_test.go:651: Response Body: { "message": "Accepted" } --- PASS: TestDetectContentTypeForSlice (0.00s) === RUN TestMultiParamsQueryString resty_test.go:41: Method: GET resty_test.go:42: Path: / resty_test.go:41: Method: GET resty_test.go:42: Path: / resty_test.go:41: Method: GET resty_test.go:42: Path: / --- PASS: TestMultiParamsQueryString (0.00s) === RUN TestSetQueryStringTypical resty_test.go:41: Method: GET resty_test.go:42: Path: / resty_test.go:41: Method: GET resty_test.go:42: Path: / --- PASS: TestSetQueryStringTypical (0.00s) === RUN TestOutputFileWithBaseDirAndRelativePath resty_test.go:41: Method: GET resty_test.go:42: Path: /my-image.png --- PASS: TestOutputFileWithBaseDirAndRelativePath (0.01s) === RUN TestOutputFileWithBaseDirError --- PASS: TestOutputFileWithBaseDirError (0.00s) === RUN TestOutputPathDirNotExists resty_test.go:41: Method: GET resty_test.go:42: Path: /my-image.png --- PASS: TestOutputPathDirNotExists (0.01s) === RUN TestOutputFileAbsPath resty_test.go:41: Method: GET resty_test.go:42: Path: /my-image.png --- PASS: TestOutputFileAbsPath (0.01s) === RUN TestContextInternal resty_test.go:41: Method: GET resty_test.go:42: Path: / --- PASS: TestContextInternal (0.00s) === RUN TestSRV --- PASS: TestSRV (0.26s) === RUN TestSRVInvalidService --- PASS: TestSRVInvalidService (0.09s) === RUN TestRequestDoNotParseResponse resty_test.go:41: Method: GET resty_test.go:42: Path: / resty_test.go:41: Method: GET resty_test.go:42: Path: / --- PASS: TestRequestDoNotParseResponse (0.00s) === RUN TestRequestExpectContentTypeTest resty_test.go:460: Method: GET resty_test.go:461: Path: /json-no-set --- PASS: TestRequestExpectContentTypeTest (0.00s) === RUN TestGetPathParamAndPathParams resty_test.go:41: Method: GET resty_test.go:42: Path: /v1/users/sample@sample.com/100002/details resty_test.go:647: Response Status: 200 OK resty_test.go:648: Response Time: 395.191µs resty_test.go:649: Response Headers: map[Content-Length:[76] Content-Type:[text/plain; charset=utf-8] Date:[Fri, 08 Oct 2021 12:29:47 GMT]] resty_test.go:650: Response Cookies: [] resty_test.go:651: Response Body: TestGetPathParams: text response: /v1/users/sample@sample.com/100002/details --- PASS: TestGetPathParamAndPathParams (0.00s) === RUN TestReportMethodSupportsPayload resty_test.go:460: Method: REPORT resty_test.go:461: Path: /report --- PASS: TestReportMethodSupportsPayload (0.00s) === RUN TestRequestQueryStringOrder resty_test.go:41: Method: GET resty_test.go:42: Path: / resty_test.go:647: Response Status: 200 OK resty_test.go:648: Response Time: 549.57µs resty_test.go:649: Response Headers: map[Content-Length:[22] Content-Type:[text/plain; charset=utf-8] Date:[Fri, 08 Oct 2021 12:29:47 GMT]] resty_test.go:650: Response Cookies: [] resty_test.go:651: Response Body: TestGet: text response --- PASS: TestRequestQueryStringOrder (0.00s) === RUN TestRequestOverridesClientAuthorizationHeader resty_test.go:404: Method: GET resty_test.go:405: Path: /profile resty_test.go:406: Content-Type: resty_test.go:412: Bearer Auth: Bearer 004DDB79-6801-4587-B976-F093E6AC44FF --- PASS: TestRequestOverridesClientAuthorizationHeader (0.00s) === RUN TestRequestFileUploadAsReader resty_test.go:367: Method: POST resty_test.go:368: Path: /upload resty_test.go:369: Content-Type: image/png resty_test.go:367: Method: POST resty_test.go:368: Path: /upload resty_test.go:369: Content-Type: image/png --- PASS: TestRequestFileUploadAsReader (0.03s) === RUN TestHostHeaderOverride resty_test.go:41: Method: GET resty_test.go:42: Path: /host-header resty_test.go:647: Response Status: 200 OK resty_test.go:648: Response Time: 740.424µs resty_test.go:649: Response Headers: map[Content-Length:[10] Content-Type:[text/plain; charset=utf-8] Date:[Fri, 08 Oct 2021 12:29:47 GMT]] resty_test.go:650: Response Cookies: [] resty_test.go:651: Response Body: myhostname --- PASS: TestHostHeaderOverride (0.00s) === RUN TestPathParamURLInput resty_test.go:41: Method: GET resty_test.go:42: Path: /v1/users/sample@sample.com/100002/https://example.com resty_test.go:647: Response Status: 200 OK resty_test.go:648: Response Time: 525.623µs resty_test.go:649: Response Headers: map[Content-Length:[96] Content-Type:[text/plain; charset=utf-8] Date:[Fri, 08 Oct 2021 12:29:47 GMT]] resty_test.go:650: Response Cookies: [] resty_test.go:651: Response Body: TestPathParamURLInput: text response: /v1/users/sample@sample.com/100002/https:%2F%2Fexample.com --- PASS: TestPathParamURLInput (0.00s) === RUN TestTraceInfo resty_test.go:41: Method: GET resty_test.go:42: Path: / resty_test.go:41: Method: GET resty_test.go:42: Path: /json resty_test.go:41: Method: GET resty_test.go:42: Path: /long-text resty_test.go:41: Method: GET resty_test.go:42: Path: /long-json resty_test.go:41: Method: GET resty_test.go:42: Path: / resty_test.go:41: Method: GET resty_test.go:42: Path: /json resty_test.go:41: Method: GET resty_test.go:42: Path: /long-text resty_test.go:41: Method: GET resty_test.go:42: Path: /long-json --- PASS: TestTraceInfo (0.30s) === RUN TestTraceInfoWithoutEnableTrace resty_test.go:41: Method: GET resty_test.go:42: Path: / resty_test.go:41: Method: GET resty_test.go:42: Path: /json resty_test.go:41: Method: GET resty_test.go:42: Path: /long-text resty_test.go:41: Method: GET resty_test.go:42: Path: /long-json --- PASS: TestTraceInfoWithoutEnableTrace (0.00s) === RUN TestTraceInfoOnTimeout --- PASS: TestTraceInfoOnTimeout (0.09s) === RUN TestDebugLoggerRequestBodyTooLarge resty_test.go:367: Method: POST resty_test.go:368: Path: /upload resty_test.go:369: Content-Type: multipart/form-data; boundary=c64b4f18e9ee7347aeabfe54e9a673547340ab24a2e2f8529b3511fc36c6 resty_test.go:367: Method: POST resty_test.go:368: Path: /upload resty_test.go:369: Content-Type: multipart/form-data; boundary=9bbf50a9ee780cdddc2aa85a88fbed0e0790aff7095b6843e50e4bd83b7c resty_test.go:302: Method: POST resty_test.go:303: Path: /profile resty_test.go:304: Content-Type: application/x-www-form-urlencoded resty_test.go:310: FirstName: Alex resty_test.go:311: LastName: CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC resty_test.go:312: City: resty_test.go:313: Zip Code: 00001 resty_test.go:302: Method: POST resty_test.go:303: Path: /profile resty_test.go:304: Content-Type: application/x-www-form-urlencoded resty_test.go:310: FirstName: Alex resty_test.go:311: LastName: C resty_test.go:312: City: resty_test.go:313: Zip Code: 00001 resty_test.go:302: Method: POST resty_test.go:303: Path: /profile resty_test.go:304: Content-Type: text/plain; charset=utf-8 resty_test.go:310: FirstName: resty_test.go:311: LastName: resty_test.go:312: City: resty_test.go:313: Zip Code: resty_test.go:302: Method: POST resty_test.go:303: Path: /profile resty_test.go:304: Content-Type: application/json resty_test.go:310: FirstName: resty_test.go:311: LastName: resty_test.go:312: City: resty_test.go:313: Zip Code: --- PASS: TestDebugLoggerRequestBodyTooLarge (0.02s) === RUN TestPostMapTemporaryRedirect resty_test.go:234: Method: POST resty_test.go:235: Path: /redirect resty_test.go:236: RawQuery: resty_test.go:237: Content-Type: application/json resty_test.go:234: Method: POST resty_test.go:235: Path: /login resty_test.go:236: RawQuery: resty_test.go:237: Content-Type: application/json --- PASS: TestPostMapTemporaryRedirect (0.00s) === RUN TestPostBodyError --- PASS: TestPostBodyError (0.00s) === RUN TestBackoffSuccess --- PASS: TestBackoffSuccess (0.26s) === RUN TestBackoffTenAttemptsSuccess --- PASS: TestBackoffTenAttemptsSuccess (0.00s) === RUN TestConditionalBackoffCondition --- PASS: TestConditionalBackoffCondition (0.23s) === RUN TestConditionalBackoffConditionNonExecution --- PASS: TestConditionalBackoffConditionNonExecution (0.00s) === RUN TestConditionalGet resty_test.go:41: Method: GET resty_test.go:42: Path: / resty_test.go:647: Response Status: 200 OK resty_test.go:648: Response Time: 693.498µs resty_test.go:649: Response Headers: map[Content-Length:[22] Content-Type:[text/plain; charset=utf-8] Date:[Fri, 08 Oct 2021 12:29:48 GMT]] resty_test.go:650: Response Cookies: [] resty_test.go:651: Response Body: TestGet: text response --- PASS: TestConditionalGet (0.00s) === RUN TestConditionalGetDefaultClient resty_test.go:41: Method: GET resty_test.go:42: Path: / resty_test.go:647: Response Status: 200 OK resty_test.go:648: Response Time: 506.351µs resty_test.go:649: Response Headers: map[Content-Length:[22] Content-Type:[text/plain; charset=utf-8] Date:[Fri, 08 Oct 2021 12:29:48 GMT]] resty_test.go:650: Response Cookies: [] resty_test.go:651: Response Body: TestGet: text response --- PASS: TestConditionalGetDefaultClient (0.00s) === RUN TestClientRetryGet resty_test.go:41: Method: GET resty_test.go:42: Path: /set-retrycount-test resty_test.go:41: Method: GET resty_test.go:42: Path: /set-retrycount-test resty_test.go:41: Method: GET resty_test.go:42: Path: /set-retrycount-test resty_test.go:41: Method: GET resty_test.go:42: Path: /set-retrycount-test --- PASS: TestClientRetryGet (15.52s) === RUN TestClientRetryWait resty_test.go:41: Method: GET resty_test.go:42: Path: /set-retrywaittime-test resty_test.go:41: Method: GET resty_test.go:42: Path: /set-retrywaittime-test resty_test.go:41: Method: GET resty_test.go:42: Path: /set-retrywaittime-test resty_test.go:41: Method: GET resty_test.go:42: Path: /set-retrywaittime-test resty_test.go:41: Method: GET resty_test.go:42: Path: /set-retrywaittime-test resty_test.go:41: Method: GET resty_test.go:42: Path: /set-retrywaittime-test --- PASS: TestClientRetryWait (34.48s) === RUN TestClientRetryWaitMaxInfinite resty_test.go:41: Method: GET resty_test.go:42: Path: /set-retrywaittime-test resty_test.go:41: Method: GET resty_test.go:42: Path: /set-retrywaittime-test resty_test.go:41: Method: GET resty_test.go:42: Path: /set-retrywaittime-test resty_test.go:41: Method: GET resty_test.go:42: Path: /set-retrywaittime-test resty_test.go:41: Method: GET resty_test.go:42: Path: /set-retrywaittime-test resty_test.go:41: Method: GET resty_test.go:42: Path: /set-retrywaittime-test --- PASS: TestClientRetryWaitMaxInfinite (18.00s) === RUN TestClientRetryWaitCallbackError resty_test.go:41: Method: GET resty_test.go:42: Path: /set-retrywaittime-test --- PASS: TestClientRetryWaitCallbackError (0.00s) === RUN TestClientRetryWaitCallback resty_test.go:41: Method: GET resty_test.go:42: Path: /set-retrywaittime-test resty_test.go:41: Method: GET resty_test.go:42: Path: /set-retrywaittime-test resty_test.go:41: Method: GET resty_test.go:42: Path: /set-retrywaittime-test resty_test.go:41: Method: GET resty_test.go:42: Path: /set-retrywaittime-test resty_test.go:41: Method: GET resty_test.go:42: Path: /set-retrywaittime-test resty_test.go:41: Method: GET resty_test.go:42: Path: /set-retrywaittime-test --- PASS: TestClientRetryWaitCallback (30.00s) === RUN TestClientRetryWaitCallbackTooShort resty_test.go:41: Method: GET resty_test.go:42: Path: /set-retrywaittime-test resty_test.go:41: Method: GET resty_test.go:42: Path: /set-retrywaittime-test resty_test.go:41: Method: GET resty_test.go:42: Path: /set-retrywaittime-test resty_test.go:41: Method: GET resty_test.go:42: Path: /set-retrywaittime-test resty_test.go:41: Method: GET resty_test.go:42: Path: /set-retrywaittime-test resty_test.go:41: Method: GET resty_test.go:42: Path: /set-retrywaittime-test --- PASS: TestClientRetryWaitCallbackTooShort (18.00s) === RUN TestClientRetryWaitCallbackTooLong resty_test.go:41: Method: GET resty_test.go:42: Path: /set-retrywaittime-test resty_test.go:41: Method: GET resty_test.go:42: Path: /set-retrywaittime-test resty_test.go:41: Method: GET resty_test.go:42: Path: /set-retrywaittime-test resty_test.go:41: Method: GET resty_test.go:42: Path: /set-retrywaittime-test resty_test.go:41: Method: GET resty_test.go:42: Path: /set-retrywaittime-test resty_test.go:41: Method: GET resty_test.go:42: Path: /set-retrywaittime-test --- PASS: TestClientRetryWaitCallbackTooLong (18.01s) === RUN TestClientRetryWaitCallbackSwitchToDefault resty_test.go:41: Method: GET resty_test.go:42: Path: /set-retrywaittime-test resty_test.go:41: Method: GET resty_test.go:42: Path: /set-retrywaittime-test resty_test.go:41: Method: GET resty_test.go:42: Path: /set-retrywaittime-test resty_test.go:41: Method: GET resty_test.go:42: Path: /set-retrywaittime-test resty_test.go:41: Method: GET resty_test.go:42: Path: /set-retrywaittime-test resty_test.go:41: Method: GET resty_test.go:42: Path: /set-retrywaittime-test --- PASS: TestClientRetryWaitCallbackSwitchToDefault (12.84s) === RUN TestClientRetryCancel resty_test.go:41: Method: GET resty_test.go:42: Path: /set-retrywaittime-test --- PASS: TestClientRetryCancel (2.00s) === RUN TestClientRetryPost resty_test.go:234: Method: POST resty_test.go:235: Path: /usersmap resty_test.go:236: RawQuery: status=500 resty_test.go:237: Content-Type: application/json resty_test.go:259: Got query param: status=500 so we're returning the post body as response and a 500 status code. body: [{"user1":{"FirstName":"firstname1","LastName":"lastname1","ZipCode":"10001"}}] resty_test.go:234: Method: POST resty_test.go:235: Path: /usersmap resty_test.go:236: RawQuery: status=500 resty_test.go:237: Content-Type: application/json resty_test.go:259: Got query param: status=500 so we're returning the post body as response and a 500 status code. body: [{"user1":{"FirstName":"firstname1","LastName":"lastname1","ZipCode":"10001"}}] resty_test.go:234: Method: POST resty_test.go:235: Path: /usersmap resty_test.go:236: RawQuery: status=500 resty_test.go:237: Content-Type: application/json resty_test.go:259: Got query param: status=500 so we're returning the post body as response and a 500 status code. body: [{"user1":{"FirstName":"firstname1","LastName":"lastname1","ZipCode":"10001"}}] resty_test.go:234: Method: POST resty_test.go:235: Path: /usersmap resty_test.go:236: RawQuery: status=500 resty_test.go:237: Content-Type: application/json resty_test.go:259: Got query param: status=500 so we're returning the post body as response and a 500 status code. body: [{"user1":{"FirstName":"firstname1","LastName":"lastname1","ZipCode":"10001"}}] retry_test.go:552: Got response body: [{"user1":{"FirstName":"firstname1","LastName":"lastname1","ZipCode":"10001"}}] --- PASS: TestClientRetryPost (1.15s) === RUN TestClientRetryErrorRecover resty_test.go:41: Method: GET resty_test.go:42: Path: /set-retry-error-recover resty_test.go:41: Method: GET resty_test.go:42: Path: /set-retry-error-recover --- PASS: TestClientRetryErrorRecover (0.10s) === RUN TestClientRetryCount resty_test.go:41: Method: GET resty_test.go:42: Path: /set-retrycount-test resty_test.go:41: Method: GET resty_test.go:42: Path: /set-retrycount-test --- PASS: TestClientRetryCount (9.10s) === RUN TestIsJSONType --- PASS: TestIsJSONType (0.00s) === RUN TestIsXMLType --- PASS: TestIsXMLType (0.00s) PASS ok github.com/go-resty/resty 177.916s create-stamp debian/debhelper-build-stamp dh_testroot -i -O--builddirectory=_build -O--buildsystem=golang dh_prep -i -O--builddirectory=_build -O--buildsystem=golang dh_auto_install -i -O--builddirectory=_build -O--buildsystem=golang dh_installdocs -i -O--builddirectory=_build -O--buildsystem=golang dh_installchangelogs -i -O--builddirectory=_build -O--buildsystem=golang dh_installsystemduser -i -O--builddirectory=_build -O--buildsystem=golang dh_perl -i -O--builddirectory=_build -O--buildsystem=golang dh_link -i -O--builddirectory=_build -O--buildsystem=golang dh_strip_nondeterminism -i -O--builddirectory=_build -O--buildsystem=golang dh_compress -i -O--builddirectory=_build -O--buildsystem=golang dh_fixperms -i -O--builddirectory=_build -O--buildsystem=golang dh_missing -i -O--builddirectory=_build -O--buildsystem=golang dh_installdeb -i -O--builddirectory=_build -O--buildsystem=golang dh_golang -i -O--builddirectory=_build -O--buildsystem=golang Use of uninitialized value $caller in string eq at /usr/share/perl5/Debian/Debhelper/Buildsystem/golang.pm line 567. dh_gencontrol -i -O--builddirectory=_build -O--buildsystem=golang dh_md5sums -i -O--builddirectory=_build -O--buildsystem=golang dh_builddeb -i -O--builddirectory=_build -O--buildsystem=golang dpkg-deb: building package 'golang-github-go-resty-resty-dev' in '../golang-github-go-resty-resty-dev_2.4.0-1_all.deb'. dpkg-genbuildinfo --build=all dpkg-genchanges --build=all >../golang-github-go-resty-resty_2.4.0-1_all.changes dpkg-genchanges: info: binary-only arch-indep upload (source code and arch-specific packages not included) dpkg-source --after-build . dpkg-buildpackage: info: binary-only upload (no source included) I: running special hook: sync-out /build/golang-github-go-resty-resty-gUejBh /tmp/golang-github-go-resty-resty-2.4.0-1_7p7df_g I: cleaning package lists and apt cache... I: creating tarball... I: done I: removing tempdir /tmp/mmdebstrap._LUAr_AMLR... I: success in 606.3769 seconds md5: golang-github-go-resty-resty-dev_2.4.0-1_all.deb: OK sha1: golang-github-go-resty-resty-dev_2.4.0-1_all.deb: OK sha256: golang-github-go-resty-resty-dev_2.4.0-1_all.deb: OK Checksums: OK