Diff of the two buildlogs: -- --- b1/build.log 2023-04-20 09:10:58.628596733 +0000 +++ b2/build.log 2023-04-20 09:14:05.428308441 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Wed May 22 03:32:30 -12 2024 -I: pbuilder-time-stamp: 1716391950 +I: Current time: Thu Apr 20 23:11:03 +14 2023 +I: pbuilder-time-stamp: 1681981863 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/bookworm-reproducible-base.tgz] I: copying local configuration @@ -16,7 +16,7 @@ I: copying [./golang-github-hashicorp-atlas-go_0.0~git20230125.46e9b3e.orig.tar.xz] I: copying [./golang-github-hashicorp-atlas-go_0.0~git20230125.46e9b3e-1.debian.tar.xz] I: Extracting source -gpgv: Signature made Mon Jan 30 03:04:25 2023 -12 +gpgv: Signature made Tue Jan 31 05:04:25 2023 +14 gpgv: using EDDSA key 9185D4F57767AEEE6C55D41E7F44FA25EA5514CB gpgv: Can't check signature: No public key dpkg-source: warning: cannot verify inline signature for ./golang-github-hashicorp-atlas-go_0.0~git20230125.46e9b3e-1.dsc: no acceptable signature found @@ -27,52 +27,84 @@ dpkg-source: info: applying 0001-skip-tests-which-failed-due-to-dh-golang.patch I: Not using root during the build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/25104/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/2610/tmp/hooks/D01_modify_environment starting +debug: Running on codethink12-arm64. +I: Changing host+domainname to test build reproducibility +I: Adding a custom variable just for the fun of it... +I: Changing /bin/sh to bash +'/bin/sh' -> '/bin/bash' +lrwxrwxrwx 1 root root 9 Apr 20 23:11 /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/2610/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/2610/tmp/hooks/D02_print_environment starting I: set - BUILDDIR='/build' - BUILDUSERGECOS='first user,first room,first work-phone,first home-phone,first other' - BUILDUSERNAME='pbuilder1' - BUILD_ARCH='arm64' - DEBIAN_FRONTEND='noninteractive' + BASH=/bin/sh + BASHOPTS=checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:globskipdots:hostcomplete:interactive_comments:patsub_replacement:progcomp:promptvars:sourcepath + BASH_ALIASES=() + BASH_ARGC=() + BASH_ARGV=() + BASH_CMDS=() + BASH_LINENO=([0]="12" [1]="0") + BASH_LOADABLES_PATH=/usr/local/lib/bash:/usr/lib/bash:/opt/local/lib/bash:/usr/pkg/lib/bash:/opt/pkg/lib/bash:. + BASH_SOURCE=([0]="/tmp/hooks/D02_print_environment" [1]="/tmp/hooks/D02_print_environment") + BASH_VERSINFO=([0]="5" [1]="2" [2]="15" [3]="1" [4]="release" [5]="aarch64-unknown-linux-gnu") + BASH_VERSION='5.2.15(1)-release' + BUILDDIR=/build + BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' + BUILDUSERNAME=pbuilder2 + BUILD_ARCH=arm64 + DEBIAN_FRONTEND=noninteractive DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=8' - DISTRIBUTION='bookworm' - HOME='/var/lib/jenkins' - HOST_ARCH='arm64' + DIRSTACK=() + DISTRIBUTION=bookworm + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/var/lib/jenkins + HOSTNAME=i-capture-the-hostname + HOSTTYPE=aarch64 + HOST_ARCH=arm64 IFS=' ' - LANG='C' - LANGUAGE='en_US:en' - LC_ALL='C' - MAIL='/var/mail/root' - OPTIND='1' - PATH='/usr/sbin:/usr/bin:/sbin:/bin:/usr/games' - PBCURRENTCOMMANDLINEOPERATION='build' - PBUILDER_OPERATION='build' - PBUILDER_PKGDATADIR='/usr/share/pbuilder' - PBUILDER_PKGLIBDIR='/usr/lib/pbuilder' - PBUILDER_SYSCONFDIR='/etc' - PPID='25104' - PS1='# ' - PS2='> ' + LANG=C + LANGUAGE=nl_BE:nl + LC_ALL=C + MACHTYPE=aarch64-unknown-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=2610 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.6Oi4shok/pbuilderrc_iqMj --distribution bookworm --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/bookworm-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.6Oi4shok/b1 --logfile b1/build.log golang-github-hashicorp-atlas-go_0.0~git20230125.46e9b3e-1.dsc' - SUDO_GID='117' - SUDO_UID='110' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - USERNAME='root' - _='/usr/bin/systemd-run' - http_proxy='http://192.168.101.16: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.6Oi4shok/pbuilderrc_DTnw --distribution bookworm --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/bookworm-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.6Oi4shok/b2 --logfile b2/build.log --extrapackages usrmerge golang-github-hashicorp-atlas-go_0.0~git20230125.46e9b3e-1.dsc' + SUDO_GID=117 + SUDO_UID=110 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + USERNAME=root + _='I: set' + http_proxy=http://192.168.101.16:3128 I: uname -a - Linux codethink13-arm64 4.15.0-209-generic #220-Ubuntu SMP Tue Mar 21 19:52:44 UTC 2023 aarch64 GNU/Linux + Linux i-capture-the-hostname 4.15.0-209-generic #220-Ubuntu SMP Tue Mar 21 19:52:44 UTC 2023 aarch64 GNU/Linux I: ls -l /bin - lrwxrwxrwx 1 root root 7 May 19 04:47 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/25104/tmp/hooks/D02_print_environment finished + lrwxrwxrwx 1 root root 7 Apr 19 00:25 /bin -> usr/bin +I: user script /srv/workspace/pbuilder/2610/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -157,7 +189,7 @@ Get: 37 http://deb.debian.org/debian bookworm/main arm64 golang-github-hashicorp-go-cleanhttp-dev all 0.5.2-1 [10.8 kB] Get: 38 http://deb.debian.org/debian bookworm/main arm64 golang-github-hashicorp-go-version-dev all 1.3.0-1 [14.9 kB] Get: 39 http://deb.debian.org/debian bookworm/main arm64 golang-github-hashicorp-go-rootcerts-dev all 1.0.2-2 [8356 B] -Fetched 93.4 MB in 2s (48.7 MB/s) +Fetched 93.4 MB in 2s (51.9 MB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package sensible-utils. (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 ... 19616 files and directories currently installed.) @@ -327,8 +359,17 @@ Writing extended state information... Building tag database... -> Finished parsing the build-deps +Reading package lists... +Building dependency tree... +Reading state information... +usrmerge is already the newest version (35). +0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. I: Building the package -I: Running cd /build/golang-github-hashicorp-atlas-go-0.0~git20230125.46e9b3e/ && 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~git20230125.46e9b3e-1_source.changes +I: user script /srv/workspace/pbuilder/2610/tmp/hooks/A99_set_merged_usr starting +Re-configuring usrmerge... +I: user script /srv/workspace/pbuilder/2610/tmp/hooks/A99_set_merged_usr finished +hostname: Temporary failure in name resolution +I: Running cd /build/golang-github-hashicorp-atlas-go-0.0~git20230125.46e9b3e/ && 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~git20230125.46e9b3e-1_source.changes dpkg-buildpackage: info: source package golang-github-hashicorp-atlas-go dpkg-buildpackage: info: source version 0.0~git20230125.46e9b3e-1 dpkg-buildpackage: info: source distribution unstable @@ -347,39 +388,39 @@ dh_auto_configure -O--buildsystem=golang dh_auto_build -O--buildsystem=golang cd obj-aarch64-linux-gnu && go install -trimpath -v -p 8 github.com/hashicorp/atlas-go/archive github.com/hashicorp/atlas-go/v1 -internal/goos internal/goarch -internal/race internal/unsafeheader internal/goexperiment +internal/goos +internal/race internal/cpu +runtime/internal/math runtime/internal/syscall +unicode sync/atomic internal/abi -runtime/internal/math runtime/internal/sys -unicode unicode/utf8 internal/itoa math/bits container/list crypto/internal/subtle -crypto/subtle -crypto/internal/boring/sig internal/bytealg runtime/internal/atomic +crypto/subtle +crypto/internal/boring/sig unicode/utf16 +math vendor/golang.org/x/crypto/cryptobyte/asn1 internal/nettrace vendor/golang.org/x/crypto/internal/subtle -math encoding runtime -internal/reflectlite sync +internal/reflectlite internal/testlog -internal/singleflight math/rand +internal/singleflight runtime/cgo errors sort @@ -388,24 +429,24 @@ path io strconv +syscall crypto/internal/nistec/fiat vendor/golang.org/x/net/dns/dnsmessage -syscall -hash bytes strings +hash hash/crc32 crypto/internal/randutil vendor/golang.org/x/text/transform crypto reflect -crypto/rc4 bufio regexp/syntax +crypto/rc4 net/http/internal/ascii internal/syscall/unix -internal/syscall/execenv time +internal/syscall/execenv regexp io/fs context @@ -414,43 +455,43 @@ os internal/fmtsort encoding/binary +io/ioutil +internal/godebug +path/filepath +fmt +internal/intern +net/netip crypto/cipher crypto/internal/edwards25519/field crypto/md5 encoding/base64 -vendor/golang.org/x/crypto/internal/poly1305 -vendor/golang.org/x/crypto/curve25519/internal/field crypto/internal/nistec +os/exec +vendor/golang.org/x/crypto/internal/poly1305 encoding/pem crypto/internal/edwards25519 -io/ioutil -fmt -internal/godebug -path/filepath +vendor/golang.org/x/crypto/curve25519/internal/field crypto/internal/boring crypto/des -internal/intern -vendor/golang.org/x/crypto/chacha20 crypto/aes crypto/sha512 crypto/hmac crypto/sha1 crypto/sha256 -net/netip -vendor/golang.org/x/crypto/chacha20poly1305 -os/exec +net +vendor/golang.org/x/crypto/chacha20 vendor/golang.org/x/crypto/hkdf os/user -encoding/hex -github.com/hashicorp/go-version -net/url compress/flate +github.com/hashicorp/go-version log math/big -net +encoding/hex +net/url +vendor/golang.org/x/crypto/chacha20poly1305 vendor/golang.org/x/crypto/curve25519 -vendor/golang.org/x/text/unicode/bidi encoding/json +vendor/golang.org/x/text/unicode/bidi vendor/golang.org/x/text/unicode/norm vendor/golang.org/x/net/http2/hpack compress/gzip @@ -458,12 +499,12 @@ mime/quotedprintable vendor/golang.org/x/text/secure/bidirule net/http/internal -vendor/golang.org/x/net/idna -crypto/internal/boring/bbig crypto/elliptic +crypto/internal/boring/bbig +encoding/asn1 crypto/rand crypto/dsa -encoding/asn1 +vendor/golang.org/x/net/idna crypto/ed25519 crypto/rsa vendor/golang.org/x/crypto/cryptobyte @@ -487,26 +528,26 @@ === RUN TestArchiveOptsIsSet --- PASS: TestArchiveOptsIsSet (0.00s) === RUN TestArchive_file -2024/05/22 03:33:37 [INFO] creating archive from test-fixtures/archive-file/foo.txt ---- PASS: TestArchive_file (0.01s) +2023/04/20 23:13:29 [INFO] creating archive from test-fixtures/archive-file/foo.txt +--- PASS: TestArchive_file (0.02s) === RUN TestArchive_fileCompressed -2024/05/22 03:33:37 [INFO] creating archive from test-fixtures/archive-file-compressed/file.tar.gz +2023/04/20 23:13:29 [INFO] creating archive from test-fixtures/archive-file-compressed/file.tar.gz --- PASS: TestArchive_fileCompressed (0.00s) === RUN TestArchive_fileNoExist -2024/05/22 03:33:37 [INFO] creating archive from /tmp/test336658877 +2023/04/20 23:13:29 [INFO] creating archive from /tmp/test3999622002 --- PASS: TestArchive_fileNoExist (0.00s) === RUN TestArchive_fileWithOpts -2024/05/22 03:33:37 [INFO] creating archive from /tmp/test1559406684 +2023/04/20 23:13:29 [INFO] creating archive from /tmp/test1284166487 --- PASS: TestArchive_fileWithOpts (0.00s) === RUN TestArchive_dirExtra -2024/05/22 03:33:37 [INFO] creating archive from test-fixtures/archive-flat ---- PASS: TestArchive_dirExtra (0.01s) +2023/04/20 23:13:29 [INFO] creating archive from test-fixtures/archive-flat +--- PASS: TestArchive_dirExtra (0.00s) === RUN TestArchive_dirExtraDir -2024/05/22 03:33:37 [INFO] creating archive from test-fixtures/archive-flat +2023/04/20 23:13:29 [INFO] creating archive from test-fixtures/archive-flat --- PASS: TestArchive_dirExtraDir (0.00s) === RUN TestArchive_dirExtraDirHeader -2024/05/22 03:33:37 [INFO] creating archive from test-fixtures/archive-flat ---- PASS: TestArchive_dirExtraDirHeader (0.01s) +2023/04/20 23:13:29 [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) @@ -517,23 +558,23 @@ archive_test.go:249: Skip this test in Debian --- SKIP: TestArchive_dirWithSymlink (0.00s) === RUN TestArchive_dirWithSymlinkToFile -2024/05/22 03:33:37 [INFO] creating archive from test-fixtures/archive-symlink-file/link +2023/04/20 23:13:29 [INFO] creating archive from test-fixtures/archive-symlink-file/link --- PASS: TestArchive_dirWithSymlinkToFile (0.01s) === RUN TestArchive_dirNoVCS -2024/05/22 03:33:37 [INFO] creating archive from test-fixtures/archive-flat +2023/04/20 23:13:29 [INFO] creating archive from test-fixtures/archive-flat --- PASS: TestArchive_dirNoVCS (0.00s) === RUN TestArchive_dirSubdirsNoVCS -2024/05/22 03:33:37 [INFO] creating archive from test-fixtures/archive-subdir +2023/04/20 23:13:29 [INFO] creating archive from test-fixtures/archive-subdir --- PASS: TestArchive_dirSubdirsNoVCS (0.00s) === RUN TestArchive_dirExclude -2024/05/22 03:33:37 [INFO] creating archive from test-fixtures/archive-subdir +2023/04/20 23:13:29 [INFO] creating archive from test-fixtures/archive-subdir --- PASS: TestArchive_dirExclude (0.00s) === RUN TestArchive_dirInclude -2024/05/22 03:33:37 [INFO] creating archive from test-fixtures/archive-subdir +2023/04/20 23:13:29 [INFO] creating archive from test-fixtures/archive-subdir --- PASS: TestArchive_dirInclude (0.00s) === RUN TestArchive_dirIncludeStar -2024/05/22 03:33:37 [INFO] creating archive from test-fixtures/archive-subdir-splat ---- PASS: TestArchive_dirIncludeStar (0.00s) +2023/04/20 23:13:29 [INFO] creating archive from test-fixtures/archive-subdir-splat +--- PASS: TestArchive_dirIncludeStar (0.01s) === RUN TestArchive_git archive_test.go:399: git not found, skipping archive_test.go:400: @@ -583,15 +624,15 @@ vcs_test.go:240: --- SKIP: TestVCSPathDetect_hg_absolute (0.00s) PASS -ok github.com/hashicorp/atlas-go/archive 0.070s +ok github.com/hashicorp/atlas-go/archive 0.101s === RUN TestSlug_returnsSlug --- PASS: TestSlug_returnsSlug (0.00s) === RUN TestApp_fetchesApp -2024/05/22 03:33:47 [INFO] getting application hashicorp/existing -2024/05/22 03:33:47 [INFO] request: GET /api/v1/vagrant/applications/hashicorp/existing -2024/05/22 03:33:47 [DEBUG] raw request: &http.Request{Method:"GET", URL:(*url.URL)(0x4000122120), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.19.8)"}}, Body:io.ReadCloser(nil), GetBody:(func() (io.ReadCloser, error))(nil), ContentLength:0, TransferEncoding:[]string(nil), Close:false, Host:"[::]:34613", 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)(0x40000c6000)} -2024/05/22 03:33:47 [INFO] response: 200 (200 OK) -2024/05/22 03:33:47 [DEBUG] response: +2023/04/20 23:13:50 [INFO] getting application hashicorp/existing +2023/04/20 23:13:50 [INFO] request: GET /api/v1/vagrant/applications/hashicorp/existing +2023/04/20 23:13:50 [DEBUG] raw request: &http.Request{Method:"GET", URL:(*url.URL)(0x40000ee120), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.19.8)"}}, Body:io.ReadCloser(nil), GetBody:(func() (io.ReadCloser, error))(nil), ContentLength:0, TransferEncoding:[]string(nil), Close:false, Host:"[::]:32883", 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)(0x4000018108)} +2023/04/20 23:13:50 [INFO] response: 200 (200 OK) +2023/04/20 23:13:50 [DEBUG] response: { "username": "hashicorp", "name": "existing", @@ -599,44 +640,44 @@ "private": true } ---- PASS: TestApp_fetchesApp (0.00s) +--- PASS: TestApp_fetchesApp (0.01s) === RUN TestApp_returnsErrorNoApp -2024/05/22 03:33:47 [INFO] getting application hashicorp/newproject -2024/05/22 03:33:47 [INFO] request: GET /api/v1/vagrant/applications/hashicorp/newproject -2024/05/22 03:33:47 [DEBUG] raw request: &http.Request{Method:"GET", URL:(*url.URL)(0x40001225a0), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.19.8)"}}, Body:io.ReadCloser(nil), GetBody:(func() (io.ReadCloser, error))(nil), ContentLength:0, TransferEncoding:[]string(nil), Close:false, Host:"[::]:42119", 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)(0x40000c6000)} -2024/05/22 03:33:47 [INFO] response: 404 (404 Not Found) -2024/05/22 03:33:47 [DEBUG] response: ---- PASS: TestApp_returnsErrorNoApp (0.00s) +2023/04/20 23:13:50 [INFO] getting application hashicorp/newproject +2023/04/20 23:13:50 [INFO] request: GET /api/v1/vagrant/applications/hashicorp/newproject +2023/04/20 23:13:50 [DEBUG] raw request: &http.Request{Method:"GET", URL:(*url.URL)(0x4000226240), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.19.8)"}}, Body:io.ReadCloser(nil), GetBody:(func() (io.ReadCloser, error))(nil), ContentLength:0, TransferEncoding:[]string(nil), Close:false, Host:"[::]:38415", 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)(0x4000018108)} +2023/04/20 23:13:50 [INFO] response: 404 (404 Not Found) +2023/04/20 23:13:50 [DEBUG] response: +--- PASS: TestApp_returnsErrorNoApp (0.01s) === RUN TestCreateApp_createsAndReturnsApp -2024/05/22 03:33:47 [INFO] creating application hashicorp/newproject -2024/05/22 03:33:47 [INFO] request: POST /api/v1/vagrant/applications -2024/05/22 03:33:47 [DEBUG] raw request: &http.Request{Method:"POST", URL:(*url.URL)(0x40002822d0), 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.19.8)"}}, Body:io.nopCloserWriterTo{Reader:(*bytes.Reader)(0x400007a420)}, GetBody:(func() (io.ReadCloser, error))(0x63b880), ContentLength:60, TransferEncoding:[]string(nil), Close:false, Host:"[::]:35995", 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)(0x40000c6000)} -2024/05/22 03:33:47 [INFO] response: 200 (200 OK) -2024/05/22 03:33:47 [DEBUG] response: {"username":"hashicorp","name":"newproject"} +2023/04/20 23:13:50 [INFO] creating application hashicorp/newproject +2023/04/20 23:13:50 [INFO] request: POST /api/v1/vagrant/applications +2023/04/20 23:13:50 [DEBUG] raw request: &http.Request{Method:"POST", URL:(*url.URL)(0x40000ee870), 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.19.8)"}}, Body:io.nopCloserWriterTo{Reader:(*bytes.Reader)(0x400007ba40)}, GetBody:(func() (io.ReadCloser, error))(0x63b880), ContentLength:60, TransferEncoding:[]string(nil), Close:false, Host:"[::]:40467", 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)(0x4000018108)} +2023/04/20 23:13:50 [INFO] response: 200 (200 OK) +2023/04/20 23:13:50 [DEBUG] response: {"username":"hashicorp","name":"newproject"} --- PASS: TestCreateApp_createsAndReturnsApp (0.00s) === RUN TestCreateApp_returnsErrorExistingApp -2024/05/22 03:33:47 [INFO] creating application hashicorp/existing -2024/05/22 03:33:47 [INFO] request: POST /api/v1/vagrant/applications -2024/05/22 03:33:47 [DEBUG] raw request: &http.Request{Method:"POST", URL:(*url.URL)(0x4000282630), 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.19.8)"}}, Body:io.nopCloserWriterTo{Reader:(*bytes.Reader)(0x400007a900)}, GetBody:(func() (io.ReadCloser, error))(0x63b880), ContentLength:58, TransferEncoding:[]string(nil), Close:false, Host:"[::]:39471", 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)(0x40000c6000)} -2024/05/22 03:33:47 [INFO] response: 409 (409 Conflict) -2024/05/22 03:33:47 [DEBUG] response: +2023/04/20 23:13:50 [INFO] creating application hashicorp/existing +2023/04/20 23:13:50 [INFO] request: POST /api/v1/vagrant/applications +2023/04/20 23:13:50 [DEBUG] raw request: &http.Request{Method:"POST", URL:(*url.URL)(0x4000226630), 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.19.8)"}}, Body:io.nopCloserWriterTo{Reader:(*bytes.Reader)(0x4000222840)}, GetBody:(func() (io.ReadCloser, error))(0x63b880), ContentLength:58, TransferEncoding:[]string(nil), Close:false, Host:"[::]:45589", 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)(0x4000018108)} +2023/04/20 23:13:50 [INFO] response: 409 (409 Conflict) +2023/04/20 23:13:50 [DEBUG] response: --- PASS: TestCreateApp_returnsErrorExistingApp (0.00s) === RUN TestUploadApp_createsAndReturnsVersion -2024/05/22 03:33:47 [INFO] uploading application hashicorp/existing (0 bytes) with metadata map["testing":%!q(bool=true)] -2024/05/22 03:33:47 [INFO] request: POST /api/v1/vagrant/applications/hashicorp/existing/versions -2024/05/22 03:33:47 [DEBUG] raw request: &http.Request{Method:"POST", URL:(*url.URL)(0x4000282ab0), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.19.8)"}}, Body:io.nopCloserWriterTo{Reader:(*bytes.Reader)(0x400007b170)}, GetBody:(func() (io.ReadCloser, error))(0x63b880), ContentLength:45, TransferEncoding:[]string(nil), Close:false, Host:"[::]:46845", 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)(0x40000c6000)} -2024/05/22 03:33:47 [INFO] response: 200 (200 OK) -2024/05/22 03:33:47 [DEBUG] response: {"upload_path":"http://[::]:46845/_binstore/630e42d9-2364-2412-4121-18266770468e","token":"630e42d9-2364-2412-4121-18266770468e","version":125} -2024/05/22 03:33:47 [INFO] putting file: http://[::]:46845/_binstore/630e42d9-2364-2412-4121-18266770468e -2024/05/22 03:33:47 [DEBUG] raw request: &http.Request{Method:"PUT", URL:(*url.URL)(0x40001a83f0), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.19.8)"}}, Body:http.noBody{}, GetBody:(func() (io.ReadCloser, error))(0x63afe0), ContentLength:0, TransferEncoding:[]string(nil), Close:false, Host:"[::]:46845", 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)(0x40000c6000)} -2024/05/22 03:33:47 [INFO] response: 200 (200 OK) -2024/05/22 03:33:47 [DEBUG] response: +2023/04/20 23:13:50 [INFO] uploading application hashicorp/existing (0 bytes) with metadata map["testing":%!q(bool=true)] +2023/04/20 23:13:50 [INFO] request: POST /api/v1/vagrant/applications/hashicorp/existing/versions +2023/04/20 23:13:50 [DEBUG] raw request: &http.Request{Method:"POST", URL:(*url.URL)(0x40000eefc0), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.19.8)"}}, Body:io.nopCloserWriterTo{Reader:(*bytes.Reader)(0x40001167e0)}, GetBody:(func() (io.ReadCloser, error))(0x63b880), ContentLength:45, TransferEncoding:[]string(nil), Close:false, Host:"[::]:38763", 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)(0x4000018108)} +2023/04/20 23:13:50 [INFO] response: 200 (200 OK) +2023/04/20 23:13:50 [DEBUG] response: {"upload_path":"http://[::]:38763/_binstore/630e42d9-2364-2412-4121-18266770468e","token":"630e42d9-2364-2412-4121-18266770468e","version":125} +2023/04/20 23:13:50 [INFO] putting file: http://[::]:38763/_binstore/630e42d9-2364-2412-4121-18266770468e +2023/04/20 23:13:50 [DEBUG] raw request: &http.Request{Method:"PUT", URL:(*url.URL)(0x40000ef560), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.19.8)"}}, Body:http.noBody{}, GetBody:(func() (io.ReadCloser, error))(0x63afe0), ContentLength:0, TransferEncoding:[]string(nil), Close:false, Host:"[::]:38763", 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)(0x4000018108)} +2023/04/20 23:13:50 [INFO] response: 200 (200 OK) +2023/04/20 23:13:50 [DEBUG] response: --- PASS: TestUploadApp_createsAndReturnsVersion (0.00s) === RUN TestArtifact_fetchesArtifact -2024/05/22 03:33:47 [INFO] request: GET /api/v1/artifacts/hashicorp/existing -2024/05/22 03:33:47 [DEBUG] raw request: &http.Request{Method:"GET", URL:(*url.URL)(0x40001a86c0), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.19.8)"}}, Body:io.ReadCloser(nil), GetBody:(func() (io.ReadCloser, error))(nil), ContentLength:0, TransferEncoding:[]string(nil), Close:false, Host:"[::]:41365", 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)(0x40000c6000)} -2024/05/22 03:33:47 [INFO] response: 200 (200 OK) -2024/05/22 03:33:47 [DEBUG] response: +2023/04/20 23:13:50 [INFO] request: GET /api/v1/artifacts/hashicorp/existing +2023/04/20 23:13:50 [DEBUG] raw request: &http.Request{Method:"GET", URL:(*url.URL)(0x4000226ab0), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.19.8)"}}, Body:io.ReadCloser(nil), GetBody:(func() (io.ReadCloser, error))(nil), ContentLength:0, TransferEncoding:[]string(nil), Close:false, Host:"[::]:39139", 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)(0x4000018108)} +2023/04/20 23:13:50 [INFO] response: 200 (200 OK) +2023/04/20 23:13:50 [DEBUG] response: { "artifact": { "username": "hashicorp", @@ -645,20 +686,20 @@ } } ---- PASS: TestArtifact_fetchesArtifact (0.00s) +--- PASS: TestArtifact_fetchesArtifact (0.01s) === RUN TestArtifact_returnsErrorNoArtifact -2024/05/22 03:33:47 [INFO] getting application hashicorp/newproject -2024/05/22 03:33:47 [INFO] request: GET /api/v1/vagrant/applications/hashicorp/newproject -2024/05/22 03:33:47 [DEBUG] raw request: &http.Request{Method:"GET", URL:(*url.URL)(0x40003346c0), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.19.8)"}}, Body:io.ReadCloser(nil), GetBody:(func() (io.ReadCloser, error))(nil), ContentLength:0, TransferEncoding:[]string(nil), Close:false, Host:"[::]:44421", 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)(0x40000c6000)} -2024/05/22 03:33:47 [INFO] response: 404 (404 Not Found) -2024/05/22 03:33:47 [DEBUG] response: +2023/04/20 23:13:50 [INFO] getting application hashicorp/newproject +2023/04/20 23:13:50 [INFO] request: GET /api/v1/vagrant/applications/hashicorp/newproject +2023/04/20 23:13:50 [DEBUG] raw request: &http.Request{Method:"GET", URL:(*url.URL)(0x40000efb00), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.19.8)"}}, Body:io.ReadCloser(nil), GetBody:(func() (io.ReadCloser, error))(nil), ContentLength:0, TransferEncoding:[]string(nil), Close:false, Host:"[::]:44629", 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)(0x4000018108)} +2023/04/20 23:13:50 [INFO] response: 404 (404 Not Found) +2023/04/20 23:13:50 [DEBUG] response: --- PASS: TestArtifact_returnsErrorNoArtifact (0.00s) === RUN TestArtifactSearch_fetches -2024/05/22 03:33:47 [INFO] searching artifacts: &atlas.ArtifactSearchOpts{User:"hashicorp", Name:"existing1", Type:"amazon-ami", Build:"", Version:"", Metadata:map[string]string(nil)} -2024/05/22 03:33:47 [INFO] request: GET /api/v1/artifacts/hashicorp/existing1/amazon-ami/search -2024/05/22 03:33:47 [DEBUG] raw request: &http.Request{Method:"GET", URL:(*url.URL)(0x4000282e10), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.19.8)"}}, Body:io.ReadCloser(nil), GetBody:(func() (io.ReadCloser, error))(nil), ContentLength:0, TransferEncoding:[]string(nil), Close:false, Host:"[::]:45455", 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)(0x40000c6000)} -2024/05/22 03:33:47 [INFO] response: 200 (200 OK) -2024/05/22 03:33:47 [DEBUG] response: +2023/04/20 23:13:50 [INFO] searching artifacts: &atlas.ArtifactSearchOpts{User:"hashicorp", Name:"existing1", Type:"amazon-ami", Build:"", Version:"", Metadata:map[string]string(nil)} +2023/04/20 23:13:50 [INFO] request: GET /api/v1/artifacts/hashicorp/existing1/amazon-ami/search +2023/04/20 23:13:50 [DEBUG] raw request: &http.Request{Method:"GET", URL:(*url.URL)(0x4000132090), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.19.8)"}}, Body:io.ReadCloser(nil), GetBody:(func() (io.ReadCloser, error))(nil), ContentLength:0, TransferEncoding:[]string(nil), Close:false, Host:"[::]:44531", 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)(0x4000018108)} +2023/04/20 23:13:50 [INFO] response: 200 (200 OK) +2023/04/20 23:13:50 [DEBUG] response: { "versions": [{ "username": "hashicorp", @@ -669,11 +710,11 @@ --- PASS: TestArtifactSearch_fetches (0.00s) === RUN TestArtifactSearch_metadata -2024/05/22 03:33:47 [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/05/22 03:33:47 [INFO] request: GET /api/v1/artifacts/hashicorp/existing2/amazon-ami/search -2024/05/22 03:33:47 [DEBUG] raw request: &http.Request{Method:"GET", URL:(*url.URL)(0x40002107e0), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.19.8)"}}, Body:io.ReadCloser(nil), GetBody:(func() (io.ReadCloser, error))(nil), ContentLength:0, TransferEncoding:[]string(nil), Close:false, Host:"[::]:32979", 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)(0x40000c6000)} -2024/05/22 03:33:47 [INFO] response: 200 (200 OK) -2024/05/22 03:33:47 [DEBUG] response: +2023/04/20 23:13:50 [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"}} +2023/04/20 23:13:50 [INFO] request: GET /api/v1/artifacts/hashicorp/existing2/amazon-ami/search +2023/04/20 23:13:50 [DEBUG] raw request: &http.Request{Method:"GET", URL:(*url.URL)(0x4000132750), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.19.8)"}}, Body:io.ReadCloser(nil), GetBody:(func() (io.ReadCloser, error))(nil), ContentLength:0, TransferEncoding:[]string(nil), Close:false, Host:"[::]:36467", 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)(0x4000018108)} +2023/04/20 23:13:50 [INFO] response: 200 (200 OK) +2023/04/20 23:13:50 [DEBUG] response: { "versions": [{ "username": "hashicorp", @@ -688,19 +729,19 @@ === RUN TestArtifactFileURL_nil --- PASS: TestArtifactFileURL_nil (0.00s) === RUN TestUploadArtifact -2024/05/22 03:33:47 [INFO] uploading artifact: hashicorp/existing (amazon-ami) -2024/05/22 03:33:47 [INFO] request: POST /api/v1/artifacts/hashicorp/existing/amazon-ami -2024/05/22 03:33:47 [DEBUG] raw request: &http.Request{Method:"POST", URL:(*url.URL)(0x40002834d0), 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.19.8)"}}, Body:io.nopCloserWriterTo{Reader:(*bytes.Reader)(0x40002ce030)}, GetBody:(func() (io.ReadCloser, error))(0x63b880), ContentLength:86, TransferEncoding:[]string(nil), Close:false, Host:"[::]:38419", 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)(0x40000c6000)} -2024/05/22 03:33:47 [INFO] response: 200 (200 OK) -2024/05/22 03:33:47 [DEBUG] response: +2023/04/20 23:13:50 [INFO] uploading artifact: hashicorp/existing (amazon-ami) +2023/04/20 23:13:50 [INFO] request: POST /api/v1/artifacts/hashicorp/existing/amazon-ami +2023/04/20 23:13:50 [DEBUG] raw request: &http.Request{Method:"POST", URL:(*url.URL)(0x4000132e10), 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.19.8)"}}, Body:io.nopCloserWriterTo{Reader:(*bytes.Reader)(0x4000135050)}, GetBody:(func() (io.ReadCloser, error))(0x63b880), ContentLength:86, TransferEncoding:[]string(nil), Close:false, Host:"[::]:41345", 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)(0x4000018108)} +2023/04/20 23:13:50 [INFO] response: 200 (200 OK) +2023/04/20 23:13:50 [DEBUG] response: { - "upload_path": "http://[::]:38419/_binstore/" + "upload_path": "http://[::]:41345/_binstore/" } -2024/05/22 03:33:47 [INFO] putting file: http://[::]:38419/_binstore/ -2024/05/22 03:33:47 [DEBUG] raw request: &http.Request{Method:"PUT", URL:(*url.URL)(0x40001a8cf0), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.19.8)"}}, Body:http.noBody{}, GetBody:(func() (io.ReadCloser, error))(0x63afe0), ContentLength:0, TransferEncoding:[]string(nil), Close:false, Host:"[::]:38419", 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)(0x40000c6000)} -2024/05/22 03:33:47 [INFO] response: 200 (200 OK) -2024/05/22 03:33:47 [DEBUG] response: +2023/04/20 23:13:50 [INFO] putting file: http://[::]:41345/_binstore/ +2023/04/20 23:13:50 [DEBUG] raw request: &http.Request{Method:"PUT", URL:(*url.URL)(0x4000226f30), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.19.8)"}}, Body:http.noBody{}, GetBody:(func() (io.ReadCloser, error))(0x63afe0), ContentLength:0, TransferEncoding:[]string(nil), Close:false, Host:"[::]:41345", 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)(0x4000018108)} +2023/04/20 23:13:50 [INFO] response: 200 (200 OK) +2023/04/20 23:13:50 [DEBUG] response: --- PASS: TestUploadArtifact (0.00s) === RUN TestMaskString_emptyString --- PASS: TestMaskString_emptyString (0.00s) @@ -713,11 +754,11 @@ === RUN TestBuildConfigVersion_slug --- PASS: TestBuildConfigVersion_slug (0.00s) === RUN TestBuildConfig_fetches -2024/05/22 03:33:47 [INFO] getting build configuration hashicorp/existing -2024/05/22 03:33:47 [INFO] request: GET /api/v1/packer/build-configurations/hashicorp/existing -2024/05/22 03:33:47 [DEBUG] raw request: &http.Request{Method:"GET", URL:(*url.URL)(0x4000334bd0), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.19.8)"}}, Body:io.ReadCloser(nil), GetBody:(func() (io.ReadCloser, error))(nil), ContentLength:0, TransferEncoding:[]string(nil), Close:false, Host:"[::]:41579", 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)(0x40000c6000)} -2024/05/22 03:33:47 [INFO] response: 200 (200 OK) -2024/05/22 03:33:47 [DEBUG] response: +2023/04/20 23:13:50 [INFO] getting build configuration hashicorp/existing +2023/04/20 23:13:50 [INFO] request: GET /api/v1/packer/build-configurations/hashicorp/existing +2023/04/20 23:13:50 [DEBUG] raw request: &http.Request{Method:"GET", URL:(*url.URL)(0x4000133320), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.19.8)"}}, Body:io.ReadCloser(nil), GetBody:(func() (io.ReadCloser, error))(nil), ContentLength:0, TransferEncoding:[]string(nil), Close:false, Host:"[::]:33045", 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)(0x4000018108)} +2023/04/20 23:13:50 [INFO] response: 200 (200 OK) +2023/04/20 23:13:50 [DEBUG] response: { "username": "hashicorp", "name": "existing" @@ -725,11 +766,11 @@ --- PASS: TestBuildConfig_fetches (0.00s) === RUN TestCreateBuildConfig -2024/05/22 03:33:47 [INFO] creating build configuration hashicorp/new -2024/05/22 03:33:47 [INFO] request: POST /api/v1/packer/build-configurations -2024/05/22 03:33:47 [DEBUG] raw request: &http.Request{Method:"POST", URL:(*url.URL)(0x4000334fc0), 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.19.8)"}}, Body:io.nopCloserWriterTo{Reader:(*bytes.Reader)(0x4000305350)}, GetBody:(func() (io.ReadCloser, error))(0x63b880), ContentLength:61, TransferEncoding:[]string(nil), Close:false, Host:"[::]:46435", 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)(0x40000c6000)} -2024/05/22 03:33:47 [INFO] response: 200 (200 OK) -2024/05/22 03:33:47 [DEBUG] response: +2023/04/20 23:13:50 [INFO] creating build configuration hashicorp/new +2023/04/20 23:13:50 [INFO] request: POST /api/v1/packer/build-configurations +2023/04/20 23:13:50 [DEBUG] raw request: &http.Request{Method:"POST", URL:(*url.URL)(0x40002273b0), 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.19.8)"}}, Body:io.nopCloserWriterTo{Reader:(*bytes.Reader)(0x4000223a40)}, GetBody:(func() (io.ReadCloser, error))(0x63b880), ContentLength:61, TransferEncoding:[]string(nil), Close:false, Host:"[::]:35503", 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)(0x4000018108)} +2023/04/20 23:13:50 [INFO] response: 200 (200 OK) +2023/04/20 23:13:50 [DEBUG] response: { "username":"hashicorp", "name":"new", @@ -739,20 +780,20 @@ --- PASS: TestCreateBuildConfig (0.00s) === RUN TestUploadBuildConfigVersion -2024/05/22 03:33:47 [INFO] uploading build configuration version hashicorp/existing (0 bytes), with metadata map["testing":%!q(bool=true)] -2024/05/22 03:33:47 [INFO] request: POST /api/v1/packer/build-configurations/hashicorp/existing/versions -2024/05/22 03:33:47 [DEBUG] raw request: &http.Request{Method:"POST", URL:(*url.URL)(0x40001a94d0), 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.19.8)"}}, Body:io.nopCloserWriterTo{Reader:(*bytes.Reader)(0x40001fe480)}, GetBody:(func() (io.ReadCloser, error))(0x63b880), ContentLength:159, TransferEncoding:[]string(nil), Close:false, Host:"[::]:39913", 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)(0x40000c6000)} -2024/05/22 03:33:47 [INFO] response: 200 (200 OK) -2024/05/22 03:33:47 [DEBUG] response: +2023/04/20 23:13:50 [INFO] uploading build configuration version hashicorp/existing (0 bytes), with metadata map["testing":%!q(bool=true)] +2023/04/20 23:13:50 [INFO] request: POST /api/v1/packer/build-configurations/hashicorp/existing/versions +2023/04/20 23:13:50 [DEBUG] raw request: &http.Request{Method:"POST", URL:(*url.URL)(0x40001a6900), 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.19.8)"}}, Body:io.nopCloserWriterTo{Reader:(*bytes.Reader)(0x4000192f90)}, GetBody:(func() (io.ReadCloser, error))(0x63b880), ContentLength:159, TransferEncoding:[]string(nil), Close:false, Host:"[::]:41893", 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)(0x4000018108)} +2023/04/20 23:13:50 [INFO] response: 200 (200 OK) +2023/04/20 23:13:50 [DEBUG] response: { - "upload_path": "http://[::]:39913/_binstore/" + "upload_path": "http://[::]:41893/_binstore/" } -2024/05/22 03:33:47 [INFO] putting file: http://[::]:39913/_binstore/ -2024/05/22 03:33:47 [DEBUG] raw request: &http.Request{Method:"PUT", URL:(*url.URL)(0x4000283a70), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.19.8)"}}, Body:http.noBody{}, GetBody:(func() (io.ReadCloser, error))(0x63afe0), ContentLength:0, TransferEncoding:[]string(nil), Close:false, Host:"[::]:39913", 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)(0x40000c6000)} -2024/05/22 03:33:47 [INFO] response: 200 (200 OK) -2024/05/22 03:33:47 [DEBUG] response: ---- PASS: TestUploadBuildConfigVersion (0.00s) +2023/04/20 23:13:50 [INFO] putting file: http://[::]:41893/_binstore/ +2023/04/20 23:13:50 [DEBUG] raw request: &http.Request{Method:"PUT", URL:(*url.URL)(0x40001a6e10), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.19.8)"}}, Body:http.noBody{}, GetBody:(func() (io.ReadCloser, error))(0x63afe0), ContentLength:0, TransferEncoding:[]string(nil), Close:false, Host:"[::]:41893", 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)(0x4000018108)} +2023/04/20 23:13:50 [INFO] response: 200 (200 OK) +2023/04/20 23:13:50 [DEBUG] response: +--- PASS: TestUploadBuildConfigVersion (0.01s) === RUN TestDefaultClient_url --- PASS: TestDefaultClient_url (0.00s) === RUN TestDefaultClient_urlFromEnvVar @@ -768,73 +809,73 @@ === RUN TestNewClient_setsDefaultHTTPClient --- PASS: TestNewClient_setsDefaultHTTPClient (0.00s) === RUN TestLogin_missingUsername -2024/05/22 03:33:47 [INFO] logging in user +2023/04/20 23:13:50 [INFO] logging in user --- PASS: TestLogin_missingUsername (0.00s) === RUN TestLogin_missingPassword -2024/05/22 03:33:47 [INFO] logging in user username +2023/04/20 23:13:50 [INFO] logging in user username --- PASS: TestLogin_missingPassword (0.00s) === RUN TestLogin_serverErrorMessage -2024/05/22 03:33:47 [INFO] logging in user username -2024/05/22 03:33:47 [INFO] request: POST /api/v1/authenticate -2024/05/22 03:33:47 [DEBUG] raw request: &http.Request{Method:"POST", URL:(*url.URL)(0x4000335950), 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.19.8)"}}, Body:io.nopCloserWriterTo{Reader:(*strings.Reader)(0x400033a440)}, GetBody:(func() (io.ReadCloser, error))(0x63b740), ContentLength:105, TransferEncoding:[]string(nil), Close:false, Host:"[::]:44593", 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)(0x40000c6000)} -2024/05/22 03:33:47 [INFO] response: 401 (401 Unauthorized) -2024/05/22 03:33:47 [DEBUG] response: +2023/04/20 23:13:50 [INFO] logging in user username +2023/04/20 23:13:50 [INFO] request: POST /api/v1/authenticate +2023/04/20 23:13:50 [DEBUG] raw request: &http.Request{Method:"POST", URL:(*url.URL)(0x4000227cb0), 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.19.8)"}}, Body:io.nopCloserWriterTo{Reader:(*strings.Reader)(0x400021a520)}, GetBody:(func() (io.ReadCloser, error))(0x63b740), ContentLength:105, TransferEncoding:[]string(nil), Close:false, Host:"[::]:36719", 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)(0x4000018108)} +2023/04/20 23:13:50 [INFO] response: 401 (401 Unauthorized) +2023/04/20 23:13:50 [DEBUG] response: --- PASS: TestLogin_serverErrorMessage (0.00s) === RUN TestLogin_success -2024/05/22 03:33:47 [INFO] logging in user sethloves -2024/05/22 03:33:47 [INFO] request: POST /api/v1/authenticate -2024/05/22 03:33:47 [DEBUG] raw request: &http.Request{Method:"POST", URL:(*url.URL)(0x4000283dd0), 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.19.8)"}}, Body:io.nopCloserWriterTo{Reader:(*strings.Reader)(0x40000707a0)}, GetBody:(func() (io.ReadCloser, error))(0x63b740), ContentLength:103, TransferEncoding:[]string(nil), Close:false, Host:"[::]:45729", 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)(0x40000c6000)} -2024/05/22 03:33:47 [INFO] response: 200 (200 OK) -2024/05/22 03:33:47 [DEBUG] response: +2023/04/20 23:13:50 [INFO] logging in user sethloves +2023/04/20 23:13:50 [INFO] request: POST /api/v1/authenticate +2023/04/20 23:13:50 [DEBUG] raw request: &http.Request{Method:"POST", URL:(*url.URL)(0x4000316240), 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.19.8)"}}, Body:io.nopCloserWriterTo{Reader:(*strings.Reader)(0x400021a640)}, GetBody:(func() (io.ReadCloser, error))(0x63b740), ContentLength:103, TransferEncoding:[]string(nil), Close:false, Host:"[::]:34101", 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)(0x4000018108)} +2023/04/20 23:13:50 [INFO] response: 200 (200 OK) +2023/04/20 23:13:50 [DEBUG] response: { "token": "pX4AQ5vO7T-xJrxsnvlB0cfeF-tGUX-A-280LPxoryhDAbwmox7PKinMgA1F6R3BKaT" } -2024/05/22 03:33:47 [DEBUG] setting atlas token (pX4*** (masked)) +2023/04/20 23:13:50 [DEBUG] setting atlas token (pX4*** (masked)) --- PASS: TestLogin_success (0.00s) === RUN TestRequest_tokenAuth -2024/05/22 03:33:47 [INFO] request: GET /api/v1/token -2024/05/22 03:33:47 [DEBUG] request: appending token (a.a*** (masked)) -2024/05/22 03:33:47 [DEBUG] raw request: &http.Request{Method:"GET", URL:(*url.URL)(0x4000335d40), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.19.8)"}, "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:"[::]:38365", 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)(0x40000c6000)} -2024/05/22 03:33:47 [INFO] response: 200 (200 OK) -2024/05/22 03:33:47 [DEBUG] response: ---- PASS: TestRequest_tokenAuth (0.00s) +2023/04/20 23:13:50 [INFO] request: GET /api/v1/token +2023/04/20 23:13:50 [DEBUG] request: appending token (a.a*** (masked)) +2023/04/20 23:13:50 [DEBUG] raw request: &http.Request{Method:"GET", URL:(*url.URL)(0x40003167e0), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.19.8)"}, "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:"[::]:43263", 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)(0x4000018108)} +2023/04/20 23:13:50 [INFO] response: 200 (200 OK) +2023/04/20 23:13:50 [DEBUG] response: +--- PASS: TestRequest_tokenAuth (0.01s) === RUN TestRequest_getsData -2024/05/22 03:33:47 [INFO] request: GET /_status/200 -2024/05/22 03:33:47 [DEBUG] raw request: &http.Request{Method:"GET", URL:(*url.URL)(0x40002da240), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.19.8)"}}, Body:io.ReadCloser(nil), GetBody:(func() (io.ReadCloser, error))(nil), ContentLength:0, TransferEncoding:[]string(nil), Close:false, Host:"[::]:41201", 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)(0x40000c6000)} -2024/05/22 03:33:47 [INFO] response: 200 (200 OK) -2024/05/22 03:33:47 [DEBUG] response: ---- PASS: TestRequest_getsData (0.00s) +2023/04/20 23:13:50 [INFO] request: GET /_status/200 +2023/04/20 23:13:50 [DEBUG] raw request: &http.Request{Method:"GET", URL:(*url.URL)(0x4000316b40), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.19.8)"}}, Body:io.ReadCloser(nil), GetBody:(func() (io.ReadCloser, error))(nil), ContentLength:0, TransferEncoding:[]string(nil), Close:false, Host:"[::]:38589", 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)(0x4000018108)} +2023/04/20 23:13:50 [INFO] response: 200 (200 OK) +2023/04/20 23:13:50 [DEBUG] response: +--- PASS: TestRequest_getsData (0.01s) === RUN TestRequest_railsError -2024/05/22 03:33:47 [INFO] request: GET /_rails-error -2024/05/22 03:33:47 [DEBUG] raw request: &http.Request{Method:"GET", URL:(*url.URL)(0x4000480240), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.19.8)"}}, Body:io.ReadCloser(nil), GetBody:(func() (io.ReadCloser, error))(nil), ContentLength:0, TransferEncoding:[]string(nil), Close:false, Host:"[::]:41599", 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)(0x40000c6000)} -2024/05/22 03:33:47 [INFO] response: 422 (422 Unprocessable Entity) -2024/05/22 03:33:47 [DEBUG] response: {"errors": ["this is an error", "this is another error"]} ---- PASS: TestRequest_railsError (0.00s) +2023/04/20 23:13:50 [INFO] request: GET /_rails-error +2023/04/20 23:13:50 [DEBUG] raw request: &http.Request{Method:"GET", URL:(*url.URL)(0x4000316fc0), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.19.8)"}}, Body:io.ReadCloser(nil), GetBody:(func() (io.ReadCloser, error))(nil), ContentLength:0, TransferEncoding:[]string(nil), Close:false, Host:"[::]:35203", 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)(0x4000018108)} +2023/04/20 23:13:50 [INFO] response: 422 (422 Unprocessable Entity) +2023/04/20 23:13:50 [DEBUG] response: {"errors": ["this is an error", "this is another error"]} +--- PASS: TestRequest_railsError (0.01s) === RUN TestRequest_notFoundError -2024/05/22 03:33:47 [INFO] request: GET /_status/404 -2024/05/22 03:33:47 [DEBUG] raw request: &http.Request{Method:"GET", URL:(*url.URL)(0x40001a9ef0), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.19.8)"}}, Body:io.ReadCloser(nil), GetBody:(func() (io.ReadCloser, error))(nil), ContentLength:0, TransferEncoding:[]string(nil), Close:false, Host:"[::]:44963", 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)(0x40000c6000)} -2024/05/22 03:33:47 [INFO] response: 404 (404 Not Found) -2024/05/22 03:33:47 [DEBUG] response: +2023/04/20 23:13:50 [INFO] request: GET /_status/404 +2023/04/20 23:13:50 [DEBUG] raw request: &http.Request{Method:"GET", URL:(*url.URL)(0x40003174d0), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.19.8)"}}, Body:io.ReadCloser(nil), GetBody:(func() (io.ReadCloser, error))(nil), ContentLength:0, TransferEncoding:[]string(nil), Close:false, Host:"[::]:41099", 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)(0x4000018108)} +2023/04/20 23:13:50 [INFO] response: 404 (404 Not Found) +2023/04/20 23:13:50 [DEBUG] response: --- PASS: TestRequest_notFoundError (0.00s) === RUN TestRequestJSON_decodesData -2024/05/22 03:33:47 [INFO] request: GET /_json -2024/05/22 03:33:47 [DEBUG] raw request: &http.Request{Method:"GET", URL:(*url.URL)(0x40004082d0), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.19.8)"}}, Body:io.ReadCloser(nil), GetBody:(func() (io.ReadCloser, error))(nil), ContentLength:0, TransferEncoding:[]string(nil), Close:false, Host:"[::]:38591", 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)(0x40000c6000)} -2024/05/22 03:33:47 [INFO] response: 200 (200 OK) -2024/05/22 03:33:47 [DEBUG] response: {"ok": true} +2023/04/20 23:13:50 [INFO] request: GET /_json +2023/04/20 23:13:50 [DEBUG] raw request: &http.Request{Method:"GET", URL:(*url.URL)(0x40003179e0), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.19.8)"}}, Body:io.ReadCloser(nil), GetBody:(func() (io.ReadCloser, error))(nil), ContentLength:0, TransferEncoding:[]string(nil), Close:false, Host:"[::]:41839", 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)(0x4000018108)} +2023/04/20 23:13:50 [INFO] response: 200 (200 OK) +2023/04/20 23:13:50 [DEBUG] response: {"ok": true} --- PASS: TestRequestJSON_decodesData (0.00s) === RUN TestClient_defaultHeaders -2024/05/22 03:33:47 [INFO] request: GET /_test -2024/05/22 03:33:47 [DEBUG] raw request: &http.Request{Method:"GET", URL:(*url.URL)(0x4000211050), 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.19.8)"}}, Body:io.ReadCloser(nil), GetBody:(func() (io.ReadCloser, error))(nil), ContentLength:0, TransferEncoding:[]string(nil), Close:false, Host:"[::]:39245", 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)(0x40000c6000)} -2024/05/22 03:33:47 [INFO] response: 200 (200 OK) -2024/05/22 03:33:47 [DEBUG] response: {"RawPath":"","Host":"[::]:39245","Header":{"Accept-Encoding":["gzip"],"Atlas-Test":["default header test"],"Connection":["close"],"User-Agent":["AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.19.8)"]},"Body":""} ---- PASS: TestClient_defaultHeaders (0.00s) +2023/04/20 23:13:50 [INFO] request: GET /_test +2023/04/20 23:13:50 [DEBUG] raw request: &http.Request{Method:"GET", URL:(*url.URL)(0x400034e000), 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.19.8)"}}, Body:io.ReadCloser(nil), GetBody:(func() (io.ReadCloser, error))(nil), ContentLength:0, TransferEncoding:[]string(nil), Close:false, Host:"[::]:33015", 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)(0x4000018108)} +2023/04/20 23:13:50 [INFO] response: 200 (200 OK) +2023/04/20 23:13:50 [DEBUG] response: {"RawPath":"","Host":"[::]:33015","Header":{"Accept-Encoding":["gzip"],"Atlas-Test":["default header test"],"Connection":["close"],"User-Agent":["AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.19.8)"]},"Body":""} +--- PASS: TestClient_defaultHeaders (0.01s) === RUN TestTerraformConfigLatest -2024/05/22 03:33:47 [INFO] getting terraform configuration hashicorp/existing -2024/05/22 03:33:47 [INFO] request: GET /api/v1/terraform/configurations/hashicorp/existing/versions/latest -2024/05/22 03:33:47 [DEBUG] raw request: &http.Request{Method:"GET", URL:(*url.URL)(0x40004086c0), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.19.8)"}}, Body:io.ReadCloser(nil), GetBody:(func() (io.ReadCloser, error))(nil), ContentLength:0, TransferEncoding:[]string(nil), Close:false, Host:"[::]:45929", 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)(0x40000c6000)} -2024/05/22 03:33:47 [INFO] response: 200 (200 OK) -2024/05/22 03:33:47 [DEBUG] response: +2023/04/20 23:13:50 [INFO] getting terraform configuration hashicorp/existing +2023/04/20 23:13:50 [INFO] request: GET /api/v1/terraform/configurations/hashicorp/existing/versions/latest +2023/04/20 23:13:50 [DEBUG] raw request: &http.Request{Method:"GET", URL:(*url.URL)(0x400034e5a0), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.19.8)"}}, Body:io.ReadCloser(nil), GetBody:(func() (io.ReadCloser, error))(nil), ContentLength:0, TransferEncoding:[]string(nil), Close:false, Host:"[::]:40535", 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)(0x4000018108)} +2023/04/20 23:13:50 [INFO] response: 200 (200 OK) +2023/04/20 23:13:50 [DEBUG] response: { "version": { "version": 5, @@ -843,23 +884,23 @@ } } ---- PASS: TestTerraformConfigLatest (0.00s) +--- PASS: TestTerraformConfigLatest (0.01s) === RUN TestCreateTerraformConfigVersion -2024/05/22 03:33:47 [INFO] creating terraform configuration hashicorp/existing -2024/05/22 03:33:47 [INFO] request: POST /api/v1/terraform/configurations/hashicorp/existing/versions -2024/05/22 03:33:47 [DEBUG] raw request: &http.Request{Method:"POST", URL:(*url.URL)(0x40002daa20), 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.19.8)"}}, Body:io.nopCloserWriterTo{Reader:(*bytes.Reader)(0x40002cfe00)}, GetBody:(func() (io.ReadCloser, error))(0x63b880), ContentLength:80, TransferEncoding:[]string(nil), Close:false, Host:"[::]:40677", 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)(0x40000c6000)} -2024/05/22 03:33:47 [INFO] response: 200 (200 OK) -2024/05/22 03:33:47 [DEBUG] response: +2023/04/20 23:13:50 [INFO] creating terraform configuration hashicorp/existing +2023/04/20 23:13:50 [INFO] request: POST /api/v1/terraform/configurations/hashicorp/existing/versions +2023/04/20 23:13:50 [DEBUG] raw request: &http.Request{Method:"POST", URL:(*url.URL)(0x4000133dd0), 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.19.8)"}}, Body:io.nopCloserWriterTo{Reader:(*bytes.Reader)(0x40001525d0)}, GetBody:(func() (io.ReadCloser, error))(0x63b880), ContentLength:80, TransferEncoding:[]string(nil), Close:false, Host:"[::]:46185", 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)(0x4000018108)} +2023/04/20 23:13:50 [INFO] response: 200 (200 OK) +2023/04/20 23:13:50 [DEBUG] response: { "version": 5, - "upload_path": "http://[::]:40677/_binstore/" + "upload_path": "http://[::]:46185/_binstore/" } -2024/05/22 03:33:47 [INFO] putting file: http://[::]:40677/_binstore/ -2024/05/22 03:33:47 [DEBUG] raw request: &http.Request{Method:"PUT", URL:(*url.URL)(0x4000408cf0), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.19.8)"}}, Body:http.noBody{}, GetBody:(func() (io.ReadCloser, error))(0x63afe0), ContentLength:0, TransferEncoding:[]string(nil), Close:false, Host:"[::]:40677", 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)(0x40000c6000)} -2024/05/22 03:33:47 [INFO] response: 200 (200 OK) -2024/05/22 03:33:47 [DEBUG] response: ---- PASS: TestCreateTerraformConfigVersion (0.00s) +2023/04/20 23:13:50 [INFO] putting file: http://[::]:46185/_binstore/ +2023/04/20 23:13:50 [DEBUG] raw request: &http.Request{Method:"PUT", URL:(*url.URL)(0x40002a8510), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.19.8)"}}, Body:http.noBody{}, GetBody:(func() (io.ReadCloser, error))(0x63afe0), ContentLength:0, TransferEncoding:[]string(nil), Close:false, Host:"[::]:46185", 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)(0x4000018108)} +2023/04/20 23:13:50 [INFO] response: 200 (200 OK) +2023/04/20 23:13:50 [DEBUG] response: +--- PASS: TestCreateTerraformConfigVersion (0.01s) === RUN TestParseSlug_emptyString --- PASS: TestParseSlug_emptyString (0.00s) === RUN TestParseSlug_noSlashes @@ -869,7 +910,7 @@ === RUN TestParseSlug_goodString --- PASS: TestParseSlug_goodString (0.00s) PASS -ok github.com/hashicorp/atlas-go/v1 0.044s +ok github.com/hashicorp/atlas-go/v1 0.136s create-stamp debian/debhelper-build-stamp dh_testroot -O--buildsystem=golang dh_prep -O--buildsystem=golang @@ -897,12 +938,14 @@ dpkg-buildpackage: info: binary-only upload (no source included) dpkg-genchanges: info: including full source code in upload I: copying local configuration +I: user script /srv/workspace/pbuilder/2610/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/2610/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/25104 and its subdirectories -I: Current time: Wed May 22 03:33:57 -12 2024 -I: pbuilder-time-stamp: 1716392037 +I: removing directory /srv/workspace/pbuilder/2610 and its subdirectories +I: Current time: Thu Apr 20 23:14:04 +14 2023 +I: pbuilder-time-stamp: 1681982044