Skip to content

Commit b81000e

Browse files
chore: Adding Kokoro configuration to run integration test against staging (#2189)
chore: Adding Kokoro configuration to run integration test against staging
1 parent f853918 commit b81000e

File tree

2 files changed

+48
-0
lines changed

2 files changed

+48
-0
lines changed

.kokoro/build.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,22 @@ integration)
8686
verify
8787
RETURN_CODE=$?
8888
;;
89+
integration-staging)
90+
mvn -B ${INTEGRATION_TEST_ARGS} \
91+
-ntp \
92+
-Penable-integration-tests \
93+
-Djava.net.preferIPv4Stack=true \
94+
-DtrimStackTrace=false \
95+
-Dclirr.skip=true \
96+
-Denforcer.skip=true \
97+
-Dmaven.main.skip=true \
98+
-Dspanner.gce.config.server_url=https://staging-wrenchworks.sandbox.googleapis.com \
99+
-Dspanner.testenv.instance=projects/span-cloud-testing/instances/gaurav-test-instance \
100+
-Dspanner.gce.config.project_id=span-cloud-testing
101+
-fae \
102+
verify
103+
RETURN_CODE=$?
104+
;;
89105
graalvm)
90106
# Run Unit and Integration Tests with Native Image
91107
mvn test -Pnative -Penable-integration-tests
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Format: //devtools/kokoro/config/proto/build.proto
2+
3+
# Configure the docker image for kokoro-trampoline.
4+
env_vars: {
5+
key: "TRAMPOLINE_IMAGE"
6+
value: "gcr.io/cloud-devrel-kokoro-resources/java8"
7+
}
8+
9+
env_vars: {
10+
key: "JOB_TYPE"
11+
value: "integration-staging"
12+
}
13+
# TODO: remove this after we've migrated all tests and scripts
14+
env_vars: {
15+
key: "GCLOUD_PROJECT"
16+
value: "java-docs-samples-testing"
17+
}
18+
19+
env_vars: {
20+
key: "GOOGLE_CLOUD_PROJECT"
21+
value: "java-docs-samples-testing"
22+
}
23+
24+
env_vars: {
25+
key: "GOOGLE_APPLICATION_CREDENTIALS"
26+
value: "secret_manager/java-it-service-account"
27+
}
28+
29+
env_vars: {
30+
key: "SECRET_MANAGER_KEYS"
31+
value: "java-it-service-account"
32+
}

0 commit comments

Comments
 (0)