Diff of the two buildlogs: -- --- b1/build.log 2024-05-05 12:07:37.035323089 +0000 +++ b2/build.log 2024-05-05 12:09:09.559384122 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Sat Jun 7 06:28:19 -12 2025 -I: pbuilder-time-stamp: 1749320899 +I: Current time: Mon May 6 02:07:40 +14 2024 +I: pbuilder-time-stamp: 1714910860 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/trixie-reproducible-base.tgz] I: copying local configuration @@ -36,52 +36,84 @@ dpkg-source: info: applying 014-switch-webauthn-library.patch I: Not using root during the build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/4158943/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/2781349/tmp/hooks/D01_modify_environment starting +debug: Running on codethink02-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 May 5 12:07 /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/2781349/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/2781349/tmp/hooks/D02_print_environment starting I: set - BUILDDIR='/build/reproducible-path' - BUILDUSERGECOS='first user,first room,first work-phone,first home-phone,first other' - BUILDUSERNAME='pbuilder1' - BUILD_ARCH='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]="21" [3]="1" [4]="release" [5]="aarch64-unknown-linux-gnu") + BASH_VERSION='5.2.21(1)-release' + BUILDDIR=/build/reproducible-path + 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=12 ' - DISTRIBUTION='trixie' - HOME='/root' - HOST_ARCH='arm64' + DIRSTACK=() + DISTRIBUTION=trixie + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=aarch64 + HOST_ARCH=arm64 IFS=' ' - INVOCATION_ID='acc76bce0e9f4b098e88d49443a32dd6' - 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='4158943' - PS1='# ' - PS2='> ' + INVOCATION_ID=6f8a74b404bd4cf4be426ae03d361f9a + 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=2781349 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.ecgW8d04/pbuilderrc_c8nS --distribution trixie --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/trixie-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.ecgW8d04/b1 --logfile b1/build.log golang-github-canonical-candid_1.12.3-1.dsc' - SUDO_GID='109' - SUDO_UID='104' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://192.168.101.4: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.ecgW8d04/pbuilderrc_69mK --distribution trixie --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/trixie-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.ecgW8d04/b2 --logfile b2/build.log golang-github-canonical-candid_1.12.3-1.dsc' + SUDO_GID=109 + SUDO_UID=104 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://192.168.101.4:3128 I: uname -a - Linux codethink03-arm64 6.1.0-20-cloud-arm64 #1 SMP Debian 6.1.85-1 (2024-04-11) aarch64 GNU/Linux + Linux i-capture-the-hostname 6.1.0-20-cloud-arm64 #1 SMP Debian 6.1.85-1 (2024-04-11) aarch64 GNU/Linux I: ls -l /bin - lrwxrwxrwx 1 root root 7 Jun 5 14:47 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/4158943/tmp/hooks/D02_print_environment finished + lrwxrwxrwx 1 root root 7 May 3 08:22 /bin -> usr/bin +I: user script /srv/workspace/pbuilder/2781349/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -382,7 +414,7 @@ Get: 177 http://deb.debian.org/debian trixie/main arm64 golang-github-mwitkow-go-conntrack-dev all 0.0~git20190716.2f06839-3 [14.6 kB] Get: 178 http://deb.debian.org/debian trixie/main arm64 golang-gopkg-goose.v1-dev all 0.0~git20170406.3228e4f-4 [97.8 kB] Get: 179 http://deb.debian.org/debian trixie/main arm64 golang-gopkg-natefinch-lumberjack.v2-dev all 2.1-2 [13.1 kB] -Fetched 104 MB in 2s (55.9 MB/s) +Fetched 104 MB in 1s (99.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 ... 19736 files and directories currently installed.) @@ -1113,7 +1145,11 @@ Building tag database... -> Finished parsing the build-deps I: Building the package -I: Running cd /build/reproducible-path/golang-github-canonical-candid-1.12.3/ && 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-canonical-candid_1.12.3-1_source.changes +I: user script /srv/workspace/pbuilder/2781349/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for trixie +I: user script /srv/workspace/pbuilder/2781349/tmp/hooks/A99_set_merged_usr finished +hostname: Name or service not known +I: Running cd /build/reproducible-path/golang-github-canonical-candid-1.12.3/ && 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-canonical-candid_1.12.3-1_source.changes dpkg-buildpackage: info: source package golang-github-canonical-candid dpkg-buildpackage: info: source version 1.12.3-1 dpkg-buildpackage: info: source distribution unstable @@ -1139,26 +1175,26 @@ === RUN TestServer/TestNewServerWithVersions http.go:99: JSON call, url "/debug/info" === RUN TestServer/TestVersions ---- PASS: TestServer (0.02s) - --- PASS: TestServer/TestNewServerRemovesAgentIDP (0.01s) +--- PASS: TestServer (0.01s) + --- PASS: TestServer/TestNewServerRemovesAgentIDP (0.00s) --- PASS: TestServer/TestNewServerWithNoVersions (0.00s) --- PASS: TestServer/TestNewServerWithUnregisteredVersion (0.00s) - --- PASS: TestServer/TestNewServerWithVersions (0.01s) + --- PASS: TestServer/TestNewServerWithVersions (0.00s) --- PASS: TestServer/TestVersions (0.00s) PASS -ok github.com/canonical/candid 0.092s +ok github.com/canonical/candid 0.027s === RUN TestIdentityClient ---- PASS: TestIdentityClient (0.03s) +--- PASS: TestIdentityClient (0.02s) === RUN TestIdentityClientWithDomainStrip ---- PASS: TestIdentityClientWithDomainStrip (0.02s) +--- PASS: TestIdentityClientWithDomainStrip (0.01s) === RUN TestIdentityClientWithDomainStripNoDomains ---- PASS: TestIdentityClientWithDomainStripNoDomains (0.03s) +--- PASS: TestIdentityClientWithDomainStripNoDomains (0.02s) === RUN TestPermChecker ---- PASS: TestPermChecker (0.02s) +--- PASS: TestPermChecker (0.01s) === RUN TestGroupCache ---- PASS: TestGroupCache (0.02s) +--- PASS: TestGroupCache (0.01s) PASS -ok github.com/canonical/candid/candidclient 0.204s +ok github.com/canonical/candid/candidclient 0.108s === RUN TestRedirectURL --- PASS: TestRedirectURL (0.00s) === RUN TestInteractor @@ -1166,7 +1202,7 @@ === RUN TestParseLoginResult --- PASS: TestParseLoginResult (0.00s) PASS -ok github.com/canonical/candid/candidclient/redirect 0.052s +ok github.com/canonical/candid/candidclient/redirect 0.035s === RUN TestClient === RUN TestClient/TestAcquireDischarge === RUN TestClient/TestAcquireDischargeError @@ -1196,7 +1232,7 @@ === RUN TestUnmarshalUSSOMacaroonBadBinary --- PASS: TestUnmarshalUSSOMacaroonBadBinary (0.00s) PASS -ok github.com/canonical/candid/candidclient/ussodischarge 0.128s +ok github.com/canonical/candid/candidclient/ussodischarge 0.049s === RUN TestPutGetToken --- PASS: TestPutGetToken (0.00s) === RUN TestReadInvalidToken @@ -1222,18 +1258,18 @@ === RUN TestAuthenticatedRequestError --- PASS: TestAuthenticatedRequestError (0.00s) PASS -ok github.com/canonical/candid/candidclient/ussologin 0.089s +ok github.com/canonical/candid/candidclient/ussologin 0.047s ? github.com/canonical/candid/cmd/candid [no test files] === RUN TestDischarge ---- PASS: TestDischarge (0.03s) +--- PASS: TestDischarge (0.02s) === RUN TestDischargeDefaultUser --- PASS: TestDischargeDefaultUser (0.01s) === RUN TestGroups ---- PASS: TestGroups (0.02s) +--- PASS: TestGroups (0.01s) === RUN TestAddUserWithExistingGroups --- PASS: TestAddUserWithExistingGroups (0.02s) PASS -ok github.com/canonical/candid/candidtest 0.189s +ok github.com/canonical/candid/candidtest 0.080s ? github.com/canonical/candid/cmd/candidsrv [no test files] ? github.com/canonical/candid/cmd/migrate-db [no test files] ? github.com/canonical/candid/cmd/migrate-db/internal/mongodoc [no test files] @@ -1249,17 +1285,17 @@ === RUN TestACL/TestACLShowInvalid === RUN TestACL/TestACLShowNoACL === RUN TestACL/TestACLShowTwoACLs ---- PASS: TestACL (0.18s) - --- PASS: TestACL/TestACLGrant (0.02s) - --- PASS: TestACL/TestACLGrantInvalid (0.01s) - --- PASS: TestACL/TestACLGrantNoArguments (0.01s) - --- PASS: TestACL/TestACLRevoke (0.10s) +--- PASS: TestACL (0.06s) + --- PASS: TestACL/TestACLGrant (0.01s) + --- PASS: TestACL/TestACLGrantInvalid (0.00s) + --- PASS: TestACL/TestACLGrantNoArguments (0.00s) + --- PASS: TestACL/TestACLRevoke (0.01s) --- PASS: TestACL/TestACLRevokeInvalid (0.01s) --- PASS: TestACL/TestACLRevokeNoArguments (0.00s) --- PASS: TestACL/TestACLShow (0.00s) --- PASS: TestACL/TestACLShowInvalid (0.00s) - --- PASS: TestACL/TestACLShowNoACL (0.01s) - --- PASS: TestACL/TestACLShowTwoACLs (0.01s) + --- PASS: TestACL/TestACLShowNoACL (0.00s) + --- PASS: TestACL/TestACLShowTwoACLs (0.00s) === RUN TestAddGroup === RUN TestAddGroup/TestAddGroup === RUN TestAddGroup/TestAddGroupForEmail @@ -1267,19 +1303,19 @@ === RUN TestAddGroup/TestAddGroupForEmailNotFound === RUN TestAddGroup/TestAddGroupNoUser === RUN TestAddGroup/TestAddGroupUserAndEmail ---- PASS: TestAddGroup (0.04s) - --- PASS: TestAddGroup/TestAddGroup (0.01s) - --- PASS: TestAddGroup/TestAddGroupForEmail (0.01s) +--- PASS: TestAddGroup (0.03s) + --- PASS: TestAddGroup/TestAddGroup (0.00s) + --- PASS: TestAddGroup/TestAddGroupForEmail (0.00s) --- PASS: TestAddGroup/TestAddGroupForEmailMultipleUsers (0.00s) --- PASS: TestAddGroup/TestAddGroupForEmailNotFound (0.01s) --- PASS: TestAddGroup/TestAddGroupNoUser (0.00s) --- PASS: TestAddGroup/TestAddGroupUserAndEmail (0.00s) === RUN TestClearMFACredentials === RUN TestClearMFACredentials/TestClearMFACredentials ---- PASS: TestClearMFACredentials (0.02s) - --- PASS: TestClearMFACredentials/TestClearMFACredentials (0.02s) +--- PASS: TestClearMFACredentials (0.00s) + --- PASS: TestClearMFACredentials/TestClearMFACredentials (0.00s) === RUN TestLoadCACerts ---- PASS: TestLoadCACerts (0.02s) +--- PASS: TestLoadCACerts (0.01s) === RUN TestCreateAgent === RUN TestCreateAgent/TestCreateAgentWithAdminFlag === RUN TestCreateAgent/TestCreateAgentWithExistingAgentsFile @@ -1290,13 +1326,13 @@ create-agent_test.go:53: test 0: agent file and agent key specified together create-agent_test.go:53: test 1: empty public key create-agent_test.go:53: test 2: invalid public key ---- PASS: TestCreateAgent (0.05s) +--- PASS: TestCreateAgent (0.03s) --- PASS: TestCreateAgent/TestCreateAgentWithAdminFlag (0.00s) --- PASS: TestCreateAgent/TestCreateAgentWithExistingAgentsFile (0.01s) --- PASS: TestCreateAgent/TestCreateAgentWithGeneratedKeyAndAgentFileNotSpecified (0.01s) - --- PASS: TestCreateAgent/TestCreateAgentWithNonExistentAgentsFileSpecified (0.02s) + --- PASS: TestCreateAgent/TestCreateAgentWithNonExistentAgentsFileSpecified (0.01s) --- PASS: TestCreateAgent/TestCreateAgentWithParentFlag (0.01s) - --- PASS: TestCreateAgent/TestUsage (0.01s) + --- PASS: TestCreateAgent/TestUsage (0.00s) === RUN TestFind === RUN TestFind/TestFindEmail === RUN TestFind/TestFindEmailNotFound @@ -1305,23 +1341,23 @@ === RUN TestFind/TestFindNoParameters === RUN TestFind/TestFindWithEmail === RUN TestFind/TestFindWithEmailAndGravatar ---- PASS: TestFind (0.07s) - --- PASS: TestFind/TestFindEmail (0.00s) - --- PASS: TestFind/TestFindEmailNotFound (0.02s) - --- PASS: TestFind/TestFindLastDischargeTime (0.00s) +--- PASS: TestFind (0.04s) + --- PASS: TestFind/TestFindEmail (0.01s) + --- PASS: TestFind/TestFindEmailNotFound (0.00s) + --- PASS: TestFind/TestFindLastDischargeTime (0.01s) --- PASS: TestFind/TestFindLastLoginTime (0.01s) - --- PASS: TestFind/TestFindNoParameters (0.00s) - --- PASS: TestFind/TestFindWithEmail (0.02s) + --- PASS: TestFind/TestFindNoParameters (0.01s) + --- PASS: TestFind/TestFindWithEmail (0.01s) --- PASS: TestFind/TestFindWithEmailAndGravatar (0.01s) === RUN TestRemoveGroup === RUN TestRemoveGroup/TestRemoveGroup === RUN TestRemoveGroup/TestRemoveGroupForEmail === RUN TestRemoveGroup/TestRemoveGroupForEmailNotFound === RUN TestRemoveGroup/TestRemoveGroupNoUser ---- PASS: TestRemoveGroup (0.05s) +--- PASS: TestRemoveGroup (0.02s) --- PASS: TestRemoveGroup/TestRemoveGroup (0.01s) - --- PASS: TestRemoveGroup/TestRemoveGroupForEmail (0.01s) - --- PASS: TestRemoveGroup/TestRemoveGroupForEmailNotFound (0.02s) + --- PASS: TestRemoveGroup/TestRemoveGroupForEmail (0.00s) + --- PASS: TestRemoveGroup/TestRemoveGroupForEmailNotFound (0.00s) --- PASS: TestRemoveGroup/TestRemoveGroupNoUser (0.00s) === RUN TestShow === RUN TestShow/TestShowAgentUser @@ -1333,18 +1369,18 @@ === RUN TestShow/TestShowUserJSON === RUN TestShow/TestShowUserWithAgentEnv === RUN TestShow/TestShowZeroValues ---- PASS: TestShow (0.11s) +--- PASS: TestShow (0.07s) --- PASS: TestShow/TestShowAgentUser (0.01s) - --- PASS: TestShow/TestShowEmail (0.02s) - --- PASS: TestShow/TestShowEmailNotFound (0.02s) + --- PASS: TestShow/TestShowEmail (0.01s) + --- PASS: TestShow/TestShowEmailNotFound (0.00s) --- PASS: TestShow/TestShowNoParameters (0.00s) --- PASS: TestShow/TestShowUser (0.01s) - --- PASS: TestShow/TestShowUserError (0.01s) - --- PASS: TestShow/TestShowUserJSON (0.03s) + --- PASS: TestShow/TestShowUserError (0.02s) + --- PASS: TestShow/TestShowUserJSON (0.01s) --- PASS: TestShow/TestShowUserWithAgentEnv (0.00s) - --- PASS: TestShow/TestShowZeroValues (0.00s) + --- PASS: TestShow/TestShowZeroValues (0.01s) PASS -ok github.com/canonical/candid/cmd/candid/internal/admincmd 0.640s +ok github.com/canonical/candid/cmd/candid/internal/admincmd 0.331s === RUN TestSplitStoreSpecification migrate_test.go:51: 0. postgres:host=/var/run/postgresql migrate_test.go:51: 1. legacy: @@ -1363,10 +1399,10 @@ === RUN TestCopySrcError --- PASS: TestCopySrcError (0.00s) === RUN TestCopyDstError -2025/06/07 18:30:08 error checking destination store: test error +2024/05/05 12:08:52 error checking destination store: test error --- PASS: TestCopyDstError (0.00s) PASS -ok github.com/canonical/candid/cmd/migrate-db/internal 0.100s +ok github.com/canonical/candid/cmd/migrate-db/internal 0.042s === RUN TestRead --- PASS: TestRead (0.00s) === RUN TestReadErrorNotFound @@ -1378,19 +1414,19 @@ === RUN TestUnrecognisedIDP --- PASS: TestUnrecognisedIDP (0.00s) PASS -ok github.com/canonical/candid/config 0.078s +ok github.com/canonical/candid/config 0.061s === RUN TestConfig === RUN TestConfig/good_config === RUN TestConfig/no_client-id === RUN TestConfig/no_client-secret === RUN TestConfig/no_issuer ---- PASS: TestConfig (0.01s) +--- PASS: TestConfig (0.00s) --- PASS: TestConfig/good_config (0.00s) --- PASS: TestConfig/no_client-id (0.00s) --- PASS: TestConfig/no_client-secret (0.00s) --- PASS: TestConfig/no_issuer (0.00s) PASS -ok github.com/canonical/candid/idp/adfs 0.075s +ok github.com/canonical/candid/idp/adfs 0.056s === RUN TestConfig --- PASS: TestConfig (0.00s) === RUN TestName @@ -1408,10 +1444,7 @@ === RUN TestInitProducesError --- PASS: TestInitProducesError (0.00s) PASS -ok github.com/canonical/candid/idp/agent 0.047s -? github.com/canonical/candid/idp/idptest [no test files] -? github.com/canonical/candid/idp/idputil [no test files] -? github.com/canonical/candid/idp/idputil/msgraph [no test files] +ok github.com/canonical/candid/idp/agent 0.038s === RUN TestConfig === RUN TestConfig/good_config === RUN TestConfig/no_client-id @@ -1421,7 +1454,10 @@ --- PASS: TestConfig/no_client-id (0.00s) --- PASS: TestConfig/no_client-secret (0.00s) PASS -ok github.com/canonical/candid/idp/azure 0.090s +ok github.com/canonical/candid/idp/azure 0.048s +? github.com/canonical/candid/idp/idptest [no test files] +? github.com/canonical/candid/idp/idputil [no test files] +? github.com/canonical/candid/idp/idputil/msgraph [no test files] === RUN TestConfig === RUN TestConfig/good_config === RUN TestConfig/no_client-id @@ -1431,7 +1467,7 @@ --- PASS: TestConfig/no_client-id (0.00s) --- PASS: TestConfig/no_client-secret (0.00s) PASS -ok github.com/canonical/candid/idp/google 0.080s +ok github.com/canonical/candid/idp/google 0.051s === RUN TestRoundTrip --- PASS: TestRoundTrip (0.00s) === RUN TestDecodeBadBase64 @@ -1455,7 +1491,7 @@ === RUN TestCookieValidationError --- PASS: TestCookieValidationError (0.00s) PASS -ok github.com/canonical/candid/idp/idputil/secret 0.070s +ok github.com/canonical/candid/idp/idputil/secret 0.047s === RUN TestConfig === RUN TestConfig/good_config === RUN TestConfig/another_good_config @@ -1467,32 +1503,32 @@ --- PASS: TestConfig/no_client-id (0.00s) --- PASS: TestConfig/no_keycloak-realm (0.00s) PASS -ok github.com/canonical/candid/idp/keycloak 0.085s +ok github.com/canonical/candid/idp/keycloak 0.034s ? github.com/canonical/candid/idp/keystone/internal/mockkeystone [no test files] === RUN TestDischarge === RUN TestDischarge/TestFormDischarge logging.go:37: DEBUG candid.internal.identity API error response (bakery): 401 (Unauthorized) macaroon discharge required: authentication required - logging.go:37: DEBUG candid.internal.discharger authorization for &auth.Identity{Identity:store.Identity{ID:"1", ProviderID:"form:abc@openstack", Username:"testuser@openstack", Name:"", Email:"", Groups:[]string(nil), PublicKeys:[]bakery.PublicKey(nil), LastLogin:time.Date(2025, time.June, 7, 18, 30, 11, 127188217, time.Local), LastDischarge:time.Date(1, time.January, 1, 0, 0, 0, 0, time.UTC), ProviderInfo:map[string][]string{"groups":[]string{"abc_project"}}, ExtraInfo:map[string][]string{}, Owner:""}, authorizer:(*auth.Authorizer)(0x4000032e60), resolvedGroups:[]string(nil)} succeeded + logging.go:37: DEBUG candid.internal.discharger authorization for &auth.Identity{Identity:store.Identity{ID:"1", ProviderID:"form:abc@openstack", Username:"testuser@openstack", Name:"", Email:"", Groups:[]string(nil), PublicKeys:[]bakery.PublicKey(nil), LastLogin:time.Date(2024, time.May, 5, 12, 8, 54, 369425247, time.Local), LastDischarge:time.Date(1, time.January, 1, 0, 0, 0, 0, time.UTC), ProviderInfo:map[string][]string{"groups":[]string{"abc_project"}}, ExtraInfo:map[string][]string{}, Owner:""}, authorizer:(*auth.Authorizer)(0x40003f06e0), resolvedGroups:[]string(nil)} succeeded logging.go:37: DEBUG candid.internal.identity Closing Server === RUN TestDischarge/TestInteractiveDischarge logging.go:37: DEBUG candid.internal.identity API error response (bakery): 401 (Unauthorized) macaroon discharge required: authentication required - logging.go:37: DEBUG candid.internal.discharger opForRequest &discharger.loginRequest{Route:httprequest.Route{}, Domain:"", DischargeID:"e94da62ee9ae4e624e91d456ed6e841e29810f09397b0e51129132ac16c3a264ID"} -> bakery.Op{Entity:"global", Action:"login"} - logging.go:37: DEBUG candid.internal.discharger opForRequest &discharger.redirectLoginRequest{Route:httprequest.Route{}, Domain:"", ReturnTo:"http://127.0.0.1:44469/login-complete", State:"S3CXrF3kChMZv5O5LCLt-XUMdMeqQ6UejgV3dABGDno"} -> bakery.Op{Entity:"global", Action:"login"} - logging.go:37: DEBUG candid.internal.discharger opForRequest &discharger.loginCompleteRequest{Route:httprequest.Route{}, State:"S3CXrF3kChMZv5O5LCLt-XUMdMeqQ6UejgV3dABGDno", Code:"b0MeUJX2CUgQgZ-1uYye8-BrdZuQRdsFfGhWYCVlgeY", ErrorCode:"", Error:""} -> bakery.Op{Entity:"global", Action:"login"} + logging.go:37: DEBUG candid.internal.discharger opForRequest &discharger.loginRequest{Route:httprequest.Route{}, Domain:"", DischargeID:"1d87f0a31cc5603ebf430e881d41fb0265a41fc0c945181aa90c652d5f5cddb4ID"} -> bakery.Op{Entity:"global", Action:"login"} + logging.go:37: DEBUG candid.internal.discharger opForRequest &discharger.redirectLoginRequest{Route:httprequest.Route{}, Domain:"", ReturnTo:"http://127.0.0.1:37511/login-complete", State:"jNbeL2z8sPooNMcq51mzaaKeIFHbwXzd_CX1MhA-6X8"} -> bakery.Op{Entity:"global", Action:"login"} + logging.go:37: DEBUG candid.internal.discharger opForRequest &discharger.loginCompleteRequest{Route:httprequest.Route{}, State:"jNbeL2z8sPooNMcq51mzaaKeIFHbwXzd_CX1MhA-6X8", Code:"Lyr81f99a3y2icP976xTbHMSP_l3CddZw9H8Xly6Fb0", ErrorCode:"", Error:""} -> bakery.Op{Entity:"global", Action:"login"} logging.go:37: WARNING candid.internal.discharger MFA authenticator not specified - logging.go:37: DEBUG candid.internal.discharger opForRequest &discharger.waitTokenRequest{Route:httprequest.Route{}, DischargeID:"e94da62ee9ae4e624e91d456ed6e841e29810f09397b0e51129132ac16c3a264ID"} -> bakery.Op{Entity:"global", Action:"login"} - logging.go:37: INFO candid.meeting Wait "e94da62ee9ae4e624e91d456ed6e841e29810f09397b0e51129132ac16c3a264ID" - logging.go:37: INFO candid.meeting localWait "e94da62ee9ae4e624e91d456ed6e841e29810f09397b0e51129132ac16c3a264ID" + logging.go:37: DEBUG candid.internal.discharger opForRequest &discharger.waitTokenRequest{Route:httprequest.Route{}, DischargeID:"1d87f0a31cc5603ebf430e881d41fb0265a41fc0c945181aa90c652d5f5cddb4ID"} -> bakery.Op{Entity:"global", Action:"login"} + logging.go:37: INFO candid.meeting Wait "1d87f0a31cc5603ebf430e881d41fb0265a41fc0c945181aa90c652d5f5cddb4ID" + logging.go:37: INFO candid.meeting localWait "1d87f0a31cc5603ebf430e881d41fb0265a41fc0c945181aa90c652d5f5cddb4ID" logging.go:37: INFO candid.meeting timeout 1m0s - logging.go:37: DEBUG candid.internal.discharger authorization for &auth.Identity{Identity:store.Identity{ID:"1", ProviderID:"openstack:abc@openstack", Username:"testuser@openstack", Name:"", Email:"", Groups:[]string(nil), PublicKeys:[]bakery.PublicKey(nil), LastLogin:time.Date(2025, time.June, 7, 18, 30, 11, 158861937, time.Local), LastDischarge:time.Date(1, time.January, 1, 0, 0, 0, 0, time.UTC), ProviderInfo:map[string][]string{"groups":[]string{"abc_project"}}, ExtraInfo:map[string][]string{}, Owner:""}, authorizer:(*auth.Authorizer)(0x40002cea50), resolvedGroups:[]string(nil)} succeeded + logging.go:37: DEBUG candid.internal.discharger authorization for &auth.Identity{Identity:store.Identity{ID:"1", ProviderID:"openstack:abc@openstack", Username:"testuser@openstack", Name:"", Email:"", Groups:[]string(nil), PublicKeys:[]bakery.PublicKey(nil), LastLogin:time.Date(2024, time.May, 5, 12, 8, 54, 419208934, time.Local), LastDischarge:time.Date(1, time.January, 1, 0, 0, 0, 0, time.UTC), ProviderInfo:map[string][]string{"groups":[]string{"abc_project"}}, ExtraInfo:map[string][]string{}, Owner:""}, authorizer:(*auth.Authorizer)(0x40004a72c0), resolvedGroups:[]string(nil)} succeeded logging.go:37: DEBUG candid.internal.identity Closing Server === RUN TestDischarge/TestTokenDischarge logging.go:37: DEBUG candid.internal.identity API error response (bakery): 401 (Unauthorized) macaroon discharge required: authentication required - logging.go:37: DEBUG candid.internal.discharger authorization for &auth.Identity{Identity:store.Identity{ID:"1", ProviderID:"token:abc@openstack", Username:"testuser@openstack", Name:"", Email:"", Groups:[]string(nil), PublicKeys:[]bakery.PublicKey(nil), LastLogin:time.Date(2025, time.June, 7, 18, 30, 11, 174616097, time.Local), LastDischarge:time.Date(1, time.January, 1, 0, 0, 0, 0, time.UTC), ProviderInfo:map[string][]string{"groups":[]string{"abc_project"}}, ExtraInfo:map[string][]string{}, Owner:""}, authorizer:(*auth.Authorizer)(0x40003235e0), resolvedGroups:[]string(nil)} succeeded + logging.go:37: DEBUG candid.internal.discharger authorization for &auth.Identity{Identity:store.Identity{ID:"1", ProviderID:"token:abc@openstack", Username:"testuser@openstack", Name:"", Email:"", Groups:[]string(nil), PublicKeys:[]bakery.PublicKey(nil), LastLogin:time.Date(2024, time.May, 5, 12, 8, 54, 435849870, time.Local), LastDischarge:time.Date(1, time.January, 1, 0, 0, 0, 0, time.UTC), ProviderInfo:map[string][]string{"groups":[]string{"abc_project"}}, ExtraInfo:map[string][]string{}, Owner:""}, authorizer:(*auth.Authorizer)(0x4000180eb0), resolvedGroups:[]string(nil)} succeeded logging.go:37: DEBUG candid.internal.identity Closing Server ---- PASS: TestDischarge (0.07s) - --- PASS: TestDischarge/TestFormDischarge (0.02s) - --- PASS: TestDischarge/TestInteractiveDischarge (0.03s) +--- PASS: TestDischarge (0.08s) + --- PASS: TestDischarge/TestFormDischarge (0.01s) + --- PASS: TestDischarge/TestInteractiveDischarge (0.05s) --- PASS: TestDischarge/TestTokenDischarge (0.02s) === RUN TestKeystone === RUN TestKeystone/TestAbsoluteIconURL @@ -1512,16 +1548,16 @@ === RUN TestKeystone/TestKeystoneIdentityProviderURL === RUN TestKeystone/TestKeystoneIdentityProviderUseNameForDescription === RUN TestKeystone/TestRelativeIconURL ---- PASS: TestKeystone (0.06s) +--- PASS: TestKeystone (0.04s) --- PASS: TestKeystone/TestAbsoluteIconURL (0.00s) --- PASS: TestKeystone/TestIconURL (0.00s) --- PASS: TestKeystone/TestKeystoneIdentityProviderDescription (0.00s) - --- PASS: TestKeystone/TestKeystoneIdentityProviderHandleExistingUser (0.02s) + --- PASS: TestKeystone/TestKeystoneIdentityProviderHandleExistingUser (0.00s) --- PASS: TestKeystone/TestKeystoneIdentityProviderHandlePostBadPassword (0.00s) --- PASS: TestKeystone/TestKeystoneIdentityProviderHandlePostNoTenants (0.01s) - --- PASS: TestKeystone/TestKeystoneIdentityProviderHandleSuccess (0.00s) + --- PASS: TestKeystone/TestKeystoneIdentityProviderHandleSuccess (0.01s) --- PASS: TestKeystone/TestKeystoneIdentityProviderHidden (0.00s) - --- PASS: TestKeystone/TestKeystoneIdentityProviderInteractive (0.01s) + --- PASS: TestKeystone/TestKeystoneIdentityProviderInteractive (0.00s) --- PASS: TestKeystone/TestKeystoneIdentityProviderName (0.00s) --- PASS: TestKeystone/TestKeystoneIdentityProviderRegisterConfig (0.00s) --- PASS: TestKeystone/TestKeystoneIdentityProviderRegisterConfig/good_config (0.00s) @@ -1537,9 +1573,9 @@ === RUN TestToken/TestKeystoneTokenIdentityProviderHidden === RUN TestToken/TestKeystoneTokenIdentityProviderInteractive === RUN TestToken/TestRegisterConfig ---- PASS: TestToken (0.02s) +--- PASS: TestToken (0.01s) --- PASS: TestToken/TestKeystoneTokenIdentityProviderHandle (0.00s) - --- PASS: TestToken/TestKeystoneTokenIdentityProviderHandleBadRequest (0.01s) + --- PASS: TestToken/TestKeystoneTokenIdentityProviderHandleBadRequest (0.00s) --- PASS: TestToken/TestKeystoneTokenIdentityProviderHandleBadToken (0.00s) --- PASS: TestToken/TestKeystoneTokenIdentityProviderHidden (0.00s) --- PASS: TestToken/TestKeystoneTokenIdentityProviderInteractive (0.00s) @@ -1551,13 +1587,13 @@ === RUN TestTokenV3/TestKeystoneV3TokenIdentityProviderHidden === RUN TestTokenV3/TestKeystoneV3TokenIdentityProviderInteractive === RUN TestTokenV3/TestRegisterConfig ---- PASS: TestTokenV3 (0.03s) - --- PASS: TestTokenV3/TestKeystoneV3TokenIdentityProviderHandle (0.01s) +--- PASS: TestTokenV3 (0.01s) + --- PASS: TestTokenV3/TestKeystoneV3TokenIdentityProviderHandle (0.00s) --- PASS: TestTokenV3/TestKeystoneV3TokenIdentityProviderHandleBadRequest (0.00s) --- PASS: TestTokenV3/TestKeystoneV3TokenIdentityProviderHandleBadToken (0.00s) --- PASS: TestTokenV3/TestKeystoneV3TokenIdentityProviderHidden (0.00s) --- PASS: TestTokenV3/TestKeystoneV3TokenIdentityProviderInteractive (0.00s) - --- PASS: TestTokenV3/TestRegisterConfig (0.01s) + --- PASS: TestTokenV3/TestRegisterConfig (0.00s) === RUN TestUserPass === RUN TestUserPass/TestKeystoneUserpassIdentityProviderHandle === RUN TestUserPass/TestKeystoneUserpassIdentityProviderHandleBadRequest @@ -1566,7 +1602,7 @@ === RUN TestUserPass/TestKeystoneUserpassIdentityProviderHidden === RUN TestUserPass/TestKeystoneUserpassIdentityProviderInteractive === RUN TestUserPass/TestRegisterConfig ---- PASS: TestUserPass (0.00s) +--- PASS: TestUserPass (0.01s) --- PASS: TestUserPass/TestKeystoneUserpassIdentityProviderHandle (0.00s) --- PASS: TestUserPass/TestKeystoneUserpassIdentityProviderHandleBadRequest (0.00s) --- PASS: TestUserPass/TestKeystoneUserpassIdentityProviderHandleNoUsername (0.00s) @@ -1575,7 +1611,7 @@ --- PASS: TestUserPass/TestKeystoneUserpassIdentityProviderInteractive (0.00s) --- PASS: TestUserPass/TestRegisterConfig (0.00s) PASS -ok github.com/canonical/candid/idp/keystone 0.301s +ok github.com/canonical/candid/idp/keystone 0.200s === RUN TestUnmarshalError === RUN TestUnmarshalError/error === RUN TestUnmarshalError/bad_json @@ -1591,9 +1627,9 @@ --- PASS: TestTimeUnmarshalJSON/test1 (0.00s) --- PASS: TestTimeUnmarshalJSON/test2 (0.00s) PASS -ok github.com/canonical/candid/idp/keystone/internal/keystone 0.070s +ok github.com/canonical/candid/idp/keystone/internal/keystone 0.027s === RUN TestInteractiveDischarge -2025-06-07 18:30:12 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +2024-05-05 12:08:54 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified --- PASS: TestInteractiveDischarge (0.01s) === RUN TestLDAP === RUN TestLDAP/TestAbsoluteIconURL @@ -1624,23 +1660,23 @@ === RUN TestLDAP/TestNewIdentityProvider/invalid_group_query_filter_expression === RUN TestLDAP/TestRelativeIconURL === RUN TestLDAP/TestURL ---- PASS: TestLDAP (0.08s) +--- PASS: TestLDAP (0.03s) --- PASS: TestLDAP/TestAbsoluteIconURL (0.00s) --- PASS: TestLDAP/TestDescription (0.00s) - --- PASS: TestLDAP/TestDomain (0.01s) + --- PASS: TestLDAP/TestDomain (0.00s) --- PASS: TestLDAP/TestHandle (0.00s) --- PASS: TestLDAP/TestHandleCustomGroupFilter (0.00s) --- PASS: TestLDAP/TestHandleCustomUserFilter (0.00s) - --- PASS: TestLDAP/TestHandleFailedLogin (0.01s) + --- PASS: TestLDAP/TestHandleFailedLogin (0.00s) --- PASS: TestLDAP/TestHandleIncorrectUsername (0.00s) --- PASS: TestLDAP/TestHandleUserDetails (0.00s) - --- PASS: TestLDAP/TestHandleUserDetailsCustomIDAttr (0.01s) - --- PASS: TestLDAP/TestHandleUserFilterNoMatch (0.04s) + --- PASS: TestLDAP/TestHandleUserDetailsCustomIDAttr (0.00s) + --- PASS: TestLDAP/TestHandleUserFilterNoMatch (0.01s) --- PASS: TestLDAP/TestHandleWithGroups (0.00s) --- PASS: TestLDAP/TestHidden (0.00s) --- PASS: TestLDAP/TestIconURL (0.00s) --- PASS: TestLDAP/TestInteractive (0.00s) - --- PASS: TestLDAP/TestName (0.01s) + --- PASS: TestLDAP/TestName (0.00s) --- PASS: TestLDAP/TestNewIdentityProvider (0.00s) --- PASS: TestLDAP/TestNewIdentityProvider/good_params (0.00s) --- PASS: TestLDAP/TestNewIdentityProvider/unparsable_url (0.00s) @@ -1654,9 +1690,7 @@ --- PASS: TestLDAP/TestRelativeIconURL (0.00s) --- PASS: TestLDAP/TestURL (0.00s) PASS -ok github.com/canonical/candid/idp/ldap 0.169s -? github.com/canonical/candid/idp/usso/internal/mockusso [no test files] -? github.com/canonical/candid/idp/usso/ussodischarge/cmd/login [no test files] +ok github.com/canonical/candid/idp/ldap 0.088s === RUN TestConfig === RUN TestConfig/OK === RUN TestConfig/NoName @@ -1682,7 +1716,7 @@ === RUN TestIsForEmailAddr --- PASS: TestIsForEmailAddr (0.00s) === RUN TestURL ---- PASS: TestURL (0.02s) +--- PASS: TestURL (0.01s) === RUN TestIconURL --- PASS: TestIconURL (0.00s) === RUN TestHandleLogin @@ -1693,24 +1727,24 @@ === RUN TestHandleCallback/ExistingUserNoClaims === RUN TestHandleCallback/ExistingUserUpdateClaims === RUN TestHandleCallback/PreferredUsernameTaken ---- PASS: TestHandleCallback (0.20s) - --- PASS: TestHandleCallback/NewUserWithUsername (0.01s) - --- PASS: TestHandleCallback/NewUserNoUsername (0.09s) - --- PASS: TestHandleCallback/ExistingUserNoClaims (0.04s) - --- PASS: TestHandleCallback/ExistingUserUpdateClaims (0.03s) - --- PASS: TestHandleCallback/PreferredUsernameTaken (0.03s) +--- PASS: TestHandleCallback (0.06s) + --- PASS: TestHandleCallback/NewUserWithUsername (0.02s) + --- PASS: TestHandleCallback/NewUserNoUsername (0.01s) + --- PASS: TestHandleCallback/ExistingUserNoClaims (0.03s) + --- PASS: TestHandleCallback/ExistingUserUpdateClaims (0.01s) + --- PASS: TestHandleCallback/PreferredUsernameTaken (0.01s) === RUN TestHandleRegister === RUN TestHandleRegister/Success === RUN TestHandleRegister/InvalidUsername === RUN TestHandleRegister/InvalidUsername#01 ---- PASS: TestHandleRegister (0.02s) +--- PASS: TestHandleRegister (0.01s) --- PASS: TestHandleRegister/Success (0.00s) --- PASS: TestHandleRegister/InvalidUsername (0.00s) - --- PASS: TestHandleRegister/InvalidUsername#01 (0.02s) + --- PASS: TestHandleRegister/InvalidUsername#01 (0.00s) PASS -ok github.com/canonical/candid/idp/openid 0.383s +ok github.com/canonical/candid/idp/openid 0.147s === RUN TestInteractiveDischarge -2025-06-07 18:30:13 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +2024-05-05 12:08:55 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified --- PASS: TestInteractiveDischarge (0.01s) === RUN TestStatic === RUN TestStatic/TestAbsoluteIconURL @@ -1727,25 +1761,27 @@ === RUN TestStatic/TestInteractive === RUN TestStatic/TestName === RUN TestStatic/TestRelativeIconURL ---- PASS: TestStatic (0.03s) +--- PASS: TestStatic (0.02s) --- PASS: TestStatic/TestAbsoluteIconURL (0.00s) --- PASS: TestStatic/TestDescription (0.00s) --- PASS: TestStatic/TestDomain (0.00s) - --- PASS: TestStatic/TestGetGroups (0.00s) + --- PASS: TestStatic/TestGetGroups (0.01s) --- PASS: TestStatic/TestGetGroupsReturnsNewSlice (0.00s) --- PASS: TestStatic/TestHandle (0.00s) --- PASS: TestStatic/TestHandleFailedLoginUnknownUser (0.00s) --- PASS: TestStatic/TestHandleFailedLoginWrongPassword (0.00s) - --- PASS: TestStatic/TestHandleWithDomain (0.01s) + --- PASS: TestStatic/TestHandleWithDomain (0.00s) --- PASS: TestStatic/TestHidden (0.00s) --- PASS: TestStatic/TestIconURL (0.00s) - --- PASS: TestStatic/TestInteractive (0.01s) + --- PASS: TestStatic/TestInteractive (0.00s) --- PASS: TestStatic/TestName (0.00s) --- PASS: TestStatic/TestRelativeIconURL (0.00s) PASS -ok github.com/canonical/candid/idp/static 0.115s +ok github.com/canonical/candid/idp/static 0.077s +? github.com/canonical/candid/idp/usso/internal/mockusso [no test files] +? github.com/canonical/candid/idp/usso/ussodischarge/cmd/login [no test files] === RUN TestInteractiveDischarge -2025-06-07 18:30:13 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +2024-05-05 12:08:55 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified --- PASS: TestInteractiveDischarge (0.02s) === RUN TestUSSO === RUN TestUSSO/TestAbsoluteIconURL @@ -1771,18 +1807,18 @@ === RUN TestUSSO/TestUpdateIdentity === RUN TestUSSO/TestUpdateIdentityKeepsUsernameIfFixed === RUN TestUSSO/TestUpdateIdentityKeepsUsernameIfNewNameInvalid -2025-06-07 18:30:13 WARNING candid.idp.usso usso.go:250 not updating username for usso:https://login.ubuntu.com/+id/test to invalid username "test-changed-" +2024-05-05 12:08:55 WARNING candid.idp.usso usso.go:250 not updating username for usso:https://login.ubuntu.com/+id/test to invalid username "test-changed-" === RUN TestUSSO/TestWithDomain ---- PASS: TestUSSO (0.11s) +--- PASS: TestUSSO (0.07s) --- PASS: TestUSSO/TestAbsoluteIconURL (0.00s) --- PASS: TestUSSO/TestConfig (0.00s) --- PASS: TestUSSO/TestDescription (0.00s) --- PASS: TestUSSO/TestDomain (0.00s) --- PASS: TestUSSO/TestGetGroups (0.00s) --- PASS: TestUSSO/TestGetGroupsReturnsNewSlice (0.00s) - --- PASS: TestUSSO/TestHandleNoExtensionsNotFound (0.03s) - --- PASS: TestUSSO/TestHandleRegisterUserError (0.00s) - --- PASS: TestUSSO/TestHandleSuccess (0.01s) + --- PASS: TestUSSO/TestHandleNoExtensionsNotFound (0.01s) + --- PASS: TestUSSO/TestHandleRegisterUserError (0.01s) + --- PASS: TestUSSO/TestHandleSuccess (0.00s) --- PASS: TestUSSO/TestHandleSuccessNoExtensions (0.00s) --- PASS: TestUSSO/TestHidden (0.00s) --- PASS: TestUSSO/TestIconURL (0.00s) @@ -1794,12 +1830,12 @@ --- PASS: TestUSSO/TestRedirectWithLaunchpadTeams (0.00s) --- PASS: TestUSSO/TestRelativeIconURL (0.00s) --- PASS: TestUSSO/TestURL (0.00s) - --- PASS: TestUSSO/TestUpdateIdentity (0.01s) + --- PASS: TestUSSO/TestUpdateIdentity (0.00s) --- PASS: TestUSSO/TestUpdateIdentityKeepsUsernameIfFixed (0.01s) - --- PASS: TestUSSO/TestUpdateIdentityKeepsUsernameIfNewNameInvalid (0.03s) + --- PASS: TestUSSO/TestUpdateIdentityKeepsUsernameIfNewNameInvalid (0.02s) --- PASS: TestUSSO/TestWithDomain (0.00s) PASS -ok github.com/canonical/candid/idp/usso 0.219s +ok github.com/canonical/candid/idp/usso 0.134s === RUN TestAccept === RUN TestAccept/not_seen store_test.go:74: 0. not seen @@ -1824,7 +1860,7 @@ --- PASS: TestAccept/bad_time (0.00s) --- PASS: TestAccept/too_old (0.00s) PASS -ok github.com/canonical/candid/idp/usso/internal/kvnoncestore 0.089s +ok github.com/canonical/candid/idp/usso/internal/kvnoncestore 0.058s === RUN TestConfig --- PASS: TestConfig (0.00s) === RUN TestSuite @@ -1837,10 +1873,10 @@ === RUN TestSuite/TestInteractive === RUN TestSuite/TestName === RUN TestSuite/TestURL ---- PASS: TestSuite (0.05s) +--- PASS: TestSuite (0.01s) --- PASS: TestSuite/TestDescription (0.00s) - --- PASS: TestSuite/TestHandleGetSuccess (0.03s) - --- PASS: TestSuite/TestHandleGetV1Success (0.01s) + --- PASS: TestSuite/TestHandleGetSuccess (0.01s) + --- PASS: TestSuite/TestHandleGetV1Success (0.00s) --- PASS: TestSuite/TestHandlePostV1 (0.00s) --- PASS: TestSuite/TestHidden (0.00s) --- PASS: TestSuite/TestIconURL (0.00s) @@ -1857,20 +1893,20 @@ === RUN TestHandlePost/account_bad_base64 === RUN TestHandlePost/account_bad_json === RUN TestHandlePost/without_argument ---- PASS: TestHandlePost (0.03s) - --- PASS: TestHandlePost/success (0.01s) +--- PASS: TestHandlePost (0.01s) + --- PASS: TestHandlePost/success (0.00s) --- PASS: TestHandlePost/no_account (0.00s) --- PASS: TestHandlePost/expires_bad_format (0.00s) --- PASS: TestHandlePost/expires_in_past (0.00s) --- PASS: TestHandlePost/multiple_account_info (0.00s) --- PASS: TestHandlePost/unrecognised_caveat (0.00s) - --- PASS: TestHandlePost/account_bad_base64 (0.01s) + --- PASS: TestHandlePost/account_bad_base64 (0.00s) --- PASS: TestHandlePost/account_bad_json (0.00s) --- PASS: TestHandlePost/without_argument (0.00s) === RUN TestMultipleLogins --- PASS: TestMultipleLogins (0.00s) PASS -ok github.com/canonical/candid/idp/usso/ussodischarge 0.200s +ok github.com/canonical/candid/idp/usso/ussodischarge 0.064s === RUN TestDischarge --- PASS: TestDischarge (0.01s) === RUN TestConfig @@ -1887,14 +1923,14 @@ --- PASS: TestUSSOAuth (0.01s) --- PASS: TestUSSOAuth/TestDescription (0.00s) --- PASS: TestUSSOAuth/TestHandleSuccess (0.00s) - --- PASS: TestUSSOAuth/TestHandleVerifyFail (0.01s) + --- PASS: TestUSSOAuth/TestHandleVerifyFail (0.00s) --- PASS: TestUSSOAuth/TestHidden (0.00s) --- PASS: TestUSSOAuth/TestIconURL (0.00s) --- PASS: TestUSSOAuth/TestInteractive (0.00s) --- PASS: TestUSSOAuth/TestName (0.00s) --- PASS: TestUSSOAuth/TestURL (0.00s) PASS -ok github.com/canonical/candid/idp/usso/ussooauth 0.143s +ok github.com/canonical/candid/idp/usso/ussooauth 0.063s ? github.com/canonical/candid/internal/candidtest [no test files] === RUN TestAuth === RUN TestAuth/TestACLForOp @@ -1969,7 +2005,7 @@ --- PASS: TestAuth/TestUserHasPublicKeyCaveat (0.00s) --- PASS: TestAuth/TestUserHasPublicKeyChecker (0.00s) PASS -ok github.com/canonical/candid/internal/auth 0.084s +ok github.com/canonical/candid/internal/auth 0.068s === RUN TestAuth === RUN TestAuth/TestAuthorizeMacaroonRequired === RUN TestAuth/TestAuthorizeWithAdminCredentials @@ -1985,10 +2021,10 @@ --- PASS: TestAuth/TestAuthorizeWithAdminCredentials/bad_password (0.00s) --- PASS: TestAuth/TestAuthorizeWithAdminCredentials/empty_password_denies_access (0.00s) PASS -ok github.com/canonical/candid/internal/auth/httpauth 0.108s +ok github.com/canonical/candid/internal/auth/httpauth 0.072s testing: warning: no tests to run PASS -ok github.com/canonical/candid/internal/debug 0.058s [no tests to run] +ok github.com/canonical/candid/internal/debug 0.036s [no tests to run] ? github.com/canonical/candid/internal/mfa [no test files] ? github.com/canonical/candid/internal/monitoring [no test files] === RUN TestDischarge @@ -1998,111 +2034,111 @@ discharge_test.go:462: test 0. discharge macaroon discharge_test.go:462: test 1. no authentication discharge_test.go:462: test 2. unsupported user -2025-06-07 18:30:17 ERROR candid.internal.identity json.go:56 Internal Server Error: cannot discharge: could not determine identity: user jbloggs2 not found ([{/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/go-macaroon-bakery/macaroon-bakery/httpbakery/discharge.go:284: cannot discharge} {/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/go-macaroon-bakery/macaroon-bakery/bakery/discharge.go:134: } {/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/canonical/candid/internal/discharger/discharge.go:132: } {/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/canonical/candid/internal/auth/auth.go:293: } {/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/go-macaroon-bakery/macaroon-bakery/bakery/identchecker/checker.go:165: } {/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/go-macaroon-bakery/macaroon-bakery/bakery/identchecker/checker.go:296: could not determine identity} {/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/canonical/candid/internal/auth/auth.go:336: } {/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/canonical/candid/internal/auth/auth.go:316: } {/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/canonical/candid/store/memstore/store.go:81: user jbloggs2 not found}]) +2024-05-05 12:08:56 ERROR candid.internal.identity json.go:56 Internal Server Error: cannot discharge: could not determine identity: user jbloggs2 not found ([{/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/go-macaroon-bakery/macaroon-bakery/httpbakery/discharge.go:284: cannot discharge} {/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/go-macaroon-bakery/macaroon-bakery/bakery/discharge.go:134: } {/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/canonical/candid/internal/discharger/discharge.go:132: } {/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/canonical/candid/internal/auth/auth.go:293: } {/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/go-macaroon-bakery/macaroon-bakery/bakery/identchecker/checker.go:165: } {/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/go-macaroon-bakery/macaroon-bakery/bakery/identchecker/checker.go:296: could not determine identity} {/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/canonical/candid/internal/auth/auth.go:336: } {/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/canonical/candid/internal/auth/auth.go:316: } {/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/canonical/candid/store/memstore/store.go:81: user jbloggs2 not found}]) discharge_test.go:462: test 3. unsupported condition -2025-06-07 18:30:17 ERROR candid.internal.identity json.go:56 Internal Server Error: cannot discharge: caveat not recognized ([{/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/go-macaroon-bakery/macaroon-bakery/httpbakery/discharge.go:284: cannot discharge} {/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/go-macaroon-bakery/macaroon-bakery/bakery/discharge.go:134: } {/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/go-macaroon-bakery/macaroon-bakery/bakery/checkers/checkers.go:166: caveat not recognized}]) +2024-05-05 12:08:56 ERROR candid.internal.identity json.go:56 Internal Server Error: cannot discharge: caveat not recognized ([{/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/go-macaroon-bakery/macaroon-bakery/httpbakery/discharge.go:284: cannot discharge} {/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/go-macaroon-bakery/macaroon-bakery/bakery/discharge.go:134: } {/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/go-macaroon-bakery/macaroon-bakery/bakery/checkers/checkers.go:166: caveat not recognized}]) discharge_test.go:462: test 4. bad credentials discharge_test.go:462: test 5. is-authenticated-user with domain discharge_test.go:462: test 6. is-authenticated-user with wrong domain -2025-06-07 18:30:17 ERROR candid.internal.identity json.go:56 Internal Server Error: cannot discharge: could not determine identity: "jbloggs@test" not in required domain "test2" ([{/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/go-macaroon-bakery/macaroon-bakery/httpbakery/discharge.go:284: cannot discharge} {/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/go-macaroon-bakery/macaroon-bakery/bakery/discharge.go:134: } {/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/canonical/candid/internal/discharger/discharge.go:132: } {/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/canonical/candid/internal/auth/auth.go:293: } {/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/go-macaroon-bakery/macaroon-bakery/bakery/identchecker/checker.go:165: } {/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/go-macaroon-bakery/macaroon-bakery/bakery/identchecker/checker.go:296: could not determine identity} {/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/canonical/candid/internal/auth/auth.go:330: } {/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/canonical/candid/internal/auth/auth.go:373: "jbloggs@test" not in required domain "test2"}]) +2024-05-05 12:08:56 ERROR candid.internal.identity json.go:56 Internal Server Error: cannot discharge: could not determine identity: "jbloggs@test" not in required domain "test2" ([{/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/go-macaroon-bakery/macaroon-bakery/httpbakery/discharge.go:284: cannot discharge} {/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/go-macaroon-bakery/macaroon-bakery/bakery/discharge.go:134: } {/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/canonical/candid/internal/discharger/discharge.go:132: } {/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/canonical/candid/internal/auth/auth.go:293: } {/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/go-macaroon-bakery/macaroon-bakery/bakery/identchecker/checker.go:165: } {/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/go-macaroon-bakery/macaroon-bakery/bakery/identchecker/checker.go:296: could not determine identity} {/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/canonical/candid/internal/auth/auth.go:330: } {/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/canonical/candid/internal/auth/auth.go:373: "jbloggs@test" not in required domain "test2"}]) discharge_test.go:462: test 7. is-authenticated-user with invalid domain discharge_test.go:462: test 8. invalid caveat === RUN TestDischarge/TestDischargeFromDifferentOriginWhenLoggedIn discharge_test.go:340: origin caveats on identity cookies not yet supported === RUN TestDischarge/TestDischargeMemberOf === RUN TestDischarge/TestDischargeMemberOf/SingleGroupsIsUsername -2025-06-07 18:30:17 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +2024-05-05 12:08:56 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified === RUN TestDischarge/TestDischargeMemberOf/ManyGroupsOneIsUsername -2025-06-07 18:30:17 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +2024-05-05 12:08:56 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified === RUN TestDischarge/TestDischargeMemberOf/SingleGroupMatch -2025-06-07 18:30:17 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +2024-05-05 12:08:56 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified === RUN TestDischarge/TestDischargeMemberOf/ManyGroupsAllMatch -2025-06-07 18:30:17 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +2024-05-05 12:08:56 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified === RUN TestDischarge/TestDischargeMemberOf/SingleGroupNoMatch -2025-06-07 18:30:17 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified -2025-06-07 18:30:17 ERROR candid.internal.identity json.go:56 Internal Server Error: cannot discharge: permission denied ([{/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/go-macaroon-bakery/macaroon-bakery/httpbakery/discharge.go:284: cannot discharge} {/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/go-macaroon-bakery/macaroon-bakery/bakery/discharge.go:134: } {/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/canonical/candid/internal/discharger/discharge.go:132: } {/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/canonical/candid/internal/auth/auth.go:293: } {/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/go-macaroon-bakery/macaroon-bakery/bakery/identchecker/checker.go:220: permission denied}]) +2024-05-05 12:08:56 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +2024-05-05 12:08:56 ERROR candid.internal.identity json.go:56 Internal Server Error: cannot discharge: permission denied ([{/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/go-macaroon-bakery/macaroon-bakery/httpbakery/discharge.go:284: cannot discharge} {/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/go-macaroon-bakery/macaroon-bakery/bakery/discharge.go:134: } {/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/canonical/candid/internal/discharger/discharge.go:132: } {/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/canonical/candid/internal/auth/auth.go:293: } {/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/go-macaroon-bakery/macaroon-bakery/bakery/identchecker/checker.go:220: permission denied}]) === RUN TestDischarge/TestDischargeMemberOf/ManyGroupsOneMatches -2025-06-07 18:30:17 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +2024-05-05 12:08:56 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified === RUN TestDischarge/TestDischargeMemberOf/ManyGroupsNoMatch -2025-06-07 18:30:17 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified -2025-06-07 18:30:17 ERROR candid.internal.identity json.go:56 Internal Server Error: cannot discharge: permission denied ([{/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/go-macaroon-bakery/macaroon-bakery/httpbakery/discharge.go:284: cannot discharge} {/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/go-macaroon-bakery/macaroon-bakery/bakery/discharge.go:134: } {/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/canonical/candid/internal/discharger/discharge.go:132: } {/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/canonical/candid/internal/auth/auth.go:293: } {/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/go-macaroon-bakery/macaroon-bakery/bakery/identchecker/checker.go:220: permission denied}]) +2024-05-05 12:08:56 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +2024-05-05 12:08:56 ERROR candid.internal.identity json.go:56 Internal Server Error: cannot discharge: permission denied ([{/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/go-macaroon-bakery/macaroon-bakery/httpbakery/discharge.go:284: cannot discharge} {/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/go-macaroon-bakery/macaroon-bakery/bakery/discharge.go:134: } {/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/canonical/candid/internal/discharger/discharge.go:132: } {/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/canonical/candid/internal/auth/auth.go:293: } {/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/go-macaroon-bakery/macaroon-bakery/bakery/identchecker/checker.go:220: permission denied}]) === RUN TestDischarge/TestDischargeStatusProxyAuthRequiredResponse === RUN TestDischarge/TestDischargeStatusUnauthorizedResponse === RUN TestDischarge/TestDischargeUserID === RUN TestDischarge/TestDischargeWhenLoggedIn -2025-06-07 18:30:17 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +2024-05-05 12:08:56 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified === RUN TestDischarge/TestDischargeWithDomainWithExistingNonDomainAuth -2025-06-07 18:30:17 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified -2025-06-07 18:30:17 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +2024-05-05 12:08:57 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +2024-05-05 12:08:57 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified === RUN TestDischarge/TestDischargeXMemberOfX -2025-06-07 18:30:17 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +2024-05-05 12:08:57 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified === RUN TestDischarge/TestDomainInInteractionURLs === RUN TestDischarge/TestDomainInInteractionURLs/domain_login -2025-06-07 18:30:17 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +2024-05-05 12:08:57 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified === RUN TestDischarge/TestDomainInInteractionURLs/no_domain -2025-06-07 18:30:17 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +2024-05-05 12:08:57 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified === RUN TestDischarge/TestDomainInInteractionURLs/domain_from_cookies -2025-06-07 18:30:17 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +2024-05-05 12:08:57 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified === RUN TestDischarge/TestDomainInInteractionURLs/condition_trumps_cookies -2025-06-07 18:30:17 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +2024-05-05 12:08:57 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified === RUN TestDischarge/TestIdentityCookieParameters -2025-06-07 18:30:17 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +2024-05-05 12:08:57 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified === RUN TestDischarge/TestInteractiveDischarge -2025-06-07 18:30:17 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +2024-05-05 12:08:57 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified === RUN TestDischarge/TestInteractiveDischargeJSON -2025-06-07 18:30:17 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +2024-05-05 12:08:57 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified === RUN TestDischarge/TestInteractiveDischargeWithOldClientCaveat -2025-06-07 18:30:17 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +2024-05-05 12:08:57 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified === RUN TestDischarge/TestLastDischargeTimeUpdates -2025-06-07 18:30:17 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified -2025-06-07 18:30:17 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +2024-05-05 12:08:57 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +2024-05-05 12:08:57 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified === RUN TestDischarge/TestNonInteractiveDischarge === RUN TestDischarge/TestPublicKey - http.go:99: JSON call, url "http://127.0.0.1:43469/publickey" + http.go:99: JSON call, url "http://127.0.0.1:35633/publickey" === RUN TestDischarge/TestTwoDischargesOfSameCaveat -2025-06-07 18:30:17 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified -2025-06-07 18:30:17 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +2024-05-05 12:08:57 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +2024-05-05 12:08:57 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified === RUN TestDischarge/TestVisitURLWithDomainCookie -2025-06-07 18:30:17 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +2024-05-05 12:08:57 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified === RUN TestDischarge/TestVisitURLWithEscapedDomainCookie -2025-06-07 18:30:17 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +2024-05-05 12:08:57 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified === RUN TestDischarge/TestVisitURLWithInvalidDomainCookie -2025-06-07 18:30:17 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified ---- PASS: TestDischarge (0.42s) - --- PASS: TestDischarge/TestDischargeBrowserRedirectLogin (0.03s) +2024-05-05 12:08:57 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +--- PASS: TestDischarge (0.23s) + --- PASS: TestDischarge/TestDischargeBrowserRedirectLogin (0.02s) --- PASS: TestDischarge/TestDischargeBrowserRedirectLoginNotTrusted (0.00s) --- PASS: TestDischarge/TestDischargeForUser (0.02s) --- SKIP: TestDischarge/TestDischargeFromDifferentOriginWhenLoggedIn (0.00s) - --- PASS: TestDischarge/TestDischargeMemberOf (0.07s) + --- PASS: TestDischarge/TestDischargeMemberOf (0.04s) --- PASS: TestDischarge/TestDischargeMemberOf/SingleGroupsIsUsername (0.00s) --- PASS: TestDischarge/TestDischargeMemberOf/ManyGroupsOneIsUsername (0.00s) - --- PASS: TestDischarge/TestDischargeMemberOf/SingleGroupMatch (0.01s) - --- PASS: TestDischarge/TestDischargeMemberOf/ManyGroupsAllMatch (0.01s) + --- PASS: TestDischarge/TestDischargeMemberOf/SingleGroupMatch (0.00s) + --- PASS: TestDischarge/TestDischargeMemberOf/ManyGroupsAllMatch (0.00s) --- PASS: TestDischarge/TestDischargeMemberOf/SingleGroupNoMatch (0.00s) - --- PASS: TestDischarge/TestDischargeMemberOf/ManyGroupsOneMatches (0.03s) - --- PASS: TestDischarge/TestDischargeMemberOf/ManyGroupsNoMatch (0.01s) + --- PASS: TestDischarge/TestDischargeMemberOf/ManyGroupsOneMatches (0.00s) + --- PASS: TestDischarge/TestDischargeMemberOf/ManyGroupsNoMatch (0.02s) --- PASS: TestDischarge/TestDischargeStatusProxyAuthRequiredResponse (0.00s) - --- PASS: TestDischarge/TestDischargeStatusUnauthorizedResponse (0.01s) - --- PASS: TestDischarge/TestDischargeUserID (0.01s) - --- PASS: TestDischarge/TestDischargeWhenLoggedIn (0.04s) + --- PASS: TestDischarge/TestDischargeStatusUnauthorizedResponse (0.00s) + --- PASS: TestDischarge/TestDischargeUserID (0.02s) + --- PASS: TestDischarge/TestDischargeWhenLoggedIn (0.01s) --- PASS: TestDischarge/TestDischargeWithDomainWithExistingNonDomainAuth (0.01s) --- PASS: TestDischarge/TestDischargeXMemberOfX (0.01s) - --- PASS: TestDischarge/TestDomainInInteractionURLs (0.05s) + --- PASS: TestDischarge/TestDomainInInteractionURLs (0.02s) --- PASS: TestDischarge/TestDomainInInteractionURLs/domain_login (0.00s) --- PASS: TestDischarge/TestDomainInInteractionURLs/no_domain (0.00s) - --- PASS: TestDischarge/TestDomainInInteractionURLs/domain_from_cookies (0.02s) - --- PASS: TestDischarge/TestDomainInInteractionURLs/condition_trumps_cookies (0.01s) - --- PASS: TestDischarge/TestIdentityCookieParameters (0.01s) - --- PASS: TestDischarge/TestInteractiveDischarge (0.00s) - --- PASS: TestDischarge/TestInteractiveDischargeJSON (0.04s) + --- PASS: TestDischarge/TestDomainInInteractionURLs/domain_from_cookies (0.00s) + --- PASS: TestDischarge/TestDomainInInteractionURLs/condition_trumps_cookies (0.00s) + --- PASS: TestDischarge/TestIdentityCookieParameters (0.00s) + --- PASS: TestDischarge/TestInteractiveDischarge (0.01s) + --- PASS: TestDischarge/TestInteractiveDischargeJSON (0.01s) --- PASS: TestDischarge/TestInteractiveDischargeWithOldClientCaveat (0.01s) - --- PASS: TestDischarge/TestLastDischargeTimeUpdates (0.01s) - --- PASS: TestDischarge/TestNonInteractiveDischarge (0.01s) - --- PASS: TestDischarge/TestPublicKey (0.02s) - --- PASS: TestDischarge/TestTwoDischargesOfSameCaveat (0.03s) + --- PASS: TestDischarge/TestLastDischargeTimeUpdates (0.02s) + --- PASS: TestDischarge/TestNonInteractiveDischarge (0.00s) + --- PASS: TestDischarge/TestPublicKey (0.00s) + --- PASS: TestDischarge/TestTwoDischargesOfSameCaveat (0.01s) --- PASS: TestDischarge/TestVisitURLWithDomainCookie (0.01s) - --- PASS: TestDischarge/TestVisitURLWithEscapedDomainCookie (0.02s) - --- PASS: TestDischarge/TestVisitURLWithInvalidDomainCookie (0.02s) + --- PASS: TestDischarge/TestVisitURLWithEscapedDomainCookie (0.00s) + --- PASS: TestDischarge/TestVisitURLWithInvalidDomainCookie (0.00s) === RUN TestIDP === RUN TestIDP/TestLoginFailure === RUN TestIDP/TestLoginFailureWithWait @@ -2114,10 +2150,10 @@ === RUN TestIDP/TestLoginRedirectSuccessReturnToTrustedDomainInsecure === RUN TestIDP/TestLoginRedirectSuccessReturnToTrustedDomainWildcard === RUN TestIDP/TestLoginSuccess -2025-06-07 18:30:17 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +2024-05-05 12:08:57 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified === RUN TestIDP/TestLoginSuccessWithTemplate -2025-06-07 18:30:17 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified ---- PASS: TestIDP (0.00s) +2024-05-05 12:08:57 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +--- PASS: TestIDP (0.01s) --- PASS: TestIDP/TestLoginFailure (0.00s) --- PASS: TestIDP/TestLoginFailureWithWait (0.00s) --- PASS: TestIDP/TestLoginRedirectFailureInvalidReturnTo (0.00s) @@ -2132,14 +2168,14 @@ === RUN TestLoginCookiePath === RUN TestLoginCookiePath/location_in_the_cookie === RUN TestLoginCookiePath/location_NOT_in_the_cookie ---- PASS: TestLoginCookiePath (0.01s) +--- PASS: TestLoginCookiePath (0.00s) --- PASS: TestLoginCookiePath/location_in_the_cookie (0.00s) --- PASS: TestLoginCookiePath/location_NOT_in_the_cookie (0.00s) === RUN TestLogin === RUN TestLogin/TestInteractiveLogin -2025-06-07 18:30:17 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +2024-05-05 12:08:57 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified === RUN TestLogin/TestLegacyInteractiveLogin -2025-06-07 18:30:17 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +2024-05-05 12:08:57 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified === RUN TestLogin/TestLegacyLoginFailure discharge.go:169: interaction returned error status (400 Bad Request): {"message":"unsupported method \"PUT\"","code":"bad request"} === RUN TestLogin/TestLegacyNonInteractiveLogin @@ -2154,23 +2190,23 @@ === RUN TestLogin/TestLoginRedirect === RUN TestLogin/TestLoginRedirectNotTrusted === RUN TestLogin/TestNonInteractiveLogin ---- PASS: TestLogin (0.10s) +--- PASS: TestLogin (0.05s) --- PASS: TestLogin/TestInteractiveLogin (0.01s) - --- PASS: TestLogin/TestLegacyInteractiveLogin (0.00s) - --- PASS: TestLogin/TestLegacyLoginFailure (0.02s) + --- PASS: TestLogin/TestLegacyInteractiveLogin (0.01s) + --- PASS: TestLogin/TestLegacyLoginFailure (0.00s) --- PASS: TestLogin/TestLegacyNonInteractiveLogin (0.01s) - --- PASS: TestLogin/TestLoginEmail (0.01s) + --- PASS: TestLogin/TestLoginEmail (0.00s) --- PASS: TestLogin/TestLoginEmailSubmitMatch (0.00s) --- PASS: TestLogin/TestLoginEmailSubmitNoMatch (0.00s) - --- PASS: TestLogin/TestLoginFailure (0.01s) - --- PASS: TestLogin/TestLoginIDPChoice (0.01s) + --- PASS: TestLogin/TestLoginFailure (0.00s) + --- PASS: TestLogin/TestLoginIDPChoice (0.00s) --- PASS: TestLogin/TestLoginIDPChoiceHidden (0.00s) - --- PASS: TestLogin/TestLoginMethodsIncludesAgent (0.01s) + --- PASS: TestLogin/TestLoginMethodsIncludesAgent (0.00s) --- PASS: TestLogin/TestLoginRedirect (0.00s) --- PASS: TestLogin/TestLoginRedirectNotTrusted (0.00s) - --- PASS: TestLogin/TestNonInteractiveLogin (0.01s) + --- PASS: TestLogin/TestNonInteractiveLogin (0.00s) PASS -ok github.com/canonical/candid/internal/discharger 0.628s +ok github.com/canonical/candid/internal/discharger 0.348s === RUN TestStore === RUN TestStore/TestExpiredEntry === RUN TestStore/TestGetCanceled @@ -2181,8 +2217,8 @@ === RUN TestStore/TestPutCanceled === RUN TestStore/TestPutDeadlineExceeded === RUN TestStore/TestRoundTrip ---- PASS: TestStore (0.00s) - --- PASS: TestStore/TestExpiredEntry (0.00s) +--- PASS: TestStore (0.01s) + --- PASS: TestStore/TestExpiredEntry (0.01s) --- PASS: TestStore/TestGetCanceled (0.00s) --- PASS: TestStore/TestGetDeadlineExceeded (0.00s) --- PASS: TestStore/TestGetInvalidJSON (0.00s) @@ -2192,24 +2228,24 @@ --- PASS: TestStore/TestPutDeadlineExceeded (0.00s) --- PASS: TestStore/TestRoundTrip (0.00s) PASS -ok github.com/canonical/candid/internal/discharger/internal 0.100s +ok github.com/canonical/candid/internal/discharger/internal 0.048s === RUN TestHandleErrors +=== RUN TestHandleErrors/forbidden + http.go:99: JSON call, url "/error/" +=== RUN TestHandleErrors/bad_request + http.go:99: JSON call, url "/error/" === RUN TestHandleErrors/unauthorized http.go:99: JSON call, url "/error/" === RUN TestHandleErrors/service_unavailable http.go:99: JSON call, url "/error/" === RUN TestHandleErrors/not_found http.go:99: JSON call, url "/error/" -=== RUN TestHandleErrors/forbidden - http.go:99: JSON call, url "/error/" -=== RUN TestHandleErrors/bad_request - http.go:99: JSON call, url "/error/" --- PASS: TestHandleErrors (0.01s) + --- PASS: TestHandleErrors/forbidden (0.00s) + --- PASS: TestHandleErrors/bad_request (0.00s) --- PASS: TestHandleErrors/unauthorized (0.00s) --- PASS: TestHandleErrors/service_unavailable (0.00s) --- PASS: TestHandleErrors/not_found (0.00s) - --- PASS: TestHandleErrors/forbidden (0.00s) - --- PASS: TestHandleErrors/bad_request (0.00s) === RUN TestHandleErrorsInternalServerError http.go:99: JSON call, url "/error/" logging.go:37: ERROR candid.internal.identity Internal Server Error: bad wolf ([{/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/canonical/candid/internal/identity/json_test.go:57: bad wolf}]) @@ -2221,7 +2257,7 @@ === RUN TestHandleJSON http.go:99: JSON call, url "/bad-request/" http.go:99: JSON call, url "/valid/" ---- PASS: TestHandleJSON (0.01s) +--- PASS: TestHandleJSON (0.00s) === RUN TestServer === RUN TestServer/TestNewServerWithNoVersions === RUN TestServer/TestNewServerWithVersions @@ -2235,51 +2271,51 @@ === RUN TestServer/TestServerPanicRecovery http.go:99: JSON call, url "/a" logging.go:37: ERROR candid.internal.identity PANIC!: test panic - goroutine 235 [running]: + goroutine 232 [running]: runtime/debug.Stack() /usr/lib/go-1.22/src/runtime/debug/stack.go:24 +0x64 github.com/canonical/candid/internal/identity.(*Server).ServeHTTP.func1() /build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/canonical/candid/internal/identity/server.go:186 +0x48 panic({0xa56e20?, 0xc6df90?}) /usr/lib/go-1.22/src/runtime/panic.go:770 +0x124 - github.com/canonical/candid/internal/identity_test.(*serverSuite).TestServerPanicRecovery.func1.1({0xa8d580?, 0x400024a8f4?}, 0x400024a8f0?, {0x3?, 0x40003939f8?, 0x419f7c?}) + github.com/canonical/candid/internal/identity_test.(*serverSuite).TestServerPanicRecovery.func1.1({0xa8d580?, 0x40003abb34?}, 0x40003abb30?, {0x3?, 0x40000939f8?, 0x419f7c?}) /build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/canonical/candid/internal/identity/server_test.go:182 +0x2c - github.com/julienschmidt/httprouter.(*Router).ServeHTTP(0x400027ed80, {0xc75b68, 0x400024ec40}, 0x40004085a0) + github.com/julienschmidt/httprouter.(*Router).ServeHTTP(0x400050b380, {0xc75b68, 0x4000473b20}, 0x4000518a20) /build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/julienschmidt/httprouter/router.go:387 +0x6f8 - github.com/canonical/candid/internal/identity.(*Server).ServeHTTP(0x4000225160, {0xc75b68, 0x400024ec40}, 0x40004085a0) + github.com/canonical/candid/internal/identity.(*Server).ServeHTTP(0x400051e220, {0xc75b68, 0x4000473b20}, 0x4000518a20) /build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/canonical/candid/internal/identity/server.go:196 +0x260 - net/http.serverHandler.ServeHTTP({0x400040a6c0?}, {0xc75b68?, 0x400024ec40?}, 0x6?) + net/http.serverHandler.ServeHTTP({0x400050fe30?}, {0xc75b68?, 0x4000473b20?}, 0x6?) /usr/lib/go-1.22/src/net/http/server.go:3137 +0xbc - net/http.(*conn).serve(0x40002379e0, {0xc77668, 0x400040a5a0}) + net/http.(*conn).serve(0x4000512900, {0xc77668, 0x400050fd10}) /usr/lib/go-1.22/src/net/http/server.go:2039 +0x508 - created by net/http.(*Server).Serve in goroutine 232 + created by net/http.(*Server).Serve in goroutine 229 /usr/lib/go-1.22/src/net/http/server.go:3285 +0x3f0 logging.go:37: DEBUG candid.internal.identity Closing Server === RUN TestServer/TestServerStaticFiles ---- PASS: TestServer (0.03s) +--- PASS: TestServer (0.05s) --- PASS: TestServer/TestNewServerWithNoVersions (0.00s) --- PASS: TestServer/TestNewServerWithVersions (0.01s) --- PASS: TestServer/TestServerHasAccessControlAllowHeaders (0.00s) --- PASS: TestServer/TestServerPanicRecovery (0.00s) - --- PASS: TestServer/TestServerStaticFiles (0.02s) + --- PASS: TestServer/TestServerStaticFiles (0.04s) PASS -ok github.com/canonical/candid/internal/identity 0.108s +ok github.com/canonical/candid/internal/identity 0.147s === RUN TestGravatarHash --- PASS: TestGravatarHash (0.00s) === RUN TestUsersAPI === RUN TestUsersAPI/TestCreateAgent -2025-06-07 18:30:17 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +2024-05-05 12:08:57 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified === RUN TestUsersAPI/TestCreateAgentAsAgent -2025-06-07 18:30:17 ERROR candid.internal.identity json.go:56 Internal Server Error: cannot create an agent using an agent account ([{/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/canonical/candid/internal/v1/users.go:164: cannot create an agent using an agent account}]) +2024-05-05 12:08:57 ERROR candid.internal.identity json.go:56 Internal Server Error: cannot create an agent using an agent account ([{/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/canonical/candid/internal/v1/users.go:164: cannot create an agent using an agent account}]) === RUN TestUsersAPI/TestCreateAgentAsParentAgent -2025-06-07 18:30:17 ERROR candid.internal.identity json.go:56 Internal Server Error: cannot create an agent using an agent account ([{/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/canonical/candid/internal/v1/users.go:164: cannot create an agent using an agent account}]) +2024-05-05 12:08:57 ERROR candid.internal.identity json.go:56 Internal Server Error: cannot create an agent using an agent account ([{/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/canonical/candid/internal/v1/users.go:164: cannot create an agent using an agent account}]) === RUN TestUsersAPI/TestCreateAgentWithGroups -2025-06-07 18:30:17 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +2024-05-05 12:08:57 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified === RUN TestUsersAPI/TestCreateParentAgent === RUN TestUsersAPI/TestCreateParentAgentNotInGroups -2025-06-07 18:30:17 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +2024-05-05 12:08:57 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified === RUN TestUsersAPI/TestCreateParentAgentUnauthorized -2025-06-07 18:30:17 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +2024-05-05 12:08:57 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified === RUN TestUsersAPI/TestDischargeToken === RUN TestUsersAPI/TestExtraInfo === RUN TestUsersAPI/TestExtraInfoNotFound @@ -2312,9 +2348,9 @@ === RUN TestUsersAPI/TestQueryUsers/combined_login_and_discharge_(found) === RUN TestUsersAPI/TestQueryUsers/combined_login_and_discharge_(not_found) === RUN TestUsersAPI/TestQueryUsersBadLastDischarge -2025-06-07 18:30:17 ERROR candid.internal.identity json.go:56 Internal Server Error: cannot unmarshal last-discharge-since: parsing time "yesterday" as "2006-01-02T15:04:05Z07:00": cannot parse "yesterday" as "2006" ([{/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/canonical/candid/internal/v1/users.go:60: cannot unmarshal last-discharge-since} {parsing time "yesterday" as "2006-01-02T15:04:05Z07:00": cannot parse "yesterday" as "2006"}]) +2024-05-05 12:08:57 ERROR candid.internal.identity json.go:56 Internal Server Error: cannot unmarshal last-discharge-since: parsing time "yesterday" as "2006-01-02T15:04:05Z07:00": cannot parse "yesterday" as "2006" ([{/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/canonical/candid/internal/v1/users.go:60: cannot unmarshal last-discharge-since} {parsing time "yesterday" as "2006-01-02T15:04:05Z07:00": cannot parse "yesterday" as "2006"}]) === RUN TestUsersAPI/TestQueryUsersBadLastLogin -2025-06-07 18:30:17 ERROR candid.internal.identity json.go:56 Internal Server Error: cannot unmarshal last-login-since: parsing time "yesterday" as "2006-01-02T15:04:05Z07:00": cannot parse "yesterday" as "2006" ([{/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/canonical/candid/internal/v1/users.go:52: cannot unmarshal last-login-since} {parsing time "yesterday" as "2006-01-02T15:04:05Z07:00": cannot parse "yesterday" as "2006"}]) +2024-05-05 12:08:57 ERROR candid.internal.identity json.go:56 Internal Server Error: cannot unmarshal last-login-since: parsing time "yesterday" as "2006-01-02T15:04:05Z07:00": cannot parse "yesterday" as "2006" ([{/build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/canonical/candid/internal/v1/users.go:52: cannot unmarshal last-login-since} {parsing time "yesterday" as "2006-01-02T15:04:05Z07:00": cannot parse "yesterday" as "2006"}]) === RUN TestUsersAPI/TestQueryUsersUnauthorized === RUN TestUsersAPI/TestRemoveUserMFACredentials === RUN TestUsersAPI/TestRoundTripUser @@ -2333,26 +2369,26 @@ === RUN TestUsersAPI/TestVerifyUserToken === RUN TestUsersAPI/TestWhoAmIWithAuthenticatedUser === RUN TestUsersAPI/TestWhoAmIWithNoUser ---- PASS: TestUsersAPI (0.50s) - --- PASS: TestUsersAPI/TestCreateAgent (0.04s) - --- PASS: TestUsersAPI/TestCreateAgentAsAgent (0.02s) - --- PASS: TestUsersAPI/TestCreateAgentAsParentAgent (0.02s) - --- PASS: TestUsersAPI/TestCreateAgentWithGroups (0.06s) - --- PASS: TestUsersAPI/TestCreateParentAgent (0.02s) +--- PASS: TestUsersAPI (0.23s) + --- PASS: TestUsersAPI/TestCreateAgent (0.02s) + --- PASS: TestUsersAPI/TestCreateAgentAsAgent (0.00s) + --- PASS: TestUsersAPI/TestCreateAgentAsParentAgent (0.01s) + --- PASS: TestUsersAPI/TestCreateAgentWithGroups (0.01s) + --- PASS: TestUsersAPI/TestCreateParentAgent (0.01s) --- PASS: TestUsersAPI/TestCreateParentAgentNotInGroups (0.01s) - --- PASS: TestUsersAPI/TestCreateParentAgentUnauthorized (0.02s) - --- PASS: TestUsersAPI/TestDischargeToken (0.02s) + --- PASS: TestUsersAPI/TestCreateParentAgentUnauthorized (0.01s) + --- PASS: TestUsersAPI/TestDischargeToken (0.01s) --- PASS: TestUsersAPI/TestExtraInfo (0.01s) - --- PASS: TestUsersAPI/TestExtraInfoNotFound (0.02s) + --- PASS: TestUsersAPI/TestExtraInfoNotFound (0.01s) --- PASS: TestUsersAPI/TestGetUserIDGroups (0.01s) - --- PASS: TestUsersAPI/TestGetUserIDGroups/no_groups (0.01s) + --- PASS: TestUsersAPI/TestGetUserIDGroups/no_groups (0.00s) --- PASS: TestUsersAPI/TestGetUserIDGroups/groups (0.00s) --- PASS: TestUsersAPI/TestGetUserIDGroups/no_such_user (0.00s) --- PASS: TestUsersAPI/TestGetUserWithID (0.01s) - --- PASS: TestUsersAPI/TestGetUserWithID/no_groups (0.01s) + --- PASS: TestUsersAPI/TestGetUserWithID/no_groups (0.00s) --- PASS: TestUsersAPI/TestGetUserWithID/groups (0.00s) --- PASS: TestUsersAPI/TestGetUserWithID/no_such_user (0.00s) - --- PASS: TestUsersAPI/TestModifyUserGroups (0.02s) + --- PASS: TestUsersAPI/TestModifyUserGroups (0.01s) --- PASS: TestUsersAPI/TestModifyUserGroups/add_groups (0.01s) --- PASS: TestUsersAPI/TestModifyUserGroups/remove_groups (0.00s) --- PASS: TestUsersAPI/TestModifyUserGroups/add_and_remove_groups (0.00s) @@ -2360,46 +2396,46 @@ --- PASS: TestUsersAPI/TestModifyUserGroups/user_not_found (0.00s) --- PASS: TestUsersAPI/TestQueryAgentUsers (0.01s) --- PASS: TestUsersAPI/TestQueryAgentUsersOwnerNotFound (0.01s) - --- PASS: TestUsersAPI/TestQueryUsers (0.03s) - --- PASS: TestUsersAPI/TestQueryUsers/query_existing_user (0.01s) + --- PASS: TestUsersAPI/TestQueryUsers (0.01s) + --- PASS: TestUsersAPI/TestQueryUsers/query_existing_user (0.00s) --- PASS: TestUsersAPI/TestQueryUsers/query_non-existing_user (0.00s) --- PASS: TestUsersAPI/TestQueryUsers/no_query_parameter (0.00s) --- PASS: TestUsersAPI/TestQueryUsers/query_email (0.00s) --- PASS: TestUsersAPI/TestQueryUsers/query_email_not_found (0.00s) --- PASS: TestUsersAPI/TestQueryUsers/last_login_in_range (0.00s) - --- PASS: TestUsersAPI/TestQueryUsers/last_login_too_soon (0.01s) - --- PASS: TestUsersAPI/TestQueryUsers/last_discharge_in_range (0.01s) + --- PASS: TestUsersAPI/TestQueryUsers/last_login_too_soon (0.00s) + --- PASS: TestUsersAPI/TestQueryUsers/last_discharge_in_range (0.00s) --- PASS: TestUsersAPI/TestQueryUsers/last_discharge_too_soon (0.00s) --- PASS: TestUsersAPI/TestQueryUsers/combined_login_and_discharge_(found) (0.00s) --- PASS: TestUsersAPI/TestQueryUsers/combined_login_and_discharge_(not_found) (0.00s) --- PASS: TestUsersAPI/TestQueryUsersBadLastDischarge (0.00s) --- PASS: TestUsersAPI/TestQueryUsersBadLastLogin (0.00s) - --- PASS: TestUsersAPI/TestQueryUsersUnauthorized (0.02s) + --- PASS: TestUsersAPI/TestQueryUsersUnauthorized (0.00s) --- PASS: TestUsersAPI/TestRemoveUserMFACredentials (0.01s) - --- PASS: TestUsersAPI/TestRoundTripUser (0.02s) + --- PASS: TestUsersAPI/TestRoundTripUser (0.00s) --- PASS: TestUsersAPI/TestSSHKeys (0.01s) - --- PASS: TestUsersAPI/TestSetUserGroups (0.02s) + --- PASS: TestUsersAPI/TestSetUserGroups (0.01s) --- PASS: TestUsersAPI/TestUserErrors (0.01s) - --- PASS: TestUsersAPI/TestUserErrors/not_found (0.01s) + --- PASS: TestUsersAPI/TestUserErrors/not_found (0.00s) --- PASS: TestUsersAPI/TestUserErrors/bad_username (0.00s) --- PASS: TestUsersAPI/TestUserGroups (0.01s) --- PASS: TestUsersAPI/TestUserGroups/no_groups (0.00s) --- PASS: TestUsersAPI/TestUserGroups/groups (0.00s) --- PASS: TestUsersAPI/TestUserGroups/no_such_user (0.00s) - --- PASS: TestUsersAPI/TestUserIDPGroups (0.02s) + --- PASS: TestUsersAPI/TestUserIDPGroups (0.01s) --- PASS: TestUsersAPI/TestUserTokenNotFound (0.01s) - --- PASS: TestUsersAPI/TestUsernameContainingUnderscore (0.01s) + --- PASS: TestUsersAPI/TestUsernameContainingUnderscore (0.00s) --- PASS: TestUsersAPI/TestVerifyUserToken (0.01s) - --- PASS: TestUsersAPI/TestWhoAmIWithAuthenticatedUser (0.00s) - --- PASS: TestUsersAPI/TestWhoAmIWithNoUser (0.01s) + --- PASS: TestUsersAPI/TestWhoAmIWithAuthenticatedUser (0.01s) + --- PASS: TestUsersAPI/TestWhoAmIWithNoUser (0.00s) PASS -ok github.com/canonical/candid/internal/v1 0.600s +ok github.com/canonical/candid/internal/v1 0.275s === RUN TestRendezvousWaitBeforeDone --- PASS: TestRendezvousWaitBeforeDone (0.00s) === RUN TestRendezvousDoneBeforeWait ---- PASS: TestRendezvousDoneBeforeWait (0.01s) +--- PASS: TestRendezvousDoneBeforeWait (0.00s) === RUN TestRendezvousDifferentPlaces ---- PASS: TestRendezvousDifferentPlaces (0.00s) +--- PASS: TestRendezvousDifferentPlaces (0.01s) === RUN TestEntriesRemovedOnClose --- PASS: TestEntriesRemovedOnClose (0.00s) === RUN TestRunGCNotDying @@ -2409,18 +2445,18 @@ === RUN TestPutFailure --- PASS: TestPutFailure (0.00s) === RUN TestWaitTimeout - meeting_test.go:408: starting wait "3b42abfaff95c1bf28276a54c1e59fc5" + meeting_test.go:408: starting wait "5f96c914169799c5e038f2a0c9481f22" meeting_test.go:436: after second wait, now: 2016-01-01 12:00:02.000000002 +0000 UTC meeting_test.go:441: expiry deadline 2016-01-01 12:00:05 +0000 UTC meeting_test.go:451: final wait from 2016-01-01 12:00:04.999 +0000 UTC: 1.000001ms meeting_test.go:454: final time 2016-01-01 12:00:05.000000001 +0000 UTC ---- PASS: TestWaitTimeout (0.04s) +--- PASS: TestWaitTimeout (0.03s) === RUN TestRequestCompletedCalled --- PASS: TestRequestCompletedCalled (0.00s) === RUN TestRequestsExpiredCalled --- PASS: TestRequestsExpiredCalled (0.00s) PASS -ok github.com/canonical/candid/meeting 0.123s +ok github.com/canonical/candid/meeting 0.076s === RUN TestUsernameTextUnmarshal === RUN TestUsernameTextUnmarshal/user === RUN TestUsernameTextUnmarshal/admin@idm @@ -2432,7 +2468,7 @@ --- PASS: TestUsernameTextUnmarshal/agent@admin@idm (0.00s) --- PASS: TestUsernameTextUnmarshal/toolongusername_0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef_ (0.00s) PASS -ok github.com/canonical/candid/params 0.060s +ok github.com/canonical/candid/params 0.048s === RUN TestNotFoundError --- PASS: TestNotFoundError (0.00s) === RUN TestDuplicateUsernameError @@ -2440,7 +2476,7 @@ === RUN TestProviderIdentity --- PASS: TestProviderIdentity (0.00s) PASS -ok github.com/canonical/candid/store 0.123s +ok github.com/canonical/candid/store 0.051s === RUN TestKeyValueStore === RUN TestKeyValueStore/TestGetNotFound === RUN TestKeyValueStore/TestSet @@ -2455,7 +2491,7 @@ === RUN TestKeyValueStore/TestUpdateReturnNilThenUpdatesAsNonNil === RUN TestKeyValueStore/TestUpdateSuccessWithPreexistingKey === RUN TestKeyValueStore/TestUpdateSuccessWithoutPreexistingKey ---- PASS: TestKeyValueStore (0.82s) +--- PASS: TestKeyValueStore (0.23s) --- PASS: TestKeyValueStore/TestGetNotFound (0.00s) --- PASS: TestKeyValueStore/TestSet (0.00s) --- PASS: TestKeyValueStore/TestSetKeyOnce (0.00s) @@ -2463,7 +2499,7 @@ --- PASS: TestKeyValueStore/TestSetNilUpdatesAsNonNil (0.00s) --- PASS: TestKeyValueStore/TestTwoStoresForDifferentIDPsAreIndependent (0.00s) --- PASS: TestKeyValueStore/TestTwoStoresForTheSameIDPCommunicate (0.00s) - --- PASS: TestKeyValueStore/TestUpdateConcurrent (0.81s) + --- PASS: TestKeyValueStore/TestUpdateConcurrent (0.23s) --- PASS: TestKeyValueStore/TestUpdateErrorWithExistingKey (0.00s) --- PASS: TestKeyValueStore/TestUpdateErrorWithNonExistentKey (0.00s) --- PASS: TestKeyValueStore/TestUpdateReturnNilThenUpdatesAsNonNil (0.00s) @@ -2560,7 +2596,7 @@ === RUN TestStore/TestUpdateIdentity/providerID_empty_update === RUN TestStore/TestUpdateNotFoundNoQuery === RUN TestStore/TestUserCredentials ---- PASS: TestStore (0.09s) +--- PASS: TestStore (0.10s) --- PASS: TestStore/TestFindIdentities (0.06s) --- PASS: TestStore/TestIdentity (0.00s) --- PASS: TestStore/TestIdentityCounts (0.00s) @@ -2570,8 +2606,8 @@ --- PASS: TestStore/TestInsertDuplicateUsername (0.00s) --- PASS: TestStore/TestUpdateIDDuplicateUsername (0.00s) --- PASS: TestStore/TestUpdateIDEmpty (0.00s) - --- PASS: TestStore/TestUpdateIdentity (0.03s) - --- PASS: TestStore/TestUpdateIdentity/new_identity (0.01s) + --- PASS: TestStore/TestUpdateIdentity (0.04s) + --- PASS: TestStore/TestUpdateIdentity/new_identity (0.00s) --- PASS: TestStore/TestUpdateIdentity/new_identity_with_existing_username (0.00s) --- PASS: TestStore/TestUpdateIdentity/set_username (0.00s) --- PASS: TestStore/TestUpdateIdentity/set_username_to_existing_username (0.00s) @@ -2593,10 +2629,10 @@ --- PASS: TestStore/TestUpdateIdentity/set_public_keys (0.00s) --- PASS: TestStore/TestUpdateIdentity/set_public_keys_empty (0.00s) --- PASS: TestStore/TestUpdateIdentity/clear_public_keys (0.00s) - --- PASS: TestStore/TestUpdateIdentity/push_public_keys (0.01s) + --- PASS: TestStore/TestUpdateIdentity/push_public_keys (0.00s) --- PASS: TestStore/TestUpdateIdentity/push_public_keys_empty (0.00s) --- PASS: TestStore/TestUpdateIdentity/pull_public_keys (0.00s) - --- PASS: TestStore/TestUpdateIdentity/pull_public_keys_empty (0.01s) + --- PASS: TestStore/TestUpdateIdentity/pull_public_keys_empty (0.00s) --- PASS: TestStore/TestUpdateIdentity/set_provider_info (0.00s) --- PASS: TestStore/TestUpdateIdentity/set_provider_info_empty (0.00s) --- PASS: TestStore/TestUpdateIdentity/clear_provider_info (0.00s) @@ -2626,26 +2662,26 @@ === RUN TestMeetingStore/TestPutSameIDTwice === RUN TestMeetingStore/TestRemoveNothingRemoved === RUN TestMeetingStore/TestRemoveOld ---- PASS: TestMeetingStore (0.01s) +--- PASS: TestMeetingStore (0.00s) --- PASS: TestMeetingStore/TestContext (0.00s) --- PASS: TestMeetingStore/TestPutGetRemove (0.00s) --- PASS: TestMeetingStore/TestPutSameIDTwice (0.00s) - --- PASS: TestMeetingStore/TestRemoveNothingRemoved (0.01s) + --- PASS: TestMeetingStore/TestRemoveNothingRemoved (0.00s) --- PASS: TestMeetingStore/TestRemoveOld (0.00s) === RUN TestACLStore --- PASS: TestACLStore (0.00s) === RUN TestConfigUnmarshal --- PASS: TestConfigUnmarshal (0.00s) PASS -ok github.com/canonical/candid/store/memstore 0.995s +ok github.com/canonical/candid/store/memstore 0.361s testing: warning: no tests to run PASS -ok github.com/canonical/candid/store/mgostore 0.054s [no tests to run] +ok github.com/canonical/candid/store/mgostore 0.021s [no tests to run] ? github.com/canonical/candid/store/storetest [no test files] ? github.com/canonical/candid/version [no test files] testing: warning: no tests to run PASS -ok github.com/canonical/candid/store/sqlstore 0.091s [no tests to run] +ok github.com/canonical/candid/store/sqlstore 0.018s [no tests to run] create-stamp debian/debhelper-build-stamp dh_testroot -O--builddirectory=_build -O--buildsystem=golang dh_prep -O--builddirectory=_build -O--buildsystem=golang @@ -2672,12 +2708,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/2781349/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/2781349/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/4158943 and its subdirectories -I: Current time: Sat Jun 7 06:30:35 -12 2025 -I: pbuilder-time-stamp: 1749321035 +I: removing directory /srv/workspace/pbuilder/2781349 and its subdirectories +I: Current time: Mon May 6 02:09:08 +14 2024 +I: pbuilder-time-stamp: 1714910948