Diff of the two buildlogs: -- --- b1/build.log 2025-03-08 17:30:17.014160722 +0000 +++ b2/build.log 2025-03-08 17:33:21.053900442 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Fri Apr 10 11:47:52 -12 2026 -I: pbuilder-time-stamp: 1775864872 +I: Current time: Sun Mar 9 07:30:19 +14 2025 +I: pbuilder-time-stamp: 1741455019 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/unstable-reproducible-base.tgz] I: copying local configuration @@ -32,51 +32,83 @@ 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/1871348/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/3432924/tmp/hooks/D01_modify_environment starting +debug: Running on infom01-amd64. +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 Mar 8 17:30 /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/3432924/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/3432924/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='amd64' - 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]="37" [3]="1" [4]="release" [5]="x86_64-pc-linux-gnu") + BASH_VERSION='5.2.37(1)-release' + BUILDDIR=/build/reproducible-path + BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' + BUILDUSERNAME=pbuilder2 + BUILD_ARCH=amd64 + DEBIAN_FRONTEND=noninteractive DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=12 ' - DISTRIBUTION='unstable' - HOME='/root' - HOST_ARCH='amd64' + DIRSTACK=() + DISTRIBUTION=unstable + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=x86_64 + HOST_ARCH=amd64 IFS=' ' - INVOCATION_ID='2471022b583948c597b7ae6e0da5889c' - 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='1871348' - PS1='# ' - PS2='> ' + INVOCATION_ID=21d82e5315fd4e9f963646f3937a177e + LANG=C + LANGUAGE=et_EE:et + LC_ALL=C + MACHTYPE=x86_64-pc-linux-gnu + MAIL=/var/mail/root + OPTERR=1 + OPTIND=1 + OSTYPE=linux-gnu + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path + PBCURRENTCOMMANDLINEOPERATION=build + PBUILDER_OPERATION=build + PBUILDER_PKGDATADIR=/usr/share/pbuilder + PBUILDER_PKGLIBDIR=/usr/lib/pbuilder + PBUILDER_SYSCONFDIR=/etc + PIPESTATUS=([0]="0") + POSIXLY_CORRECT=y + PPID=3432924 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.goNFP3nl/pbuilderrc_tonI --distribution unstable --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/unstable-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.goNFP3nl/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' + 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.goNFP3nl/pbuilderrc_jkEF --distribution unstable --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/unstable-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.goNFP3nl/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' I: uname -a - Linux infom02-amd64 6.12.12+bpo-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.12-1~bpo12+1 (2025-02-23) x86_64 GNU/Linux + Linux i-capture-the-hostname 6.1.0-31-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.128-1 (2025-02-07) x86_64 GNU/Linux I: ls -l /bin - lrwxrwxrwx 1 root root 7 Mar 4 2025 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/1871348/tmp/hooks/D02_print_environment finished + lrwxrwxrwx 1 root root 7 Mar 4 11:20 /bin -> usr/bin +I: user script /srv/workspace/pbuilder/3432924/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -385,7 +417,7 @@ Get: 185 http://deb.debian.org/debian unstable/main amd64 golang-github-mwitkow-go-conntrack-dev all 0.0~git20190716.2f06839-4 [14.6 kB] Get: 186 http://deb.debian.org/debian unstable/main amd64 golang-gopkg-goose.v1-dev all 0.0~git20170406.3228e4f-4 [97.8 kB] Get: 187 http://deb.debian.org/debian unstable/main amd64 golang-gopkg-natefinch-lumberjack.v2-dev all 2.1-2 [13.1 kB] -Fetched 152 MB in 3s (47.7 MB/s) +Fetched 152 MB in 2s (68.1 MB/s) Preconfiguring packages ... 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 ... 19783 files and directories currently installed.) @@ -1148,7 +1180,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/3432924/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for unstable +I: user script /srv/workspace/pbuilder/3432924/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 @@ -1181,19 +1217,19 @@ --- PASS: TestServer/TestNewServerWithVersions (0.00s) --- PASS: TestServer/TestVersions (0.00s) PASS -ok github.com/canonical/candid 0.013s +ok github.com/canonical/candid 0.009s === RUN TestIdentityClient ---- PASS: TestIdentityClient (0.02s) +--- PASS: TestIdentityClient (0.01s) === RUN TestIdentityClientWithDomainStrip --- PASS: TestIdentityClientWithDomainStrip (0.01s) === RUN TestIdentityClientWithDomainStripNoDomains --- PASS: TestIdentityClientWithDomainStripNoDomains (0.01s) === RUN TestPermChecker ---- PASS: TestPermChecker (0.01s) +--- PASS: TestPermChecker (0.00s) === RUN TestGroupCache --- PASS: TestGroupCache (0.01s) PASS -ok github.com/canonical/candid/candidclient 0.071s +ok github.com/canonical/candid/candidclient 0.046s === RUN TestRedirectURL --- PASS: TestRedirectURL (0.00s) === RUN TestInteractor @@ -1201,7 +1237,7 @@ === RUN TestParseLoginResult --- PASS: TestParseLoginResult (0.00s) PASS -ok github.com/canonical/candid/candidclient/redirect 0.008s +ok github.com/canonical/candid/candidclient/redirect 0.005s === RUN TestClient === RUN TestClient/TestAcquireDischarge === RUN TestClient/TestAcquireDischargeError @@ -1213,7 +1249,7 @@ === RUN TestClient/TestVisitorFunctionError === RUN TestClient/TestVisitorMethodNotSupported --- PASS: TestClient (0.01s) - --- PASS: TestClient/TestAcquireDischarge (0.01s) + --- PASS: TestClient/TestAcquireDischarge (0.00s) --- PASS: TestClient/TestAcquireDischargeError (0.00s) --- PASS: TestClient/TestDischargeAll (0.00s) --- PASS: TestClient/TestDischargeAllError (0.00s) @@ -1231,7 +1267,7 @@ === RUN TestUnmarshalUSSOMacaroonBadBinary --- PASS: TestUnmarshalUSSOMacaroonBadBinary (0.00s) PASS -ok github.com/canonical/candid/candidclient/ussodischarge 0.027s +ok github.com/canonical/candid/candidclient/ussodischarge 0.011s === RUN TestPutGetToken --- PASS: TestPutGetToken (0.00s) === RUN TestReadInvalidToken @@ -1253,21 +1289,21 @@ === RUN TestInteractGetTokenError --- PASS: TestInteractGetTokenError (0.00s) === RUN TestAuthenticatedRequest ---- PASS: TestAuthenticatedRequest (0.01s) +--- PASS: TestAuthenticatedRequest (0.00s) === RUN TestAuthenticatedRequestError --- PASS: TestAuthenticatedRequestError (0.00s) PASS -ok github.com/canonical/candid/candidclient/ussologin 0.022s +ok github.com/canonical/candid/candidclient/ussologin 0.009s === RUN TestDischarge --- PASS: TestDischarge (0.01s) === RUN TestDischargeDefaultUser --- PASS: TestDischargeDefaultUser (0.01s) === RUN TestGroups ---- PASS: TestGroups (0.01s) +--- PASS: TestGroups (0.00s) === RUN TestAddUserWithExistingGroups ---- PASS: TestAddUserWithExistingGroups (0.01s) +--- PASS: TestAddUserWithExistingGroups (0.00s) PASS -ok github.com/canonical/candid/candidtest 0.047s +ok github.com/canonical/candid/candidtest 0.029s ? github.com/canonical/candid/cmd/candid [no test files] === RUN TestACL === RUN TestACL/TestACLGrant @@ -1280,12 +1316,12 @@ === RUN TestACL/TestACLShowInvalid === RUN TestACL/TestACLShowNoACL === RUN TestACL/TestACLShowTwoACLs ---- PASS: TestACL (0.06s) - --- PASS: TestACL/TestACLGrant (0.01s) - --- PASS: TestACL/TestACLGrantInvalid (0.01s) +--- PASS: TestACL (0.03s) + --- PASS: TestACL/TestACLGrant (0.00s) + --- PASS: TestACL/TestACLGrantInvalid (0.00s) --- PASS: TestACL/TestACLGrantNoArguments (0.00s) - --- PASS: TestACL/TestACLRevoke (0.01s) - --- PASS: TestACL/TestACLRevokeInvalid (0.01s) + --- PASS: TestACL/TestACLRevoke (0.00s) + --- PASS: TestACL/TestACLRevokeInvalid (0.00s) --- PASS: TestACL/TestACLRevokeNoArguments (0.00s) --- PASS: TestACL/TestACLShow (0.01s) --- PASS: TestACL/TestACLShowInvalid (0.01s) @@ -1298,11 +1334,11 @@ === RUN TestAddGroup/TestAddGroupForEmailNotFound === RUN TestAddGroup/TestAddGroupNoUser === RUN TestAddGroup/TestAddGroupUserAndEmail ---- PASS: TestAddGroup (0.03s) - --- PASS: TestAddGroup/TestAddGroup (0.01s) - --- PASS: TestAddGroup/TestAddGroupForEmail (0.01s) +--- PASS: TestAddGroup (0.02s) + --- PASS: TestAddGroup/TestAddGroup (0.00s) + --- PASS: TestAddGroup/TestAddGroupForEmail (0.00s) --- PASS: TestAddGroup/TestAddGroupForEmailMultipleUsers (0.01s) - --- PASS: TestAddGroup/TestAddGroupForEmailNotFound (0.01s) + --- PASS: TestAddGroup/TestAddGroupForEmailNotFound (0.00s) --- PASS: TestAddGroup/TestAddGroupNoUser (0.00s) --- PASS: TestAddGroup/TestAddGroupUserAndEmail (0.00s) === RUN TestClearMFACredentials @@ -1310,7 +1346,7 @@ --- PASS: TestClearMFACredentials (0.01s) --- PASS: TestClearMFACredentials/TestClearMFACredentials (0.01s) === RUN TestLoadCACerts ---- PASS: TestLoadCACerts (0.09s) +--- PASS: TestLoadCACerts (0.01s) === RUN TestCreateAgent === RUN TestCreateAgent/TestCreateAgentWithAdminFlag === RUN TestCreateAgent/TestCreateAgentWithExistingAgentsFile @@ -1321,11 +1357,11 @@ 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.31s) - --- PASS: TestCreateAgent/TestCreateAgentWithAdminFlag (0.23s) +--- PASS: TestCreateAgent (0.24s) + --- PASS: TestCreateAgent/TestCreateAgentWithAdminFlag (0.10s) --- PASS: TestCreateAgent/TestCreateAgentWithExistingAgentsFile (0.06s) - --- PASS: TestCreateAgent/TestCreateAgentWithGeneratedKeyAndAgentFileNotSpecified (0.01s) - --- PASS: TestCreateAgent/TestCreateAgentWithNonExistentAgentsFileSpecified (0.01s) + --- PASS: TestCreateAgent/TestCreateAgentWithGeneratedKeyAndAgentFileNotSpecified (0.06s) + --- PASS: TestCreateAgent/TestCreateAgentWithNonExistentAgentsFileSpecified (0.00s) --- PASS: TestCreateAgent/TestCreateAgentWithParentFlag (0.01s) --- PASS: TestCreateAgent/TestUsage (0.00s) === RUN TestFind @@ -1336,21 +1372,21 @@ === RUN TestFind/TestFindNoParameters === RUN TestFind/TestFindWithEmail === RUN TestFind/TestFindWithEmailAndGravatar ---- PASS: TestFind (0.04s) +--- PASS: TestFind (0.03s) --- PASS: TestFind/TestFindEmail (0.01s) - --- PASS: TestFind/TestFindEmailNotFound (0.01s) - --- PASS: TestFind/TestFindLastDischargeTime (0.01s) + --- PASS: TestFind/TestFindEmailNotFound (0.00s) + --- PASS: TestFind/TestFindLastDischargeTime (0.00s) --- PASS: TestFind/TestFindLastLoginTime (0.00s) - --- PASS: TestFind/TestFindNoParameters (0.01s) - --- PASS: TestFind/TestFindWithEmail (0.01s) - --- PASS: TestFind/TestFindWithEmailAndGravatar (0.01s) + --- PASS: TestFind/TestFindNoParameters (0.00s) + --- PASS: TestFind/TestFindWithEmail (0.00s) + --- PASS: TestFind/TestFindWithEmailAndGravatar (0.00s) === RUN TestRemoveGroup === RUN TestRemoveGroup/TestRemoveGroup === RUN TestRemoveGroup/TestRemoveGroupForEmail === RUN TestRemoveGroup/TestRemoveGroupForEmailNotFound === RUN TestRemoveGroup/TestRemoveGroupNoUser ---- PASS: TestRemoveGroup (0.02s) - --- PASS: TestRemoveGroup/TestRemoveGroup (0.01s) +--- PASS: TestRemoveGroup (0.01s) + --- PASS: TestRemoveGroup/TestRemoveGroup (0.00s) --- PASS: TestRemoveGroup/TestRemoveGroupForEmail (0.00s) --- PASS: TestRemoveGroup/TestRemoveGroupForEmailNotFound (0.00s) --- PASS: TestRemoveGroup/TestRemoveGroupNoUser (0.00s) @@ -1364,18 +1400,18 @@ === RUN TestShow/TestShowUserJSON === RUN TestShow/TestShowUserWithAgentEnv === RUN TestShow/TestShowZeroValues ---- PASS: TestShow (0.05s) - --- PASS: TestShow/TestShowAgentUser (0.01s) - --- PASS: TestShow/TestShowEmail (0.01s) - --- PASS: TestShow/TestShowEmailNotFound (0.01s) +--- PASS: TestShow (0.03s) + --- PASS: TestShow/TestShowAgentUser (0.00s) + --- PASS: TestShow/TestShowEmail (0.00s) + --- PASS: TestShow/TestShowEmailNotFound (0.00s) --- PASS: TestShow/TestShowNoParameters (0.00s) --- PASS: TestShow/TestShowUser (0.00s) - --- PASS: TestShow/TestShowUserError (0.01s) - --- PASS: TestShow/TestShowUserJSON (0.01s) - --- PASS: TestShow/TestShowUserWithAgentEnv (0.01s) - --- PASS: TestShow/TestShowZeroValues (0.01s) + --- PASS: TestShow/TestShowUserError (0.00s) + --- PASS: TestShow/TestShowUserJSON (0.00s) + --- PASS: TestShow/TestShowUserWithAgentEnv (0.00s) + --- PASS: TestShow/TestShowZeroValues (0.00s) PASS -ok github.com/canonical/candid/cmd/candid/internal/admincmd 0.634s +ok github.com/canonical/candid/cmd/candid/internal/admincmd 0.386s ? github.com/canonical/candid/cmd/candidsrv [no test files] ? github.com/canonical/candid/cmd/migrate-db [no test files] === RUN TestSplitStoreSpecification @@ -1396,10 +1432,10 @@ === RUN TestCopySrcError --- PASS: TestCopySrcError (0.00s) === RUN TestCopyDstError -2026/04/10 23:52:44 error checking destination store: test error +2025/03/08 17:33:08 error checking destination store: test error --- PASS: TestCopyDstError (0.00s) PASS -ok github.com/canonical/candid/cmd/migrate-db/internal 0.013s +ok github.com/canonical/candid/cmd/migrate-db/internal 0.005s ? github.com/canonical/candid/cmd/migrate-db/internal/mongodoc [no test files] === RUN TestRead --- PASS: TestRead (0.00s) @@ -1412,7 +1448,7 @@ === RUN TestUnrecognisedIDP --- PASS: TestUnrecognisedIDP (0.00s) PASS -ok github.com/canonical/candid/config 0.018s +ok github.com/canonical/candid/config 0.006s ? github.com/canonical/candid/idp [no test files] === RUN TestConfig === RUN TestConfig/good_config @@ -1425,7 +1461,7 @@ --- PASS: TestConfig/no_client-secret (0.00s) --- PASS: TestConfig/no_issuer (0.00s) PASS -ok github.com/canonical/candid/idp/adfs 0.009s +ok github.com/canonical/candid/idp/adfs 0.005s === RUN TestConfig --- PASS: TestConfig (0.00s) === RUN TestName @@ -1443,7 +1479,7 @@ === RUN TestInitProducesError --- PASS: TestInitProducesError (0.00s) PASS -ok github.com/canonical/candid/idp/agent 0.007s +ok github.com/canonical/candid/idp/agent 0.005s === RUN TestConfig === RUN TestConfig/good_config === RUN TestConfig/no_client-id @@ -1453,7 +1489,7 @@ --- PASS: TestConfig/no_client-id (0.00s) --- PASS: TestConfig/no_client-secret (0.00s) PASS -ok github.com/canonical/candid/idp/azure 0.008s +ok github.com/canonical/candid/idp/azure 0.005s === RUN TestConfig === RUN TestConfig/good_config === RUN TestConfig/no_client-id @@ -1463,7 +1499,7 @@ --- PASS: TestConfig/no_client-id (0.00s) --- PASS: TestConfig/no_client-secret (0.00s) PASS -ok github.com/canonical/candid/idp/google 0.014s +ok github.com/canonical/candid/idp/google 0.005s ? 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] @@ -1490,7 +1526,7 @@ === RUN TestCookieValidationError --- PASS: TestCookieValidationError (0.00s) PASS -ok github.com/canonical/candid/idp/idputil/secret 0.010s +ok github.com/canonical/candid/idp/idputil/secret 0.006s === RUN TestConfig === RUN TestConfig/good_config === RUN TestConfig/another_good_config @@ -1502,32 +1538,32 @@ --- PASS: TestConfig/no_client-id (0.00s) --- PASS: TestConfig/no_keycloak-realm (0.00s) PASS -ok github.com/canonical/candid/idp/keycloak 0.012s +ok github.com/canonical/candid/idp/keycloak 0.005s === 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(2026, time.April, 10, 23, 52, 46, 762043743, 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)(0xc000314cd0), 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(2025, time.March, 8, 17, 33, 10, 634487854, 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)(0xc000134fa0), 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:"4b80a4f72230b2b2a5a8e5deadebb9f434738fe764fe929f94a50bb38c3a81edID"} -> 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:36813/login-complete", State:"XFTzsD7iESdDU0QKyCIODr-GYOPXOukZKjtDnLV2RL4"} -> bakery.Op{Entity:"global", Action:"login"} - logging.go:37: DEBUG candid.internal.discharger opForRequest &discharger.loginCompleteRequest{Route:httprequest.Route{}, State:"XFTzsD7iESdDU0QKyCIODr-GYOPXOukZKjtDnLV2RL4", Code:"jtn0m7_xvMq0HX13CUvAvnfkbMiAvMSJW3bQcRjquRw", ErrorCode:"", Error:""} -> bakery.Op{Entity:"global", Action:"login"} + logging.go:37: DEBUG candid.internal.discharger opForRequest &discharger.loginRequest{Route:httprequest.Route{}, Domain:"", DischargeID:"f022fff97a62a5d09c8f5029c52f12312380e70d48f7c415ff70f9910a4bf948ID"} -> 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:44925/login-complete", State:"s5xmozbPbbEE17Rqdj6arV5tFsYSPRowxMGy8Aeb4Z4"} -> bakery.Op{Entity:"global", Action:"login"} + logging.go:37: DEBUG candid.internal.discharger opForRequest &discharger.loginCompleteRequest{Route:httprequest.Route{}, State:"s5xmozbPbbEE17Rqdj6arV5tFsYSPRowxMGy8Aeb4Z4", Code:"KSb5PGV_LA72gjDmRWvBVLLanwErjq-PmZdIx2O_iMA", 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:"4b80a4f72230b2b2a5a8e5deadebb9f434738fe764fe929f94a50bb38c3a81edID"} -> bakery.Op{Entity:"global", Action:"login"} - logging.go:37: INFO candid.meeting Wait "4b80a4f72230b2b2a5a8e5deadebb9f434738fe764fe929f94a50bb38c3a81edID" - logging.go:37: INFO candid.meeting localWait "4b80a4f72230b2b2a5a8e5deadebb9f434738fe764fe929f94a50bb38c3a81edID" + logging.go:37: DEBUG candid.internal.discharger opForRequest &discharger.waitTokenRequest{Route:httprequest.Route{}, DischargeID:"f022fff97a62a5d09c8f5029c52f12312380e70d48f7c415ff70f9910a4bf948ID"} -> bakery.Op{Entity:"global", Action:"login"} + logging.go:37: INFO candid.meeting Wait "f022fff97a62a5d09c8f5029c52f12312380e70d48f7c415ff70f9910a4bf948ID" + logging.go:37: INFO candid.meeting localWait "f022fff97a62a5d09c8f5029c52f12312380e70d48f7c415ff70f9910a4bf948ID" 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(2026, time.April, 10, 23, 52, 46, 776902293, 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)(0xc0000349b0), 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(2025, time.March, 8, 17, 33, 10, 641115068, 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)(0xc000298be0), 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(2026, time.April, 10, 23, 52, 46, 782467698, 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)(0xc0001c4d70), 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(2025, time.March, 8, 17, 33, 10, 643958449, 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)(0xc0003dc460), resolvedGroups:[]string(nil)} succeeded logging.go:37: DEBUG candid.internal.identity Closing Server ---- PASS: TestDischarge (0.03s) - --- PASS: TestDischarge/TestFormDischarge (0.01s) +--- PASS: TestDischarge (0.01s) + --- PASS: TestDischarge/TestFormDischarge (0.00s) --- PASS: TestDischarge/TestInteractiveDischarge (0.01s) - --- PASS: TestDischarge/TestTokenDischarge (0.01s) + --- PASS: TestDischarge/TestTokenDischarge (0.00s) === RUN TestKeystone === RUN TestKeystone/TestAbsoluteIconURL === RUN TestKeystone/TestIconURL @@ -1553,7 +1589,7 @@ --- PASS: TestKeystone/TestKeystoneIdentityProviderHandleExistingUser (0.00s) --- PASS: TestKeystone/TestKeystoneIdentityProviderHandlePostBadPassword (0.00s) --- PASS: TestKeystone/TestKeystoneIdentityProviderHandlePostNoTenants (0.00s) - --- PASS: TestKeystone/TestKeystoneIdentityProviderHandleSuccess (0.00s) + --- PASS: TestKeystone/TestKeystoneIdentityProviderHandleSuccess (0.01s) --- PASS: TestKeystone/TestKeystoneIdentityProviderHidden (0.00s) --- PASS: TestKeystone/TestKeystoneIdentityProviderInteractive (0.00s) --- PASS: TestKeystone/TestKeystoneIdentityProviderName (0.00s) @@ -1571,7 +1607,7 @@ === RUN TestToken/TestKeystoneTokenIdentityProviderHidden === RUN TestToken/TestKeystoneTokenIdentityProviderInteractive === RUN TestToken/TestRegisterConfig ---- PASS: TestToken (0.01s) +--- PASS: TestToken (0.00s) --- PASS: TestToken/TestKeystoneTokenIdentityProviderHandle (0.00s) --- PASS: TestToken/TestKeystoneTokenIdentityProviderHandleBadRequest (0.00s) --- PASS: TestToken/TestKeystoneTokenIdentityProviderHandleBadToken (0.00s) @@ -1585,7 +1621,7 @@ === RUN TestTokenV3/TestKeystoneV3TokenIdentityProviderHidden === RUN TestTokenV3/TestKeystoneV3TokenIdentityProviderInteractive === RUN TestTokenV3/TestRegisterConfig ---- PASS: TestTokenV3 (0.01s) +--- PASS: TestTokenV3 (0.00s) --- PASS: TestTokenV3/TestKeystoneV3TokenIdentityProviderHandle (0.00s) --- PASS: TestTokenV3/TestKeystoneV3TokenIdentityProviderHandleBadRequest (0.00s) --- PASS: TestTokenV3/TestKeystoneV3TokenIdentityProviderHandleBadToken (0.00s) @@ -1600,7 +1636,7 @@ === RUN TestUserPass/TestKeystoneUserpassIdentityProviderHidden === RUN TestUserPass/TestKeystoneUserpassIdentityProviderInteractive === RUN TestUserPass/TestRegisterConfig ---- PASS: TestUserPass (0.01s) +--- PASS: TestUserPass (0.00s) --- PASS: TestUserPass/TestKeystoneUserpassIdentityProviderHandle (0.00s) --- PASS: TestUserPass/TestKeystoneUserpassIdentityProviderHandleBadRequest (0.00s) --- PASS: TestUserPass/TestKeystoneUserpassIdentityProviderHandleNoUsername (0.00s) @@ -1609,7 +1645,7 @@ --- PASS: TestUserPass/TestKeystoneUserpassIdentityProviderInteractive (0.00s) --- PASS: TestUserPass/TestRegisterConfig (0.00s) PASS -ok github.com/canonical/candid/idp/keystone 0.089s +ok github.com/canonical/candid/idp/keystone 0.052s === RUN TestUnmarshalError === RUN TestUnmarshalError/error === RUN TestUnmarshalError/bad_json @@ -1625,11 +1661,11 @@ --- PASS: TestTimeUnmarshalJSON/test1 (0.00s) --- PASS: TestTimeUnmarshalJSON/test2 (0.00s) PASS -ok github.com/canonical/candid/idp/keystone/internal/keystone 0.007s +ok github.com/canonical/candid/idp/keystone/internal/keystone 0.008s ? github.com/canonical/candid/idp/keystone/internal/mockkeystone [no test files] === RUN TestInteractiveDischarge -2026-04-10 23:52:47 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified ---- PASS: TestInteractiveDischarge (0.01s) +2025-03-08 17:33:10 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +--- PASS: TestInteractiveDischarge (0.00s) === RUN TestLDAP === RUN TestLDAP/TestAbsoluteIconURL === RUN TestLDAP/TestDescription @@ -1659,7 +1695,7 @@ === RUN TestLDAP/TestNewIdentityProvider/invalid_group_query_filter_expression === RUN TestLDAP/TestRelativeIconURL === RUN TestLDAP/TestURL ---- PASS: TestLDAP (0.02s) +--- PASS: TestLDAP (0.03s) --- PASS: TestLDAP/TestAbsoluteIconURL (0.00s) --- PASS: TestLDAP/TestDescription (0.00s) --- PASS: TestLDAP/TestDomain (0.00s) @@ -1669,7 +1705,7 @@ --- PASS: TestLDAP/TestHandleFailedLogin (0.00s) --- PASS: TestLDAP/TestHandleIncorrectUsername (0.00s) --- PASS: TestLDAP/TestHandleUserDetails (0.00s) - --- PASS: TestLDAP/TestHandleUserDetailsCustomIDAttr (0.00s) + --- PASS: TestLDAP/TestHandleUserDetailsCustomIDAttr (0.01s) --- PASS: TestLDAP/TestHandleUserFilterNoMatch (0.00s) --- PASS: TestLDAP/TestHandleWithGroups (0.00s) --- PASS: TestLDAP/TestHidden (0.00s) @@ -1689,7 +1725,7 @@ --- PASS: TestLDAP/TestRelativeIconURL (0.00s) --- PASS: TestLDAP/TestURL (0.00s) PASS -ok github.com/canonical/candid/idp/ldap 0.041s +ok github.com/canonical/candid/idp/ldap 0.052s === RUN TestConfig === RUN TestConfig/OK === RUN TestConfig/NoName @@ -1730,7 +1766,7 @@ --- PASS: TestHandleCallback/NewUserWithUsername (0.01s) --- PASS: TestHandleCallback/NewUserNoUsername (0.01s) --- PASS: TestHandleCallback/ExistingUserNoClaims (0.01s) - --- PASS: TestHandleCallback/ExistingUserUpdateClaims (0.03s) + --- PASS: TestHandleCallback/ExistingUserUpdateClaims (0.01s) --- PASS: TestHandleCallback/PreferredUsernameTaken (0.02s) === RUN TestHandleRegister === RUN TestHandleRegister/Success @@ -1741,10 +1777,10 @@ --- PASS: TestHandleRegister/InvalidUsername (0.00s) --- PASS: TestHandleRegister/InvalidUsername#01 (0.00s) PASS -ok github.com/canonical/candid/idp/openid 0.084s +ok github.com/canonical/candid/idp/openid 0.073s === RUN TestInteractiveDischarge -2026-04-10 23:52:48 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified ---- PASS: TestInteractiveDischarge (0.01s) +2025-03-08 17:33:11 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +--- PASS: TestInteractiveDischarge (0.00s) === RUN TestStatic === RUN TestStatic/TestAbsoluteIconURL === RUN TestStatic/TestDescription @@ -1760,7 +1796,7 @@ === RUN TestStatic/TestInteractive === RUN TestStatic/TestName === RUN TestStatic/TestRelativeIconURL ---- PASS: TestStatic (0.02s) +--- PASS: TestStatic (0.01s) --- PASS: TestStatic/TestAbsoluteIconURL (0.00s) --- PASS: TestStatic/TestDescription (0.00s) --- PASS: TestStatic/TestDomain (0.00s) @@ -1776,10 +1812,10 @@ --- PASS: TestStatic/TestName (0.00s) --- PASS: TestStatic/TestRelativeIconURL (0.00s) PASS -ok github.com/canonical/candid/idp/static 0.034s +ok github.com/canonical/candid/idp/static 0.024s === RUN TestInteractiveDischarge -2026-04-10 23:52:48 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified ---- PASS: TestInteractiveDischarge (0.03s) +2025-03-08 17:33:11 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +--- PASS: TestInteractiveDischarge (0.00s) === RUN TestUSSO === RUN TestUSSO/TestAbsoluteIconURL === RUN TestUSSO/TestConfig @@ -1804,9 +1840,9 @@ === RUN TestUSSO/TestUpdateIdentity === RUN TestUSSO/TestUpdateIdentityKeepsUsernameIfFixed === RUN TestUSSO/TestUpdateIdentityKeepsUsernameIfNewNameInvalid -2026-04-10 23:52:48 WARNING candid.idp.usso usso.go:250 not updating username for usso:https://login.ubuntu.com/+id/test to invalid username "test-changed-" +2025-03-08 17:33:11 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.06s) +--- PASS: TestUSSO (0.02s) --- PASS: TestUSSO/TestAbsoluteIconURL (0.00s) --- PASS: TestUSSO/TestConfig (0.00s) --- PASS: TestUSSO/TestDescription (0.00s) @@ -1814,25 +1850,25 @@ --- PASS: TestUSSO/TestGetGroups (0.00s) --- PASS: TestUSSO/TestGetGroupsReturnsNewSlice (0.00s) --- PASS: TestUSSO/TestHandleNoExtensionsNotFound (0.00s) - --- PASS: TestUSSO/TestHandleRegisterUserError (0.01s) + --- PASS: TestUSSO/TestHandleRegisterUserError (0.00s) --- PASS: TestUSSO/TestHandleSuccess (0.00s) --- PASS: TestUSSO/TestHandleSuccessNoExtensions (0.00s) --- PASS: TestUSSO/TestHidden (0.00s) --- PASS: TestUSSO/TestIconURL (0.00s) --- PASS: TestUSSO/TestInteractive (0.00s) - --- PASS: TestUSSO/TestInteractiveLoginFromDifferentProvider (0.01s) + --- PASS: TestUSSO/TestInteractiveLoginFromDifferentProvider (0.00s) --- PASS: TestUSSO/TestInvalidCookie (0.00s) --- PASS: TestUSSO/TestName (0.00s) --- PASS: TestUSSO/TestRedirect (0.00s) --- 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.00s) --- PASS: TestUSSO/TestUpdateIdentityKeepsUsernameIfNewNameInvalid (0.00s) - --- PASS: TestUSSO/TestWithDomain (0.01s) + --- PASS: TestUSSO/TestWithDomain (0.00s) PASS -ok github.com/canonical/candid/idp/usso 0.136s +ok github.com/canonical/candid/idp/usso 0.048s === RUN TestAccept === RUN TestAccept/not_seen store_test.go:74: 0. not seen @@ -1857,7 +1893,7 @@ --- PASS: TestAccept/bad_time (0.00s) --- PASS: TestAccept/too_old (0.00s) PASS -ok github.com/canonical/candid/idp/usso/internal/kvnoncestore 0.040s +ok github.com/canonical/candid/idp/usso/internal/kvnoncestore 0.011s ? github.com/canonical/candid/idp/usso/internal/mockusso [no test files] === RUN TestConfig --- PASS: TestConfig (0.00s) @@ -1891,7 +1927,7 @@ === RUN TestHandlePost/account_bad_base64 === RUN TestHandlePost/account_bad_json === RUN TestHandlePost/without_argument ---- PASS: TestHandlePost (0.01s) +--- PASS: TestHandlePost (0.00s) --- PASS: TestHandlePost/success (0.00s) --- PASS: TestHandlePost/no_account (0.00s) --- PASS: TestHandlePost/expires_bad_format (0.00s) @@ -1904,10 +1940,10 @@ === RUN TestMultipleLogins --- PASS: TestMultipleLogins (0.00s) PASS -ok github.com/canonical/candid/idp/usso/ussodischarge 0.072s +ok github.com/canonical/candid/idp/usso/ussodischarge 0.024s ? github.com/canonical/candid/idp/usso/ussodischarge/cmd/login [no test files] === RUN TestDischarge ---- PASS: TestDischarge (0.01s) +--- PASS: TestDischarge (0.00s) === RUN TestConfig --- PASS: TestConfig (0.00s) === RUN TestUSSOAuth @@ -1919,7 +1955,7 @@ === RUN TestUSSOAuth/TestInteractive === RUN TestUSSOAuth/TestName === RUN TestUSSOAuth/TestURL ---- PASS: TestUSSOAuth (0.01s) +--- PASS: TestUSSOAuth (0.00s) --- PASS: TestUSSOAuth/TestDescription (0.00s) --- PASS: TestUSSOAuth/TestHandleSuccess (0.00s) --- PASS: TestUSSOAuth/TestHandleVerifyFail (0.00s) @@ -1929,7 +1965,7 @@ --- PASS: TestUSSOAuth/TestName (0.00s) --- PASS: TestUSSOAuth/TestURL (0.00s) PASS -ok github.com/canonical/candid/idp/usso/ussooauth 0.025s +ok github.com/canonical/candid/idp/usso/ussooauth 0.021s === RUN TestAuth === RUN TestAuth/TestACLForOp === RUN TestAuth/TestACLForOp/other-read @@ -1966,7 +2002,7 @@ === RUN TestAuth/TestNonExistentUser === RUN TestAuth/TestUserHasPublicKeyCaveat === RUN TestAuth/TestUserHasPublicKeyChecker ---- PASS: TestAuth (0.01s) +--- PASS: TestAuth (0.00s) --- PASS: TestAuth/TestACLForOp (0.00s) --- PASS: TestAuth/TestACLForOp/other-read (0.00s) --- PASS: TestAuth/TestACLForOp/global-read (0.00s) @@ -2003,7 +2039,7 @@ --- PASS: TestAuth/TestUserHasPublicKeyCaveat (0.00s) --- PASS: TestAuth/TestUserHasPublicKeyChecker (0.00s) PASS -ok github.com/canonical/candid/internal/auth 0.018s +ok github.com/canonical/candid/internal/auth 0.010s === RUN TestAuth === RUN TestAuth/TestAuthorizeMacaroonRequired === RUN TestAuth/TestAuthorizeWithAdminCredentials @@ -2019,11 +2055,11 @@ --- 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.011s +ok github.com/canonical/candid/internal/auth/httpauth 0.012s ? github.com/canonical/candid/internal/candidtest [no test files] testing: warning: no tests to run PASS -ok github.com/canonical/candid/internal/debug 0.008s [no tests to run] +ok github.com/canonical/candid/internal/debug 0.006s [no tests to run] === RUN TestDischarge === RUN TestDischarge/TestDischargeBrowserRedirectLogin === RUN TestDischarge/TestDischargeBrowserRedirectLoginNotTrusted @@ -2031,82 +2067,82 @@ discharge_test.go:462: test 0. discharge macaroon discharge_test.go:462: test 1. no authentication discharge_test.go:462: test 2. unsupported user -2026-04-10 23:52:50 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}]) +2025-03-08 17:33:13 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 -2026-04-10 23:52:50 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}]) +2025-03-08 17:33:13 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 -2026-04-10 23:52:50 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"}]) +2025-03-08 17:33:13 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 -2026-04-10 23:52:50 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +2025-03-08 17:33:13 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified === RUN TestDischarge/TestDischargeMemberOf/ManyGroupsOneIsUsername -2026-04-10 23:52:50 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +2025-03-08 17:33:13 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified === RUN TestDischarge/TestDischargeMemberOf/SingleGroupMatch -2026-04-10 23:52:50 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +2025-03-08 17:33:13 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified === RUN TestDischarge/TestDischargeMemberOf/ManyGroupsAllMatch -2026-04-10 23:52:50 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +2025-03-08 17:33:13 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified === RUN TestDischarge/TestDischargeMemberOf/SingleGroupNoMatch -2026-04-10 23:52:50 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified -2026-04-10 23:52:50 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}]) +2025-03-08 17:33:13 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +2025-03-08 17:33:13 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 -2026-04-10 23:52:50 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +2025-03-08 17:33:13 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified === RUN TestDischarge/TestDischargeMemberOf/ManyGroupsNoMatch -2026-04-10 23:52:50 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified -2026-04-10 23:52:50 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}]) +2025-03-08 17:33:13 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +2025-03-08 17:33:13 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 -2026-04-10 23:52:50 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +2025-03-08 17:33:13 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified === RUN TestDischarge/TestDischargeWithDomainWithExistingNonDomainAuth -2026-04-10 23:52:50 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified -2026-04-10 23:52:50 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +2025-03-08 17:33:13 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +2025-03-08 17:33:13 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified === RUN TestDischarge/TestDischargeXMemberOfX -2026-04-10 23:52:50 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +2025-03-08 17:33:13 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified === RUN TestDischarge/TestDomainInInteractionURLs === RUN TestDischarge/TestDomainInInteractionURLs/domain_login -2026-04-10 23:52:50 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +2025-03-08 17:33:13 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified === RUN TestDischarge/TestDomainInInteractionURLs/no_domain -2026-04-10 23:52:50 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +2025-03-08 17:33:13 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified === RUN TestDischarge/TestDomainInInteractionURLs/domain_from_cookies -2026-04-10 23:52:50 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +2025-03-08 17:33:13 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified === RUN TestDischarge/TestDomainInInteractionURLs/condition_trumps_cookies -2026-04-10 23:52:50 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +2025-03-08 17:33:13 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified === RUN TestDischarge/TestIdentityCookieParameters -2026-04-10 23:52:50 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +2025-03-08 17:33:13 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified === RUN TestDischarge/TestInteractiveDischarge -2026-04-10 23:52:50 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +2025-03-08 17:33:13 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified === RUN TestDischarge/TestInteractiveDischargeJSON -2026-04-10 23:52:50 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +2025-03-08 17:33:13 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified === RUN TestDischarge/TestInteractiveDischargeWithOldClientCaveat -2026-04-10 23:52:50 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +2025-03-08 17:33:13 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified === RUN TestDischarge/TestLastDischargeTimeUpdates -2026-04-10 23:52:50 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified -2026-04-10 23:52:50 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +2025-03-08 17:33:13 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +2025-03-08 17:33:13 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:33237/publickey" + http.go:99: JSON call, url "http://127.0.0.1:46577/publickey" === RUN TestDischarge/TestTwoDischargesOfSameCaveat -2026-04-10 23:52:50 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified -2026-04-10 23:52:50 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +2025-03-08 17:33:13 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +2025-03-08 17:33:13 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified === RUN TestDischarge/TestVisitURLWithDomainCookie -2026-04-10 23:52:50 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +2025-03-08 17:33:13 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified === RUN TestDischarge/TestVisitURLWithEscapedDomainCookie -2026-04-10 23:52:50 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +2025-03-08 17:33:13 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified === RUN TestDischarge/TestVisitURLWithInvalidDomainCookie -2026-04-10 23:52:50 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified ---- PASS: TestDischarge (0.16s) +2025-03-08 17:33:13 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +--- PASS: TestDischarge (0.12s) --- PASS: TestDischarge/TestDischargeBrowserRedirectLogin (0.01s) - --- PASS: TestDischarge/TestDischargeBrowserRedirectLoginNotTrusted (0.01s) + --- PASS: TestDischarge/TestDischargeBrowserRedirectLoginNotTrusted (0.00s) --- PASS: TestDischarge/TestDischargeForUser (0.01s) --- SKIP: TestDischarge/TestDischargeFromDifferentOriginWhenLoggedIn (0.00s) - --- PASS: TestDischarge/TestDischargeMemberOf (0.03s) + --- PASS: TestDischarge/TestDischargeMemberOf (0.02s) --- PASS: TestDischarge/TestDischargeMemberOf/SingleGroupsIsUsername (0.00s) --- PASS: TestDischarge/TestDischargeMemberOf/ManyGroupsOneIsUsername (0.00s) --- PASS: TestDischarge/TestDischargeMemberOf/SingleGroupMatch (0.00s) @@ -2119,15 +2155,15 @@ --- PASS: TestDischarge/TestDischargeUserID (0.01s) --- PASS: TestDischarge/TestDischargeWhenLoggedIn (0.00s) --- PASS: TestDischarge/TestDischargeWithDomainWithExistingNonDomainAuth (0.01s) - --- PASS: TestDischarge/TestDischargeXMemberOfX (0.01s) - --- PASS: TestDischarge/TestDomainInInteractionURLs (0.02s) + --- PASS: TestDischarge/TestDischargeXMemberOfX (0.00s) + --- PASS: TestDischarge/TestDomainInInteractionURLs (0.01s) --- PASS: TestDischarge/TestDomainInInteractionURLs/domain_login (0.00s) - --- PASS: TestDischarge/TestDomainInInteractionURLs/no_domain (0.01s) + --- PASS: TestDischarge/TestDomainInInteractionURLs/no_domain (0.00s) --- 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/TestInteractiveDischarge (0.00s) + --- PASS: TestDischarge/TestInteractiveDischargeJSON (0.00s) --- PASS: TestDischarge/TestInteractiveDischargeWithOldClientCaveat (0.00s) --- PASS: TestDischarge/TestLastDischargeTimeUpdates (0.01s) --- PASS: TestDischarge/TestNonInteractiveDischarge (0.00s) @@ -2147,9 +2183,9 @@ === RUN TestIDP/TestLoginRedirectSuccessReturnToTrustedDomainInsecure === RUN TestIDP/TestLoginRedirectSuccessReturnToTrustedDomainWildcard === RUN TestIDP/TestLoginSuccess -2026-04-10 23:52:50 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +2025-03-08 17:33:13 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified === RUN TestIDP/TestLoginSuccessWithTemplate -2026-04-10 23:52:50 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +2025-03-08 17:33:13 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified --- PASS: TestIDP (0.00s) --- PASS: TestIDP/TestLoginFailure (0.00s) --- PASS: TestIDP/TestLoginFailureWithWait (0.00s) @@ -2170,9 +2206,9 @@ --- PASS: TestLoginCookiePath/location_NOT_in_the_cookie (0.00s) === RUN TestLogin === RUN TestLogin/TestInteractiveLogin -2026-04-10 23:52:50 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +2025-03-08 17:33:13 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified === RUN TestLogin/TestLegacyInteractiveLogin -2026-04-10 23:52:50 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +2025-03-08 17:33:13 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 @@ -2187,11 +2223,11 @@ === RUN TestLogin/TestLoginRedirect === RUN TestLogin/TestLoginRedirectNotTrusted === RUN TestLogin/TestNonInteractiveLogin ---- PASS: TestLogin (0.04s) +--- PASS: TestLogin (0.03s) --- PASS: TestLogin/TestInteractiveLogin (0.00s) --- PASS: TestLogin/TestLegacyInteractiveLogin (0.00s) --- PASS: TestLogin/TestLegacyLoginFailure (0.00s) - --- PASS: TestLogin/TestLegacyNonInteractiveLogin (0.01s) + --- PASS: TestLogin/TestLegacyNonInteractiveLogin (0.00s) --- PASS: TestLogin/TestLoginEmail (0.00s) --- PASS: TestLogin/TestLoginEmailSubmitMatch (0.00s) --- PASS: TestLogin/TestLoginEmailSubmitNoMatch (0.00s) @@ -2203,7 +2239,7 @@ --- PASS: TestLogin/TestLoginRedirectNotTrusted (0.00s) --- PASS: TestLogin/TestNonInteractiveLogin (0.00s) PASS -ok github.com/canonical/candid/internal/discharger 0.222s +ok github.com/canonical/candid/internal/discharger 0.156s === RUN TestStore === RUN TestStore/TestExpiredEntry === RUN TestStore/TestGetCanceled @@ -2225,7 +2261,7 @@ --- PASS: TestStore/TestPutDeadlineExceeded (0.00s) --- PASS: TestStore/TestRoundTrip (0.00s) PASS -ok github.com/canonical/candid/internal/discharger/internal 0.009s +ok github.com/canonical/candid/internal/discharger/internal 0.007s === RUN TestHandleErrors === RUN TestHandleErrors/not_found http.go:99: JSON call, url "/error/" @@ -2237,7 +2273,7 @@ http.go:99: JSON call, url "/error/" === RUN TestHandleErrors/service_unavailable http.go:99: JSON call, url "/error/" ---- PASS: TestHandleErrors (0.01s) +--- PASS: TestHandleErrors (0.00s) --- PASS: TestHandleErrors/not_found (0.00s) --- PASS: TestHandleErrors/forbidden (0.00s) --- PASS: TestHandleErrors/bad_request (0.00s) @@ -2268,53 +2304,53 @@ === RUN TestServer/TestServerPanicRecovery http.go:99: JSON call, url "/a" logging.go:37: ERROR candid.internal.identity PANIC!: test panic - goroutine 247 [running]: + goroutine 211 [running]: runtime/debug.Stack() /usr/lib/go-1.24/src/runtime/debug/stack.go:26 +0x5e 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 +0x58 panic({0xbb1160?, 0xdf9500?}) /usr/lib/go-1.24/src/runtime/panic.go:792 +0x132 - github.com/canonical/candid/internal/identity_test.(*serverSuite).TestServerPanicRecovery.func1.1({0x479a73?, 0xc0004062f4?}, 0xc0004062f0?, {0xc0003dba18?, 0x4093a5?, 0x4112ed?}) + github.com/canonical/candid/internal/identity_test.(*serverSuite).TestServerPanicRecovery.func1.1({0x479a73?, 0xc00031eb84?}, 0xc00031eb80?, {0xc0003a8a18?, 0x4093a5?, 0x4112ed?}) /build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/canonical/candid/internal/identity/server_test.go:182 +0x25 - github.com/julienschmidt/httprouter.(*Router).ServeHTTP(0xc0002da6c0, {0xe03448, 0xc00001c0e0}, 0xc0003b4140) + github.com/julienschmidt/httprouter.(*Router).ServeHTTP(0xc0001114a0, {0xe03448, 0xc000330620}, 0xc000329900) /build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/julienschmidt/httprouter/router.go:387 +0x7cb - github.com/canonical/candid/internal/identity.(*Server).ServeHTTP(0xc000408420, {0xe03448, 0xc00001c0e0}, 0xc0003b4140) + github.com/canonical/candid/internal/identity.(*Server).ServeHTTP(0xc000112be0, {0xe03448, 0xc000330620}, 0xc000329900) /build/reproducible-path/golang-github-canonical-candid-1.12.3/_build/src/github.com/canonical/candid/internal/identity/server.go:196 +0x285 - net/http.serverHandler.ServeHTTP({0xc00040b620?}, {0xe03448?, 0xc00001c0e0?}, 0x1?) + net/http.serverHandler.ServeHTTP({0xc00037d7d0?}, {0xe03448?, 0xc000330620?}, 0x1?) /usr/lib/go-1.24/src/net/http/server.go:3301 +0x8e - net/http.(*conn).serve(0xc0004122d0, {0xe04c28, 0xc0002b2c90}) + net/http.(*conn).serve(0xc00037aea0, {0xe04c28, 0xc00037d6b0}) /usr/lib/go-1.24/src/net/http/server.go:2102 +0x625 - created by net/http.(*Server).Serve in goroutine 244 + created by net/http.(*Server).Serve in goroutine 238 /usr/lib/go-1.24/src/net/http/server.go:3454 +0x485 logging.go:37: DEBUG candid.internal.identity Closing Server === RUN TestServer/TestServerStaticFiles ---- PASS: TestServer (0.02s) +--- PASS: TestServer (0.01s) --- PASS: TestServer/TestNewServerWithNoVersions (0.00s) - --- PASS: TestServer/TestNewServerWithVersions (0.01s) + --- PASS: TestServer/TestNewServerWithVersions (0.00s) --- PASS: TestServer/TestServerHasAccessControlAllowHeaders (0.00s) --- PASS: TestServer/TestServerPanicRecovery (0.00s) - --- PASS: TestServer/TestServerStaticFiles (0.01s) + --- PASS: TestServer/TestServerStaticFiles (0.00s) PASS -ok github.com/canonical/candid/internal/identity 0.039s +ok github.com/canonical/candid/internal/identity 0.022s ? github.com/canonical/candid/internal/mfa [no test files] ? github.com/canonical/candid/internal/monitoring [no test files] === RUN TestGravatarHash --- PASS: TestGravatarHash (0.00s) === RUN TestUsersAPI === RUN TestUsersAPI/TestCreateAgent -2026-04-10 23:52:50 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +2025-03-08 17:33:13 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified === RUN TestUsersAPI/TestCreateAgentAsAgent -2026-04-10 23:52:50 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}]) +2025-03-08 17:33:13 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 -2026-04-10 23:52:50 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}]) +2025-03-08 17:33:13 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 -2026-04-10 23:52:50 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +2025-03-08 17:33:13 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified === RUN TestUsersAPI/TestCreateParentAgent === RUN TestUsersAPI/TestCreateParentAgentNotInGroups -2026-04-10 23:52:50 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +2025-03-08 17:33:13 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified === RUN TestUsersAPI/TestCreateParentAgentUnauthorized -2026-04-10 23:52:50 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified +2025-03-08 17:33:13 WARNING candid.internal.discharger idp.go:190 MFA authenticator not specified === RUN TestUsersAPI/TestDischargeToken === RUN TestUsersAPI/TestExtraInfo === RUN TestUsersAPI/TestExtraInfoNotFound @@ -2347,9 +2383,9 @@ === RUN TestUsersAPI/TestQueryUsers/combined_login_and_discharge_(found) === RUN TestUsersAPI/TestQueryUsers/combined_login_and_discharge_(not_found) === RUN TestUsersAPI/TestQueryUsersBadLastDischarge -2026-04-10 23:52:50 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"}]) +2025-03-08 17:33:13 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 -2026-04-10 23:52:50 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"}]) +2025-03-08 17:33:13 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 @@ -2368,17 +2404,17 @@ === RUN TestUsersAPI/TestVerifyUserToken === RUN TestUsersAPI/TestWhoAmIWithAuthenticatedUser === RUN TestUsersAPI/TestWhoAmIWithNoUser ---- PASS: TestUsersAPI (0.21s) +--- PASS: TestUsersAPI (0.16s) --- PASS: TestUsersAPI/TestCreateAgent (0.01s) --- PASS: TestUsersAPI/TestCreateAgentAsAgent (0.00s) --- PASS: TestUsersAPI/TestCreateAgentAsParentAgent (0.01s) --- PASS: TestUsersAPI/TestCreateAgentWithGroups (0.01s) - --- PASS: TestUsersAPI/TestCreateParentAgent (0.01s) + --- PASS: TestUsersAPI/TestCreateParentAgent (0.00s) --- PASS: TestUsersAPI/TestCreateParentAgentNotInGroups (0.01s) - --- PASS: TestUsersAPI/TestCreateParentAgentUnauthorized (0.01s) - --- PASS: TestUsersAPI/TestDischargeToken (0.01s) + --- PASS: TestUsersAPI/TestCreateParentAgentUnauthorized (0.00s) + --- PASS: TestUsersAPI/TestDischargeToken (0.00s) --- PASS: TestUsersAPI/TestExtraInfo (0.01s) - --- PASS: TestUsersAPI/TestExtraInfoNotFound (0.01s) + --- PASS: TestUsersAPI/TestExtraInfoNotFound (0.00s) --- PASS: TestUsersAPI/TestGetUserIDGroups (0.01s) --- PASS: TestUsersAPI/TestGetUserIDGroups/no_groups (0.00s) --- PASS: TestUsersAPI/TestGetUserIDGroups/groups (0.00s) @@ -2393,7 +2429,7 @@ --- PASS: TestUsersAPI/TestModifyUserGroups/add_and_remove_groups (0.00s) --- PASS: TestUsersAPI/TestModifyUserGroups/remove_groups_not_a_member_of (0.00s) --- PASS: TestUsersAPI/TestModifyUserGroups/user_not_found (0.00s) - --- PASS: TestUsersAPI/TestQueryAgentUsers (0.01s) + --- PASS: TestUsersAPI/TestQueryAgentUsers (0.00s) --- PASS: TestUsersAPI/TestQueryAgentUsersOwnerNotFound (0.00s) --- PASS: TestUsersAPI/TestQueryUsers (0.01s) --- PASS: TestUsersAPI/TestQueryUsers/query_existing_user (0.00s) @@ -2408,27 +2444,27 @@ --- 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.01s) + --- PASS: TestUsersAPI/TestQueryUsersBadLastLogin (0.00s) --- PASS: TestUsersAPI/TestQueryUsersUnauthorized (0.00s) --- PASS: TestUsersAPI/TestRemoveUserMFACredentials (0.01s) --- PASS: TestUsersAPI/TestRoundTripUser (0.00s) --- PASS: TestUsersAPI/TestSSHKeys (0.01s) - --- PASS: TestUsersAPI/TestSetUserGroups (0.01s) - --- PASS: TestUsersAPI/TestUserErrors (0.01s) + --- PASS: TestUsersAPI/TestSetUserGroups (0.00s) + --- PASS: TestUsersAPI/TestUserErrors (0.00s) --- PASS: TestUsersAPI/TestUserErrors/not_found (0.00s) --- PASS: TestUsersAPI/TestUserErrors/bad_username (0.00s) - --- PASS: TestUsersAPI/TestUserGroups (0.01s) + --- PASS: TestUsersAPI/TestUserGroups (0.00s) --- 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.00s) - --- PASS: TestUsersAPI/TestUserTokenNotFound (0.01s) + --- PASS: TestUsersAPI/TestUserTokenNotFound (0.00s) --- PASS: TestUsersAPI/TestUsernameContainingUnderscore (0.00s) - --- PASS: TestUsersAPI/TestVerifyUserToken (0.01s) - --- PASS: TestUsersAPI/TestWhoAmIWithAuthenticatedUser (0.01s) + --- PASS: TestUsersAPI/TestVerifyUserToken (0.00s) + --- PASS: TestUsersAPI/TestWhoAmIWithAuthenticatedUser (0.00s) --- PASS: TestUsersAPI/TestWhoAmIWithNoUser (0.00s) PASS -ok github.com/canonical/candid/internal/v1 0.219s +ok github.com/canonical/candid/internal/v1 0.167s === RUN TestRendezvousWaitBeforeDone --- PASS: TestRendezvousWaitBeforeDone (0.00s) === RUN TestRendezvousDoneBeforeWait @@ -2444,18 +2480,18 @@ === RUN TestPutFailure --- PASS: TestPutFailure (0.00s) === RUN TestWaitTimeout - meeting_test.go:408: starting wait "4d25b33ade66f497a054a112b15c92bf" + meeting_test.go:408: starting wait "5cafeab2e7b008b14b3c7f31dc05d4c6" 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.02s) +--- PASS: TestWaitTimeout (0.03s) === RUN TestRequestCompletedCalled --- PASS: TestRequestCompletedCalled (0.00s) === RUN TestRequestsExpiredCalled --- PASS: TestRequestsExpiredCalled (0.00s) PASS -ok github.com/canonical/candid/meeting 0.034s +ok github.com/canonical/candid/meeting 0.045s === RUN TestUsernameTextUnmarshal === RUN TestUsernameTextUnmarshal/user === RUN TestUsernameTextUnmarshal/admin@idm @@ -2467,7 +2503,7 @@ --- PASS: TestUsernameTextUnmarshal/agent@admin@idm (0.00s) --- PASS: TestUsernameTextUnmarshal/toolongusername_0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef_ (0.00s) PASS -ok github.com/canonical/candid/params 0.006s +ok github.com/canonical/candid/params 0.008s === RUN TestNotFoundError --- PASS: TestNotFoundError (0.00s) === RUN TestDuplicateUsernameError @@ -2475,7 +2511,7 @@ === RUN TestProviderIdentity --- PASS: TestProviderIdentity (0.00s) PASS -ok github.com/canonical/candid/store 0.008s +ok github.com/canonical/candid/store 0.005s === RUN TestKeyValueStore === RUN TestKeyValueStore/TestGetNotFound === RUN TestKeyValueStore/TestSet @@ -2490,7 +2526,7 @@ === RUN TestKeyValueStore/TestUpdateReturnNilThenUpdatesAsNonNil === RUN TestKeyValueStore/TestUpdateSuccessWithPreexistingKey === RUN TestKeyValueStore/TestUpdateSuccessWithoutPreexistingKey ---- PASS: TestKeyValueStore (0.23s) +--- PASS: TestKeyValueStore (0.22s) --- PASS: TestKeyValueStore/TestGetNotFound (0.00s) --- PASS: TestKeyValueStore/TestSet (0.00s) --- PASS: TestKeyValueStore/TestSetKeyOnce (0.00s) @@ -2498,7 +2534,7 @@ --- PASS: TestKeyValueStore/TestSetNilUpdatesAsNonNil (0.00s) --- PASS: TestKeyValueStore/TestTwoStoresForDifferentIDPsAreIndependent (0.00s) --- PASS: TestKeyValueStore/TestTwoStoresForTheSameIDPCommunicate (0.00s) - --- PASS: TestKeyValueStore/TestUpdateConcurrent (0.23s) + --- PASS: TestKeyValueStore/TestUpdateConcurrent (0.22s) --- PASS: TestKeyValueStore/TestUpdateErrorWithExistingKey (0.00s) --- PASS: TestKeyValueStore/TestUpdateErrorWithNonExistentKey (0.00s) --- PASS: TestKeyValueStore/TestUpdateReturnNilThenUpdatesAsNonNil (0.00s) @@ -2595,8 +2631,8 @@ === RUN TestStore/TestUpdateIdentity/providerID_empty_update === RUN TestStore/TestUpdateNotFoundNoQuery === RUN TestStore/TestUserCredentials ---- PASS: TestStore (0.04s) - --- PASS: TestStore/TestFindIdentities (0.02s) +--- PASS: TestStore (0.02s) + --- PASS: TestStore/TestFindIdentities (0.01s) --- PASS: TestStore/TestIdentity (0.00s) --- PASS: TestStore/TestIdentityCounts (0.00s) --- PASS: TestStore/TestIdentityNotFound (0.00s) @@ -2672,13 +2708,13 @@ === RUN TestConfigUnmarshal --- PASS: TestConfigUnmarshal (0.00s) PASS -ok github.com/canonical/candid/store/memstore 0.276s +ok github.com/canonical/candid/store/memstore 0.246s testing: warning: no tests to run PASS -ok github.com/canonical/candid/store/mgostore 0.006s [no tests to run] +ok github.com/canonical/candid/store/mgostore 0.004s [no tests to run] testing: warning: no tests to run PASS -ok github.com/canonical/candid/store/sqlstore 0.008s [no tests to run] +ok github.com/canonical/candid/store/sqlstore 0.096s [no tests to run] ? github.com/canonical/candid/store/storetest [no test files] ? github.com/canonical/candid/version [no test files] create-stamp debian/debhelper-build-stamp @@ -2707,12 +2743,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/3432924/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/3432924/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/1871348 and its subdirectories -I: Current time: Fri Apr 10 11:53:16 -12 2026 -I: pbuilder-time-stamp: 1775865196 +I: removing directory /srv/workspace/pbuilder/3432924 and its subdirectories +I: Current time: Sun Mar 9 07:33:20 +14 2025 +I: pbuilder-time-stamp: 1741455200