Skip to content

Commit

Permalink
chore: update integration and samples credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
BenWhitehead committed Jul 21, 2020
1 parent 1e01e65 commit 9fac20f
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 31 deletions.
22 changes: 9 additions & 13 deletions .kokoro/nightly/integration.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -13,29 +13,25 @@ env_vars: {
# TODO: remove this after we've migrated all tests and scripts
env_vars: {
key: "GCLOUD_PROJECT"
value: "gcloud-devel"
value: "java-review"
}

env_vars: {
key: "GOOGLE_CLOUD_PROJECT"
value: "gcloud-devel"
value: "java-review"
}

env_vars: {
key: "ENABLE_BUILD_COP"
value: "true"
key: "GOOGLE_APPLICATION_CREDENTIALS"
value: "secret_manager/firestore-java-it"
}

env_vars: {
key: "GOOGLE_APPLICATION_CREDENTIALS"
value: "keystore/73713_java_it_service_account"
key: "SECRET_MANAGER_KEYS"
value: "firestore-java-it"
}

before_action {
fetch_keystore {
keystore_resource {
keystore_config_id: 73713
keyname: "java_firestore_it_service_account"
}
}
env_vars: {
key: "ENABLE_BUILD_COP"
value: "true"
}
8 changes: 4 additions & 4 deletions .kokoro/nightly/samples.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,22 @@ env_vars: {
# TODO: remove this after we've migrated all tests and scripts
env_vars: {
key: "GCLOUD_PROJECT"
value: "java-docs-samples-testing"
value: "java-review"
}

env_vars: {
key: "GOOGLE_CLOUD_PROJECT"
value: "java-docs-samples-testing"
value: "java-review"
}

env_vars: {
key: "GOOGLE_APPLICATION_CREDENTIALS"
value: "secret_manager/java-docs-samples-service-account"
value: "secret_manager/firestore-java-it"
}

env_vars: {
key: "SECRET_MANAGER_KEYS"
value: "java-docs-samples-service-account"
value: "firestore-java-it"
}

env_vars: {
Expand Down
12 changes: 4 additions & 8 deletions .kokoro/presubmit/integration.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,10 @@ env_vars: {

env_vars: {
key: "GOOGLE_APPLICATION_CREDENTIALS"
value: "keystore/73713_java_firestore_it_service_account"
value: "secret_manager/firestore-java-it"
}

before_action {
fetch_keystore {
keystore_resource {
keystore_config_id: 73713
keyname: "java_firestore_it_service_account"
}
}
env_vars: {
key: "SECRET_MANAGER_KEYS"
value: "firestore-java-it"
}
10 changes: 5 additions & 5 deletions .kokoro/presubmit/samples.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,20 @@ env_vars: {
# TODO: remove this after we've migrated all tests and scripts
env_vars: {
key: "GCLOUD_PROJECT"
value: "java-docs-samples-testing"
value: "java-docs-samples-firestore"
}

env_vars: {
key: "GOOGLE_CLOUD_PROJECT"
value: "java-docs-samples-testing"
value: "java-docs-samples-firestore"
}

env_vars: {
key: "GOOGLE_APPLICATION_CREDENTIALS"
value: "secret_manager/java-docs-samples-service-account"
value: "secret_manager/java-firestore-samples-secrets"
}

env_vars: {
key: "SECRET_MANAGER_KEYS"
value: "java-docs-samples-service-account"
}
value: "java-firestore-samples-secrets"
}
4 changes: 3 additions & 1 deletion synth.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,9 @@ def generate_client(service, version, proto_path=None, bazel_target=None, packag
# firestore uses a different project for its integration tests
# due to the default project running datastore
'.kokoro/presubmit/integration.cfg',
'.kokoro/nightly/integration.cfg'
'.kokoro/presubmit/samples.cfg',
'.kokoro/nightly/integration.cfg',
'.kokoro/nightly/samples.cfg'
])

# Mark v1beta1 as deprecated
Expand Down

0 comments on commit 9fac20f

Please sign in to comment.