Skip to content
This repository has been archived by the owner on Apr 17, 2024. It is now read-only.

Commit

Permalink
Tag tools KMS integration tests as manual and update Kokoro accordingly.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 466282043
  • Loading branch information
chuckx authored and copybara-github committed Aug 9, 2022
1 parent cb0a9b6 commit b9d25ca
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 3 deletions.
5 changes: 5 additions & 0 deletions kokoro/gcp_ubuntu_per_language/tools/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,13 @@ time bazel test --test_output=errors -- ...
if [[ -n "${KOKORO_ROOT}" ]]; then
declare -a MANUAL_TARGETS
MANUAL_TARGETS=(
"//testing/cc:aws_kms_aead_test"
"//testing/cc:gcp_kms_aead_test"
"//testing/cross_language:aead_envelope_test"
"//tinkey/src/test/java/com/google/crypto/tink/tinkey:AddKeyCommandTest"
"//tinkey/src/test/java/com/google/crypto/tink/tinkey:CreateKeysetCommandTest"
"//tinkey/src/test/java/com/google/crypto/tink/tinkey:CreatePublicKeysetCommandTest"
"//tinkey/src/test/java/com/google/crypto/tink/tinkey:RotateKeysetCommandTest"
)
readonly MANUAL_TARGETS
time bazel test --test_output=errors -- "${MANUAL_TARGETS[@]}"
Expand Down
5 changes: 5 additions & 0 deletions kokoro/macos_external/tools/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,13 @@ time bazel test "${TEST_FLAGS[@]}" -- ...
if [[ -n "${KOKORO_ROOT}" ]]; then
declare -a MANUAL_TARGETS
MANUAL_TARGETS=(
"//testing/cc:aws_kms_aead_test"
"//testing/cc:gcp_kms_aead_test"
"//testing/cross_language:aead_envelope_test"
"//tinkey/src/test/java/com/google/crypto/tink/tinkey:AddKeyCommandTest"
"//tinkey/src/test/java/com/google/crypto/tink/tinkey:CreateKeysetCommandTest"
"//tinkey/src/test/java/com/google/crypto/tink/tinkey:CreatePublicKeysetCommandTest"
"//tinkey/src/test/java/com/google/crypto/tink/tinkey:RotateKeysetCommandTest"
)
readonly MANUAL_TARGETS
time bazel test "${TEST_FLAGS[@]}" -- "${MANUAL_TARGETS[@]}"
Expand Down
17 changes: 16 additions & 1 deletion kokoro/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,22 @@ run_all_linux_tests() {

run_linux_tests "go"
run_linux_tests "python"
run_linux_tests "tools"

local -a MANUAL_TOOLS_TARGETS
if [[ -n "{KOKORO_ROOT}" ]]; then
MANUAL_TOOLS_TARGETS+=(
"//testing/cc:aws_kms_aead_test"
"//testing/cc:gcp_kms_aead_test"
"//testing/cross_language:aead_envelope_test"
"//tinkey/src/test/java/com/google/crypto/tink/tinkey:AddKeyCommandTest"
"//tinkey/src/test/java/com/google/crypto/tink/tinkey:CreateKeysetCommandTest"
"//tinkey/src/test/java/com/google/crypto/tink/tinkey:CreatePublicKeysetCommandTest"
"//tinkey/src/test/java/com/google/crypto/tink/tinkey:RotateKeysetCommandTest"
)
fi
readonly MANUAL_TOOLS_TARGETS
run_linux_tests "tools" "${MANUAL_TOOLS_TARGETS[@]}"

run_linux_tests "apps"
fi

Expand Down
12 changes: 10 additions & 2 deletions tools/testing/cc/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,11 @@ sh_test(
"//testdata/aws:credentials",
"//testing/cross_language:test_lib",
],
tags = ["no_rbe"],
tags = [
"manual",
"no_rbe",
"requires-network",
],
)

sh_test(
Expand All @@ -90,5 +94,9 @@ sh_test(
"//testing/cross_language:test_lib",
"@google_root_pem//file",
],
tags = ["manual"],
tags = [
"manual",
"no_rbe",
"requires-network",
],
)
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ java_test(
size = "small",
srcs = ["CreateKeysetCommandTest.java"],
data = ["//testdata/gcp:credentials"],
tags = [
"manual",
"no_rbe",
"requires-network",
],
deps = [
"//tinkey/src/main/java/com/google/crypto/tink/tinkey:create_keyset_command",
"//tinkey/src/main/java/com/google/crypto/tink/tinkey:tinkey_util",
Expand All @@ -50,6 +55,11 @@ java_test(
size = "small",
srcs = ["AddKeyCommandTest.java"],
data = ["//testdata/gcp:credentials"],
tags = [
"manual",
"no_rbe",
"requires-network",
],
deps = [
"//tinkey/src/main/java/com/google/crypto/tink/tinkey:add_key_command",
"//tinkey/src/main/java/com/google/crypto/tink/tinkey:tinkey_util",
Expand All @@ -69,6 +79,11 @@ java_test(
size = "small",
srcs = ["RotateKeysetCommandTest.java"],
data = ["//testdata/gcp:credentials"],
tags = [
"manual",
"no_rbe",
"requires-network",
],
deps = [
"//tinkey/src/main/java/com/google/crypto/tink/tinkey:rotate_keyset_command",
"//tinkey/src/main/java/com/google/crypto/tink/tinkey:tinkey_util",
Expand Down

0 comments on commit b9d25ca

Please sign in to comment.