Skip to content

Commit

Permalink
chore: Adding Kokoro Configurations to run integration tests against …
Browse files Browse the repository at this point in the history
…staging and devel environment. (#2236)
  • Loading branch information
gauravpurohit06 authored Jan 16, 2023
1 parent 906ee4f commit 43afc91
Show file tree
Hide file tree
Showing 5 changed files with 94 additions and 12 deletions.
18 changes: 17 additions & 1 deletion .kokoro/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ integration)
verify
RETURN_CODE=$?
;;
integration-staging)
integration-cloud-devel)
mvn -B ${INTEGRATION_TEST_ARGS} \
-ntp \
-Penable-integration-tests \
Expand All @@ -102,6 +102,22 @@ integration-staging)
verify
RETURN_CODE=$?
;;
integration-cloud-staging)
mvn -B ${INTEGRATION_TEST_ARGS} \
-ntp \
-Penable-integration-tests \
-Djava.net.preferIPv4Stack=true \
-DtrimStackTrace=false \
-Dclirr.skip=true \
-Denforcer.skip=true \
-Dmaven.main.skip=true \
-Dspanner.gce.config.server_url=https://preprod-spanner.sandbox.googleapis.com \
-Dspanner.testenv.instance=projects/span-cloud-testing/instances/spanner-testing \
-Dspanner.gce.config.project_id=span-cloud-testing \
-fae \
verify
RETURN_CODE=$?
;;
graalvm)
# Run Unit and Integration Tests with Native Image
mvn test -Pnative -Penable-integration-tests
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,7 @@ env_vars: {

env_vars: {
key: "JOB_TYPE"
value: "integration-staging"
}
# TODO: remove this after we've migrated all tests and scripts
env_vars: {
key: "GCLOUD_PROJECT"
value: "java-docs-samples-testing"
}

env_vars: {
key: "GOOGLE_CLOUD_PROJECT"
value: "java-docs-samples-testing"
value: "integration-cloud-devel"
}

env_vars: {
Expand All @@ -30,3 +20,8 @@ env_vars: {
key: "SECRET_MANAGER_KEYS"
value: "java-client-testing"
}

env_vars: {
key: "REPORT_COVERAGE"
value: "true"
}
27 changes: 27 additions & 0 deletions .kokoro/continuous/integration-cloud-staging.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Format: //devtools/kokoro/config/proto/build.proto

# Configure the docker image for kokoro-trampoline.
env_vars: {
key: "TRAMPOLINE_IMAGE"
value: "gcr.io/cloud-devrel-kokoro-resources/java8"
}

env_vars: {
key: "JOB_TYPE"
value: "integration-cloud-staging"
}

env_vars: {
key: "GOOGLE_APPLICATION_CREDENTIALS"
value: "secret_manager/java-client-testing"
}

env_vars: {
key: "SECRET_MANAGER_KEYS"
value: "java-client-testing"
}

env_vars: {
key: "REPORT_COVERAGE"
value: "true"
}
22 changes: 22 additions & 0 deletions .kokoro/nightly/integration-cloud-devel.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Format: //devtools/kokoro/config/proto/build.proto

# Configure the docker image for kokoro-trampoline.
env_vars: {
key: "TRAMPOLINE_IMAGE"
value: "gcr.io/cloud-devrel-kokoro-resources/java8"
}

env_vars: {
key: "JOB_TYPE"
value: "integration-cloud-devel"
}

env_vars: {
key: "GOOGLE_APPLICATION_CREDENTIALS"
value: "secret_manager/java-client-testing"
}

env_vars: {
key: "SECRET_MANAGER_KEYS"
value: "java-client-testing"
}
22 changes: 22 additions & 0 deletions .kokoro/nightly/integration-cloud-staging.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Format: //devtools/kokoro/config/proto/build.proto

# Configure the docker image for kokoro-trampoline.
env_vars: {
key: "TRAMPOLINE_IMAGE"
value: "gcr.io/cloud-devrel-kokoro-resources/java8"
}

env_vars: {
key: "JOB_TYPE"
value: "integration-cloud-staging"
}

env_vars: {
key: "GOOGLE_APPLICATION_CREDENTIALS"
value: "secret_manager/java-client-testing"
}

env_vars: {
key: "SECRET_MANAGER_KEYS"
value: "java-client-testing"
}

0 comments on commit 43afc91

Please sign in to comment.