GeezerVison is showing github.com — We should mention GOOGLE_APPLICATION_CREDENTIALS in the Authentication section. · Issue #331 · googleapis/google-cloud-java
We should mention GOOGLE_APPLICATION_CREDENTIALS in the Authentication section. #331DescriptionThe main gcloud-java README.md contains an authentication section however this section does not
mention the option of using the GOOGLE_APPLICATION_CREDENTIALS environment variable to point to a key file.
@mziccard I now wonder if we need the GCLOUD_TESTS_KEY and GCLOUD_TESTS_PROJECT_ID in the RemoteGcsHelper as GOOGLE_APPLICATION_CREDENTIALS could be used instead of the former and GCLOUD_PROJECT could be used instead of the latter. Activitymziccard commented on Nov 6, 2015 @aozarov When I introduced those 2 variables I took inspiration from gcloud-node. The rationale is that to run integration tests the user must know what he is doing and he has to pick the right credentials/projectId before running tests as he is going to be billed for them.
For instance I have a personal account on Google Cloud whose credentials are set in GOOGLE_APPLICATION_CREDENTIALS but I use different whitelisted credentials/project to run integration tests. jgeewax commented on Nov 6, 2015 I'm with @aozarov on this one -- having separate env vars for tests seems a
bit off.
Running tests should look something like
$ cat run_test.sh
GOOGLE_APPLICATION_CREDENTIALS=test.json mvn test
right? aozarov commented on Nov 6, 2015 ContributorAuthor More actions Right, it should not be a problem to temporarily override environment variable. aozarov commented on Nov 6, 2015 ContributorAuthor More actions I created #335 for tracking the RemoteGcsHelper specific keys issue.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|