Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests fail without google configuration #136

Open
skandragon opened this issue May 10, 2022 · 0 comments
Open

tests fail without google configuration #136

skandragon opened this issue May 10, 2022 · 0 comments

Comments

@skandragon
Copy link
Contributor

Tests depend on some default Google cloud config being present.

When I run this on a laptop or inside a Docker build image without google credentials, I get this:

• Failure [0.225 seconds]
Controller #NewCredentialsController when a duplicate credential exists [It] returns an error
/Users/explorer/git/github/homedepot/go-clouddriver/internal/artifact/controller_test.go:96

  Expected
      <string>: dialing: google: could not find default credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information.
  to have prefix
      <string>: duplicate artifact credential listed: helm-test

  /Users/explorer/git/github/homedepot/go-clouddriver/internal/artifact/controller_test.go:98

The full list of errors:

Summarizing 14 Failures:

[Fail] Controller #NewCredentialsController when a duplicate credential exists [It] returns an error
/Users/explorer/git/github/homedepot/go-clouddriver/internal/artifact/controller_test.go:98

[Fail] Controller #NewCredentialsController when it succeeds [It] succeeds
/Users/explorer/git/github/homedepot/go-clouddriver/internal/artifact/controller_test.go:204

[Fail] Controller #ListArtifactCredentialsNamesAndTypes [BeforeEach] when it succeeds succeeds
/Users/explorer/git/github/homedepot/go-clouddriver/internal/artifact/controller_test.go:214

[Fail] Controller #GCSClientForAccountName [BeforeEach] when the account name does not exist in the cache returns an error
/Users/explorer/git/github/homedepot/go-clouddriver/internal/artifact/controller_test.go:242

[Fail] Controller #GCSClientForAccountName [BeforeEach] when it succeeds succeeds
/Users/explorer/git/github/homedepot/go-clouddriver/internal/artifact/controller_test.go:242

[Fail] Controller #GitClientForAccountName [BeforeEach] when the account name does not exist in the cache returns an error
/Users/explorer/git/github/homedepot/go-clouddriver/internal/artifact/controller_test.go:277

[Fail] Controller #GitClientForAccountName [BeforeEach] when it succeeds succeeds
/Users/explorer/git/github/homedepot/go-clouddriver/internal/artifact/controller_test.go:277

[Fail] Controller #GitRepoClientForAccountName [BeforeEach] when the account name does not exist in the cache returns an error
/Users/explorer/git/github/homedepot/go-clouddriver/internal/artifact/controller_test.go:312

[Fail] Controller #GitRepoClientForAccountName [BeforeEach] when the account requires token authorization succeeds
/Users/explorer/git/github/homedepot/go-clouddriver/internal/artifact/controller_test.go:312

[Fail] Controller #GitRepoClientForAccountName [BeforeEach] when it succeeds succeeds
/Users/explorer/git/github/homedepot/go-clouddriver/internal/artifact/controller_test.go:312

[Fail] Controller #HelmClientForAccountName [BeforeEach] when the account name does not exist in the cache returns an error
/Users/explorer/git/github/homedepot/go-clouddriver/internal/artifact/controller_test.go:358

[Fail] Controller #HelmClientForAccountName [BeforeEach] when it succeeds succeeds
/Users/explorer/git/github/homedepot/go-clouddriver/internal/artifact/controller_test.go:358

[Fail] Controller #HTTPClientForAccountName [BeforeEach] when the account name does not exist in the cache returns an error
/Users/explorer/git/github/homedepot/go-clouddriver/internal/artifact/controller_test.go:393

[Fail] Controller #HTTPClientForAccountName [BeforeEach] when it succeeds succeeds
/Users/explorer/git/github/homedepot/go-clouddriver/internal/artifact/controller_test.go:393
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant