-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add ci script for e2e testing
Signed-off-by: Carlos Salas <carlos.salas@suse.com>
- Loading branch information
1 parent
5227075
commit e265622
Showing
2 changed files
with
59 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#!/bin/bash | ||
|
||
################################################################################ | ||
# usage: ./ci-e2e.sh | ||
# This program runs the e2e tests. | ||
# It is automatically triggered by Rancher Turtles CI system. | ||
# | ||
# If you want to run it locally, you'll need to export the following environment variables: | ||
# - Ngrok: NGROK_AUTHTOKEN, NGROK_API_KEY | ||
# - Rancher: RANCHER_HOSTNAME, RANCHER_PASSWORD | ||
# - Azure: AZURE_SUBSCRIPTION_ID, AZURE_TENANT_ID, AZURE_CLIENT_ID, AZURE_CLIENT_SECRET | ||
# - AWS: CAPA_ENCODED_CREDS | ||
# | ||
################################################################################ | ||
|
||
set -o errexit | ||
set -o nounset | ||
set -o pipefail | ||
|
||
REPO_ROOT=$(dirname "${BASH_SOURCE[0]}")/.. | ||
|
||
# shellcheck source=hack/utils.sh | ||
source "${REPO_ROOT}/hack/utils.sh" | ||
|
||
# Verify the required environment variables | ||
turtles::utils::ensure_ngrok_envs | ||
turtles::utils::ensure_rancher_envs | ||
turtles::utils::ensure_azure_envs | ||
turtles::utils::ensure_aws_envs | ||
|
||
# Run E2E | ||
make test-e2e | ||
|
||
# Run janitors | ||
# Azure janitor | ||
# | ||
# AWS janitor | ||
# |