Skip to content

Commit fb2d4da

Browse files
Get Google Cloud project ID from env var for integration tests
Closes gh-6216
1 parent 79939c3 commit fb2d4da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

implementations/micrometer-registry-stackdriver/src/test/java/io/micrometer/stackdriver/StackdriverIntegrationTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
/**
3232
* When running this integration test locally, authentication can be done by configuring
3333
* the env var GOOGLE_APPLICATION_CREDENTIALS with the location of the service key JSON
34-
* file.
34+
* file. The project ID should be specified using the GOOGLE_CLOUD_PROJECT_ID env var.
3535
*/
3636
@Tag("gcp-it")
3737
class StackdriverIntegrationTest {
@@ -43,7 +43,7 @@ class StackdriverIntegrationTest {
4343
static final StackdriverConfig CONFIG = new StackdriverConfig() {
4444
@Override
4545
public String projectId() {
46-
return "micrometer-gcp";
46+
return System.getenv("GOOGLE_CLOUD_PROJECT_ID");
4747
}
4848

4949
@Override

0 commit comments

Comments
 (0)