From 3e5027cee7872fe578d5a4141ab897d88e358c91 Mon Sep 17 00:00:00 2001 From: Yuwen Ma Date: Tue, 10 Sep 2024 19:59:05 +0000 Subject: [PATCH] tests: add e2e job for cloudkms --- dev/ci/periodics/e2e-service-cloudkms | 25 +++++++++++++++++++++++++ dev/tasks/create-test-project | 1 + 2 files changed, 26 insertions(+) create mode 100755 dev/ci/periodics/e2e-service-cloudkms diff --git a/dev/ci/periodics/e2e-service-cloudkms b/dev/ci/periodics/e2e-service-cloudkms new file mode 100755 index 0000000000..7161203637 --- /dev/null +++ b/dev/ci/periodics/e2e-service-cloudkms @@ -0,0 +1,25 @@ +#!/usr/bin/env bash +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -o errexit +set -o nounset +set -o pipefail + +REPO_ROOT="$(git rev-parse --show-toplevel)" +cd ${REPO_ROOT} + +export ONLY_TEST_APIGROUP=kms.cnrm.cloud.google.com + +dev/ci/periodics/_create_project_and_run_e2e diff --git a/dev/tasks/create-test-project b/dev/tasks/create-test-project index cfa9ed13ca..4be9f3c1f0 100755 --- a/dev/tasks/create-test-project +++ b/dev/tasks/create-test-project @@ -55,6 +55,7 @@ gcloud config set project "${GCP_PROJECT_ID}" gcloud services enable \ compute.googleapis.com \ dataflow.googleapis.com \ + cloudkms.googleapis.com \ logging.googleapis.com \ monitoring.googleapis.com \ redis.googleapis.com \