Acceptance Tests qa project #518
Workflow file for this run
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
name: 'Acceptance Tests' | ||
run-name: 'Acceptance Tests ${{ inputs.atlas_cloud_env }} ${{ inputs.test_group }}' | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
terraform_version: | ||
description: 'Terraform version to use, e.g. 1.6.x, empty for latest' | ||
type: string | ||
required: false | ||
atlas_cloud_env: | ||
description: 'Atlas cloud environment used, can be either `dev` or `qa`, empty for `dev`' | ||
type: string | ||
required: false | ||
test_group: | ||
description: 'Test group to run, e.g. advanced_cluster, empty for all' | ||
type: string | ||
required: false | ||
ref: | ||
description: 'The branch, tag or SHA where tests will run, e.g. v1.14.0, empty for default branch' | ||
type: string | ||
required: false | ||
workflow_call: # workflow runs after Test Suite or code-health | ||
inputs: | ||
terraform_version: | ||
description: 'Terraform version to use, e.g. 1.6.x, empty for latest' | ||
type: string | ||
required: false | ||
ref: | ||
description: 'The branch, tag or SHA where tests will run, e.g. v1.14.0, empty for default branch' | ||
type: string | ||
required: false | ||
atlas_cloud_env: | ||
description: 'Atlas cloud environment used, can be either `dev` or `qa`, empty for `dev`' | ||
type: string | ||
required: false | ||
jobs: | ||
acc-tests-qa: | ||
if: ${{ inputs.atlas_cloud_env == 'qa' }} | ||
name: acc-tests-qa-${{ matrix.terraform_version || 'latest' }} | ||
secrets: inherit | ||
uses: ./.github/workflows/acceptance-tests-exe.yml | ||
with: | ||
terraform_version: ${{ inputs.terraform_version || vars.TF_VERSION_LATEST }} | ||
ref: ${{ inputs.ref }} | ||
test_group: ${{ inputs.test_group }} | ||
mongodb_atlas_public_key: ${{ secrets.MONGODB_ATLAS_PUBLIC_KEY_CLOUD_QA }} | ||
Check failure on line 49 in .github/workflows/acceptance-tests.yml GitHub Actions / Acceptance TestsInvalid workflow file
|
||
mongodb_atlas_private_key: ${{ secrets.MONGODB_ATLAS_PRIVATE_KEY_CLOUD_QA }} | ||
mongodb_atlas_org_id: ${{ vars.MONGODB_ATLAS_ORG_ID_CLOUD_QA }} | ||
mongodb_atlas_public_key_network: ${{ secrets.MONGODB_ATLAS_PUBLIC_KEY_CLOUD_QA }} | ||
mongodb_atlas_private_key_network: ${{ secrets.MONGODB_ATLAS_PRIVATE_KEY_CLOUD_QA }} | ||
mongodb_atlas_org_id_network: ${{ vars.MONGODB_ATLAS_ORG_ID_CLOUD_QA }} | ||
mongodb_atlas_project_id_network: ${{ vars.MONGODB_ATLAS_PROJECT_ID_CLOUD_QA }} | ||
mongodb_atlas_base_url: ${{ vars.MONGODB_ATLAS_BASE_URL_QA }} | ||
mongodb_atlas_project_owner_id: ${{ vars.MONGODB_ATLAS_PROJECT_OWNER_ID_QA }} | ||
mongodb_atlas_teams_ids: ${{ vars.MONGODB_ATLAS_TEAMS_IDS_QA }} | ||
mongodb_atlas_username: ${{ vars.MONGODB_ATLAS_USERNAME_CLOUD_QA }} | ||
azure_atlas_app_id: ${{ vars.AZURE_ATLAS_APP_ID_QA }} | ||
azure_service_principal_id: ${{ vars.AZURE_SERVICE_PRINCIPAL_ID_QA }} | ||
azure_tenant_id: ${{ vars.AZURE_TENANT_ID_QA }} | ||
aws_secret_name: ${{ vars.AWS_SECRET_NAME_QA }} | ||
acc-tests-dev: | ||
if: ${{ inputs.atlas_cloud_env == 'dev' || inputs.atlas_cloud_env == '' }} | ||
name: acc-tests-dev-${{ matrix.terraform_version || 'latest' }} | ||
secrets: inherit | ||
uses: ./.github/workflows/acceptance-tests-exe.yml | ||
with: | ||
terraform_version: ${{ inputs.terraform_version || vars.TF_VERSION_LATEST }} | ||
ref: ${{ inputs.ref }} | ||
test_group: ${{ inputs.test_group }} | ||
mongodb_atlas_public_key: ${{ secrets.MONGODB_ATLAS_PUBLIC_KEY_CLOUD_DEV }} | ||
mongodb_atlas_private_key: ${{ secrets.MONGODB_ATLAS_PRIVATE_KEY_CLOUD_DEV }} | ||
mongodb_atlas_org_id: ${{ vars.MONGODB_ATLAS_ORG_ID_CLOUD_DEV }} | ||
mongodb_atlas_public_key_network: ${{ secrets.MONGODB_ATLAS_PUBLIC_KEY_CLOUD_DEV_NETWORK }} | ||
mongodb_atlas_private_key_network: ${{ secrets.MONGODB_ATLAS_PRIVATE_KEY_CLOUD_DEV_NETWORK }} | ||
mongodb_atlas_org_id_network: ${{ vars.MONGODB_ATLAS_ORG_ID_CLOUD_DEV_NETWORK }} | ||
mongodb_atlas_project_id_network: ${{ vars.MONGODB_ATLAS_PROJECT_ID_CLOUD_DEV_NETWORK }} | ||
mongodb_atlas_base_url: ${{ vars.MONGODB_ATLAS_BASE_URL }} | ||
mongodb_atlas_project_owner_id: ${{ vars.MONGODB_ATLAS_PROJECT_OWNER_ID }} | ||
mongodb_atlas_teams_ids: ${{ vars.MONGODB_ATLAS_TEAMS_IDS }} | ||
mongodb_atlas_username: ${{ vars.MONGODB_ATLAS_USERNAME_CLOUD_DEV }} | ||
azure_atlas_app_id: ${{ vars.AZURE_ATLAS_APP_ID }} | ||
azure_service_principal_id: ${{ vars.AZURE_SERVICE_PRINCIPAL_ID }} | ||
azure_tenant_id: ${{ vars.AZURE_TENANT_ID }} | ||
aws_secret_name: ${{ vars.AWS_SECRET_NAME }} |