chore: Bump github.com/aws/aws-sdk-go from 1.48.2 to 1.48.7 #426
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 }} | |
search_deployment: ${{ steps.filter.outputs.search_deployment }} | |
generic: ${{ steps.filter.outputs.generic }} | |
backup_online_archive: ${{ steps.filter.outputs.backup_online_archive }} | |
backup_snapshots: ${{ steps.filter.outputs.backup_snapshots }} | |
federation: ${{ steps.filter.outputs.federation }} | |
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 }} | |
assume_role: ${{ steps.filter.outputs.assume_role }} | |
event_trigger: ${{ steps.filter.outputs.event_trigger }} | |
search_index: ${{ steps.filter.outputs.search_index }} | |
steps: | |
- uses: actions/checkout@v4 | |
if: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' || github.event_name == 'schedule' || inputs.parent-event-name == 'release' }} | |
- uses: dorny/paths-filter@v2 | |
id: filter | |
with: | |
filters: | | |
assume_role: | |
- 'mongodbatlas/**provider**.go' | |
cluster_outage_simulation: | |
- 'mongodbatlas/**cluster_outage_simulation**.go' | |
advanced_cluster: | |
- 'internal/service/advancedcluster/*.go' | |
cluster: | |
- 'internal/service/cluster/*.go' | |
search_deployment: | |
- 'internal/service/searchdeployment/*.go' | |
generic: | |
- 'mongodbatlas/data_source_backup_compliance_policy*.go' | |
- 'mongodbatlas/resource_backup_compliance_policy*.go' | |
- 'mongodbatlas/resource_x509_authentication_database_user*.go' | |
- 'mongodbatlas/resource_auditing*.go' | |
backup_online_archive: | |
- 'mongodbatlas/**online_archive**.go' | |
backup_snapshots: | |
- 'mongodbatlas/**backup_snapshot**.go' | |
backup_schedule: | |
- 'mongodbatlas/**backup_schedule**.go' | |
project: | |
- 'internal/service/project/*.go' | |
- 'internal/service/projectipaccesslist/*.go' | |
- 'mongodbatlas/data_source_project_invitation*.go' | |
- 'mongodbatlas/resource_access_list_api_key*.go' | |
- 'mongodbatlas/resource_project_invitation*.go' | |
serverless: | |
- 'mongodbatlas/**_serverless**.go' | |
network: | |
- 'mongodbatlas/**_network**.go' | |
- 'mongodbatlas/**_privatelink**.go' | |
- 'mongodbatlas/**_private_endpoint**.go' | |
federation: | |
- 'mongodbatlas/**_federated_database_instance**.go' | |
config: | |
- 'internal/service/alertconfiguration/*.go' | |
- 'internal/service/atlasuser/*.go' | |
- 'internal/service/databaseuser/*.go' | |
- 'mongodbatlas/data_source_accesslist_api_key*.go' | |
- 'mongodbatlas/data_source_api_key*.go' | |
- 'mongodbatlas/data_source_cloud_provider_access_setup*.go' | |
- 'mongodbatlas/data_source_cloud_provider_access*.go' | |
- 'mongodbatlas/data_source_custom_db_role*.go' | |
- 'mongodbatlas/data_source_custom_dns_configuration_cluster_aws*.go' | |
- 'mongodbatlas/data_source_maintenance_window*.go' | |
- 'mongodbatlas/data_source_org_id*.go' | |
- 'mongodbatlas/data_source_org_invitation*.go' | |
- 'mongodbatlas/data_source_organization*.go' | |
- 'mongodbatlas/data_source_project_api_key*.go' | |
- 'mongodbatlas/data_source_team*.go' | |
- 'mongodbatlas/data_source_third_party_integration*.go' | |
- 'mongodbatlas/resource_api_key*.go' | |
- 'mongodbatlas/resource_cloud_provider_access_setup*.go' | |
- 'mongodbatlas/resource_cloud_provider_access*.go' | |
- 'mongodbatlas/resource_custom_db_role*.go' | |
- 'mongodbatlas/resource_custom_dns_configuration_cluster_aws*.go' | |
- 'mongodbatlas/resource_maintenance_window*.go' | |
- 'mongodbatlas/resource_org_invitation*.go' | |
- 'mongodbatlas/resource_organization*.go' | |
- 'mongodbatlas/resource_project_api_key*.go' | |
- 'mongodbatlas/resource_team*.go' | |
- 'mongodbatlas/resource_third_party_integration*.go' | |
event_trigger: | |
- 'mongodbatlas/resource_event_trigger*.go' | |
- 'mongodbatlas/data_source_event_trigger*.go' | |
search_index: | |
- 'mongodbatlas/resource_search_index*.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' || inputs.parent-event-name == 'release' }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- 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' || inputs.parent-event-name == 'release' }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- 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' || inputs.parent-event-name == 'release' }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- 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 | |
search_deployment: | |
needs: [ change-detection ] | |
if: ${{ needs.change-detection.outputs.search_deployment == 'true' || github.event_name == 'workflow_dispatch' || github.event_name == 'schedule' || github.event.label.name == 'run-testacc' || github.event.label.name == 'run-testacc-search-deployment' || inputs.parent-event-name == 'release' }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- 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 }} | |
TF_LOG: ${{ vars.LOG_LEVEL }} | |
TF_ACC: 1 | |
PARALLEL_GO_TEST: 20 | |
TEST_REGEX: "^TestAccSearchDeployment" | |
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' || inputs.parent-event-name == 'release' }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- 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' || inputs.parent-event-name == 'release' }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- 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' || inputs.parent-event-name == 'release' }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- 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' || inputs.parent-event-name == 'release' }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- 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' || inputs.parent-event-name == 'release' }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- 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' || inputs.parent-event-name == 'release' }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- 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' || inputs.parent-event-name == 'release' }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- 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 | |
federation: | |
needs: [ change-detection ] | |
if: ${{ needs.change-detection.outputs.federation == 'true' || github.event_name == 'workflow_dispatch' || github.event_name == 'schedule' || github.event.label.name == 'run-testacc' || github.event.label.name == 'run-testacc-federation' || inputs.parent-event-name == 'release' }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- 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 }} | |
CI: true | |
TF_ACC: 1 | |
PARALLEL_GO_TEST: 20 | |
TEST_REGEX: "^TestAccFederatedDatabaseInstance" | |
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' || inputs.parent-event-name == 'release' }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- 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 }} | |
MONGODB_ATLAS_PROJECT_OWNER_ID: ${{ vars.MONGODB_ATLAS_PROJECT_OWNER_ID }} | |
SKIP_TEST_EXTERNAL_CREDENTIALS: ${{ vars.SKIP_TEST_EXTERNAL_CREDENTIALS }} | |
MONGODB_ATLAS_USERNAME_CLOUD_DEV: ${{ 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}} | |
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 | |
assume_role: | |
needs: [ change-detection] | |
if: ${{ needs.change-detection.outputs.assume_role == 'true' || github.event_name == 'workflow_dispatch' || github.event_name == 'schedule' || github.event.label.name == 'run-testacc' || github.event.label.name == 'run-testacc-config' || inputs.parent-event-name == 'release' }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version-file: 'go.mod' | |
- id: sts-assume-role | |
name: Generate STS Temporary credential for acceptance testing | |
shell: bash | |
env: | |
AWS_REGION: ${{ vars.AWS_REGION }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
ASSUME_ROLE_ARN: ${{ vars.ASSUME_ROLE_ARN }} | |
run: bash ./scripts/generate-credentials-with-sts-assume-role.sh | |
- name: Acceptance Tests | |
env: | |
ASSUME_ROLE_ARN: ${{ vars.ASSUME_ROLE_ARN }} | |
AWS_REGION: ${{ vars.AWS_REGION }} | |
STS_ENDPOINT: ${{ vars.STS_ENDPOINT }} | |
SECRET_NAME: ${{ vars.AWS_SECRET_NAME }} | |
AWS_ACCESS_KEY_ID: ${{ steps.sts-assume-role.outputs.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ steps.sts-assume-role.outputs.AWS_SECRET_ACCESS_KEY }} | |
AWS_SESSION_TOKEN: ${{ steps.sts-assume-role.outputs.AWS_SESSION_TOKEN }} | |
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 }} | |
TF_LOG: ${{ vars.LOG_LEVEL }} | |
TF_ACC: 1 | |
PARALLEL_GO_TEST: 20 | |
CI: true | |
TEST_REGEX: "^TestAccSTSAssumeRole" | |
run: make testacc | |
search_index: | |
needs: [ change-detection ] | |
if: ${{ needs.change-detection.outputs.search_index == 'true' || github.event_name == 'workflow_dispatch' || github.event_name == 'schedule' || github.event.label.name == 'run-testacc' || github.event.label.name == 'run-testacc-search-index' || inputs.parent-event-name == 'release' }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version-file: 'go.mod' | |
- name: Acceptance Tests | |
env: | |
MONGODB_ATLAS_BASE_URL: ${{ vars.MONGODB_ATLAS_BASE_URL }} | |
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_PROJECT_ID: ${{ vars.MONGODB_ATLAS_ACCTEST_SEARCH_INDEX_PROJECT_ID_CLOUD_DEV }} | |
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: "^TestAccSearchIndex" | |
run: make testacc | |