Skip to content

Commit ae257aa

Browse files
test: added submodule and kokoro configs for environment tests (#175)
1 parent 11976b9 commit ae257aa

File tree

27 files changed

+345
-5
lines changed

27 files changed

+345
-5
lines changed

.flake8

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818
[flake8]
1919
ignore = E203, E266, E501, W503
2020
exclude =
21+
# Exclude environment test code.
22+
tests/environment/**
23+
2124
# Exclude generated code.
2225
**/proto/**
2326
**/gapic/**

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "tests/environment"]
2+
path = tests/environment
3+
url = https://github.com/googleapis/env-tests-logging.git
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Format: //devtools/kokoro/config/proto/build.proto
2+
3+
# Build logs will be here
4+
action {
5+
define_artifacts {
6+
regex: "**/*sponge_log.xml"
7+
}
8+
}
9+
10+
11+
# Specify which tests to run
12+
env_vars: {
13+
key: "ENVIRONMENT"
14+
value: "appengine_flex_container"
15+
}
16+
17+
# Download trampoline resources.
18+
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline"
19+
20+
# Download resources for system tests (service account key, etc.)
21+
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/google-cloud-python"
22+
23+
# Use the trampoline script to run in docker.
24+
build_file: "python-logging/.kokoro/trampoline_v2.sh"
25+
26+
# Configure the docker image for kokoro-trampoline.
27+
env_vars: {
28+
key: "TRAMPOLINE_IMAGE"
29+
value: "gcr.io/cloud-devrel-kokoro-resources/python-multi"
30+
}
31+
env_vars: {
32+
key: "TRAMPOLINE_BUILD_FILE"
33+
value: "python-logging/.kokoro/environment_tests.sh"
34+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Format: //devtools/kokoro/config/proto/build.proto
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Format: //devtools/kokoro/config/proto/build.proto
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Format: //devtools/kokoro/config/proto/build.proto
2+
3+
# Build logs will be here
4+
action {
5+
define_artifacts {
6+
regex: "**/*sponge_log.xml"
7+
}
8+
}
9+
10+
11+
# Specify which tests to run
12+
env_vars: {
13+
key: "ENVIRONMENT"
14+
value: "appengine_flex_python"
15+
}
16+
17+
# Download trampoline resources.
18+
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline"
19+
20+
# Download resources for system tests (service account key, etc.)
21+
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/google-cloud-python"
22+
23+
# Use the trampoline script to run in docker.
24+
build_file: "python-logging/.kokoro/trampoline_v2.sh"
25+
26+
# Configure the docker image for kokoro-trampoline.
27+
env_vars: {
28+
key: "TRAMPOLINE_IMAGE"
29+
value: "gcr.io/cloud-devrel-kokoro-resources/python-multi"
30+
}
31+
env_vars: {
32+
key: "TRAMPOLINE_BUILD_FILE"
33+
value: "python-logging/.kokoro/environment_tests.sh"
34+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Format: //devtools/kokoro/config/proto/build.proto
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Format: //devtools/kokoro/config/proto/build.proto
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Format: //devtools/kokoro/config/proto/build.proto
2+
3+
# Build logs will be here
4+
action {
5+
define_artifacts {
6+
regex: "**/*sponge_log.xml"
7+
}
8+
}
9+
10+
11+
# Specify which tests to run
12+
env_vars: {
13+
key: "ENVIRONMENT"
14+
value: "appengine_standard"
15+
}
16+
17+
# Download trampoline resources.
18+
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline"
19+
20+
# Download resources for system tests (service account key, etc.)
21+
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/google-cloud-python"
22+
23+
# Use the trampoline script to run in docker.
24+
build_file: "python-logging/.kokoro/trampoline_v2.sh"
25+
26+
# Configure the docker image for kokoro-trampoline.
27+
env_vars: {
28+
key: "TRAMPOLINE_IMAGE"
29+
value: "gcr.io/cloud-devrel-kokoro-resources/python-multi"
30+
}
31+
env_vars: {
32+
key: "TRAMPOLINE_BUILD_FILE"
33+
value: "python-logging/.kokoro/environment_tests.sh"
34+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Format: //devtools/kokoro/config/proto/build.proto

0 commit comments

Comments
 (0)