fix: Mark project api key resource as destroyed if not present #96
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' | |
on: | |
workflow_dispatch: {} # workflow can be run manually | |
schedule: | |
- cron: "0 4 * * *" # workflow runs every day at 04:00 AM | |
workflow_call: # workflow runs after code-health | |
inputs: | |
parent-event-name: | |
required: true | |
type: string | |
pull_request: # you can run a specic job in your PR using GitHub labels | |
types: [ labeled ] | |
jobs: | |
change-detection: | |
runs-on: ubuntu-latest | |
permissions: | |
pull-requests: read | |
repository-projects: read | |
outputs: | |
cluster_outage_simulation: ${{ steps.filter.outputs.cluster_outage_simulation }} | |
advanced_cluster: ${{ steps.filter.outputs.advanced_cluster }} | |
cluster: ${{ steps.filter.outputs.cluster }} | |
generic: ${{ steps.filter.outputs.generic }} | |
backup_online_archive: ${{ steps.filter.outputs.backup_online_archive }} | |
backup_snapshots: ${{ steps.filter.outputs.backup_snapshots }} | |
backup_schedule: ${{ steps.filter.outputs.backup_schedule }} | |
project: ${{ steps.filter.outputs.project }} | |
serverless: ${{ steps.filter.outputs.serverless }} | |
network: ${{ steps.filter.outputs.network }} | |
config: ${{ steps.filter.outputs.config }} | |
steps: | |
- uses: actions/checkout@v3 | |
if: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' || github.event_name == 'schedule'}} | |
- uses: dorny/paths-filter@v2 | |
id: filter | |
with: | |
filters: | | |
cluster_outage_simulation: | |
- 'mongodbatlas/**cluster_outage_simulation**.go' | |
advanced_cluster: | |
- 'mongodbatlas/**advanced_cluster**.go' | |
cluster: | |
- 'mongodbatlas/**mongodbatlas_cluster**.go' | |
generic: | |
- 'mongodbatlas/data_source_mongodbatlas_backup_compliance_policy*.go' | |
- 'mongodbatlas/resource_mongodbatlas_backup_compliance_policy*.go' | |
- 'mongodbatlas/data_source_mongodbatlas_data_lakes_test*.go' | |
- 'mongodbatlas/resource_mongodbatlas_x509_authentication_database_user*.go' | |
- 'mongodbatlas/resource_mongodbatlas_auditing*.go' | |
backup_online_archive: | |
- 'mongodbatlas/**online_archive**.go' | |
backup_snapshots: | |
- 'mongodbatlas/**backup_snapshot**.go' | |
backup_schedule: | |
- 'mongodbatlas/**backup_schedule**.go' | |
project: | |
- 'mongodbatlas/data_source_mongodbatlas_project_invitation*.go' | |
- 'mongodbatlas/data_source_mongodbatlas_project_ip_access_list*.go' | |
- 'mongodbatlas/data_source_mongodbatlas_project*.go' | |
- 'mongodbatlas/resource_mongodbatlas_access_list_api_key*.go' | |
- 'mongodbatlas/resource_mongodbatlas_project_invitation*.go' | |
- 'mongodbatlas/resource_mongodbatlas_project_ip_access_list*.go' | |
- 'mongodbatlas/resource_mongodbatlas_project*.go' | |
serverless: | |
- 'mongodbatlas/**_serverless**.go' | |
network: | |
- 'mongodbatlas/**_network**.go' | |
- 'mongodbatlas/**_privatelink**.go' | |
- 'mongodbatlas/**_private_endpoint**.go' | |
config: | |
- 'mongodbatlas/data_source_mongodbatlas_accesslist_api_key*.go' | |
- 'mongodbatlas/data_source_mongodbatlas_alert_configuration*.go' | |
- 'mongodbatlas/data_source_mongodbatlas_api_key*.go' | |
- 'mongodbatlas/data_source_mongodbatlas_cloud_provider_access_setup*.go' | |
- 'mongodbatlas/data_source_mongodbatlas_cloud_provider_access*.go' | |
- 'mongodbatlas/data_source_mongodbatlas_custom_db_role*.go' | |
- 'mongodbatlas/data_source_mongodbatlas_custom_dns_configuration_cluster_aws*.go' | |
- 'mongodbatlas/data_source_mongodbatlas_database_user*.go' | |
- 'mongodbatlas/data_source_mongodbatlas_event_trigger*.go' | |
- 'mongodbatlas/data_source_mongodbatlas_maintenance_window*.go' | |
- 'mongodbatlas/data_source_mongodbatlas_org_id*.go' | |
- 'mongodbatlas/data_source_mongodbatlas_org_invitation*.go' | |
- 'mongodbatlas/data_source_mongodbatlas_organization*.go' | |
- 'mongodbatlas/data_source_mongodbatlas_project_api_key*.go' | |
- 'mongodbatlas/data_source_mongodbatlas_team*.go' | |
- 'mongodbatlas/data_source_mongodbatlas_third_party_integration*.go' | |
- 'mongodbatlas/resource_mongodbatlas_api_key*.go' | |
- 'mongodbatlas/resource_mongodbatlas_alert_configuration*.go' | |
- 'mongodbatlas/resource_mongodbatlas_cloud_provider_access_setup*.go' | |
- 'mongodbatlas/resource_mongodbatlas_cloud_provider_access*.go' | |
- 'mongodbatlas/resource_mongodbatlas_custom_db_role*.go' | |
- 'mongodbatlas/resource_mongodbatlas_custom_dns_configuration_cluster_aws*.go' | |
- 'mongodbatlas/resource_mongodbatlas_database_user*.go' | |
- 'mongodbatlas/resource_mongodbatlas_event_trigger*.go' | |
- 'mongodbatlas/resource_mongodbatlas_maintenance_window*.go' | |
- 'mongodbatlas/resource_mongodbatlas_org_invitation*.go' | |
- 'mongodbatlas/resource_mongodbatlas_organization*.go' | |
- 'mongodbatlas/resource_mongodbatlas_project_api_key*.go' | |
- 'mongodbatlas/resource_mongodbatlas_search_index*.go' | |
- 'mongodbatlas/resource_mongodbatlas_team*.go' | |
- 'mongodbatlas/resource_mongodbatlas_third_party_integration*.go' | |
cluster_outage_simulation: | |
needs: [ change-detection ] | |
if: ${{ needs.change-detection.outputs.cluster_outage_simulation == 'true' || github.event_name == 'workflow_dispatch' || github.event_name == 'schedule' || github.event.label.name == 'run-testacc' || github.event.label.name == 'run-testacc-cluster-outage-simulation' }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version-file: 'go.mod' | |
- name: Acceptance Tests | |
env: | |
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_BASE_URL: ${{ vars.MONGODB_ATLAS_BASE_URL }} | |
ACCTEST_TIMEOUT: ${{ vars.ACCTEST_TIMEOUT }} | |
SKIP_TEST_EXTERNAL_CREDENTIALS: ${{ vars.SKIP_TEST_EXTERNAL_CREDENTIALS }} | |
TF_LOG: ${{ vars.LOG_LEVEL }} | |
TF_ACC: 1 | |
PARALLEL_GO_TEST: 20 | |
TEST_REGEX: "^TestAccOutageSimulationCluster" | |
run: make testacc | |
advanced_cluster: | |
needs: [ change-detection ] | |
if: ${{ needs.change-detection.outputs.advanced_cluster == 'true' || github.event_name == 'workflow_dispatch' || github.event_name == 'schedule' || github.event.label.name == 'run-testacc' || github.event.label.name == 'run-testacc-advanced-cluster' }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version-file: 'go.mod' | |
- name: Acceptance Tests | |
env: | |
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_BASE_URL: ${{ vars.MONGODB_ATLAS_BASE_URL }} | |
ACCTEST_TIMEOUT: ${{ vars.ACCTEST_TIMEOUT }} | |
SKIP_TEST_EXTERNAL_CREDENTIALS: ${{ vars.SKIP_TEST_EXTERNAL_CREDENTIALS }} | |
TF_LOG: ${{ vars.LOG_LEVEL }} | |
TF_ACC: 1 | |
PARALLEL_GO_TEST: 20 | |
TEST_REGEX: "^TestAccClusterAdvancedCluster" | |
run: make testacc | |
cluster: | |
needs: [ change-detection ] | |
if: ${{ needs.change-detection.outputs.cluster == 'true' || github.event_name == 'workflow_dispatch' || github.event_name == 'schedule' || github.event.label.name == 'run-testacc' || github.event.label.name == 'run-testacc-cluster' }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version-file: 'go.mod' | |
- name: Acceptance Tests | |
env: | |
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_BASE_URL: ${{ vars.MONGODB_ATLAS_BASE_URL }} | |
SKIP_TEST_EXTERNAL_CREDENTIALS: ${{ vars.SKIP_TEST_EXTERNAL_CREDENTIALS }} | |
ACCTEST_TIMEOUT: ${{ vars.ACCTEST_TIMEOUT }} | |
TF_LOG: ${{ vars.LOG_LEVEL }} | |
TF_ACC: 1 | |
PARALLEL_GO_TEST: 20 | |
TEST_REGEX: "^TestAccClusterRSCluster" | |
run: make testacc | |
generic: # Acceptance tests that do not use any time-consuming resource (example: cluster) | |
needs: [ change-detection ] | |
if: ${{ needs.change-detection.outputs.generic == 'true' || github.event_name == 'workflow_dispatch' || github.event_name == 'schedule' || github.event.label.name == 'run-testacc' || github.event.label.name == 'run-testacc-generic' }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version-file: 'go.mod' | |
- name: Acceptance Tests | |
env: | |
MONGODB_ATLAS_PUBLIC_KEY: ${{ secrets.MONGODB_ATLAS_PUBLIC_KEY_CLOUD_DEV }} | |
MONGODB_ATLAS_PRIVATE_KEY: ${{ secrets.MONGODB_ATLAS_PRIVATE_KEY_CLOUD_DEV }} | |
CA_CERT: ${{ secrets.CA_CERT }} | |
MONGODB_ATLAS_ORG_ID: ${{ vars.MONGODB_ATLAS_ORG_ID_CLOUD_DEV }} | |
MONGODB_ATLAS_BASE_URL: ${{ vars.MONGODB_ATLAS_BASE_URL }} | |
MONGODB_ATLAS_PROJECT_OWNER_ID: ${{ vars.MONGODB_ATLAS_PROJECT_OWNER_ID }} | |
SKIP_TEST_EXTERNAL_CREDENTIALS: ${{ vars.SKIP_TEST_EXTERNAL_CREDENTIALS }} | |
ACCTEST_TIMEOUT: ${{ vars.ACCTEST_TIMEOUT }} | |
TF_LOG: ${{ vars.LOG_LEVEL }} | |
TF_ACC: 1 | |
PARALLEL_GO_TEST: 20 | |
TEST_REGEX: "^TestAccGeneric" | |
run: | | |
make testacc | |
backup_online_archive: | |
needs: [ change-detection ] | |
if: ${{ needs.change-detection.outputs.backup_online_archive == 'true' || github.event_name == 'workflow_dispatch' || github.event_name == 'schedule' || github.event.label.name == 'run-testacc' || github.event.label.name == 'run-testacc-backup-online-archive' }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version-file: 'go.mod' | |
- name: Acceptance Tests | |
env: | |
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_BASE_URL: ${{ vars.MONGODB_ATLAS_BASE_URL }} | |
MONGODB_ATLAS_PROJECT_OWNER_ID: ${{ vars.MONGODB_ATLAS_PROJECT_OWNER_ID }} | |
SKIP_TEST_EXTERNAL_CREDENTIALS: ${{ vars.SKIP_TEST_EXTERNAL_CREDENTIALS }} | |
ACCTEST_TIMEOUT: ${{ vars.ACCTEST_TIMEOUT }} | |
TF_LOG: ${{ vars.LOG_LEVEL }} | |
TF_ACC: 1 | |
PARALLEL_GO_TEST: 20 | |
TEST_REGEX: "^TestAccBackupRSOnlineArchive" | |
run: make testacc | |
backup_snapshots: | |
needs: [ change-detection ] | |
if: ${{ needs.change-detection.outputs.backup_snapshots == 'true' || github.event_name == 'workflow_dispatch' || github.event_name == 'schedule' || github.event.label.name == 'run-testacc' || github.event.label.name == 'run-testacc-backup-snapshots' }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version-file: 'go.mod' | |
- name: Acceptance Tests | |
env: | |
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_BASE_URL: ${{ vars.MONGODB_ATLAS_BASE_URL }} | |
MONGODB_ATLAS_PROJECT_OWNER_ID: ${{ vars.MONGODB_ATLAS_PROJECT_OWNER_ID }} | |
SKIP_TEST_EXTERNAL_CREDENTIALS: ${{ vars.SKIP_TEST_EXTERNAL_CREDENTIALS }} | |
ACCTEST_TIMEOUT: ${{ vars.ACCTEST_TIMEOUT }} | |
TF_LOG: ${{ vars.LOG_LEVEL }} | |
CI: true | |
TF_ACC: 1 | |
PARALLEL_GO_TEST: 20 | |
TEST_REGEX: "^TestAccBackupRSCloudBackupSnapshot" | |
run: make testacc | |
backup_schedule: | |
needs: [ change-detection ] | |
if: ${{ needs.change-detection.outputs.backup_schedule == 'true' || github.event_name == 'workflow_dispatch' || github.event_name == 'schedule' || github.event.label.name == 'run-testacc' || github.event.label.name == 'run-testacc-backup-schedule' }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version-file: 'go.mod' | |
- name: Acceptance Tests | |
env: | |
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_BASE_URL: ${{ vars.MONGODB_ATLAS_BASE_URL }} | |
MONGODB_ATLAS_PROJECT_OWNER_ID: ${{ vars.MONGODB_ATLAS_PROJECT_OWNER_ID }} | |
SKIP_TEST_EXTERNAL_CREDENTIALS: ${{ vars.SKIP_TEST_EXTERNAL_CREDENTIALS }} | |
ACCTEST_TIMEOUT: ${{ vars.ACCTEST_TIMEOUT }} | |
TF_LOG: ${{ vars.LOG_LEVEL }} | |
TF_ACC: 1 | |
PARALLEL_GO_TEST: 20 | |
CI: true | |
TEST_REGEX: "^TestAccBackupRSCloudBackupSchedule" | |
run: make testacc | |
project: | |
needs: [ change-detection ] | |
if: ${{ needs.change-detection.outputs.project == 'true' || github.event_name == 'workflow_dispatch' || github.event_name == 'schedule' || github.event.label.name == 'run-testacc' || github.event.label.name == 'run-testacc-project' }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version-file: 'go.mod' | |
- name: Acceptance Tests | |
env: | |
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_BASE_URL: ${{ vars.MONGODB_ATLAS_BASE_URL }} | |
MONGODB_ATLAS_PROJECT_OWNER_ID: ${{ vars.MONGODB_ATLAS_PROJECT_OWNER_ID }} | |
MONGODB_ATLAS_API_KEYS_IDS: ${{ vars.MONGODB_ATLAS_API_KEYS_IDS }} | |
MONGODB_ATLAS_TEAMS_IDS: ${{ vars.MONGODB_ATLAS_TEAMS_IDS }} | |
SKIP_TEST_EXTERNAL_CREDENTIALS: ${{ vars.SKIP_TEST_EXTERNAL_CREDENTIALS }} | |
ACCTEST_TIMEOUT: ${{ vars.ACCTEST_TIMEOUT }} | |
TF_LOG: ${{ vars.LOG_LEVEL }} | |
TF_ACC: 1 | |
PARALLEL_GO_TEST: 20 | |
CI: true | |
TEST_REGEX: "^TestAccProject" | |
run: make testacc | |
serverless: | |
needs: [ change-detection ] | |
if: ${{ needs.change-detection.outputs.serverless == 'true' || github.event_name == 'workflow_dispatch' || github.event_name == 'schedule' || github.event.label.name == 'run-testacc' || github.event.label.name == 'run-testacc-serverless' }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version-file: 'go.mod' | |
- name: Acceptance Tests | |
env: | |
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_BASE_URL: ${{ vars.MONGODB_ATLAS_BASE_URL }} | |
SKIP_TEST_EXTERNAL_CREDENTIALS: ${{ vars.SKIP_TEST_EXTERNAL_CREDENTIALS }} | |
ACCTEST_TIMEOUT: ${{ vars.ACCTEST_TIMEOUT }} | |
TF_LOG: ${{ vars.LOG_LEVEL }} | |
TF_ACC: 1 | |
PARALLEL_GO_TEST: 20 | |
CI: true | |
TEST_REGEX: "^TestAccServerless" | |
run: make testacc | |
network: | |
needs: [ change-detection ] | |
if: ${{ needs.change-detection.outputs.network == 'true' || github.event_name == 'workflow_dispatch' || github.event_name == 'schedule' || github.event.label.name == 'run-testacc' || github.event.label.name == 'run-testacc-network' }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version-file: 'go.mod' | |
- name: Acceptance Tests | |
env: | |
MONGODB_ATLAS_PUBLIC_KEY: ${{ secrets.MONGODB_ATLAS_PUBLIC_KEY_CLOUD_DEV_NETWORK }} | |
MONGODB_ATLAS_PRIVATE_KEY: ${{ secrets.MONGODB_ATLAS_PRIVATE_KEY_CLOUD_DEV_NETWORK }} | |
MONGODB_ATLAS_ORG_ID: ${{ vars.MONGODB_ATLAS_ORG_ID_CLOUD_DEV_NETWORK }} | |
MONGODB_ATLAS_PROJECT_ID: ${{ vars.MONGODB_ATLAS_PROJECT_ID_CLOUD_DEV_NETWORK }} | |
MONGODB_ATLAS_BASE_URL: ${{ vars.MONGODB_ATLAS_BASE_URL }} | |
SKIP_TEST_EXTERNAL_CREDENTIALS: ${{ vars.SKIP_TEST_EXTERNAL_CREDENTIALS }} | |
MONGODB_ATLAS_ENABLE_BETA: ${{ vars.MONGODB_ATLAS_ENABLE_BETA }} | |
MONGODB_ATLAS_ENDPOINT_ID: ${{ vars.MONGODB_ATLAS_AWS_ENDPOINT_ID_NETWORK }} | |
ACCTEST_TIMEOUT: ${{ vars.ACCTEST_TIMEOUT }} | |
AWS_REGION: ${{ vars.AWS_REGION }} | |
TF_LOG: ${{ vars.LOG_LEVEL }} | |
TF_ACC: 1 | |
PARALLEL_GO_TEST: 20 | |
CI: true | |
TEST_REGEX: "^TestAccNetwork" | |
run: make testacc | |
config: | |
needs: [ change-detection ] | |
if: ${{ needs.change-detection.outputs.config == 'true' || github.event_name == 'workflow_dispatch' || github.event_name == 'schedule' || github.event.label.name == 'run-testacc' || github.event.label.name == 'run-testacc-config' }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version-file: 'go.mod' | |
- name: Acceptance Tests | |
env: | |
MONGODB_ATLAS_PUBLIC_KEY: ${{ secrets.MONGODB_ATLAS_PUBLIC_KEY_CLOUD_DEV_NETWORK }} | |
MONGODB_ATLAS_PRIVATE_KEY: ${{ secrets.MONGODB_ATLAS_PRIVATE_KEY_CLOUD_DEV_NETWORK }} | |
MONGODB_ATLAS_ORG_ID: ${{ vars.MONGODB_ATLAS_ORG_ID_CLOUD_DEV_NETWORK }} | |
MONGODB_ATLAS_BASE_URL: ${{ vars.MONGODB_ATLAS_BASE_URL }} | |
SKIP_TEST_EXTERNAL_CREDENTIALS: ${{ vars.SKIP_TEST_EXTERNAL_CREDENTIALS }} | |
MONGODB_ATLAS_USERNAME_CLOUD_DEV: ${{ vars.MONGODB_ATLAS_USERNAME_CLOUD_DEV }} | |
ACCTEST_TIMEOUT: ${{ vars.ACCTEST_TIMEOUT }} | |
TF_LOG: ${{ vars.LOG_LEVEL }} | |
TF_ACC: 1 | |
PARALLEL_GO_TEST: 20 | |
CI: true | |
TEST_REGEX: "^TestAccConfig" | |
run: make testacc |