Skip to content

Acceptance Tests qa project #518

Acceptance Tests qa project

Acceptance Tests qa project #518

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

View workflow run for this annotation

GitHub Actions / Acceptance Tests

Invalid workflow file

The workflow is not valid. .github/workflows/acceptance-tests.yml (Line: 49, Col: 33): Unrecognized named-value: 'secrets'. Located at position 1 within expression: secrets.MONGODB_ATLAS_PUBLIC_KEY_CLOUD_QA .github/workflows/acceptance-tests.yml (Line: 50, Col: 34): Unrecognized named-value: 'secrets'. Located at position 1 within expression: secrets.MONGODB_ATLAS_PRIVATE_KEY_CLOUD_QA
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 }}