Diff of the two buildlogs: -- --- b1/build.log 2024-01-10 17:51:15.743765455 +0000 +++ b2/build.log 2024-01-10 17:52:38.172494531 +0000 @@ -1,6 +1,7 @@ +W: cgroups are not available on the host, not using them. I: pbuilder: network access will be disabled during build -I: Current time: Tue Feb 11 12:13:27 -12 2025 -I: pbuilder-time-stamp: 1739319207 +I: Current time: Thu Jan 11 07:51:17 +14 2024 +I: pbuilder-time-stamp: 1704909077 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/bullseye-reproducible-base.tgz] I: copying local configuration @@ -18,7 +19,7 @@ I: copying [./golang-github-hashicorp-atlas-go_0.0~git20170808.8261ea0-3.debian.tar.xz] I: Extracting source gpgv: unknown type of key resource 'trustedkeys.kbx' -gpgv: keyblock resource '/tmp/dpkg-verify-sig.0_7J0FzM/trustedkeys.kbx': General error +gpgv: keyblock resource '/tmp/dpkg-verify-sig.l1ti2cjG/trustedkeys.kbx': General error gpgv: Signature made Tue Feb 6 04:49:56 2018 gpgv: using RSA key 0740778A2DFC4A39C0C8BC8C8F2B113C6535C5A7 gpgv: issuer "aviau@debian.org" @@ -31,51 +32,81 @@ dpkg-source: info: applying 0001-skip-tests-which-failed-due-to-dh-golang.patch I: using fakeroot in build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/28115/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/20224/tmp/hooks/D01_modify_environment starting +debug: Running on ionos12-i386. +I: Changing host+domainname to test build reproducibility +I: Adding a custom variable just for the fun of it... +I: Changing /bin/sh to bash +'/bin/sh' -> '/bin/bash' +lrwxrwxrwx 1 root root 9 Jan 10 17:51 /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/20224/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/20224/tmp/hooks/D02_print_environment starting I: set - BUILDDIR='/build/reproducible-path' - BUILDUSERGECOS='first user,first room,first work-phone,first home-phone,first other' - BUILDUSERNAME='pbuilder1' - BUILD_ARCH='i386' - DEBIAN_FRONTEND='noninteractive' - DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all,-fixfilepath parallel=16 ' - DISTRIBUTION='bullseye' - HOME='/root' - HOST_ARCH='i386' + BASH=/bin/sh + BASHOPTS=checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:hostcomplete:interactive_comments:progcomp:promptvars:sourcepath + BASH_ALIASES=() + BASH_ARGC=() + BASH_ARGV=() + BASH_CMDS=() + BASH_LINENO=([0]="12" [1]="0") + BASH_SOURCE=([0]="/tmp/hooks/D02_print_environment" [1]="/tmp/hooks/D02_print_environment") + BASH_VERSINFO=([0]="5" [1]="1" [2]="4" [3]="1" [4]="release" [5]="i686-pc-linux-gnu") + BASH_VERSION='5.1.4(1)-release' + BUILDDIR=/build/reproducible-path + BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' + BUILDUSERNAME=pbuilder2 + BUILD_ARCH=i386 + DEBIAN_FRONTEND=noninteractive + DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all,-fixfilepath parallel=7 ' + DIRSTACK=() + DISTRIBUTION=bullseye + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=i686 + HOST_ARCH=i386 IFS=' ' - INVOCATION_ID='93a6331834d8435dba8ee2cf4825803a' - LANG='C' - LANGUAGE='en_US:en' - LC_ALL='C' - LD_LIBRARY_PATH='/usr/lib/libeatmydata' - LD_PRELOAD='libeatmydata.so' - MAIL='/var/mail/root' - OPTIND='1' - PATH='/usr/sbin:/usr/bin:/sbin:/bin:/usr/games' - PBCURRENTCOMMANDLINEOPERATION='build' - PBUILDER_OPERATION='build' - PBUILDER_PKGDATADIR='/usr/share/pbuilder' - PBUILDER_PKGLIBDIR='/usr/lib/pbuilder' - PBUILDER_SYSCONFDIR='/etc' - PPID='28115' - PS1='# ' - PS2='> ' + LANG=C + LANGUAGE=de_CH:de + LC_ALL=C + LD_LIBRARY_PATH=/usr/lib/libeatmydata + LD_PRELOAD=libeatmydata.so + MACHTYPE=i686-pc-linux-gnu + MAIL=/var/mail/root + OPTERR=1 + OPTIND=1 + OSTYPE=linux-gnu + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path + PBCURRENTCOMMANDLINEOPERATION=build + PBUILDER_OPERATION=build + PBUILDER_PKGDATADIR=/usr/share/pbuilder + PBUILDER_PKGLIBDIR=/usr/lib/pbuilder + PBUILDER_SYSCONFDIR=/etc + PIPESTATUS=([0]="0") + POSIXLY_CORRECT=y + PPID=20224 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.dy2jWsWr/pbuilderrc_Cy0G --distribution bullseye --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/bullseye-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.dy2jWsWr/b1 --logfile b1/build.log golang-github-hashicorp-atlas-go_0.0~git20170808.8261ea0-3.dsc' - SUDO_GID='112' - SUDO_UID='107' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://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.dy2jWsWr/pbuilderrc_19zW --distribution bullseye --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/bullseye-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.dy2jWsWr/b2 --logfile b2/build.log golang-github-hashicorp-atlas-go_0.0~git20170808.8261ea0-3.dsc' + SUDO_GID=112 + SUDO_UID=107 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://78.137.99.97:3128 I: uname -a - Linux ionos16-i386 6.1.0-17-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.69-1 (2023-12-30) x86_64 GNU/Linux + Linux i-capture-the-hostname 6.1.0-17-686-pae #1 SMP PREEMPT_DYNAMIC Debian 6.1.69-1 (2023-12-30) i686 GNU/Linux I: ls -l /bin total 5776 -rwxr-xr-x 1 root root 1367848 Mar 27 2022 bash @@ -135,7 +166,7 @@ -rwxr-xr-x 1 root root 46984 Sep 22 2020 rmdir -rwxr-xr-x 1 root root 22292 Sep 27 2020 run-parts -rwxr-xr-x 1 root root 125036 Dec 22 2018 sed - lrwxrwxrwx 1 root root 4 Feb 8 15:47 sh -> dash + lrwxrwxrwx 1 root root 9 Jan 10 17:51 sh -> /bin/bash -rwxr-xr-x 1 root root 34696 Sep 22 2020 sleep -rwxr-xr-x 1 root root 83880 Sep 22 2020 stty -rwsr-xr-x 1 root root 79396 Jan 20 2022 su @@ -161,7 +192,7 @@ -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/28115/tmp/hooks/D02_print_environment finished +I: user script /srv/workspace/pbuilder/20224/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -253,7 +284,7 @@ Get: 42 http://deb.debian.org/debian bullseye/main i386 pandoc-data all 2.9.2.1-1+deb11u1 [377 kB] Get: 43 http://deb.debian.org/debian bullseye/main i386 pandoc i386 2.9.2.1-1+deb11u1 [19.1 MB] Get: 44 http://deb.debian.org/debian bullseye/main i386 golang-github-hashicorp-go-rootcerts-dev all 1.0.2-2 [8356 B] -Fetched 98.4 MB in 1s (68.2 MB/s) +Fetched 98.4 MB in 10s (9554 kB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package bsdextrautils. (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 ... 17763 files and directories currently installed.) @@ -450,7 +481,11 @@ fakeroot is already the newest version (1.25.3-1.1). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. I: Building the package -I: Running cd /build/reproducible-path/golang-github-hashicorp-atlas-go-0.0~git20170808.8261ea0/ && 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 > ../golang-github-hashicorp-atlas-go_0.0~git20170808.8261ea0-3_source.changes +I: user script /srv/workspace/pbuilder/20224/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for bullseye +I: user script /srv/workspace/pbuilder/20224/tmp/hooks/A99_set_merged_usr finished +hostname: Name or service not known +I: Running cd /build/reproducible-path/golang-github-hashicorp-atlas-go-0.0~git20170808.8261ea0/ && 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 > ../golang-github-hashicorp-atlas-go_0.0~git20170808.8261ea0-3_source.changes dpkg-buildpackage: info: source package golang-github-hashicorp-atlas-go dpkg-buildpackage: info: source version 0.0~git20170808.8261ea0-3 dpkg-buildpackage: info: source distribution unstable @@ -468,51 +503,51 @@ dh_autoreconf -O--buildsystem=golang dh_auto_configure -O--buildsystem=golang dh_auto_build -O--buildsystem=golang - cd obj-i686-linux-gnu && go install -trimpath -v -p 16 github.com/hashicorp/atlas-go/archive github.com/hashicorp/atlas-go/v1 + cd obj-i686-linux-gnu && go install -trimpath -v -p 7 github.com/hashicorp/atlas-go/archive github.com/hashicorp/atlas-go/v1 +internal/unsafeheader internal/race +internal/cpu +sync/atomic unicode/utf8 -internal/unsafeheader +runtime/internal/atomic unicode -unicode/utf16 +runtime/internal/sys +math/bits container/list +runtime/cgo +runtime/internal/math +internal/testlog crypto/internal/subtle -vendor/golang.org/x/crypto/cryptobyte/asn1 -internal/nettrace +internal/bytealg crypto/subtle -math/bits -runtime/internal/sys -sync/atomic +unicode/utf16 +vendor/golang.org/x/crypto/cryptobyte/asn1 +math vendor/golang.org/x/crypto/internal/subtle -internal/cpu -runtime/internal/atomic -runtime/cgo encoding -internal/testlog -runtime/internal/math -math -internal/bytealg +internal/nettrace runtime internal/reflectlite sync -internal/singleflight math/rand +internal/singleflight errors sort -internal/oserror io +internal/oserror vendor/golang.org/x/net/dns/dnsmessage strconv syscall bytes -crypto/internal/randutil strings hash -crypto/hmac +crypto/internal/randutil hash/crc32 -crypto -crypto/rc4 -reflect +crypto/hmac vendor/golang.org/x/crypto/hkdf +reflect +crypto/rc4 +crypto vendor/golang.org/x/text/transform path bufio @@ -524,58 +559,58 @@ context internal/poll os -internal/fmtsort encoding/binary +internal/fmtsort +crypto/sha512 crypto/cipher +crypto/sha1 crypto/md5 -crypto/sha512 -crypto/ed25519/internal/edwards25519 -encoding/base64 crypto/sha256 -crypto/sha1 -vendor/golang.org/x/crypto/poly1305 -path/filepath +crypto/ed25519/internal/edwards25519 fmt -net -encoding/pem +path/filepath crypto/aes -vendor/golang.org/x/crypto/chacha20 crypto/des +encoding/base64 +net +vendor/golang.org/x/crypto/chacha20 +vendor/golang.org/x/crypto/poly1305 +encoding/pem io/ioutil os/exec vendor/golang.org/x/crypto/chacha20poly1305 -github.com/hashicorp/go-version os/user +github.com/hashicorp/go-version +compress/flate log +math/big encoding/hex -compress/flate -vendor/golang.org/x/net/http2/hpack net/url -mime vendor/golang.org/x/crypto/curve25519 -net/http/internal -mime/quotedprintable encoding/json -math/big -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/text/unicode/norm compress/gzip -vendor/golang.org/x/net/idna -crypto/rand +vendor/golang.org/x/net/http2/hpack +vendor/golang.org/x/text/secure/bidirule +mime +mime/quotedprintable +net/http/internal +encoding/asn1 crypto/elliptic +crypto/rand crypto/dsa -encoding/asn1 crypto/ed25519 crypto/rsa -crypto/x509/pkix +vendor/golang.org/x/net/idna vendor/golang.org/x/crypto/cryptobyte -archive/tar +crypto/x509/pkix crypto/ecdsa +archive/tar github.com/hashicorp/atlas-go/archive -vendor/golang.org/x/net/http/httpproxy net/textproto crypto/x509 +vendor/golang.org/x/net/http/httpproxy vendor/golang.org/x/net/http/httpguts mime/multipart crypto/tls @@ -585,30 +620,30 @@ github.com/hashicorp/go-cleanhttp github.com/hashicorp/atlas-go/v1 dh_auto_test -O--buildsystem=golang - cd obj-i686-linux-gnu && go test -vet=off -v -p 16 github.com/hashicorp/atlas-go/archive github.com/hashicorp/atlas-go/v1 + cd obj-i686-linux-gnu && go test -vet=off -v -p 7 github.com/hashicorp/atlas-go/archive github.com/hashicorp/atlas-go/v1 === RUN TestArchiveOptsIsSet --- PASS: TestArchiveOptsIsSet (0.00s) === RUN TestArchive_file -2025/02/12 00:14:04 [INFO] creating archive from test-fixtures/archive-file/foo.txt ---- PASS: TestArchive_file (0.01s) +2024/01/10 17:52:25 [INFO] creating archive from test-fixtures/archive-file/foo.txt +--- PASS: TestArchive_file (0.00s) === RUN TestArchive_fileCompressed -2025/02/12 00:14:04 [INFO] creating archive from test-fixtures/archive-file-compressed/file.tar.gz +2024/01/10 17:52:25 [INFO] creating archive from test-fixtures/archive-file-compressed/file.tar.gz --- PASS: TestArchive_fileCompressed (0.00s) === RUN TestArchive_fileNoExist -2025/02/12 00:14:04 [INFO] creating archive from /tmp/test920781939 +2024/01/10 17:52:25 [INFO] creating archive from /tmp/test379804430 --- PASS: TestArchive_fileNoExist (0.00s) === RUN TestArchive_fileWithOpts -2025/02/12 00:14:04 [INFO] creating archive from /tmp/test570407222 +2024/01/10 17:52:25 [INFO] creating archive from /tmp/test566582549 --- PASS: TestArchive_fileWithOpts (0.00s) === RUN TestArchive_dirExtra -2025/02/12 00:14:04 [INFO] creating archive from test-fixtures/archive-flat ---- PASS: TestArchive_dirExtra (0.01s) +2024/01/10 17:52:25 [INFO] creating archive from test-fixtures/archive-flat +--- PASS: TestArchive_dirExtra (0.00s) === RUN TestArchive_dirExtraDir -2025/02/12 00:14:04 [INFO] creating archive from test-fixtures/archive-flat +2024/01/10 17:52:25 [INFO] creating archive from test-fixtures/archive-flat --- PASS: TestArchive_dirExtraDir (0.00s) === RUN TestArchive_dirExtraDirHeader -2025/02/12 00:14:04 [INFO] creating archive from test-fixtures/archive-flat ---- PASS: TestArchive_dirExtraDirHeader (0.01s) +2024/01/10 17:52:25 [INFO] creating archive from test-fixtures/archive-flat +--- PASS: TestArchive_dirExtraDirHeader (0.00s) === RUN TestArchive_dirMode archive_test.go:205: Skip this test in Debian --- SKIP: TestArchive_dirMode (0.00s) @@ -619,23 +654,23 @@ archive_test.go:249: Skip this test in Debian --- SKIP: TestArchive_dirWithSymlink (0.00s) === RUN TestArchive_dirWithSymlinkToFile -2025/02/12 00:14:04 [INFO] creating archive from test-fixtures/archive-symlink-file/link +2024/01/10 17:52:25 [INFO] creating archive from test-fixtures/archive-symlink-file/link --- PASS: TestArchive_dirWithSymlinkToFile (0.01s) === RUN TestArchive_dirNoVCS -2025/02/12 00:14:04 [INFO] creating archive from test-fixtures/archive-flat ---- PASS: TestArchive_dirNoVCS (0.00s) +2024/01/10 17:52:25 [INFO] creating archive from test-fixtures/archive-flat +--- PASS: TestArchive_dirNoVCS (0.01s) === RUN TestArchive_dirSubdirsNoVCS -2025/02/12 00:14:04 [INFO] creating archive from test-fixtures/archive-subdir ---- PASS: TestArchive_dirSubdirsNoVCS (0.00s) +2024/01/10 17:52:25 [INFO] creating archive from test-fixtures/archive-subdir +--- PASS: TestArchive_dirSubdirsNoVCS (0.01s) === RUN TestArchive_dirExclude -2025/02/12 00:14:04 [INFO] creating archive from test-fixtures/archive-subdir +2024/01/10 17:52:25 [INFO] creating archive from test-fixtures/archive-subdir --- PASS: TestArchive_dirExclude (0.00s) === RUN TestArchive_dirInclude -2025/02/12 00:14:04 [INFO] creating archive from test-fixtures/archive-subdir ---- PASS: TestArchive_dirInclude (0.00s) +2024/01/10 17:52:25 [INFO] creating archive from test-fixtures/archive-subdir +--- PASS: TestArchive_dirInclude (0.02s) === RUN TestArchive_dirIncludeStar -2025/02/12 00:14:04 [INFO] creating archive from test-fixtures/archive-subdir-splat ---- PASS: TestArchive_dirIncludeStar (0.00s) +2024/01/10 17:52:25 [INFO] creating archive from test-fixtures/archive-subdir-splat +--- PASS: TestArchive_dirIncludeStar (0.02s) === RUN TestArchive_git archive_test.go:399: git not found, skipping archive_test.go:400: @@ -685,15 +720,15 @@ vcs_test.go:240: --- SKIP: TestVCSPathDetect_hg_absolute (0.00s) PASS -ok github.com/hashicorp/atlas-go/archive 0.055s +ok github.com/hashicorp/atlas-go/archive 0.136s === RUN TestSlug_returnsSlug --- PASS: TestSlug_returnsSlug (0.00s) === RUN TestApp_fetchesApp -2025/02/12 00:14:06 [INFO] getting application hashicorp/existing -2025/02/12 00:14:06 [INFO] request: GET /api/v1/vagrant/applications/hashicorp/existing -2025/02/12 00:14:06 [DEBUG] raw request: &http.Request{Method:"GET", URL:(*url.URL)(0xa42c3c0), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.15.15)"}}, Body:io.ReadCloser(nil), GetBody:(func() (io.ReadCloser, error))(nil), ContentLength:0, TransferEncoding:[]string(nil), Close:false, Host:"[::]:45957", Form:url.Values(nil), PostForm:url.Values(nil), MultipartForm:(*multipart.Form)(nil), Trailer:http.Header(nil), RemoteAddr:"", RequestURI:"", TLS:(*tls.ConnectionState)(nil), Cancel:(<-chan struct {})(nil), Response:(*http.Response)(nil), ctx:(*context.emptyCtx)(0xa4180d8)} -2025/02/12 00:14:06 [INFO] response: 200 (200 OK) -2025/02/12 00:14:06 [DEBUG] response: +2024/01/10 17:52:30 [INFO] getting application hashicorp/existing +2024/01/10 17:52:30 [INFO] request: GET /api/v1/vagrant/applications/hashicorp/existing +2024/01/10 17:52:30 [DEBUG] raw request: &http.Request{Method:"GET", URL:(*url.URL)(0x9c9c370), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.15.15)"}}, Body:io.ReadCloser(nil), GetBody:(func() (io.ReadCloser, error))(nil), ContentLength:0, TransferEncoding:[]string(nil), Close:false, Host:"[::]:43997", Form:url.Values(nil), PostForm:url.Values(nil), MultipartForm:(*multipart.Form)(nil), Trailer:http.Header(nil), RemoteAddr:"", RequestURI:"", TLS:(*tls.ConnectionState)(nil), Cancel:(<-chan struct {})(nil), Response:(*http.Response)(nil), ctx:(*context.emptyCtx)(0x9c180e8)} +2024/01/10 17:52:30 [INFO] response: 200 (200 OK) +2024/01/10 17:52:30 [DEBUG] response: { "username": "hashicorp", "name": "existing", @@ -703,42 +738,42 @@ --- PASS: TestApp_fetchesApp (0.00s) === RUN TestApp_returnsErrorNoApp -2025/02/12 00:14:06 [INFO] getting application hashicorp/newproject -2025/02/12 00:14:06 [INFO] request: GET /api/v1/vagrant/applications/hashicorp/newproject -2025/02/12 00:14:06 [DEBUG] raw request: &http.Request{Method:"GET", URL:(*url.URL)(0xa42c7d0), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.15.15)"}}, Body:io.ReadCloser(nil), GetBody:(func() (io.ReadCloser, error))(nil), ContentLength:0, TransferEncoding:[]string(nil), Close:false, Host:"[::]:37697", Form:url.Values(nil), PostForm:url.Values(nil), MultipartForm:(*multipart.Form)(nil), Trailer:http.Header(nil), RemoteAddr:"", RequestURI:"", TLS:(*tls.ConnectionState)(nil), Cancel:(<-chan struct {})(nil), Response:(*http.Response)(nil), ctx:(*context.emptyCtx)(0xa4180d8)} -2025/02/12 00:14:06 [INFO] response: 404 (404 Not Found) -2025/02/12 00:14:06 [DEBUG] response: +2024/01/10 17:52:30 [INFO] getting application hashicorp/newproject +2024/01/10 17:52:30 [INFO] request: GET /api/v1/vagrant/applications/hashicorp/newproject +2024/01/10 17:52:30 [DEBUG] raw request: &http.Request{Method:"GET", URL:(*url.URL)(0x9c9c730), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.15.15)"}}, Body:io.ReadCloser(nil), GetBody:(func() (io.ReadCloser, error))(nil), ContentLength:0, TransferEncoding:[]string(nil), Close:false, Host:"[::]:41523", Form:url.Values(nil), PostForm:url.Values(nil), MultipartForm:(*multipart.Form)(nil), Trailer:http.Header(nil), RemoteAddr:"", RequestURI:"", TLS:(*tls.ConnectionState)(nil), Cancel:(<-chan struct {})(nil), Response:(*http.Response)(nil), ctx:(*context.emptyCtx)(0x9c180e8)} +2024/01/10 17:52:30 [INFO] response: 404 (404 Not Found) +2024/01/10 17:52:30 [DEBUG] response: --- PASS: TestApp_returnsErrorNoApp (0.00s) === RUN TestCreateApp_createsAndReturnsApp -2025/02/12 00:14:06 [INFO] creating application hashicorp/newproject -2025/02/12 00:14:06 [INFO] request: POST /api/v1/vagrant/applications -2025/02/12 00:14:06 [DEBUG] raw request: &http.Request{Method:"POST", URL:(*url.URL)(0xa49a320), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"Content-Type":[]string{"application/json"}, "User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.15.15)"}}, Body:ioutil.nopCloser{Reader:(*bytes.Reader)(0xa4904e0)}, GetBody:(func() (io.ReadCloser, error))(0x82a1840), ContentLength:60, TransferEncoding:[]string(nil), Close:false, Host:"[::]:43143", Form:url.Values(nil), PostForm:url.Values(nil), MultipartForm:(*multipart.Form)(nil), Trailer:http.Header(nil), RemoteAddr:"", RequestURI:"", TLS:(*tls.ConnectionState)(nil), Cancel:(<-chan struct {})(nil), Response:(*http.Response)(nil), ctx:(*context.emptyCtx)(0xa4180d8)} -2025/02/12 00:14:06 [INFO] response: 200 (200 OK) -2025/02/12 00:14:06 [DEBUG] response: {"username":"hashicorp","name":"newproject"} +2024/01/10 17:52:30 [INFO] creating application hashicorp/newproject +2024/01/10 17:52:30 [INFO] request: POST /api/v1/vagrant/applications +2024/01/10 17:52:30 [DEBUG] raw request: &http.Request{Method:"POST", URL:(*url.URL)(0x9d1a280), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"Content-Type":[]string{"application/json"}, "User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.15.15)"}}, Body:ioutil.nopCloser{Reader:(*bytes.Reader)(0x9d10400)}, GetBody:(func() (io.ReadCloser, error))(0x82a1840), ContentLength:60, TransferEncoding:[]string(nil), Close:false, Host:"[::]:43133", Form:url.Values(nil), PostForm:url.Values(nil), MultipartForm:(*multipart.Form)(nil), Trailer:http.Header(nil), RemoteAddr:"", RequestURI:"", TLS:(*tls.ConnectionState)(nil), Cancel:(<-chan struct {})(nil), Response:(*http.Response)(nil), ctx:(*context.emptyCtx)(0x9c180e8)} +2024/01/10 17:52:30 [INFO] response: 200 (200 OK) +2024/01/10 17:52:30 [DEBUG] response: {"username":"hashicorp","name":"newproject"} --- PASS: TestCreateApp_createsAndReturnsApp (0.00s) === RUN TestCreateApp_returnsErrorExistingApp -2025/02/12 00:14:06 [INFO] creating application hashicorp/existing -2025/02/12 00:14:06 [INFO] request: POST /api/v1/vagrant/applications -2025/02/12 00:14:06 [DEBUG] raw request: &http.Request{Method:"POST", URL:(*url.URL)(0xa59a2d0), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"Content-Type":[]string{"application/json"}, "User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.15.15)"}}, Body:ioutil.nopCloser{Reader:(*bytes.Reader)(0xa5924a0)}, GetBody:(func() (io.ReadCloser, error))(0x82a1840), ContentLength:58, TransferEncoding:[]string(nil), Close:false, Host:"[::]:35787", Form:url.Values(nil), PostForm:url.Values(nil), MultipartForm:(*multipart.Form)(nil), Trailer:http.Header(nil), RemoteAddr:"", RequestURI:"", TLS:(*tls.ConnectionState)(nil), Cancel:(<-chan struct {})(nil), Response:(*http.Response)(nil), ctx:(*context.emptyCtx)(0xa4180d8)} -2025/02/12 00:14:06 [INFO] response: 409 (409 Conflict) -2025/02/12 00:14:06 [DEBUG] response: +2024/01/10 17:52:30 [INFO] creating application hashicorp/existing +2024/01/10 17:52:30 [INFO] request: POST /api/v1/vagrant/applications +2024/01/10 17:52:30 [DEBUG] raw request: &http.Request{Method:"POST", URL:(*url.URL)(0x9c9cbe0), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"Content-Type":[]string{"application/json"}, "User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.15.15)"}}, Body:ioutil.nopCloser{Reader:(*bytes.Reader)(0x9c13980)}, GetBody:(func() (io.ReadCloser, error))(0x82a1840), ContentLength:58, TransferEncoding:[]string(nil), Close:false, Host:"[::]:39435", Form:url.Values(nil), PostForm:url.Values(nil), MultipartForm:(*multipart.Form)(nil), Trailer:http.Header(nil), RemoteAddr:"", RequestURI:"", TLS:(*tls.ConnectionState)(nil), Cancel:(<-chan struct {})(nil), Response:(*http.Response)(nil), ctx:(*context.emptyCtx)(0x9c180e8)} +2024/01/10 17:52:30 [INFO] response: 409 (409 Conflict) +2024/01/10 17:52:30 [DEBUG] response: --- PASS: TestCreateApp_returnsErrorExistingApp (0.00s) === RUN TestUploadApp_createsAndReturnsVersion -2025/02/12 00:14:06 [INFO] uploading application hashicorp/existing (0 bytes) with metadata map["testing":%!q(bool=true)] -2025/02/12 00:14:06 [INFO] request: POST /api/v1/vagrant/applications/hashicorp/existing/versions -2025/02/12 00:14:06 [DEBUG] raw request: &http.Request{Method:"POST", URL:(*url.URL)(0xa59a780), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.15.15)"}}, Body:ioutil.nopCloser{Reader:(*bytes.Reader)(0xa592b20)}, GetBody:(func() (io.ReadCloser, error))(0x82a1840), ContentLength:45, TransferEncoding:[]string(nil), Close:false, Host:"[::]:41777", Form:url.Values(nil), PostForm:url.Values(nil), MultipartForm:(*multipart.Form)(nil), Trailer:http.Header(nil), RemoteAddr:"", RequestURI:"", TLS:(*tls.ConnectionState)(nil), Cancel:(<-chan struct {})(nil), Response:(*http.Response)(nil), ctx:(*context.emptyCtx)(0xa4180d8)} -2025/02/12 00:14:06 [INFO] response: 200 (200 OK) -2025/02/12 00:14:06 [DEBUG] response: {"upload_path":"http://[::]:41777/_binstore/630e42d9-2364-2412-4121-18266770468e","token":"630e42d9-2364-2412-4121-18266770468e","version":125} -2025/02/12 00:14:06 [INFO] putting file: http://[::]:41777/_binstore/630e42d9-2364-2412-4121-18266770468e -2025/02/12 00:14:06 [DEBUG] raw request: &http.Request{Method:"PUT", URL:(*url.URL)(0xa42cbe0), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.15.15)"}}, Body:http.noBody{}, GetBody:(func() (io.ReadCloser, error))(0x82a19e0), ContentLength:0, TransferEncoding:[]string(nil), Close:false, Host:"[::]:41777", Form:url.Values(nil), PostForm:url.Values(nil), MultipartForm:(*multipart.Form)(nil), Trailer:http.Header(nil), RemoteAddr:"", RequestURI:"", TLS:(*tls.ConnectionState)(nil), Cancel:(<-chan struct {})(nil), Response:(*http.Response)(nil), ctx:(*context.emptyCtx)(0xa4180d8)} -2025/02/12 00:14:06 [INFO] response: 200 (200 OK) -2025/02/12 00:14:06 [DEBUG] response: +2024/01/10 17:52:30 [INFO] uploading application hashicorp/existing (0 bytes) with metadata map["testing":%!q(bool=true)] +2024/01/10 17:52:30 [INFO] request: POST /api/v1/vagrant/applications/hashicorp/existing/versions +2024/01/10 17:52:30 [DEBUG] raw request: &http.Request{Method:"POST", URL:(*url.URL)(0x9d1a780), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.15.15)"}}, Body:ioutil.nopCloser{Reader:(*bytes.Reader)(0x9d10c20)}, GetBody:(func() (io.ReadCloser, error))(0x82a1840), ContentLength:45, TransferEncoding:[]string(nil), Close:false, Host:"[::]:36835", Form:url.Values(nil), PostForm:url.Values(nil), MultipartForm:(*multipart.Form)(nil), Trailer:http.Header(nil), RemoteAddr:"", RequestURI:"", TLS:(*tls.ConnectionState)(nil), Cancel:(<-chan struct {})(nil), Response:(*http.Response)(nil), ctx:(*context.emptyCtx)(0x9c180e8)} +2024/01/10 17:52:30 [INFO] response: 200 (200 OK) +2024/01/10 17:52:30 [DEBUG] response: {"upload_path":"http://[::]:36835/_binstore/630e42d9-2364-2412-4121-18266770468e","token":"630e42d9-2364-2412-4121-18266770468e","version":125} +2024/01/10 17:52:30 [INFO] putting file: http://[::]:36835/_binstore/630e42d9-2364-2412-4121-18266770468e +2024/01/10 17:52:30 [DEBUG] raw request: &http.Request{Method:"PUT", URL:(*url.URL)(0x9d1a9b0), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.15.15)"}}, Body:http.noBody{}, GetBody:(func() (io.ReadCloser, error))(0x82a19e0), ContentLength:0, TransferEncoding:[]string(nil), Close:false, Host:"[::]:36835", Form:url.Values(nil), PostForm:url.Values(nil), MultipartForm:(*multipart.Form)(nil), Trailer:http.Header(nil), RemoteAddr:"", RequestURI:"", TLS:(*tls.ConnectionState)(nil), Cancel:(<-chan struct {})(nil), Response:(*http.Response)(nil), ctx:(*context.emptyCtx)(0x9c180e8)} +2024/01/10 17:52:30 [INFO] response: 200 (200 OK) +2024/01/10 17:52:30 [DEBUG] response: --- PASS: TestUploadApp_createsAndReturnsVersion (0.00s) === RUN TestArtifact_fetchesArtifact -2025/02/12 00:14:06 [INFO] request: GET /api/v1/artifacts/hashicorp/existing -2025/02/12 00:14:06 [DEBUG] raw request: &http.Request{Method:"GET", URL:(*url.URL)(0xa49a730), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.15.15)"}}, Body:io.ReadCloser(nil), GetBody:(func() (io.ReadCloser, error))(nil), ContentLength:0, TransferEncoding:[]string(nil), Close:false, Host:"[::]:37841", Form:url.Values(nil), PostForm:url.Values(nil), MultipartForm:(*multipart.Form)(nil), Trailer:http.Header(nil), RemoteAddr:"", RequestURI:"", TLS:(*tls.ConnectionState)(nil), Cancel:(<-chan struct {})(nil), Response:(*http.Response)(nil), ctx:(*context.emptyCtx)(0xa4180d8)} -2025/02/12 00:14:06 [INFO] response: 200 (200 OK) -2025/02/12 00:14:06 [DEBUG] response: +2024/01/10 17:52:30 [INFO] request: GET /api/v1/artifacts/hashicorp/existing +2024/01/10 17:52:30 [DEBUG] raw request: &http.Request{Method:"GET", URL:(*url.URL)(0x9d9c3c0), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.15.15)"}}, Body:io.ReadCloser(nil), GetBody:(func() (io.ReadCloser, error))(nil), ContentLength:0, TransferEncoding:[]string(nil), Close:false, Host:"[::]:39581", Form:url.Values(nil), PostForm:url.Values(nil), MultipartForm:(*multipart.Form)(nil), Trailer:http.Header(nil), RemoteAddr:"", RequestURI:"", TLS:(*tls.ConnectionState)(nil), Cancel:(<-chan struct {})(nil), Response:(*http.Response)(nil), ctx:(*context.emptyCtx)(0x9c180e8)} +2024/01/10 17:52:30 [INFO] response: 200 (200 OK) +2024/01/10 17:52:30 [DEBUG] response: { "artifact": { "username": "hashicorp", @@ -749,18 +784,18 @@ --- PASS: TestArtifact_fetchesArtifact (0.00s) === RUN TestArtifact_returnsErrorNoArtifact -2025/02/12 00:14:06 [INFO] getting application hashicorp/newproject -2025/02/12 00:14:06 [INFO] request: GET /api/v1/vagrant/applications/hashicorp/newproject -2025/02/12 00:14:06 [DEBUG] raw request: &http.Request{Method:"GET", URL:(*url.URL)(0xa49ab40), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.15.15)"}}, Body:io.ReadCloser(nil), GetBody:(func() (io.ReadCloser, error))(nil), ContentLength:0, TransferEncoding:[]string(nil), Close:false, Host:"[::]:45693", Form:url.Values(nil), PostForm:url.Values(nil), MultipartForm:(*multipart.Form)(nil), Trailer:http.Header(nil), RemoteAddr:"", RequestURI:"", TLS:(*tls.ConnectionState)(nil), Cancel:(<-chan struct {})(nil), Response:(*http.Response)(nil), ctx:(*context.emptyCtx)(0xa4180d8)} -2025/02/12 00:14:06 [INFO] response: 404 (404 Not Found) -2025/02/12 00:14:06 [DEBUG] response: +2024/01/10 17:52:30 [INFO] getting application hashicorp/newproject +2024/01/10 17:52:30 [INFO] request: GET /api/v1/vagrant/applications/hashicorp/newproject +2024/01/10 17:52:30 [DEBUG] raw request: &http.Request{Method:"GET", URL:(*url.URL)(0x9e023c0), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.15.15)"}}, Body:io.ReadCloser(nil), GetBody:(func() (io.ReadCloser, error))(nil), ContentLength:0, TransferEncoding:[]string(nil), Close:false, Host:"[::]:40703", Form:url.Values(nil), PostForm:url.Values(nil), MultipartForm:(*multipart.Form)(nil), Trailer:http.Header(nil), RemoteAddr:"", RequestURI:"", TLS:(*tls.ConnectionState)(nil), Cancel:(<-chan struct {})(nil), Response:(*http.Response)(nil), ctx:(*context.emptyCtx)(0x9c180e8)} +2024/01/10 17:52:30 [INFO] response: 404 (404 Not Found) +2024/01/10 17:52:30 [DEBUG] response: --- PASS: TestArtifact_returnsErrorNoArtifact (0.00s) === RUN TestArtifactSearch_fetches -2025/02/12 00:14:06 [INFO] searching artifacts: &atlas.ArtifactSearchOpts{User:"hashicorp", Name:"existing1", Type:"amazon-ami", Build:"", Version:"", Metadata:map[string]string(nil)} -2025/02/12 00:14:06 [INFO] request: GET /api/v1/artifacts/hashicorp/existing1/amazon-ami/search -2025/02/12 00:14:06 [DEBUG] raw request: &http.Request{Method:"GET", URL:(*url.URL)(0xa42d040), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.15.15)"}}, Body:io.ReadCloser(nil), GetBody:(func() (io.ReadCloser, error))(nil), ContentLength:0, TransferEncoding:[]string(nil), Close:false, Host:"[::]:43891", Form:url.Values(nil), PostForm:url.Values(nil), MultipartForm:(*multipart.Form)(nil), Trailer:http.Header(nil), RemoteAddr:"", RequestURI:"", TLS:(*tls.ConnectionState)(nil), Cancel:(<-chan struct {})(nil), Response:(*http.Response)(nil), ctx:(*context.emptyCtx)(0xa4180d8)} -2025/02/12 00:14:06 [INFO] response: 200 (200 OK) -2025/02/12 00:14:06 [DEBUG] response: +2024/01/10 17:52:30 [INFO] searching artifacts: &atlas.ArtifactSearchOpts{User:"hashicorp", Name:"existing1", Type:"amazon-ami", Build:"", Version:"", Metadata:map[string]string(nil)} +2024/01/10 17:52:30 [INFO] request: GET /api/v1/artifacts/hashicorp/existing1/amazon-ami/search +2024/01/10 17:52:30 [DEBUG] raw request: &http.Request{Method:"GET", URL:(*url.URL)(0x9e02780), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.15.15)"}}, Body:io.ReadCloser(nil), GetBody:(func() (io.ReadCloser, error))(nil), ContentLength:0, TransferEncoding:[]string(nil), Close:false, Host:"[::]:46635", Form:url.Values(nil), PostForm:url.Values(nil), MultipartForm:(*multipart.Form)(nil), Trailer:http.Header(nil), RemoteAddr:"", RequestURI:"", TLS:(*tls.ConnectionState)(nil), Cancel:(<-chan struct {})(nil), Response:(*http.Response)(nil), ctx:(*context.emptyCtx)(0x9c180e8)} +2024/01/10 17:52:30 [INFO] response: 200 (200 OK) +2024/01/10 17:52:30 [DEBUG] response: { "versions": [{ "username": "hashicorp", @@ -771,11 +806,11 @@ --- PASS: TestArtifactSearch_fetches (0.00s) === RUN TestArtifactSearch_metadata -2025/02/12 00:14:06 [INFO] searching artifacts: &atlas.ArtifactSearchOpts{User:"hashicorp", Name:"existing2", Type:"amazon-ami", Build:"", Version:"", Metadata:map[string]string{"bar":"943febbf-589f-401b-8f25-58f6d8786848", "foo":"bar"}} -2025/02/12 00:14:06 [INFO] request: GET /api/v1/artifacts/hashicorp/existing2/amazon-ami/search -2025/02/12 00:14:06 [DEBUG] raw request: &http.Request{Method:"GET", URL:(*url.URL)(0xa59ad20), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.15.15)"}}, Body:io.ReadCloser(nil), GetBody:(func() (io.ReadCloser, error))(nil), ContentLength:0, TransferEncoding:[]string(nil), Close:false, Host:"[::]:39169", Form:url.Values(nil), PostForm:url.Values(nil), MultipartForm:(*multipart.Form)(nil), Trailer:http.Header(nil), RemoteAddr:"", RequestURI:"", TLS:(*tls.ConnectionState)(nil), Cancel:(<-chan struct {})(nil), Response:(*http.Response)(nil), ctx:(*context.emptyCtx)(0xa4180d8)} -2025/02/12 00:14:06 [INFO] response: 200 (200 OK) -2025/02/12 00:14:06 [DEBUG] response: +2024/01/10 17:52:30 [INFO] searching artifacts: &atlas.ArtifactSearchOpts{User:"hashicorp", Name:"existing2", Type:"amazon-ami", Build:"", Version:"", Metadata:map[string]string{"bar":"943febbf-589f-401b-8f25-58f6d8786848", "foo":"bar"}} +2024/01/10 17:52:30 [INFO] request: GET /api/v1/artifacts/hashicorp/existing2/amazon-ami/search +2024/01/10 17:52:30 [DEBUG] raw request: &http.Request{Method:"GET", URL:(*url.URL)(0x9d1ae10), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.15.15)"}}, Body:io.ReadCloser(nil), GetBody:(func() (io.ReadCloser, error))(nil), ContentLength:0, TransferEncoding:[]string(nil), Close:false, Host:"[::]:34357", Form:url.Values(nil), PostForm:url.Values(nil), MultipartForm:(*multipart.Form)(nil), Trailer:http.Header(nil), RemoteAddr:"", RequestURI:"", TLS:(*tls.ConnectionState)(nil), Cancel:(<-chan struct {})(nil), Response:(*http.Response)(nil), ctx:(*context.emptyCtx)(0x9c180e8)} +2024/01/10 17:52:30 [INFO] response: 200 (200 OK) +2024/01/10 17:52:30 [DEBUG] response: { "versions": [{ "username": "hashicorp", @@ -790,19 +825,19 @@ === RUN TestArtifactFileURL_nil --- PASS: TestArtifactFileURL_nil (0.00s) === RUN TestUploadArtifact -2025/02/12 00:14:06 [INFO] uploading artifact: hashicorp/existing (amazon-ami) -2025/02/12 00:14:06 [INFO] request: POST /api/v1/artifacts/hashicorp/existing/amazon-ami -2025/02/12 00:14:06 [DEBUG] raw request: &http.Request{Method:"POST", URL:(*url.URL)(0xa59b450), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"Content-Type":[]string{"application/json"}, "User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.15.15)"}}, Body:ioutil.nopCloser{Reader:(*bytes.Reader)(0xa593b40)}, GetBody:(func() (io.ReadCloser, error))(0x82a1840), ContentLength:86, TransferEncoding:[]string(nil), Close:false, Host:"[::]:43519", Form:url.Values(nil), PostForm:url.Values(nil), MultipartForm:(*multipart.Form)(nil), Trailer:http.Header(nil), RemoteAddr:"", RequestURI:"", TLS:(*tls.ConnectionState)(nil), Cancel:(<-chan struct {})(nil), Response:(*http.Response)(nil), ctx:(*context.emptyCtx)(0xa4180d8)} -2025/02/12 00:14:06 [INFO] response: 200 (200 OK) -2025/02/12 00:14:06 [DEBUG] response: +2024/01/10 17:52:30 [INFO] uploading artifact: hashicorp/existing (amazon-ami) +2024/01/10 17:52:30 [INFO] request: POST /api/v1/artifacts/hashicorp/existing/amazon-ami +2024/01/10 17:52:30 [DEBUG] raw request: &http.Request{Method:"POST", URL:(*url.URL)(0x9d9cbe0), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"Content-Type":[]string{"application/json"}, "User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.15.15)"}}, Body:ioutil.nopCloser{Reader:(*bytes.Reader)(0x9d84d00)}, GetBody:(func() (io.ReadCloser, error))(0x82a1840), ContentLength:86, TransferEncoding:[]string(nil), Close:false, Host:"[::]:45035", Form:url.Values(nil), PostForm:url.Values(nil), MultipartForm:(*multipart.Form)(nil), Trailer:http.Header(nil), RemoteAddr:"", RequestURI:"", TLS:(*tls.ConnectionState)(nil), Cancel:(<-chan struct {})(nil), Response:(*http.Response)(nil), ctx:(*context.emptyCtx)(0x9c180e8)} +2024/01/10 17:52:30 [INFO] response: 200 (200 OK) +2024/01/10 17:52:30 [DEBUG] response: { - "upload_path": "http://[::]:43519/_binstore/" + "upload_path": "http://[::]:45035/_binstore/" } -2025/02/12 00:14:06 [INFO] putting file: http://[::]:43519/_binstore/ -2025/02/12 00:14:06 [DEBUG] raw request: &http.Request{Method:"PUT", URL:(*url.URL)(0xa49aff0), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.15.15)"}}, Body:http.noBody{}, GetBody:(func() (io.ReadCloser, error))(0x82a19e0), ContentLength:0, TransferEncoding:[]string(nil), Close:false, Host:"[::]:43519", Form:url.Values(nil), PostForm:url.Values(nil), MultipartForm:(*multipart.Form)(nil), Trailer:http.Header(nil), RemoteAddr:"", RequestURI:"", TLS:(*tls.ConnectionState)(nil), Cancel:(<-chan struct {})(nil), Response:(*http.Response)(nil), ctx:(*context.emptyCtx)(0xa4180d8)} -2025/02/12 00:14:06 [INFO] response: 200 (200 OK) -2025/02/12 00:14:06 [DEBUG] response: +2024/01/10 17:52:30 [INFO] putting file: http://[::]:45035/_binstore/ +2024/01/10 17:52:30 [DEBUG] raw request: &http.Request{Method:"PUT", URL:(*url.URL)(0x9d9cf50), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.15.15)"}}, Body:http.noBody{}, GetBody:(func() (io.ReadCloser, error))(0x82a19e0), ContentLength:0, TransferEncoding:[]string(nil), Close:false, Host:"[::]:45035", Form:url.Values(nil), PostForm:url.Values(nil), MultipartForm:(*multipart.Form)(nil), Trailer:http.Header(nil), RemoteAddr:"", RequestURI:"", TLS:(*tls.ConnectionState)(nil), Cancel:(<-chan struct {})(nil), Response:(*http.Response)(nil), ctx:(*context.emptyCtx)(0x9c180e8)} +2024/01/10 17:52:30 [INFO] response: 200 (200 OK) +2024/01/10 17:52:30 [DEBUG] response: --- PASS: TestUploadArtifact (0.00s) === RUN TestMaskString_emptyString --- PASS: TestMaskString_emptyString (0.00s) @@ -815,11 +850,11 @@ === RUN TestBuildConfigVersion_slug --- PASS: TestBuildConfigVersion_slug (0.00s) === RUN TestBuildConfig_fetches -2025/02/12 00:14:06 [INFO] getting build configuration hashicorp/existing -2025/02/12 00:14:06 [INFO] request: GET /api/v1/packer/build-configurations/hashicorp/existing -2025/02/12 00:14:06 [DEBUG] raw request: &http.Request{Method:"GET", URL:(*url.URL)(0xa49b310), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.15.15)"}}, Body:io.ReadCloser(nil), GetBody:(func() (io.ReadCloser, error))(nil), ContentLength:0, TransferEncoding:[]string(nil), Close:false, Host:"[::]:33129", Form:url.Values(nil), PostForm:url.Values(nil), MultipartForm:(*multipart.Form)(nil), Trailer:http.Header(nil), RemoteAddr:"", RequestURI:"", TLS:(*tls.ConnectionState)(nil), Cancel:(<-chan struct {})(nil), Response:(*http.Response)(nil), ctx:(*context.emptyCtx)(0xa4180d8)} -2025/02/12 00:14:06 [INFO] response: 200 (200 OK) -2025/02/12 00:14:06 [DEBUG] response: +2024/01/10 17:52:30 [INFO] getting build configuration hashicorp/existing +2024/01/10 17:52:30 [INFO] request: GET /api/v1/packer/build-configurations/hashicorp/existing +2024/01/10 17:52:30 [DEBUG] raw request: &http.Request{Method:"GET", URL:(*url.URL)(0x9e02be0), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.15.15)"}}, Body:io.ReadCloser(nil), GetBody:(func() (io.ReadCloser, error))(nil), ContentLength:0, TransferEncoding:[]string(nil), Close:false, Host:"[::]:39897", Form:url.Values(nil), PostForm:url.Values(nil), MultipartForm:(*multipart.Form)(nil), Trailer:http.Header(nil), RemoteAddr:"", RequestURI:"", TLS:(*tls.ConnectionState)(nil), Cancel:(<-chan struct {})(nil), Response:(*http.Response)(nil), ctx:(*context.emptyCtx)(0x9c180e8)} +2024/01/10 17:52:30 [INFO] response: 200 (200 OK) +2024/01/10 17:52:30 [DEBUG] response: { "username": "hashicorp", "name": "existing" @@ -827,11 +862,11 @@ --- PASS: TestBuildConfig_fetches (0.00s) === RUN TestCreateBuildConfig -2025/02/12 00:14:06 [INFO] creating build configuration hashicorp/new -2025/02/12 00:14:06 [INFO] request: POST /api/v1/packer/build-configurations -2025/02/12 00:14:06 [DEBUG] raw request: &http.Request{Method:"POST", URL:(*url.URL)(0xa49b770), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"Content-Type":[]string{"application/json"}, "User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.15.15)"}}, Body:ioutil.nopCloser{Reader:(*bytes.Reader)(0xa491e00)}, GetBody:(func() (io.ReadCloser, error))(0x82a1840), ContentLength:61, TransferEncoding:[]string(nil), Close:false, Host:"[::]:39509", Form:url.Values(nil), PostForm:url.Values(nil), MultipartForm:(*multipart.Form)(nil), Trailer:http.Header(nil), RemoteAddr:"", RequestURI:"", TLS:(*tls.ConnectionState)(nil), Cancel:(<-chan struct {})(nil), Response:(*http.Response)(nil), ctx:(*context.emptyCtx)(0xa4180d8)} -2025/02/12 00:14:06 [INFO] response: 200 (200 OK) -2025/02/12 00:14:06 [DEBUG] response: +2024/01/10 17:52:30 [INFO] creating build configuration hashicorp/new +2024/01/10 17:52:30 [INFO] request: POST /api/v1/packer/build-configurations +2024/01/10 17:52:30 [DEBUG] raw request: &http.Request{Method:"POST", URL:(*url.URL)(0x9e03130), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"Content-Type":[]string{"application/json"}, "User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.15.15)"}}, Body:ioutil.nopCloser{Reader:(*bytes.Reader)(0x9e05720)}, GetBody:(func() (io.ReadCloser, error))(0x82a1840), ContentLength:61, TransferEncoding:[]string(nil), Close:false, Host:"[::]:35973", Form:url.Values(nil), PostForm:url.Values(nil), MultipartForm:(*multipart.Form)(nil), Trailer:http.Header(nil), RemoteAddr:"", RequestURI:"", TLS:(*tls.ConnectionState)(nil), Cancel:(<-chan struct {})(nil), Response:(*http.Response)(nil), ctx:(*context.emptyCtx)(0x9c180e8)} +2024/01/10 17:52:30 [INFO] response: 200 (200 OK) +2024/01/10 17:52:30 [DEBUG] response: { "username":"hashicorp", "name":"new", @@ -841,19 +876,19 @@ --- PASS: TestCreateBuildConfig (0.00s) === RUN TestUploadBuildConfigVersion -2025/02/12 00:14:06 [INFO] uploading build configuration version hashicorp/existing (0 bytes), with metadata map["testing":%!q(bool=true)] -2025/02/12 00:14:06 [INFO] request: POST /api/v1/packer/build-configurations/hashicorp/existing/versions -2025/02/12 00:14:06 [DEBUG] raw request: &http.Request{Method:"POST", URL:(*url.URL)(0xa42d630), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"Content-Type":[]string{"application/json"}, "User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.15.15)"}}, Body:ioutil.nopCloser{Reader:(*bytes.Reader)(0xa57c6e0)}, GetBody:(func() (io.ReadCloser, error))(0x82a1840), ContentLength:159, TransferEncoding:[]string(nil), Close:false, Host:"[::]:46233", Form:url.Values(nil), PostForm:url.Values(nil), MultipartForm:(*multipart.Form)(nil), Trailer:http.Header(nil), RemoteAddr:"", RequestURI:"", TLS:(*tls.ConnectionState)(nil), Cancel:(<-chan struct {})(nil), Response:(*http.Response)(nil), ctx:(*context.emptyCtx)(0xa4180d8)} -2025/02/12 00:14:06 [INFO] response: 200 (200 OK) -2025/02/12 00:14:06 [DEBUG] response: +2024/01/10 17:52:30 [INFO] uploading build configuration version hashicorp/existing (0 bytes), with metadata map["testing":%!q(bool=true)] +2024/01/10 17:52:30 [INFO] request: POST /api/v1/packer/build-configurations/hashicorp/existing/versions +2024/01/10 17:52:30 [DEBUG] raw request: &http.Request{Method:"POST", URL:(*url.URL)(0x9e037c0), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"Content-Type":[]string{"application/json"}, "User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.15.15)"}}, Body:ioutil.nopCloser{Reader:(*bytes.Reader)(0x9e6c0a0)}, GetBody:(func() (io.ReadCloser, error))(0x82a1840), ContentLength:159, TransferEncoding:[]string(nil), Close:false, Host:"[::]:38153", Form:url.Values(nil), PostForm:url.Values(nil), MultipartForm:(*multipart.Form)(nil), Trailer:http.Header(nil), RemoteAddr:"", RequestURI:"", TLS:(*tls.ConnectionState)(nil), Cancel:(<-chan struct {})(nil), Response:(*http.Response)(nil), ctx:(*context.emptyCtx)(0x9c180e8)} +2024/01/10 17:52:30 [INFO] response: 200 (200 OK) +2024/01/10 17:52:30 [DEBUG] response: { - "upload_path": "http://[::]:46233/_binstore/" + "upload_path": "http://[::]:38153/_binstore/" } -2025/02/12 00:14:06 [INFO] putting file: http://[::]:46233/_binstore/ -2025/02/12 00:14:06 [DEBUG] raw request: &http.Request{Method:"PUT", URL:(*url.URL)(0xa49ba40), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.15.15)"}}, Body:http.noBody{}, GetBody:(func() (io.ReadCloser, error))(0x82a19e0), ContentLength:0, TransferEncoding:[]string(nil), Close:false, Host:"[::]:46233", Form:url.Values(nil), PostForm:url.Values(nil), MultipartForm:(*multipart.Form)(nil), Trailer:http.Header(nil), RemoteAddr:"", RequestURI:"", TLS:(*tls.ConnectionState)(nil), Cancel:(<-chan struct {})(nil), Response:(*http.Response)(nil), ctx:(*context.emptyCtx)(0xa4180d8)} -2025/02/12 00:14:06 [INFO] response: 200 (200 OK) -2025/02/12 00:14:06 [DEBUG] response: +2024/01/10 17:52:30 [INFO] putting file: http://[::]:38153/_binstore/ +2024/01/10 17:52:30 [DEBUG] raw request: &http.Request{Method:"PUT", URL:(*url.URL)(0x9e03bd0), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.15.15)"}}, Body:http.noBody{}, GetBody:(func() (io.ReadCloser, error))(0x82a19e0), ContentLength:0, TransferEncoding:[]string(nil), Close:false, Host:"[::]:38153", Form:url.Values(nil), PostForm:url.Values(nil), MultipartForm:(*multipart.Form)(nil), Trailer:http.Header(nil), RemoteAddr:"", RequestURI:"", TLS:(*tls.ConnectionState)(nil), Cancel:(<-chan struct {})(nil), Response:(*http.Response)(nil), ctx:(*context.emptyCtx)(0x9c180e8)} +2024/01/10 17:52:30 [INFO] response: 200 (200 OK) +2024/01/10 17:52:30 [DEBUG] response: --- PASS: TestUploadBuildConfigVersion (0.00s) === RUN TestDefaultClient_url --- PASS: TestDefaultClient_url (0.00s) @@ -870,73 +905,73 @@ === RUN TestNewClient_setsDefaultHTTPClient --- PASS: TestNewClient_setsDefaultHTTPClient (0.00s) === RUN TestLogin_missingUsername -2025/02/12 00:14:06 [INFO] logging in user +2024/01/10 17:52:30 [INFO] logging in user --- PASS: TestLogin_missingUsername (0.00s) === RUN TestLogin_missingPassword -2025/02/12 00:14:06 [INFO] logging in user username +2024/01/10 17:52:30 [INFO] logging in user username --- PASS: TestLogin_missingPassword (0.00s) === RUN TestLogin_serverErrorMessage -2025/02/12 00:14:06 [INFO] logging in user username -2025/02/12 00:14:06 [INFO] request: POST /api/v1/authenticate -2025/02/12 00:14:06 [DEBUG] raw request: &http.Request{Method:"POST", URL:(*url.URL)(0xa5fc3c0), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"Content-Type":[]string{"application/x-www-form-urlencoded"}, "User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.15.15)"}}, Body:ioutil.nopCloser{Reader:(*strings.Reader)(0xa5f88a0)}, GetBody:(func() (io.ReadCloser, error))(0x82a1910), ContentLength:105, TransferEncoding:[]string(nil), Close:false, Host:"[::]:40469", Form:url.Values(nil), PostForm:url.Values(nil), MultipartForm:(*multipart.Form)(nil), Trailer:http.Header(nil), RemoteAddr:"", RequestURI:"", TLS:(*tls.ConnectionState)(nil), Cancel:(<-chan struct {})(nil), Response:(*http.Response)(nil), ctx:(*context.emptyCtx)(0xa4180d8)} -2025/02/12 00:14:06 [INFO] response: 401 (401 Unauthorized) -2025/02/12 00:14:06 [DEBUG] response: +2024/01/10 17:52:30 [INFO] logging in user username +2024/01/10 17:52:30 [INFO] request: POST /api/v1/authenticate +2024/01/10 17:52:30 [DEBUG] raw request: &http.Request{Method:"POST", URL:(*url.URL)(0x9d9dae0), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"Content-Type":[]string{"application/x-www-form-urlencoded"}, "User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.15.15)"}}, Body:ioutil.nopCloser{Reader:(*strings.Reader)(0x9d85b80)}, GetBody:(func() (io.ReadCloser, error))(0x82a1910), ContentLength:105, TransferEncoding:[]string(nil), Close:false, Host:"[::]:42295", Form:url.Values(nil), PostForm:url.Values(nil), MultipartForm:(*multipart.Form)(nil), Trailer:http.Header(nil), RemoteAddr:"", RequestURI:"", TLS:(*tls.ConnectionState)(nil), Cancel:(<-chan struct {})(nil), Response:(*http.Response)(nil), ctx:(*context.emptyCtx)(0x9c180e8)} +2024/01/10 17:52:30 [INFO] response: 401 (401 Unauthorized) +2024/01/10 17:52:30 [DEBUG] response: --- PASS: TestLogin_serverErrorMessage (0.00s) === RUN TestLogin_success -2025/02/12 00:14:06 [INFO] logging in user sethloves -2025/02/12 00:14:06 [INFO] request: POST /api/v1/authenticate -2025/02/12 00:14:06 [DEBUG] raw request: &http.Request{Method:"POST", URL:(*url.URL)(0xa49be50), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"Content-Type":[]string{"application/x-www-form-urlencoded"}, "User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.15.15)"}}, Body:ioutil.nopCloser{Reader:(*strings.Reader)(0xa4e47c0)}, GetBody:(func() (io.ReadCloser, error))(0x82a1910), ContentLength:103, TransferEncoding:[]string(nil), Close:false, Host:"[::]:42401", Form:url.Values(nil), PostForm:url.Values(nil), MultipartForm:(*multipart.Form)(nil), Trailer:http.Header(nil), RemoteAddr:"", RequestURI:"", TLS:(*tls.ConnectionState)(nil), Cancel:(<-chan struct {})(nil), Response:(*http.Response)(nil), ctx:(*context.emptyCtx)(0xa4180d8)} -2025/02/12 00:14:06 [INFO] response: 200 (200 OK) -2025/02/12 00:14:06 [DEBUG] response: +2024/01/10 17:52:30 [INFO] logging in user sethloves +2024/01/10 17:52:30 [INFO] request: POST /api/v1/authenticate +2024/01/10 17:52:30 [DEBUG] raw request: &http.Request{Method:"POST", URL:(*url.URL)(0x9c9d2c0), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"Content-Type":[]string{"application/x-www-form-urlencoded"}, "User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.15.15)"}}, Body:ioutil.nopCloser{Reader:(*strings.Reader)(0x9cf44e0)}, GetBody:(func() (io.ReadCloser, error))(0x82a1910), ContentLength:103, TransferEncoding:[]string(nil), Close:false, Host:"[::]:45531", Form:url.Values(nil), PostForm:url.Values(nil), MultipartForm:(*multipart.Form)(nil), Trailer:http.Header(nil), RemoteAddr:"", RequestURI:"", TLS:(*tls.ConnectionState)(nil), Cancel:(<-chan struct {})(nil), Response:(*http.Response)(nil), ctx:(*context.emptyCtx)(0x9c180e8)} +2024/01/10 17:52:30 [INFO] response: 200 (200 OK) +2024/01/10 17:52:30 [DEBUG] response: { "token": "pX4AQ5vO7T-xJrxsnvlB0cfeF-tGUX-A-280LPxoryhDAbwmox7PKinMgA1F6R3BKaT" } -2025/02/12 00:14:06 [DEBUG] setting atlas token (pX4*** (masked)) +2024/01/10 17:52:30 [DEBUG] setting atlas token (pX4*** (masked)) --- PASS: TestLogin_success (0.00s) === RUN TestRequest_tokenAuth -2025/02/12 00:14:06 [INFO] request: GET /api/v1/token -2025/02/12 00:14:06 [DEBUG] request: appending token (a.a*** (masked)) -2025/02/12 00:14:06 [DEBUG] raw request: &http.Request{Method:"GET", URL:(*url.URL)(0xa4ec1e0), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.15.15)"}, "X-Atlas-Token":[]string{"a.atlasv1.b"}}, Body:io.ReadCloser(nil), GetBody:(func() (io.ReadCloser, error))(nil), ContentLength:0, TransferEncoding:[]string(nil), Close:false, Host:"[::]:34217", Form:url.Values(nil), PostForm:url.Values(nil), MultipartForm:(*multipart.Form)(nil), Trailer:http.Header(nil), RemoteAddr:"", RequestURI:"", TLS:(*tls.ConnectionState)(nil), Cancel:(<-chan struct {})(nil), Response:(*http.Response)(nil), ctx:(*context.emptyCtx)(0xa4180d8)} -2025/02/12 00:14:06 [INFO] response: 200 (200 OK) -2025/02/12 00:14:06 [DEBUG] response: +2024/01/10 17:52:30 [INFO] request: GET /api/v1/token +2024/01/10 17:52:30 [DEBUG] request: appending token (a.a*** (masked)) +2024/01/10 17:52:30 [DEBUG] raw request: &http.Request{Method:"GET", URL:(*url.URL)(0x9c9d770), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.15.15)"}, "X-Atlas-Token":[]string{"a.atlasv1.b"}}, Body:io.ReadCloser(nil), GetBody:(func() (io.ReadCloser, error))(nil), ContentLength:0, TransferEncoding:[]string(nil), Close:false, Host:"[::]:43021", Form:url.Values(nil), PostForm:url.Values(nil), MultipartForm:(*multipart.Form)(nil), Trailer:http.Header(nil), RemoteAddr:"", RequestURI:"", TLS:(*tls.ConnectionState)(nil), Cancel:(<-chan struct {})(nil), Response:(*http.Response)(nil), ctx:(*context.emptyCtx)(0x9c180e8)} +2024/01/10 17:52:30 [INFO] response: 200 (200 OK) +2024/01/10 17:52:30 [DEBUG] response: --- PASS: TestRequest_tokenAuth (0.00s) === RUN TestRequest_getsData -2025/02/12 00:14:06 [INFO] request: GET /_status/200 -2025/02/12 00:14:06 [DEBUG] raw request: &http.Request{Method:"GET", URL:(*url.URL)(0xa42db30), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.15.15)"}}, Body:io.ReadCloser(nil), GetBody:(func() (io.ReadCloser, error))(nil), ContentLength:0, TransferEncoding:[]string(nil), Close:false, Host:"[::]:32807", Form:url.Values(nil), PostForm:url.Values(nil), MultipartForm:(*multipart.Form)(nil), Trailer:http.Header(nil), RemoteAddr:"", RequestURI:"", TLS:(*tls.ConnectionState)(nil), Cancel:(<-chan struct {})(nil), Response:(*http.Response)(nil), ctx:(*context.emptyCtx)(0xa4180d8)} -2025/02/12 00:14:06 [INFO] response: 200 (200 OK) -2025/02/12 00:14:06 [DEBUG] response: +2024/01/10 17:52:30 [INFO] request: GET /_status/200 +2024/01/10 17:52:30 [DEBUG] raw request: &http.Request{Method:"GET", URL:(*url.URL)(0x9c9dbd0), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.15.15)"}}, Body:io.ReadCloser(nil), GetBody:(func() (io.ReadCloser, error))(nil), ContentLength:0, TransferEncoding:[]string(nil), Close:false, Host:"[::]:37071", Form:url.Values(nil), PostForm:url.Values(nil), MultipartForm:(*multipart.Form)(nil), Trailer:http.Header(nil), RemoteAddr:"", RequestURI:"", TLS:(*tls.ConnectionState)(nil), Cancel:(<-chan struct {})(nil), Response:(*http.Response)(nil), ctx:(*context.emptyCtx)(0x9c180e8)} +2024/01/10 17:52:30 [INFO] response: 200 (200 OK) +2024/01/10 17:52:30 [DEBUG] response: --- PASS: TestRequest_getsData (0.00s) === RUN TestRequest_railsError -2025/02/12 00:14:06 [INFO] request: GET /_rails-error -2025/02/12 00:14:06 [DEBUG] raw request: &http.Request{Method:"GET", URL:(*url.URL)(0xa5fc780), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.15.15)"}}, Body:io.ReadCloser(nil), GetBody:(func() (io.ReadCloser, error))(nil), ContentLength:0, TransferEncoding:[]string(nil), Close:false, Host:"[::]:40215", Form:url.Values(nil), PostForm:url.Values(nil), MultipartForm:(*multipart.Form)(nil), Trailer:http.Header(nil), RemoteAddr:"", RequestURI:"", TLS:(*tls.ConnectionState)(nil), Cancel:(<-chan struct {})(nil), Response:(*http.Response)(nil), ctx:(*context.emptyCtx)(0xa4180d8)} -2025/02/12 00:14:06 [INFO] response: 422 (422 Unprocessable Entity) -2025/02/12 00:14:06 [DEBUG] response: {"errors": ["this is an error", "this is another error"]} +2024/01/10 17:52:30 [INFO] request: GET /_rails-error +2024/01/10 17:52:30 [DEBUG] raw request: &http.Request{Method:"GET", URL:(*url.URL)(0x9e82050), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.15.15)"}}, Body:io.ReadCloser(nil), GetBody:(func() (io.ReadCloser, error))(nil), ContentLength:0, TransferEncoding:[]string(nil), Close:false, Host:"[::]:44101", Form:url.Values(nil), PostForm:url.Values(nil), MultipartForm:(*multipart.Form)(nil), Trailer:http.Header(nil), RemoteAddr:"", RequestURI:"", TLS:(*tls.ConnectionState)(nil), Cancel:(<-chan struct {})(nil), Response:(*http.Response)(nil), ctx:(*context.emptyCtx)(0x9c180e8)} +2024/01/10 17:52:30 [INFO] response: 422 (422 Unprocessable Entity) +2024/01/10 17:52:30 [DEBUG] response: {"errors": ["this is an error", "this is another error"]} --- PASS: TestRequest_railsError (0.00s) === RUN TestRequest_notFoundError -2025/02/12 00:14:06 [INFO] request: GET /_status/404 -2025/02/12 00:14:06 [DEBUG] raw request: &http.Request{Method:"GET", URL:(*url.URL)(0xa42df90), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.15.15)"}}, Body:io.ReadCloser(nil), GetBody:(func() (io.ReadCloser, error))(nil), ContentLength:0, TransferEncoding:[]string(nil), Close:false, Host:"[::]:43345", Form:url.Values(nil), PostForm:url.Values(nil), MultipartForm:(*multipart.Form)(nil), Trailer:http.Header(nil), RemoteAddr:"", RequestURI:"", TLS:(*tls.ConnectionState)(nil), Cancel:(<-chan struct {})(nil), Response:(*http.Response)(nil), ctx:(*context.emptyCtx)(0xa4180d8)} -2025/02/12 00:14:06 [INFO] response: 404 (404 Not Found) -2025/02/12 00:14:06 [DEBUG] response: +2024/01/10 17:52:30 [INFO] request: GET /_status/404 +2024/01/10 17:52:30 [DEBUG] raw request: &http.Request{Method:"GET", URL:(*url.URL)(0x9e82500), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.15.15)"}}, Body:io.ReadCloser(nil), GetBody:(func() (io.ReadCloser, error))(nil), ContentLength:0, TransferEncoding:[]string(nil), Close:false, Host:"[::]:46639", Form:url.Values(nil), PostForm:url.Values(nil), MultipartForm:(*multipart.Form)(nil), Trailer:http.Header(nil), RemoteAddr:"", RequestURI:"", TLS:(*tls.ConnectionState)(nil), Cancel:(<-chan struct {})(nil), Response:(*http.Response)(nil), ctx:(*context.emptyCtx)(0x9c180e8)} +2024/01/10 17:52:30 [INFO] response: 404 (404 Not Found) +2024/01/10 17:52:30 [DEBUG] response: --- PASS: TestRequest_notFoundError (0.00s) === RUN TestRequestJSON_decodesData -2025/02/12 00:14:06 [INFO] request: GET /_json -2025/02/12 00:14:06 [DEBUG] raw request: &http.Request{Method:"GET", URL:(*url.URL)(0xa5fcaf0), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.15.15)"}}, Body:io.ReadCloser(nil), GetBody:(func() (io.ReadCloser, error))(nil), ContentLength:0, TransferEncoding:[]string(nil), Close:false, Host:"[::]:33273", Form:url.Values(nil), PostForm:url.Values(nil), MultipartForm:(*multipart.Form)(nil), Trailer:http.Header(nil), RemoteAddr:"", RequestURI:"", TLS:(*tls.ConnectionState)(nil), Cancel:(<-chan struct {})(nil), Response:(*http.Response)(nil), ctx:(*context.emptyCtx)(0xa4180d8)} -2025/02/12 00:14:06 [INFO] response: 200 (200 OK) -2025/02/12 00:14:06 [DEBUG] response: {"ok": true} +2024/01/10 17:52:30 [INFO] request: GET /_json +2024/01/10 17:52:30 [DEBUG] raw request: &http.Request{Method:"GET", URL:(*url.URL)(0x9e82960), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.15.15)"}}, Body:io.ReadCloser(nil), GetBody:(func() (io.ReadCloser, error))(nil), ContentLength:0, TransferEncoding:[]string(nil), Close:false, Host:"[::]:34299", Form:url.Values(nil), PostForm:url.Values(nil), MultipartForm:(*multipart.Form)(nil), Trailer:http.Header(nil), RemoteAddr:"", RequestURI:"", TLS:(*tls.ConnectionState)(nil), Cancel:(<-chan struct {})(nil), Response:(*http.Response)(nil), ctx:(*context.emptyCtx)(0x9c180e8)} +2024/01/10 17:52:30 [INFO] response: 200 (200 OK) +2024/01/10 17:52:30 [DEBUG] response: {"ok": true} --- PASS: TestRequestJSON_decodesData (0.00s) === RUN TestClient_defaultHeaders -2025/02/12 00:14:06 [INFO] request: GET /_test -2025/02/12 00:14:06 [DEBUG] raw request: &http.Request{Method:"GET", URL:(*url.URL)(0xa5fceb0), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"Atlas-Test":[]string{"default header test"}, "User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.15.15)"}}, Body:io.ReadCloser(nil), GetBody:(func() (io.ReadCloser, error))(nil), ContentLength:0, TransferEncoding:[]string(nil), Close:false, Host:"[::]:36119", Form:url.Values(nil), PostForm:url.Values(nil), MultipartForm:(*multipart.Form)(nil), Trailer:http.Header(nil), RemoteAddr:"", RequestURI:"", TLS:(*tls.ConnectionState)(nil), Cancel:(<-chan struct {})(nil), Response:(*http.Response)(nil), ctx:(*context.emptyCtx)(0xa4180d8)} -2025/02/12 00:14:06 [INFO] response: 200 (200 OK) -2025/02/12 00:14:06 [DEBUG] response: {"RawPath":"","Host":"[::]:36119","Header":{"Accept-Encoding":["gzip"],"Atlas-Test":["default header test"],"Connection":["close"],"User-Agent":["AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.15.15)"]},"Body":""} +2024/01/10 17:52:30 [INFO] request: GET /_test +2024/01/10 17:52:30 [DEBUG] raw request: &http.Request{Method:"GET", URL:(*url.URL)(0x9e82e10), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"Atlas-Test":[]string{"default header test"}, "User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.15.15)"}}, Body:io.ReadCloser(nil), GetBody:(func() (io.ReadCloser, error))(nil), ContentLength:0, TransferEncoding:[]string(nil), Close:false, Host:"[::]:44395", Form:url.Values(nil), PostForm:url.Values(nil), MultipartForm:(*multipart.Form)(nil), Trailer:http.Header(nil), RemoteAddr:"", RequestURI:"", TLS:(*tls.ConnectionState)(nil), Cancel:(<-chan struct {})(nil), Response:(*http.Response)(nil), ctx:(*context.emptyCtx)(0x9c180e8)} +2024/01/10 17:52:30 [INFO] response: 200 (200 OK) +2024/01/10 17:52:30 [DEBUG] response: {"RawPath":"","Host":"[::]:44395","Header":{"Accept-Encoding":["gzip"],"Atlas-Test":["default header test"],"Connection":["close"],"User-Agent":["AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.15.15)"]},"Body":""} --- PASS: TestClient_defaultHeaders (0.00s) === RUN TestTerraformConfigLatest -2025/02/12 00:14:06 [INFO] getting terraform configuration hashicorp/existing -2025/02/12 00:14:06 [INFO] request: GET /api/v1/terraform/configurations/hashicorp/existing/versions/latest -2025/02/12 00:14:06 [DEBUG] raw request: &http.Request{Method:"GET", URL:(*url.URL)(0xa5fd220), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.15.15)"}}, Body:io.ReadCloser(nil), GetBody:(func() (io.ReadCloser, error))(nil), ContentLength:0, TransferEncoding:[]string(nil), Close:false, Host:"[::]:37049", Form:url.Values(nil), PostForm:url.Values(nil), MultipartForm:(*multipart.Form)(nil), Trailer:http.Header(nil), RemoteAddr:"", RequestURI:"", TLS:(*tls.ConnectionState)(nil), Cancel:(<-chan struct {})(nil), Response:(*http.Response)(nil), ctx:(*context.emptyCtx)(0xa4180d8)} -2025/02/12 00:14:06 [INFO] response: 200 (200 OK) -2025/02/12 00:14:06 [DEBUG] response: +2024/01/10 17:52:30 [INFO] getting terraform configuration hashicorp/existing +2024/01/10 17:52:30 [INFO] request: GET /api/v1/terraform/configurations/hashicorp/existing/versions/latest +2024/01/10 17:52:30 [DEBUG] raw request: &http.Request{Method:"GET", URL:(*url.URL)(0x9e83360), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.15.15)"}}, Body:io.ReadCloser(nil), GetBody:(func() (io.ReadCloser, error))(nil), ContentLength:0, TransferEncoding:[]string(nil), Close:false, Host:"[::]:44869", Form:url.Values(nil), PostForm:url.Values(nil), MultipartForm:(*multipart.Form)(nil), Trailer:http.Header(nil), RemoteAddr:"", RequestURI:"", TLS:(*tls.ConnectionState)(nil), Cancel:(<-chan struct {})(nil), Response:(*http.Response)(nil), ctx:(*context.emptyCtx)(0x9c180e8)} +2024/01/10 17:52:30 [INFO] response: 200 (200 OK) +2024/01/10 17:52:30 [DEBUG] response: { "version": { "version": 5, @@ -947,20 +982,20 @@ --- PASS: TestTerraformConfigLatest (0.00s) === RUN TestCreateTerraformConfigVersion -2025/02/12 00:14:06 [INFO] creating terraform configuration hashicorp/existing -2025/02/12 00:14:06 [INFO] request: POST /api/v1/terraform/configurations/hashicorp/existing/versions -2025/02/12 00:14:06 [DEBUG] raw request: &http.Request{Method:"POST", URL:(*url.URL)(0xa6126e0), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"Content-Type":[]string{"application/json"}, "User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.15.15)"}}, Body:ioutil.nopCloser{Reader:(*bytes.Reader)(0xa605020)}, GetBody:(func() (io.ReadCloser, error))(0x82a1840), ContentLength:80, TransferEncoding:[]string(nil), Close:false, Host:"[::]:34875", Form:url.Values(nil), PostForm:url.Values(nil), MultipartForm:(*multipart.Form)(nil), Trailer:http.Header(nil), RemoteAddr:"", RequestURI:"", TLS:(*tls.ConnectionState)(nil), Cancel:(<-chan struct {})(nil), Response:(*http.Response)(nil), ctx:(*context.emptyCtx)(0xa4180d8)} -2025/02/12 00:14:06 [INFO] response: 200 (200 OK) -2025/02/12 00:14:06 [DEBUG] response: +2024/01/10 17:52:30 [INFO] creating terraform configuration hashicorp/existing +2024/01/10 17:52:30 [INFO] request: POST /api/v1/terraform/configurations/hashicorp/existing/versions +2024/01/10 17:52:30 [DEBUG] raw request: &http.Request{Method:"POST", URL:(*url.URL)(0x9e781e0), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"Content-Type":[]string{"application/json"}, "User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.15.15)"}}, Body:ioutil.nopCloser{Reader:(*bytes.Reader)(0x9e6ce40)}, GetBody:(func() (io.ReadCloser, error))(0x82a1840), ContentLength:80, TransferEncoding:[]string(nil), Close:false, Host:"[::]:44755", Form:url.Values(nil), PostForm:url.Values(nil), MultipartForm:(*multipart.Form)(nil), Trailer:http.Header(nil), RemoteAddr:"", RequestURI:"", TLS:(*tls.ConnectionState)(nil), Cancel:(<-chan struct {})(nil), Response:(*http.Response)(nil), ctx:(*context.emptyCtx)(0x9c180e8)} +2024/01/10 17:52:30 [INFO] response: 200 (200 OK) +2024/01/10 17:52:30 [DEBUG] response: { "version": 5, - "upload_path": "http://[::]:34875/_binstore/" + "upload_path": "http://[::]:44755/_binstore/" } -2025/02/12 00:14:06 [INFO] putting file: http://[::]:34875/_binstore/ -2025/02/12 00:14:06 [DEBUG] raw request: &http.Request{Method:"PUT", URL:(*url.URL)(0xa4ecaa0), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.15.15)"}}, Body:http.noBody{}, GetBody:(func() (io.ReadCloser, error))(0x82a19e0), ContentLength:0, TransferEncoding:[]string(nil), Close:false, Host:"[::]:34875", Form:url.Values(nil), PostForm:url.Values(nil), MultipartForm:(*multipart.Form)(nil), Trailer:http.Header(nil), RemoteAddr:"", RequestURI:"", TLS:(*tls.ConnectionState)(nil), Cancel:(<-chan struct {})(nil), Response:(*http.Response)(nil), ctx:(*context.emptyCtx)(0xa4180d8)} -2025/02/12 00:14:06 [INFO] response: 200 (200 OK) -2025/02/12 00:14:06 [DEBUG] response: +2024/01/10 17:52:30 [INFO] putting file: http://[::]:44755/_binstore/ +2024/01/10 17:52:30 [DEBUG] raw request: &http.Request{Method:"PUT", URL:(*url.URL)(0x9d1b310), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.15.15)"}}, Body:http.noBody{}, GetBody:(func() (io.ReadCloser, error))(0x82a19e0), ContentLength:0, TransferEncoding:[]string(nil), Close:false, Host:"[::]:44755", Form:url.Values(nil), PostForm:url.Values(nil), MultipartForm:(*multipart.Form)(nil), Trailer:http.Header(nil), RemoteAddr:"", RequestURI:"", TLS:(*tls.ConnectionState)(nil), Cancel:(<-chan struct {})(nil), Response:(*http.Response)(nil), ctx:(*context.emptyCtx)(0x9c180e8)} +2024/01/10 17:52:30 [INFO] response: 200 (200 OK) +2024/01/10 17:52:30 [DEBUG] response: --- PASS: TestCreateTerraformConfigVersion (0.00s) === RUN TestParseSlug_emptyString --- PASS: TestParseSlug_emptyString (0.00s) @@ -971,7 +1006,7 @@ === RUN TestParseSlug_goodString --- PASS: TestParseSlug_goodString (0.00s) PASS -ok github.com/hashicorp/atlas-go/v1 0.025s +ok github.com/hashicorp/atlas-go/v1 0.041s create-stamp debian/debhelper-build-stamp fakeroot debian/rules binary dh binary --buildsystem=golang --with=golang @@ -1008,12 +1043,14 @@ dpkg-buildpackage: info: binary-only upload (no source included) dpkg-genchanges: info: not including original source code in upload I: copying local configuration +I: user script /srv/workspace/pbuilder/20224/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/20224/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/28115 and its subdirectories -I: Current time: Tue Feb 11 12:14:10 -12 2025 -I: pbuilder-time-stamp: 1739319250 +I: removing directory /srv/workspace/pbuilder/20224 and its subdirectories +I: Current time: Thu Jan 11 07:52:37 +14 2024 +I: pbuilder-time-stamp: 1704909157