google: fix nomenclature feedback and changed time.Now implementation to allow for testing for time in unit tests. The unit tests will not pass at the moment; awaiting feedback on whether to use a test credential source or rely on a separate one.

Change-Id: I20605fa161911f325ab41fc345436d08ed17ed5e
This commit is contained in:
Patrick Jones
2020-12-14 12:51:43 -08:00
parent 27c17b47d1
commit 4c1e0860ce
3 changed files with 33 additions and 29 deletions

View File

@@ -50,7 +50,7 @@ func TestRetrieveFileSubjectToken(t *testing.T) {
tfc := testFileConfig
tfc.CredentialSource = test.cs
out, err := test.cs.instance().retrieveSubjectToken(&tfc)
out, err := tfc.parse().retrieveSubjectToken(&tfc)
if err != nil {
t.Errorf("Method retrieveSubjectToken for type fileCredentialSource in test %v failed; %e", test.name, err)
}