Input buildinfo: https://buildinfos.debian.net/buildinfo-pool/g/golang-github-hashicorp-atlas-go/golang-github-hashicorp-atlas-go_0.0~git20170808.8261ea0-3_all.buildinfo Use metasnap for getting required timestamps New buildinfo file: /tmp/golang-github-hashicorp-atlas-go-0.0~git20170808.8261ea0-3wocv1n2n/golang-github-hashicorp-atlas-go_0.0~git20170808.8261ea0-3_all.buildinfo Get source package info: golang-github-hashicorp-atlas-go=0.0~git20170808.8261ea0-3 Source URL: http://snapshot.notset.fr/mr/package/golang-github-hashicorp-atlas-go/0.0~git20170808.8261ea0-3/srcfiles?fileinfo=1 env -i PATH=/usr/sbin:/usr/bin:/sbin:/bin TMPDIR=/tmp mmdebstrap --arch=amd64 --include=autoconf=2.69-11 automake=1:1.15.1-3 autopoint=0.19.8.1-4 autotools-dev=20171216.1 base-files=10.1 base-passwd=3.5.44 bash=4.4-5 binutils=2.30-1 binutils-common=2.30-1 binutils-x86-64-linux-gnu=2.30-1 bsdmainutils=11.1.2 bsdutils=1:2.30.2-0.3 build-essential=12.4 bzip2=1.0.6-8.1 coreutils=8.28-1 cpp=4:7.2.0-1d1 cpp-7=7.3.0-1 dash=0.5.8-2.10 debconf=1.5.65 debhelper=11.1.4 debianutils=4.8.4 dh-autoreconf=16 dh-golang=1.30 dh-strip-nondeterminism=0.040-1 diffutils=1:3.6-1 dpkg=1.19.0.5 dpkg-dev=1.19.0.5 e2fslibs=1.43.8-2 e2fsprogs=1.43.8-2 fdisk=2.30.2-0.3 file=1:5.32-1 findutils=4.6.0+git+20170828-2 g++=4:7.2.0-1d1 g++-7=7.3.0-1 gcc=4:7.2.0-1d1 gcc-7=7.3.0-1 gcc-7-base=7.3.0-1 gettext=0.19.8.1-4 gettext-base=0.19.8.1-4 golang-1.9-go=1.9.3-1 golang-1.9-src=1.9.3-1 golang-any=2:1.9~2 golang-github-hashicorp-go-cleanhttp-dev=0.0~git20160217.0.875fb67-1 golang-github-hashicorp-go-rootcerts-dev=0.0~git20160503.0.6bb64b3-1 golang-github-hashicorp-go-version-dev=0.0~git20171129.4fe82ae-2 golang-go=2:1.9~2 golang-src=2:1.9~2 grep=3.1-2 groff-base=1.22.3-9 gzip=1.6-5+b1 hostname=3.20 init-system-helpers=1.51 intltool-debian=0.35.0+20060710.4 libacl1=2.2.52-3+b1 libarchive-zip-perl=1.60-1 libasan4=7.3.0-1 libatomic1=7.3.0-1 libattr1=1:2.4.47-2+b2 libaudit-common=1:2.8.2-1 libaudit1=1:2.8.2-1 libbinutils=2.30-1 libblkid1=2.30.2-0.3 libbsd0=0.8.7-1 libbz2-1.0=1.0.6-8.1 libc-bin=2.26-6 libc-dev-bin=2.26-6 libc6=2.26-6 libc6-dev=2.26-6 libcap-ng0=0.7.7-3.1+b1 libcc1-0=7.3.0-1 libcilkrts5=7.3.0-1 libcomerr2=1.43.8-2 libcroco3=0.6.12-2 libdb5.3=5.3.28-13.1+b1 libdebconfclient0=0.239 libdpkg-perl=1.19.0.5 libfdisk1=2.30.2-0.3 libffi6=3.2.1-8 libfile-stripnondeterminism-perl=0.040-1 libgcc-7-dev=7.3.0-1 libgcc1=1:7.3.0-1 libgcrypt20=1.8.1-4 libgdbm5=1.14.1-2 libglib2.0-0=2.54.3-2 libgmp10=2:6.1.2+dfsg-2 libgomp1=7.3.0-1 libgpg-error0=1.27-5 libicu57=57.1-8 libisl15=0.18-1 libitm1=7.3.0-1 liblsan0=7.3.0-1 liblua5.1-0=5.1.5-8.1+b2 libluajit-5.1-2=2.1.0~beta3+dfsg-5.1 libluajit-5.1-common=2.1.0~beta3+dfsg-5.1 liblz4-1=0.0~r131-2+b1 liblzma5=5.2.2-1.3 libmagic-mgc=1:5.32-1 libmagic1=1:5.32-1 libmount1=2.30.2-0.3 libmpc3=1.1.0-1 libmpfr6=4.0.0-7 libmpx2=7.3.0-1 libncurses5=6.0+20171125-1 libncursesw5=6.0+20171125-1 libpam-modules=1.1.8-3.6 libpam-modules-bin=1.1.8-3.6 libpam-runtime=1.1.8-3.6 libpam0g=1.1.8-3.6 libpcre3=2:8.39-9 libperl5.26=5.26.1-4+b1 libpipeline1=1.5.0-1 libquadmath0=7.3.0-1 libselinux1=2.7-2+b1 libsigsegv2=2.12-1 libsmartcols1=2.30.2-0.3 libss2=1.43.8-2 libstdc++-7-dev=7.3.0-1 libstdc++6=7.3.0-1 libsystemd0=237-1 libtimedate-perl=2.3000-2 libtinfo5=6.0+20171125-1 libtool=2.4.6-2 libtsan0=7.3.0-1 libubsan0=7.3.0-1 libudev1=237-1 libunistring2=0.9.8-1 libuuid1=2.30.2-0.3 libxml2=2.9.4+dfsg1-6.1 libyaml-0-2=0.1.7-2 linux-libc-dev=4.14.13-1 login=1:4.5-1 m4=1.4.18-1 make=4.1-9.1 man-db=2.8.0-2 mawk=1.3.3-17+b3 ncurses-base=6.0+20171125-1 ncurses-bin=6.0+20171125-1 pandoc=1.19.2.4~dfsg-1+b3 pandoc-data=1.19.2.4~dfsg-1 patch=2.7.5-1+b2 perl=5.26.1-4+b1 perl-base=5.26.1-4+b1 perl-modules-5.26=5.26.1-4 po-debconf=1.0.20 sed=4.4-2 sysvinit-utils=2.88dsf-59.10 tar=1.29b-2 util-linux=2.30.2-0.3 xz-utils=5.2.2-1.3 zlib1g=1:1.2.8.dfsg-5 --variant=apt --aptopt=Acquire::Check-Valid-Until "false" --aptopt=Acquire::http::Dl-Limit "1000"; --aptopt=Acquire::https::Dl-Limit "1000"; --aptopt=Acquire::Retries "5"; --aptopt=APT::Get::allow-downgrades "true"; --keyring=/usr/share/keyrings/ --essential-hook=chroot "$1" sh -c "apt-get --yes install fakeroot util-linux" --essential-hook=copy-in /usr/share/keyrings/debian-archive-bullseye-automatic.gpg /usr/share/keyrings/debian-archive-bullseye-security-automatic.gpg /usr/share/keyrings/debian-archive-bullseye-stable.gpg /usr/share/keyrings/debian-archive-buster-automatic.gpg /usr/share/keyrings/debian-archive-buster-security-automatic.gpg /usr/share/keyrings/debian-archive-buster-stable.gpg /usr/share/keyrings/debian-archive-keyring.gpg /usr/share/keyrings/debian-archive-removed-keys.gpg /usr/share/keyrings/debian-archive-stretch-automatic.gpg /usr/share/keyrings/debian-archive-stretch-security-automatic.gpg /usr/share/keyrings/debian-archive-stretch-stable.gpg /usr/share/keyrings/debian-ports-archive-keyring-removed.gpg /usr/share/keyrings/debian-ports-archive-keyring.gpg /usr/share/keyrings/debian-keyring.gpg /etc/apt/trusted.gpg.d/ --essential-hook=chroot "$1" sh -c "rm /etc/apt/sources.list && echo 'deb http://snapshot.notset.fr/archive/debian/20210814T212851Z/ bookworm main deb-src http://snapshot.notset.fr/archive/debian/20210814T212851Z/ bookworm main deb http://snapshot.notset.fr/archive/debian/20180209T230438Z/ unstable main deb http://snapshot.notset.fr/archive/debian/20180205T095626Z/ unstable main' >> /etc/apt/sources.list && apt-get update" --customize-hook=chroot "$1" useradd --no-create-home -d /nonexistent -p "" builduser -s /bin/bash --customize-hook=chroot "$1" env sh -c "apt-get source --only-source -d golang-github-hashicorp-atlas-go=0.0~git20170808.8261ea0-3 && mkdir -p /build/golang-github-hashicorp-atlas-go-jIx6t8 && dpkg-source --no-check -x /*.dsc /build/golang-github-hashicorp-atlas-go-jIx6t8/golang-github-hashicorp-atlas-go-0.0-git20170808.8261ea0 && chown -R builduser:builduser /build/golang-github-hashicorp-atlas-go-jIx6t8" --customize-hook=chroot "$1" env --unset=TMPDIR runuser builduser -c "cd /build/golang-github-hashicorp-atlas-go-jIx6t8/golang-github-hashicorp-atlas-go-0.0-git20170808.8261ea0 && env DEB_BUILD_OPTIONS="parallel=4" LC_ALL="POSIX" SOURCE_DATE_EPOCH="1517892590" dpkg-buildpackage -uc -a amd64 --build=all" --customize-hook=sync-out /build/golang-github-hashicorp-atlas-go-jIx6t8 /tmp/golang-github-hashicorp-atlas-go-0.0~git20170808.8261ea0-3wocv1n2n buster /dev/null deb http://snapshot.notset.fr/archive/debian/20180205T095626Z unstable main I: automatically chosen mode: root I: chroot architecture amd64 is equal to the host's architecture I: automatically chosen format: tar I: using /tmp/mmdebstrap.GztrIADzKa as tempdir I: running apt-get update... I: downloading packages with apt... I: extracting archives... I: installing essential packages... I: running --essential-hook in shell: sh -c 'chroot "$1" sh -c "apt-get --yes install fakeroot util-linux"' exec /tmp/mmdebstrap.GztrIADzKa Reading package lists... Building dependency tree... util-linux is already the newest version (2.30.2-0.3). The following NEW packages will be installed: fakeroot libfakeroot 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. Need to get 132 kB of archives. After this operation, 373 kB of additional disk space will be used. Get:1 http://snapshot.notset.fr/archive/debian/20180205T095626Z unstable/main amd64 libfakeroot amd64 1.22-2 [45.9 kB] Get:2 http://snapshot.notset.fr/archive/debian/20180205T095626Z unstable/main amd64 fakeroot amd64 1.22-2 [85.7 kB] debconf: delaying package configuration, since apt-utils is not installed Fetched 132 kB in 1s (259 kB/s) Selecting previously unselected package libfakeroot:amd64. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 4424 files and directories currently installed.) Preparing to unpack .../libfakeroot_1.22-2_amd64.deb ... Unpacking libfakeroot:amd64 (1.22-2) ... Selecting previously unselected package fakeroot. Preparing to unpack .../fakeroot_1.22-2_amd64.deb ... Unpacking fakeroot (1.22-2) ... Processing triggers for libc-bin (2.26-6) ... Setting up libfakeroot:amd64 (1.22-2) ... Setting up fakeroot (1.22-2) ... update-alternatives: using /usr/bin/fakeroot-sysv to provide /usr/bin/fakeroot (fakeroot) in auto mode Processing triggers for libc-bin (2.26-6) ... I: running special hook: copy-in /usr/share/keyrings/debian-archive-bullseye-automatic.gpg /usr/share/keyrings/debian-archive-bullseye-security-automatic.gpg /usr/share/keyrings/debian-archive-bullseye-stable.gpg /usr/share/keyrings/debian-archive-buster-automatic.gpg /usr/share/keyrings/debian-archive-buster-security-automatic.gpg /usr/share/keyrings/debian-archive-buster-stable.gpg /usr/share/keyrings/debian-archive-keyring.gpg /usr/share/keyrings/debian-archive-removed-keys.gpg /usr/share/keyrings/debian-archive-stretch-automatic.gpg /usr/share/keyrings/debian-archive-stretch-security-automatic.gpg /usr/share/keyrings/debian-archive-stretch-stable.gpg /usr/share/keyrings/debian-ports-archive-keyring-removed.gpg /usr/share/keyrings/debian-ports-archive-keyring.gpg /usr/share/keyrings/debian-keyring.gpg /etc/apt/trusted.gpg.d/ I: running --essential-hook in shell: sh -c 'chroot "$1" sh -c "rm /etc/apt/sources.list && echo 'deb http://snapshot.notset.fr/archive/debian/20210814T212851Z/ bookworm main deb-src http://snapshot.notset.fr/archive/debian/20210814T212851Z/ bookworm main deb http://snapshot.notset.fr/archive/debian/20180209T230438Z/ unstable main deb http://snapshot.notset.fr/archive/debian/20180205T095626Z/ unstable main' >> /etc/apt/sources.list && apt-get update"' exec /tmp/mmdebstrap.GztrIADzKa Get:1 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm InRelease [81.6 kB] Get:2 http://snapshot.notset.fr/archive/debian/20180209T230438Z unstable InRelease [241 kB] Hit:3 http://snapshot.notset.fr/archive/debian/20180205T095626Z unstable InRelease Ign:4 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main Sources Ign:5 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main amd64 Packages Ign:4 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main Sources Ign:5 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main amd64 Packages Get:4 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main Sources [11.4 MB] Get:5 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main amd64 Packages [11.1 MB] Ign:6 http://snapshot.notset.fr/archive/debian/20180209T230438Z unstable/main amd64 Packages Ign:6 http://snapshot.notset.fr/archive/debian/20180209T230438Z unstable/main amd64 Packages Get:6 http://snapshot.notset.fr/archive/debian/20180209T230438Z unstable/main amd64 Packages [10.6 MB] Fetched 33.4 MB in 57s (585 kB/s) Reading package lists... I: installing remaining packages inside the chroot... I: running --customize-hook in shell: sh -c 'chroot "$1" useradd --no-create-home -d /nonexistent -p "" builduser -s /bin/bash' exec /tmp/mmdebstrap.GztrIADzKa I: running --customize-hook in shell: sh -c 'chroot "$1" env sh -c "apt-get source --only-source -d golang-github-hashicorp-atlas-go=0.0~git20170808.8261ea0-3 && mkdir -p /build/golang-github-hashicorp-atlas-go-jIx6t8 && dpkg-source --no-check -x /*.dsc /build/golang-github-hashicorp-atlas-go-jIx6t8/golang-github-hashicorp-atlas-go-0.0-git20170808.8261ea0 && chown -R builduser:builduser /build/golang-github-hashicorp-atlas-go-jIx6t8"' exec /tmp/mmdebstrap.GztrIADzKa Reading package lists... NOTICE: 'golang-github-hashicorp-atlas-go' packaging is maintained in the 'Git' version control system at: https://salsa.debian.org/go-team/packages/golang-github-hashicorp-atlas-go.git Please use: git clone https://salsa.debian.org/go-team/packages/golang-github-hashicorp-atlas-go.git to retrieve the latest (possibly unreleased) updates to the package. Need to get 38.9 kB of source archives. Get:1 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main golang-github-hashicorp-atlas-go 0.0~git20170808.8261ea0-3 (dsc) [2563 B] Get:2 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main golang-github-hashicorp-atlas-go 0.0~git20170808.8261ea0-3 (tar) [33.0 kB] Get:3 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main golang-github-hashicorp-atlas-go 0.0~git20170808.8261ea0-3 (diff) [3364 B] Fetched 38.9 kB in 0s (222 kB/s) Download complete and in download only mode W: Download is performed unsandboxed as root as file 'golang-github-hashicorp-atlas-go_0.0~git20170808.8261ea0-3.dsc' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied) dpkg-source: info: extracting golang-github-hashicorp-atlas-go in /build/golang-github-hashicorp-atlas-go-jIx6t8/golang-github-hashicorp-atlas-go-0.0-git20170808.8261ea0 dpkg-source: info: unpacking golang-github-hashicorp-atlas-go_0.0~git20170808.8261ea0.orig.tar.xz dpkg-source: info: unpacking golang-github-hashicorp-atlas-go_0.0~git20170808.8261ea0-3.debian.tar.xz dpkg-source: info: applying 0001-skip-tests-which-failed-due-to-dh-golang.patch I: running --customize-hook in shell: sh -c 'chroot "$1" env --unset=TMPDIR runuser builduser -c "cd /build/golang-github-hashicorp-atlas-go-jIx6t8/golang-github-hashicorp-atlas-go-0.0-git20170808.8261ea0 && env DEB_BUILD_OPTIONS="parallel=4" LC_ALL="POSIX" SOURCE_DATE_EPOCH="1517892590" dpkg-buildpackage -uc -a amd64 --build=all"' exec /tmp/mmdebstrap.GztrIADzKa 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 dpkg-buildpackage: info: source changed by Alexandre Viau dpkg-source --before-build golang-github-hashicorp-atlas-go-0.0-git20170808.8261ea0 fakeroot debian/rules clean dh clean --buildsystem=golang --with=golang dh_auto_clean -O--buildsystem=golang dh_clean -O--buildsystem=golang debian/rules build-indep dh build-indep --buildsystem=golang --with=golang dh_update_autotools_config -i -O--buildsystem=golang dh_autoreconf -i -O--buildsystem=golang dh_auto_configure -i -O--buildsystem=golang dh_auto_build -i -O--buildsystem=golang cd obj-x86_64-linux-gnu && go install -gcflags=\"-trimpath=/build/golang-github-hashicorp-atlas-go-jIx6t8/golang-github-hashicorp-atlas-go-0.0-git20170808.8261ea0/obj-x86_64-linux-gnu/src\" -asmflags=\"-trimpath=/build/golang-github-hashicorp-atlas-go-jIx6t8/golang-github-hashicorp-atlas-go-0.0-git20170808.8261ea0/obj-x86_64-linux-gnu/src\" -v -p 4 github.com/hashicorp/atlas-go/archive github.com/hashicorp/atlas-go/v1 github.com/hashicorp/go-version github.com/hashicorp/go-rootcerts github.com/hashicorp/go-cleanhttp github.com/hashicorp/atlas-go/v1 github.com/hashicorp/atlas-go/archive dh_auto_test -i -O--buildsystem=golang cd obj-x86_64-linux-gnu && go test -v -p 4 github.com/hashicorp/atlas-go/archive github.com/hashicorp/atlas-go/v1 === RUN TestArchiveOptsIsSet --- PASS: TestArchiveOptsIsSet (0.00s) === RUN TestArchive_file 2021/10/19 21:27:29 [INFO] creating archive from test-fixtures/archive-file/foo.txt --- PASS: TestArchive_file (0.10s) === RUN TestArchive_fileCompressed 2021/10/19 21:27:29 [INFO] creating archive from test-fixtures/archive-file-compressed/file.tar.gz --- PASS: TestArchive_fileCompressed (0.09s) === RUN TestArchive_fileNoExist 2021/10/19 21:27:29 [INFO] creating archive from /tmp/test290413357 --- PASS: TestArchive_fileNoExist (0.01s) === RUN TestArchive_fileWithOpts 2021/10/19 21:27:29 [INFO] creating archive from /tmp/test111833768 --- PASS: TestArchive_fileWithOpts (0.00s) === RUN TestArchive_dirExtra 2021/10/19 21:27:29 [INFO] creating archive from test-fixtures/archive-flat --- PASS: TestArchive_dirExtra (0.02s) === RUN TestArchive_dirExtraDir 2021/10/19 21:27:29 [INFO] creating archive from test-fixtures/archive-flat --- PASS: TestArchive_dirExtraDir (0.27s) === RUN TestArchive_dirExtraDirHeader 2021/10/19 21:27:29 [INFO] creating archive from test-fixtures/archive-flat --- PASS: TestArchive_dirExtraDirHeader (0.01s) === RUN TestArchive_dirMode --- SKIP: TestArchive_dirMode (0.00s) archive_test.go:205: Skip this test in Debian === RUN TestArchive_dirSymlink --- SKIP: TestArchive_dirSymlink (0.00s) archive_test.go:227: Skip this test in Debian === RUN TestArchive_dirWithSymlink --- SKIP: TestArchive_dirWithSymlink (0.00s) archive_test.go:249: Skip this test in Debian === RUN TestArchive_dirWithSymlinkToFile 2021/10/19 21:27:29 [INFO] creating archive from test-fixtures/archive-symlink-file/link --- PASS: TestArchive_dirWithSymlinkToFile (0.01s) === RUN TestArchive_dirNoVCS 2021/10/19 21:27:29 [INFO] creating archive from test-fixtures/archive-flat --- PASS: TestArchive_dirNoVCS (0.28s) === RUN TestArchive_dirSubdirsNoVCS 2021/10/19 21:27:30 [INFO] creating archive from test-fixtures/archive-subdir --- PASS: TestArchive_dirSubdirsNoVCS (0.90s) === RUN TestArchive_dirExclude 2021/10/19 21:27:30 [INFO] creating archive from test-fixtures/archive-subdir --- PASS: TestArchive_dirExclude (0.02s) === RUN TestArchive_dirInclude 2021/10/19 21:27:30 [INFO] creating archive from test-fixtures/archive-subdir --- PASS: TestArchive_dirInclude (0.00s) === RUN TestArchive_dirIncludeStar 2021/10/19 21:27:30 [INFO] creating archive from test-fixtures/archive-subdir-splat --- PASS: TestArchive_dirIncludeStar (0.00s) === RUN TestArchive_git --- SKIP: TestArchive_git (0.00s) archive_test.go:399: git not found, skipping archive_test.go:400: === RUN TestArchive_gitSubdir --- SKIP: TestArchive_gitSubdir (0.00s) archive_test.go:451: git not found, skipping archive_test.go:452: === RUN TestArchive_hg --- SKIP: TestArchive_hg (0.00s) archive_test.go:484: hg not found, skipping archive_test.go:485: === RUN TestArchive_hgSubdir --- SKIP: TestArchive_hgSubdir (0.00s) archive_test.go:509: === RUN TestReadCloseRemover --- PASS: TestReadCloseRemover (0.00s) === RUN TestVCSPreflight --- SKIP: TestVCSPreflight (0.00s) vcs_test.go:39: git not found === RUN TestGitBranch --- SKIP: TestGitBranch (0.00s) vcs_test.go:52: git not found === RUN TestGitBranch_detached --- SKIP: TestGitBranch_detached (0.00s) vcs_test.go:71: git not found === RUN TestGitCommit --- SKIP: TestGitCommit (0.00s) vcs_test.go:102: git not found === RUN TestGitRemotes --- SKIP: TestGitRemotes (0.00s) vcs_test.go:121: git not found === RUN TestVCSMetadata_git --- SKIP: TestVCSMetadata_git (0.00s) vcs_test.go:144: git not found === RUN TestVCSMetadata_git_detached --- SKIP: TestVCSMetadata_git_detached (0.00s) vcs_test.go:169: git not found === RUN TestVCSPathDetect_git --- PASS: TestVCSPathDetect_git (0.00s) === RUN TestVCSPathDetect_git_failure --- PASS: TestVCSPathDetect_git_failure (0.00s) === RUN TestVCSPathDetect_hg --- SKIP: TestVCSPathDetect_hg (0.00s) vcs_test.go:228: === RUN TestVCSPathDetect_hg_absolute --- SKIP: TestVCSPathDetect_hg_absolute (0.00s) vcs_test.go:240: PASS ok github.com/hashicorp/atlas-go/archive 2.504s === RUN TestSlug_returnsSlug --- PASS: TestSlug_returnsSlug (0.00s) === RUN TestApp_fetchesApp 2021/10/19 21:27:30 [INFO] getting application hashicorp/existing 2021/10/19 21:27:30 [INFO] request: GET /api/v1/vagrant/applications/hashicorp/existing 2021/10/19 21:27:30 [DEBUG] raw request: &http.Request{Method:"GET", URL:(*url.URL)(0xc420126300), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.9.3)"}}, Body:io.ReadCloser(nil), GetBody:(func() (io.ReadCloser, error))(nil), ContentLength:0, TransferEncoding:[]string(nil), Close:false, Host:"[::]:38447", 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.Context(nil)} 2021/10/19 21:27:30 [INFO] response: 200 (200 OK) 2021/10/19 21:27:30 [DEBUG] response: { "username": "hashicorp", "name": "existing", "tag": "hashicorp/existing", "private": true } --- PASS: TestApp_fetchesApp (0.00s) === RUN TestApp_returnsErrorNoApp 2021/10/19 21:27:30 [INFO] getting application hashicorp/newproject 2021/10/19 21:27:30 [INFO] request: GET /api/v1/vagrant/applications/hashicorp/newproject 2021/10/19 21:27:30 [DEBUG] raw request: &http.Request{Method:"GET", URL:(*url.URL)(0xc4201be200), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.9.3)"}}, Body:io.ReadCloser(nil), GetBody:(func() (io.ReadCloser, error))(nil), ContentLength:0, TransferEncoding:[]string(nil), Close:false, Host:"[::]:40937", 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.Context(nil)} 2021/10/19 21:27:30 [INFO] response: 404 (404 Not Found) 2021/10/19 21:27:30 [DEBUG] response: --- PASS: TestApp_returnsErrorNoApp (0.00s) === RUN TestCreateApp_createsAndReturnsApp 2021/10/19 21:27:30 [INFO] creating application hashicorp/newproject 2021/10/19 21:27:30 [INFO] request: POST /api/v1/vagrant/applications 2021/10/19 21:27:30 [DEBUG] raw request: &http.Request{Method:"POST", URL:(*url.URL)(0xc4201f6300), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.9.3)"}, "Content-Type":[]string{"application/json"}}, Body:ioutil.nopCloser{Reader:(*bytes.Reader)(0xc42016a660)}, GetBody:(func() (io.ReadCloser, error))(0x670dd0), 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.Context(nil)} 2021/10/19 21:27:30 [INFO] response: 200 (200 OK) 2021/10/19 21:27:30 [DEBUG] response: {"username":"hashicorp","name":"newproject"} --- PASS: TestCreateApp_createsAndReturnsApp (0.00s) === RUN TestCreateApp_returnsErrorExistingApp 2021/10/19 21:27:30 [INFO] creating application hashicorp/existing 2021/10/19 21:27:30 [INFO] request: POST /api/v1/vagrant/applications 2021/10/19 21:27:30 [DEBUG] raw request: &http.Request{Method:"POST", URL:(*url.URL)(0xc4201f6800), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.9.3)"}, "Content-Type":[]string{"application/json"}}, Body:ioutil.nopCloser{Reader:(*bytes.Reader)(0xc42016ac00)}, GetBody:(func() (io.ReadCloser, error))(0x670dd0), ContentLength:58, TransferEncoding:[]string(nil), Close:false, Host:"[::]:32819", 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.Context(nil)} 2021/10/19 21:27:30 [INFO] response: 409 (409 Conflict) 2021/10/19 21:27:30 [DEBUG] response: --- PASS: TestCreateApp_returnsErrorExistingApp (0.00s) === RUN TestUploadApp_createsAndReturnsVersion 2021/10/19 21:27:30 [INFO] uploading application hashicorp/existing (0 bytes) with metadata map["testing":%!q(bool=true)] 2021/10/19 21:27:30 [INFO] request: POST /api/v1/vagrant/applications/hashicorp/existing/versions 2021/10/19 21:27:30 [DEBUG] raw request: &http.Request{Method:"POST", URL:(*url.URL)(0xc4201f6d00), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.9.3)"}}, Body:ioutil.nopCloser{Reader:(*bytes.Reader)(0xc42016b500)}, GetBody:(func() (io.ReadCloser, error))(0x670dd0), ContentLength:45, TransferEncoding:[]string(nil), Close:false, Host:"[::]:44057", 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.Context(nil)} 2021/10/19 21:27:30 [INFO] response: 200 (200 OK) 2021/10/19 21:27:30 [DEBUG] response: {"upload_path":"http://[::]:44057/_binstore/630e42d9-2364-2412-4121-18266770468e","token":"630e42d9-2364-2412-4121-18266770468e","version":125} 2021/10/19 21:27:30 [INFO] putting file: http://[::]:44057/_binstore/630e42d9-2364-2412-4121-18266770468e 2021/10/19 21:27:30 [DEBUG] raw request: &http.Request{Method:"PUT", URL:(*url.URL)(0xc420126980), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.9.3)"}}, Body:http.noBody{}, GetBody:(func() (io.ReadCloser, error))(0x670fe0), ContentLength:0, TransferEncoding:[]string(nil), Close:false, Host:"[::]:44057", 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.Context(nil)} 2021/10/19 21:27:30 [INFO] response: 200 (200 OK) 2021/10/19 21:27:30 [DEBUG] response: --- PASS: TestUploadApp_createsAndReturnsVersion (0.01s) === RUN TestArtifact_fetchesArtifact 2021/10/19 21:27:30 [INFO] request: GET /api/v1/artifacts/hashicorp/existing 2021/10/19 21:27:30 [DEBUG] raw request: &http.Request{Method:"GET", URL:(*url.URL)(0xc420126f80), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.9.3)"}}, Body:io.ReadCloser(nil), GetBody:(func() (io.ReadCloser, error))(nil), ContentLength:0, TransferEncoding:[]string(nil), Close:false, Host:"[::]:44075", 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.Context(nil)} 2021/10/19 21:27:30 [INFO] response: 200 (200 OK) 2021/10/19 21:27:30 [DEBUG] response: { "artifact": { "username": "hashicorp", "name": "existing", "tag": "hashicorp/existing" } } --- PASS: TestArtifact_fetchesArtifact (0.00s) === RUN TestArtifact_returnsErrorNoArtifact 2021/10/19 21:27:30 [INFO] getting application hashicorp/newproject 2021/10/19 21:27:30 [INFO] request: GET /api/v1/vagrant/applications/hashicorp/newproject 2021/10/19 21:27:30 [DEBUG] raw request: &http.Request{Method:"GET", URL:(*url.URL)(0xc420127580), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.9.3)"}}, Body:io.ReadCloser(nil), GetBody:(func() (io.ReadCloser, error))(nil), ContentLength:0, TransferEncoding:[]string(nil), Close:false, Host:"[::]:42375", 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.Context(nil)} 2021/10/19 21:27:30 [INFO] response: 404 (404 Not Found) 2021/10/19 21:27:30 [DEBUG] response: --- PASS: TestArtifact_returnsErrorNoArtifact (0.00s) === RUN TestArtifactSearch_fetches 2021/10/19 21:27:30 [INFO] searching artifacts: &atlas.ArtifactSearchOpts{User:"hashicorp", Name:"existing1", Type:"amazon-ami", Build:"", Version:"", Metadata:map[string]string(nil)} 2021/10/19 21:27:30 [INFO] request: GET /api/v1/artifacts/hashicorp/existing1/amazon-ami/search 2021/10/19 21:27:30 [DEBUG] raw request: &http.Request{Method:"GET", URL:(*url.URL)(0xc420127b80), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.9.3)"}}, Body:io.ReadCloser(nil), GetBody:(func() (io.ReadCloser, error))(nil), ContentLength:0, TransferEncoding:[]string(nil), Close:false, Host:"[::]:34627", 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.Context(nil)} 2021/10/19 21:27:30 [INFO] response: 200 (200 OK) 2021/10/19 21:27:30 [DEBUG] response: { "versions": [{ "username": "hashicorp", "name": "existing", "tag": "hashicorp/existing" }] } --- PASS: TestArtifactSearch_fetches (0.00s) === RUN TestArtifactSearch_metadata 2021/10/19 21:27:30 [INFO] searching artifacts: &atlas.ArtifactSearchOpts{User:"hashicorp", Name:"existing2", Type:"amazon-ami", Build:"", Version:"", Metadata:map[string]string{"foo":"bar", "bar":"943febbf-589f-401b-8f25-58f6d8786848"}} 2021/10/19 21:27:30 [INFO] request: GET /api/v1/artifacts/hashicorp/existing2/amazon-ami/search 2021/10/19 21:27:30 [DEBUG] raw request: &http.Request{Method:"GET", URL:(*url.URL)(0xc420252180), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.9.3)"}}, Body:io.ReadCloser(nil), GetBody:(func() (io.ReadCloser, error))(nil), ContentLength:0, TransferEncoding:[]string(nil), Close:false, Host:"[::]:37739", 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.Context(nil)} 2021/10/19 21:27:30 [INFO] response: 200 (200 OK) 2021/10/19 21:27:30 [DEBUG] response: { "versions": [{ "username": "hashicorp", "name": "existing", "tag": "hashicorp/existing" }] } --- PASS: TestArtifactSearch_metadata (0.00s) === RUN TestArtifactFileURL --- PASS: TestArtifactFileURL (0.00s) === RUN TestArtifactFileURL_nil --- PASS: TestArtifactFileURL_nil (0.00s) === RUN TestUploadArtifact 2021/10/19 21:27:31 [INFO] uploading artifact: hashicorp/existing (amazon-ami) 2021/10/19 21:27:31 [INFO] request: POST /api/v1/artifacts/hashicorp/existing/amazon-ami 2021/10/19 21:27:31 [DEBUG] raw request: &http.Request{Method:"POST", URL:(*url.URL)(0xc420252c80), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.9.3)"}, "Content-Type":[]string{"application/json"}}, Body:ioutil.nopCloser{Reader:(*bytes.Reader)(0xc420260330)}, GetBody:(func() (io.ReadCloser, error))(0x670dd0), ContentLength:86, TransferEncoding:[]string(nil), Close:false, Host:"[::]:37485", 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.Context(nil)} 2021/10/19 21:27:31 [INFO] response: 200 (200 OK) 2021/10/19 21:27:31 [DEBUG] response: { "upload_path": "http://[::]:37485/_binstore/" } 2021/10/19 21:27:31 [INFO] putting file: http://[::]:37485/_binstore/ 2021/10/19 21:27:31 [DEBUG] raw request: &http.Request{Method:"PUT", URL:(*url.URL)(0xc420253100), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.9.3)"}}, Body:http.noBody{}, GetBody:(func() (io.ReadCloser, error))(0x670fe0), ContentLength:0, TransferEncoding:[]string(nil), Close:false, Host:"[::]:37485", 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.Context(nil)} 2021/10/19 21:27:31 [INFO] response: 200 (200 OK) 2021/10/19 21:27:31 [DEBUG] response: --- PASS: TestUploadArtifact (0.40s) === RUN TestMaskString_emptyString --- PASS: TestMaskString_emptyString (0.00s) === RUN TestMaskString_threeString --- PASS: TestMaskString_threeString (0.00s) === RUN TestMaskString_longerString --- PASS: TestMaskString_longerString (0.00s) === RUN TestBuildConfig_slug --- PASS: TestBuildConfig_slug (0.00s) === RUN TestBuildConfigVersion_slug --- PASS: TestBuildConfigVersion_slug (0.00s) === RUN TestBuildConfig_fetches 2021/10/19 21:27:31 [INFO] getting build configuration hashicorp/existing 2021/10/19 21:27:31 [INFO] request: GET /api/v1/packer/build-configurations/hashicorp/existing 2021/10/19 21:27:31 [DEBUG] raw request: &http.Request{Method:"GET", URL:(*url.URL)(0xc420253980), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.9.3)"}}, Body:io.ReadCloser(nil), GetBody:(func() (io.ReadCloser, error))(nil), ContentLength:0, TransferEncoding:[]string(nil), Close:false, Host:"[::]:40131", 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.Context(nil)} 2021/10/19 21:27:31 [INFO] response: 200 (200 OK) 2021/10/19 21:27:31 [DEBUG] response: { "username": "hashicorp", "name": "existing" } --- PASS: TestBuildConfig_fetches (0.00s) === RUN TestCreateBuildConfig 2021/10/19 21:27:31 [INFO] creating build configuration hashicorp/new 2021/10/19 21:27:31 [INFO] request: POST /api/v1/packer/build-configurations 2021/10/19 21:27:31 [DEBUG] raw request: &http.Request{Method:"POST", URL:(*url.URL)(0xc420253f80), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.9.3)"}, "Content-Type":[]string{"application/json"}}, Body:ioutil.nopCloser{Reader:(*bytes.Reader)(0xc4202618c0)}, GetBody:(func() (io.ReadCloser, error))(0x670dd0), ContentLength:61, TransferEncoding:[]string(nil), Close:false, Host:"[::]:43601", 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.Context(nil)} 2021/10/19 21:27:31 [INFO] response: 200 (200 OK) 2021/10/19 21:27:31 [DEBUG] response: { "username":"hashicorp", "name":"new", "tag":"hashicorp/new", "private":true } --- PASS: TestCreateBuildConfig (0.09s) === RUN TestUploadBuildConfigVersion 2021/10/19 21:27:31 [INFO] uploading build configuration version hashicorp/existing (0 bytes), with metadata map["testing":%!q(bool=true)] 2021/10/19 21:27:31 [INFO] request: POST /api/v1/packer/build-configurations/hashicorp/existing/versions 2021/10/19 21:27:31 [DEBUG] raw request: &http.Request{Method:"POST", URL:(*url.URL)(0xc4201f7380), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.9.3)"}, "Content-Type":[]string{"application/json"}}, Body:ioutil.nopCloser{Reader:(*bytes.Reader)(0xc4202961e0)}, GetBody:(func() (io.ReadCloser, error))(0x670dd0), ContentLength:159, TransferEncoding:[]string(nil), Close:false, Host:"[::]:38705", 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.Context(nil)} 2021/10/19 21:27:31 [INFO] response: 200 (200 OK) 2021/10/19 21:27:31 [DEBUG] response: { "upload_path": "http://[::]:38705/_binstore/" } 2021/10/19 21:27:31 [INFO] putting file: http://[::]:38705/_binstore/ 2021/10/19 21:27:31 [DEBUG] raw request: &http.Request{Method:"PUT", URL:(*url.URL)(0xc4201f7800), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.9.3)"}}, Body:http.noBody{}, GetBody:(func() (io.ReadCloser, error))(0x670fe0), ContentLength:0, TransferEncoding:[]string(nil), Close:false, Host:"[::]:38705", 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.Context(nil)} 2021/10/19 21:27:31 [INFO] response: 200 (200 OK) 2021/10/19 21:27:31 [DEBUG] response: --- PASS: TestUploadBuildConfigVersion (0.00s) === RUN TestDefaultClient_url --- PASS: TestDefaultClient_url (0.00s) === RUN TestDefaultClient_urlFromEnvVar --- PASS: TestDefaultClient_urlFromEnvVar (0.00s) === RUN TestNewClient_badURL --- PASS: TestNewClient_badURL (0.00s) === RUN TestNewClient_parsesURL --- PASS: TestNewClient_parsesURL (0.00s) === RUN TestNewClient_TLSVerify --- PASS: TestNewClient_TLSVerify (0.00s) === RUN TestNewClient_TLSNoVerify --- PASS: TestNewClient_TLSNoVerify (0.00s) === RUN TestNewClient_setsDefaultHTTPClient --- PASS: TestNewClient_setsDefaultHTTPClient (0.00s) === RUN TestLogin_missingUsername 2021/10/19 21:27:31 [INFO] logging in user --- PASS: TestLogin_missingUsername (0.00s) === RUN TestLogin_missingPassword 2021/10/19 21:27:31 [INFO] logging in user username --- PASS: TestLogin_missingPassword (0.00s) === RUN TestLogin_serverErrorMessage 2021/10/19 21:27:31 [INFO] logging in user username 2021/10/19 21:27:31 [INFO] request: POST /api/v1/authenticate 2021/10/19 21:27:31 [DEBUG] raw request: &http.Request{Method:"POST", URL:(*url.URL)(0xc4202ac700), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.9.3)"}, "Content-Type":[]string{"application/x-www-form-urlencoded"}}, Body:ioutil.nopCloser{Reader:(*strings.Reader)(0xc42020b260)}, GetBody:(func() (io.ReadCloser, error))(0x670ee0), ContentLength:105, TransferEncoding:[]string(nil), Close:false, Host:"[::]:42497", 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.Context(nil)} 2021/10/19 21:27:31 [INFO] response: 401 (401 Unauthorized) 2021/10/19 21:27:31 [DEBUG] response: --- PASS: TestLogin_serverErrorMessage (0.01s) === RUN TestLogin_success 2021/10/19 21:27:31 [INFO] logging in user sethloves 2021/10/19 21:27:31 [INFO] request: POST /api/v1/authenticate 2021/10/19 21:27:31 [DEBUG] raw request: &http.Request{Method:"POST", URL:(*url.URL)(0xc4202acc00), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.9.3)"}, "Content-Type":[]string{"application/x-www-form-urlencoded"}}, Body:ioutil.nopCloser{Reader:(*strings.Reader)(0xc42020b460)}, GetBody:(func() (io.ReadCloser, error))(0x670ee0), ContentLength:103, TransferEncoding:[]string(nil), Close:false, Host:"[::]:33625", 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.Context(nil)} 2021/10/19 21:27:31 [INFO] response: 200 (200 OK) 2021/10/19 21:27:31 [DEBUG] response: { "token": "pX4AQ5vO7T-xJrxsnvlB0cfeF-tGUX-A-280LPxoryhDAbwmox7PKinMgA1F6R3BKaT" } 2021/10/19 21:27:31 [DEBUG] setting atlas token (pX4*** (masked)) --- PASS: TestLogin_success (0.00s) === RUN TestRequest_tokenAuth 2021/10/19 21:27:31 [INFO] request: GET /api/v1/token 2021/10/19 21:27:31 [DEBUG] request: appending token (a.a*** (masked)) 2021/10/19 21:27:31 [DEBUG] raw request: &http.Request{Method:"GET", URL:(*url.URL)(0xc4202ad200), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.9.3)"}, "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:"[::]:36241", 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.Context(nil)} 2021/10/19 21:27:31 [INFO] response: 200 (200 OK) 2021/10/19 21:27:31 [DEBUG] response: --- PASS: TestRequest_tokenAuth (0.00s) === RUN TestRequest_getsData 2021/10/19 21:27:31 [INFO] request: GET /_status/200 2021/10/19 21:27:31 [DEBUG] raw request: &http.Request{Method:"GET", URL:(*url.URL)(0xc4202ad780), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.9.3)"}}, Body:io.ReadCloser(nil), GetBody:(func() (io.ReadCloser, error))(nil), ContentLength:0, TransferEncoding:[]string(nil), Close:false, Host:"[::]:34601", 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.Context(nil)} 2021/10/19 21:27:31 [INFO] response: 200 (200 OK) 2021/10/19 21:27:31 [DEBUG] response: --- PASS: TestRequest_getsData (0.00s) === RUN TestRequest_railsError 2021/10/19 21:27:31 [INFO] request: GET /_rails-error 2021/10/19 21:27:31 [DEBUG] raw request: &http.Request{Method:"GET", URL:(*url.URL)(0xc4202add80), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.9.3)"}}, Body:io.ReadCloser(nil), GetBody:(func() (io.ReadCloser, error))(nil), ContentLength:0, TransferEncoding:[]string(nil), Close:false, Host:"[::]:42635", 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.Context(nil)} 2021/10/19 21:27:31 [INFO] response: 422 (422 Unprocessable Entity) 2021/10/19 21:27:31 [DEBUG] response: {"errors": ["this is an error", "this is another error"]} --- PASS: TestRequest_railsError (0.00s) === RUN TestRequest_notFoundError 2021/10/19 21:27:31 [INFO] request: GET /_status/404 2021/10/19 21:27:31 [DEBUG] raw request: &http.Request{Method:"GET", URL:(*url.URL)(0xc4201be880), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.9.3)"}}, Body:io.ReadCloser(nil), GetBody:(func() (io.ReadCloser, error))(nil), ContentLength:0, TransferEncoding:[]string(nil), Close:false, Host:"[::]:42727", 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.Context(nil)} 2021/10/19 21:27:31 [INFO] response: 404 (404 Not Found) 2021/10/19 21:27:31 [DEBUG] response: --- PASS: TestRequest_notFoundError (0.00s) === RUN TestRequestJSON_decodesData 2021/10/19 21:27:31 [INFO] request: GET /_json 2021/10/19 21:27:31 [DEBUG] raw request: &http.Request{Method:"GET", URL:(*url.URL)(0xc4201bee80), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.9.3)"}}, Body:io.ReadCloser(nil), GetBody:(func() (io.ReadCloser, error))(nil), ContentLength:0, TransferEncoding:[]string(nil), Close:false, Host:"[::]:43487", 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.Context(nil)} 2021/10/19 21:27:31 [INFO] response: 200 (200 OK) 2021/10/19 21:27:31 [DEBUG] response: {"ok": true} --- PASS: TestRequestJSON_decodesData (0.00s) === RUN TestClient_defaultHeaders 2021/10/19 21:27:31 [INFO] request: GET /_test 2021/10/19 21:27:31 [DEBUG] raw request: &http.Request{Method:"GET", URL:(*url.URL)(0xc4201bf480), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.9.3)"}, "Atlas-Test":[]string{"default header test"}}, Body:io.ReadCloser(nil), GetBody:(func() (io.ReadCloser, error))(nil), ContentLength:0, TransferEncoding:[]string(nil), Close:false, Host:"[::]:33945", 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.Context(nil)} 2021/10/19 21:27:31 [INFO] response: 200 (200 OK) 2021/10/19 21:27:31 [DEBUG] response: {"RawPath":"","Host":"[::]:33945","Header":{"Accept-Encoding":["gzip"],"Atlas-Test":["default header test"],"Connection":["close"],"User-Agent":["AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.9.3)"]},"Body":""} --- PASS: TestClient_defaultHeaders (0.00s) === RUN TestTerraformConfigLatest 2021/10/19 21:27:31 [INFO] getting terraform configuration hashicorp/existing 2021/10/19 21:27:31 [INFO] request: GET /api/v1/terraform/configurations/hashicorp/existing/versions/latest 2021/10/19 21:27:31 [DEBUG] raw request: &http.Request{Method:"GET", URL:(*url.URL)(0xc4201bfa80), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.9.3)"}}, Body:io.ReadCloser(nil), GetBody:(func() (io.ReadCloser, error))(nil), ContentLength:0, TransferEncoding:[]string(nil), Close:false, Host:"[::]:43361", 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.Context(nil)} 2021/10/19 21:27:31 [INFO] response: 200 (200 OK) 2021/10/19 21:27:31 [DEBUG] response: { "version": { "version": 5, "metadata": { "foo": "bar" }, "variables": { "foo": "bar" } } } --- PASS: TestTerraformConfigLatest (0.00s) === RUN TestCreateTerraformConfigVersion 2021/10/19 21:27:31 [INFO] creating terraform configuration hashicorp/existing 2021/10/19 21:27:31 [INFO] request: POST /api/v1/terraform/configurations/hashicorp/existing/versions 2021/10/19 21:27:31 [DEBUG] raw request: &http.Request{Method:"POST", URL:(*url.URL)(0xc420318400), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.9.3)"}, "Content-Type":[]string{"application/json"}}, Body:ioutil.nopCloser{Reader:(*bytes.Reader)(0xc420305e90)}, GetBody:(func() (io.ReadCloser, error))(0x670dd0), ContentLength:80, TransferEncoding:[]string(nil), Close:false, Host:"[::]:45799", 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.Context(nil)} 2021/10/19 21:27:31 [INFO] response: 200 (200 OK) 2021/10/19 21:27:31 [DEBUG] response: { "version": 5, "upload_path": "http://[::]:45799/_binstore/" } 2021/10/19 21:27:31 [INFO] putting file: http://[::]:45799/_binstore/ 2021/10/19 21:27:31 [DEBUG] raw request: &http.Request{Method:"PUT", URL:(*url.URL)(0xc420318780), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"User-Agent":[]string{"AtlasGo/1.0 (+https://github.com/hashicorp/atlas-go; go1.9.3)"}}, Body:http.noBody{}, GetBody:(func() (io.ReadCloser, error))(0x670fe0), ContentLength:0, TransferEncoding:[]string(nil), Close:false, Host:"[::]:45799", 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.Context(nil)} 2021/10/19 21:27:31 [INFO] response: 200 (200 OK) 2021/10/19 21:27:31 [DEBUG] response: --- PASS: TestCreateTerraformConfigVersion (0.00s) === RUN TestParseSlug_emptyString --- PASS: TestParseSlug_emptyString (0.00s) === RUN TestParseSlug_noSlashes --- PASS: TestParseSlug_noSlashes (0.00s) === RUN TestParseSlug_multipleSlashes --- PASS: TestParseSlug_multipleSlashes (0.00s) === RUN TestParseSlug_goodString --- PASS: TestParseSlug_goodString (0.00s) PASS ok github.com/hashicorp/atlas-go/v1 0.921s create-stamp debian/debhelper-build-stamp fakeroot debian/rules binary-indep dh binary-indep --buildsystem=golang --with=golang dh_testroot -i -O--buildsystem=golang dh_prep -i -O--buildsystem=golang dh_auto_install -i -O--buildsystem=golang cd obj-x86_64-linux-gnu && mkdir -p /build/golang-github-hashicorp-atlas-go-jIx6t8/golang-github-hashicorp-atlas-go-0.0-git20170808.8261ea0/debian/golang-github-hashicorp-atlas-go-dev/usr/share/gocode/src/github.com/hashicorp/atlas-go cd obj-x86_64-linux-gnu && cp -r -T src/github.com/hashicorp/atlas-go /build/golang-github-hashicorp-atlas-go-jIx6t8/golang-github-hashicorp-atlas-go-0.0-git20170808.8261ea0/debian/golang-github-hashicorp-atlas-go-dev/usr/share/gocode/src/github.com/hashicorp/atlas-go debian/rules override_dh_installdocs make[1]: Entering directory '/build/golang-github-hashicorp-atlas-go-jIx6t8/golang-github-hashicorp-atlas-go-0.0-git20170808.8261ea0' pandoc -f markdown -t plain -o README README.md dh_installdocs README make[1]: Leaving directory '/build/golang-github-hashicorp-atlas-go-jIx6t8/golang-github-hashicorp-atlas-go-0.0-git20170808.8261ea0' dh_installchangelogs -i -O--buildsystem=golang dh_lintian -i -O--buildsystem=golang dh_perl -i -O--buildsystem=golang dh_link -i -O--buildsystem=golang dh_strip_nondeterminism -i -O--buildsystem=golang dh_compress -i -O--buildsystem=golang dh_fixperms -i -O--buildsystem=golang dh_missing -i -O--buildsystem=golang dh_installdeb -i -O--buildsystem=golang dh_golang -i -O--buildsystem=golang dh_gencontrol -i -O--buildsystem=golang dpkg-gencontrol: warning: Depends field of package golang-github-hashicorp-atlas-go-dev: unknown substitution variable ${shlibs:Depends} dh_md5sums -i -O--buildsystem=golang dh_builddeb -i -O--buildsystem=golang dpkg-deb: building package 'golang-github-hashicorp-atlas-go-dev' in '../golang-github-hashicorp-atlas-go-dev_0.0~git20170808.8261ea0-3_all.deb'. dpkg-genbuildinfo --build=all dpkg-genchanges --build=all >../golang-github-hashicorp-atlas-go_0.0~git20170808.8261ea0-3_all.changes dpkg-genchanges: info: binary-only arch-indep upload (source code and arch-specific packages not included) dpkg-source --after-build golang-github-hashicorp-atlas-go-0.0-git20170808.8261ea0 dpkg-buildpackage: info: binary-only upload (no source included) I: running special hook: sync-out /build/golang-github-hashicorp-atlas-go-jIx6t8 /tmp/golang-github-hashicorp-atlas-go-0.0~git20170808.8261ea0-3wocv1n2n I: cleaning package lists and apt cache... W: deleting files in /tmp: atlas-archive775557378 W: deleting files in /tmp: atlas-archive870374382 W: deleting files in /tmp: atlas-archive552155014 W: deleting files in /tmp: atlas-archive868099098 W: deleting files in /tmp: atlas-archive255267664 W: deleting files in /tmp: atlas-archive313042407 W: deleting files in /tmp: atlas-archive350765679 W: deleting files in /tmp: atlas-archive309735947 W: deleting files in /tmp: test111833768 W: deleting files in /tmp: atlas-archive578185845 W: deleting files in /tmp: atlas-archive472240817 I: creating tarball... I: done I: removing tempdir /tmp/mmdebstrap.GztrIADzKa... I: success in 723.7217 seconds md5: golang-github-hashicorp-atlas-go-dev_0.0~git20170808.8261ea0-3_all.deb: OK sha1: golang-github-hashicorp-atlas-go-dev_0.0~git20170808.8261ea0-3_all.deb: OK sha256: golang-github-hashicorp-atlas-go-dev_0.0~git20170808.8261ea0-3_all.deb: OK Checksums: OK