oauth2/google/internal/externalaccount
Cody Oss d3ed0bb246 google/internal/externalaccount: fix flaky tests
It seems like these handful of test would fail because of issues
related to timings. When running the tests there was sometimes a
second scew from when the subjectToken got and want were calculated.
Switched them all to use a static clock so the time portion will
never differ.

Fixes golang/go#49339

Change-Id: Ia2e4e140526ee1fc37fa9d24765cd8ec3033ea22
Reviewed-on: https://go-review.googlesource.com/c/oauth2/+/361354
Trust: Cody Oss <codyoss@google.com>
Run-TryBot: Cody Oss <codyoss@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
2021-11-04 18:04:15 +00:00
..
testdata google: base account credentials with file-sourcing 2021-01-12 20:04:29 +00:00
aws.go google: fix syntax error 2021-06-22 19:05:53 +00:00
aws_test.go google/internal/externalaccount: fix flaky tests 2021-11-04 18:04:15 +00:00
basecredentials.go google: add support for "impersonated_service_account" credential type. 2021-10-28 17:52:45 +00:00
basecredentials_test.go google/externalaccount: add support for workforce pool credentials 2021-10-05 18:02:43 +00:00
clientauth.go google/externalaccount: validate tokenURL and ServiceAccountImpersonationURL 2021-08-17 22:35:10 +00:00
clientauth_test.go google/externalaccount: validate tokenURL and ServiceAccountImpersonationURL 2021-08-17 22:35:10 +00:00
err.go google: add utilities supporting upcoming oauth2 functionality 2020-11-09 20:14:03 +00:00
err_test.go google: add utilities supporting upcoming oauth2 functionality 2020-11-09 20:14:03 +00:00
filecredsource.go google: base account credentials with file-sourcing 2021-01-12 20:04:29 +00:00
filecredsource_test.go google: Use bytes.Buffer for go 1.9 compatability 2021-04-02 16:14:24 +00:00
impersonate.go google: add support for "impersonated_service_account" credential type. 2021-10-28 17:52:45 +00:00
impersonate_test.go google/externalaccount: validate tokenURL and ServiceAccountImpersonationURL 2021-08-17 22:35:10 +00:00
sts_exchange.go google/externalaccount: validate tokenURL and ServiceAccountImpersonationURL 2021-08-17 22:35:10 +00:00
sts_exchange_test.go google/externalaccount: validate tokenURL and ServiceAccountImpersonationURL 2021-08-17 22:35:10 +00:00
urlcredsource.go google/externalaccount: validate tokenURL and ServiceAccountImpersonationURL 2021-08-17 22:35:10 +00:00
urlcredsource_test.go google: check additional AWS variable 2021-06-22 16:52:04 +00:00