2021-08-12 10:43:55 +03:00
|
|
|
trigger: none
|
|
|
|
pr: none
|
2021-04-27 16:56:30 +03:00
|
|
|
|
2021-08-12 10:43:55 +03:00
|
|
|
resources:
|
|
|
|
pipelines:
|
|
|
|
- pipeline: e2e
|
|
|
|
source: CI
|
|
|
|
trigger: true
|
2021-04-27 16:56:30 +03:00
|
|
|
|
2020-02-27 16:34:46 +03:00
|
|
|
# Azure DevOps Pipeline running e2e tests
|
|
|
|
variables:
|
2020-04-03 20:01:11 +03:00
|
|
|
- template: vars.yml
|
2020-02-27 16:34:46 +03:00
|
|
|
jobs:
|
2020-04-03 20:01:11 +03:00
|
|
|
- job: E2E
|
2020-10-21 14:52:41 +03:00
|
|
|
timeoutInMinutes: 180
|
2020-04-03 20:01:11 +03:00
|
|
|
pool:
|
2020-08-10 15:25:30 +03:00
|
|
|
name: ARO-CI
|
2022-03-21 08:06:23 +03:00
|
|
|
demands: go-1.17
|
2020-04-03 20:01:11 +03:00
|
|
|
steps:
|
2020-08-10 15:25:30 +03:00
|
|
|
- template: ./templates/template-checkout.yml
|
2020-04-03 20:01:11 +03:00
|
|
|
- template: ./templates/template-az-cli-login.yml
|
|
|
|
parameters:
|
|
|
|
azureDevOpsJSONSPN: $(aro-v4-e2e-devops-spn)
|
|
|
|
- script: |
|
2021-12-15 01:10:39 +03:00
|
|
|
az account set -s $AZURE_SUBSCRIPTION_ID
|
2020-04-03 20:01:11 +03:00
|
|
|
export SECRET_SA_ACCOUNT_NAME=$(SECRET_SA_ACCOUNT_NAME)
|
|
|
|
make secrets
|
|
|
|
. secrets/env
|
|
|
|
echo "##vso[task.setvariable variable=RP_MODE]$RP_MODE"
|
|
|
|
displayName: 🔑 Downloading certificates and secrets from storage account
|
|
|
|
name: setEnv
|
2020-07-28 12:51:01 +03:00
|
|
|
- template: ./templates/template-push-images-to-acr.yml
|
|
|
|
parameters:
|
|
|
|
rpImageACR: $(RP_IMAGE_ACR)
|
2021-09-17 14:52:04 +03:00
|
|
|
buildCommand: publish-image-aro
|
2020-11-02 20:49:11 +03:00
|
|
|
- script: |
|
|
|
|
set -e
|
|
|
|
set -o pipefail
|
|
|
|
|
|
|
|
. secrets/env
|
2022-08-30 16:19:29 +03:00
|
|
|
export HIVEKUBECONFIGPATH="secrets/e2e-aks-kubeconfig"
|
2020-11-02 20:49:11 +03:00
|
|
|
|
|
|
|
az account set -s $AZURE_SUBSCRIPTION_ID
|
|
|
|
|
|
|
|
set -x
|
|
|
|
. ./hack/e2e/run-rp-and-e2e.sh
|
2022-08-23 12:10:54 +03:00
|
|
|
trap 'set +e; kill_rp; clean_e2e_db; kill_vpn' EXIT
|
|
|
|
|
|
|
|
run_vpn
|
2020-11-02 20:49:11 +03:00
|
|
|
|
|
|
|
deploy_e2e_db
|
|
|
|
|
|
|
|
run_rp
|
|
|
|
validate_rp_running
|
|
|
|
register_sub
|
|
|
|
|
|
|
|
export CI=true
|
2021-02-17 06:40:27 +03:00
|
|
|
make test-e2e
|
2020-10-08 16:18:09 +03:00
|
|
|
- template: ./templates/template-az-cli-logout.yml
|