Skip to content

Commit 43afc91

Browse files
chore: Adding Kokoro Configurations to run integration tests against staging and devel environment. (#2236)
1 parent 906ee4f commit 43afc91

File tree

5 files changed

+94
-12
lines changed

5 files changed

+94
-12
lines changed

.kokoro/build.sh

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ integration)
8686
verify
8787
RETURN_CODE=$?
8888
;;
89-
integration-staging)
89+
integration-cloud-devel)
9090
mvn -B ${INTEGRATION_TEST_ARGS} \
9191
-ntp \
9292
-Penable-integration-tests \
@@ -102,6 +102,22 @@ integration-staging)
102102
verify
103103
RETURN_CODE=$?
104104
;;
105+
integration-cloud-staging)
106+
mvn -B ${INTEGRATION_TEST_ARGS} \
107+
-ntp \
108+
-Penable-integration-tests \
109+
-Djava.net.preferIPv4Stack=true \
110+
-DtrimStackTrace=false \
111+
-Dclirr.skip=true \
112+
-Denforcer.skip=true \
113+
-Dmaven.main.skip=true \
114+
-Dspanner.gce.config.server_url=https://preprod-spanner.sandbox.googleapis.com \
115+
-Dspanner.testenv.instance=projects/span-cloud-testing/instances/spanner-testing \
116+
-Dspanner.gce.config.project_id=span-cloud-testing \
117+
-fae \
118+
verify
119+
RETURN_CODE=$?
120+
;;
105121
graalvm)
106122
# Run Unit and Integration Tests with Native Image
107123
mvn test -Pnative -Penable-integration-tests

.kokoro/nightly/integration-staging.cfg renamed to .kokoro/continuous/integration-cloud-devel.cfg

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,7 @@ env_vars: {
88

99
env_vars: {
1010
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"
11+
value: "integration-cloud-devel"
2212
}
2313

2414
env_vars: {
@@ -30,3 +20,8 @@ env_vars: {
3020
key: "SECRET_MANAGER_KEYS"
3121
value: "java-client-testing"
3222
}
23+
24+
env_vars: {
25+
key: "REPORT_COVERAGE"
26+
value: "true"
27+
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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-cloud-staging"
12+
}
13+
14+
env_vars: {
15+
key: "GOOGLE_APPLICATION_CREDENTIALS"
16+
value: "secret_manager/java-client-testing"
17+
}
18+
19+
env_vars: {
20+
key: "SECRET_MANAGER_KEYS"
21+
value: "java-client-testing"
22+
}
23+
24+
env_vars: {
25+
key: "REPORT_COVERAGE"
26+
value: "true"
27+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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-cloud-devel"
12+
}
13+
14+
env_vars: {
15+
key: "GOOGLE_APPLICATION_CREDENTIALS"
16+
value: "secret_manager/java-client-testing"
17+
}
18+
19+
env_vars: {
20+
key: "SECRET_MANAGER_KEYS"
21+
value: "java-client-testing"
22+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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-cloud-staging"
12+
}
13+
14+
env_vars: {
15+
key: "GOOGLE_APPLICATION_CREDENTIALS"
16+
value: "secret_manager/java-client-testing"
17+
}
18+
19+
env_vars: {
20+
key: "SECRET_MANAGER_KEYS"
21+
value: "java-client-testing"
22+
}

0 commit comments

Comments
 (0)