fix: Sets scopes in Read to support Scope updates (#1234) #2841
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: 'Contract Testing' | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
change-detection: | |
runs-on: ubuntu-latest | |
permissions: | |
pull-requests: read | |
repository-projects: read | |
outputs: # ensure resources are sorted alphabetically | |
access-list-api-key: ${{ steps.filter.outputs.access-list-api-key }} | |
alert-configuration: ${{ steps.filter.outputs.alert-configuration }} | |
api-key: ${{ steps.filter.outputs.api-key }} | |
auditing: ${{ steps.filter.outputs.auditing }} | |
cloud-backup-restore-jobs: ${{ steps.filter.outputs.cloud-backup-restore-jobs }} | |
cluster-outage-simulation: ${{ steps.filter.outputs.cluster-outage-simulation }} | |
federated-database-instance: ${{ steps.filter.outputs.federated-database-instance }} | |
federated-query-limit: ${{ steps.filter.outputs.federated-query-limit }} | |
online-archive: ${{ steps.filter.outputs.online-archive }} | |
organization: ${{ steps.filter.outputs.organization }} | |
private-endpoint-aws: ${{ steps.filter.outputs.private-endpoint-aws }} | |
private-endpoint-service: ${{ steps.filter.outputs.private-endpoint-service }} | |
privatelink-endpoint-service-data-federation-online-archive: ${{ steps.filter.outputs.privatelink-endpoint-service-data-federation-online-archive }} | |
project: ${{ steps.filter.outputs.project }} | |
resource-policy: ${{ steps.filter.outputs.resource-policy }} | |
search-deployment: ${{ steps.filter.outputs.search-deployment }} | |
serverless-private-endpoint: ${{ steps.filter.outputs.serverless-private-endpoint }} | |
stream-connection: ${{ steps.filter.outputs.stream-connection }} | |
stream-instance: ${{ steps.filter.outputs.stream-instance }} | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 | |
if: ${{ github.event_name == 'push' }} | |
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 | |
id: filter | |
with: | |
filters: | | |
access-list-api-key: | |
- 'cfn-resources/access-list-api-key/**' | |
alert-configuration: | |
- 'cfn-resources/alert-configuration/**' | |
api-key: | |
- 'cfn-resources/api-key/**' | |
auditing: | |
- 'cfn-resources/auditing/**' | |
cloud-backup-restore-jobs: | |
- 'cfn-resources/cloud-backup-restore-jobs/**' | |
cluster-outage-simulation: | |
- 'cfn-resources/cluster-outage-simulation/**' | |
federated-database-instance: | |
- 'cfn-resources/federated-database-instance/**' | |
federated-query-limit: | |
- 'cfn-resources/federated-query-limit/**' | |
online-archive: | |
- 'cfn-resources/online-archive/**' | |
organization: | |
- 'cfn-resources/organization/**' | |
private-endpoint-aws: | |
- 'cfn-resources/private-endpoint-aws/**' | |
private-endpoint-service: | |
- 'cfn-resources/private-endpoint-service/**' | |
privatelink-endpoint-service-data-federation-online-archive: | |
- 'cfn-resources/privatelink-endpoint-service-data-federation-online-archive/**' | |
project: | |
- 'cfn-resources/project/**' | |
resource-policy: | |
- 'cfn-resources/resource-policy/**' | |
search-deployment: | |
- 'cfn-resources/search-deployment/**' | |
serverless-private-endpoint: | |
- 'cfn-resources/serverless-private-endpoint/**' | |
stream-connection: | |
- 'cfn-resources/stream-connection/**' | |
stream-instance: | |
- 'cfn-resources/stream-instance/**' | |
access-list-api-key: | |
needs: change-detection | |
if: ${{ needs.change-detection.outputs.access-list-api-key == 'true' }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 | |
- uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a | |
with: | |
go-version-file: 'cfn-resources/go.mod' | |
- name: setup Atlas CLI | |
uses: mongodb/atlas-github-action@15663d068c40a8582d881560961fce9d45e0df9a | |
- uses: aws-actions/setup-sam@819220f63fb333a9a394dd0a5cab2d8303fd17e2 | |
with: | |
use-installer: true | |
- uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 | |
with: | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID_TEST_ENV }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY_TEST_ENV }} | |
aws-region: eu-west-1 | |
- uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b | |
with: | |
python-version: '3.9' | |
cache: 'pip' # caching pip dependencies | |
- run: pip install cloudformation-cli cloudformation-cli-go-plugin | |
- name: Run the Contract test | |
shell: bash | |
env: | |
MONGODB_ATLAS_PUBLIC_API_KEY: ${{ secrets.CLOUD_DEV_PUBLIC_KEY }} | |
MONGODB_ATLAS_PRIVATE_API_KEY: ${{ secrets.CLOUD_DEV_PRIVATE_KEY }} | |
MONGODB_ATLAS_ORG_ID: ${{ secrets.CLOUD_DEV_ORG_ID }} | |
MONGODB_ATLAS_OPS_MANAGER_URL: ${{ vars.MONGODB_ATLAS_BASE_URL }} | |
MONGODB_ATLAS_PROFILE: cfn-cloud-dev-github-action | |
run: | | |
pushd cfn-resources/access-list-api-key | |
make create-test-resources | |
cat inputs/inputs_1_create.json | |
make run-contract-testing | |
make delete-test-resources | |
alert-configuration: | |
needs: change-detection | |
if: ${{ needs.change-detection.outputs.alert-configuration == 'true' }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 | |
- uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a | |
with: | |
go-version-file: 'cfn-resources/go.mod' | |
- name: setup Atlas CLI | |
uses: mongodb/atlas-github-action@15663d068c40a8582d881560961fce9d45e0df9a | |
- uses: aws-actions/setup-sam@819220f63fb333a9a394dd0a5cab2d8303fd17e2 | |
with: | |
use-installer: true | |
- uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 | |
with: | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID_TEST_ENV }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY_TEST_ENV }} | |
aws-region: eu-west-1 | |
- uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b | |
with: | |
python-version: '3.9' | |
cache: 'pip' # caching pip dependencies | |
- run: pip install cloudformation-cli cloudformation-cli-go-plugin | |
- name: Run the Contract test | |
shell: bash | |
env: | |
MONGODB_ATLAS_PUBLIC_API_KEY: ${{ secrets.CLOUD_DEV_PUBLIC_KEY }} | |
MONGODB_ATLAS_PRIVATE_API_KEY: ${{ secrets.CLOUD_DEV_PRIVATE_KEY }} | |
MONGODB_ATLAS_ORG_ID: ${{ secrets.CLOUD_DEV_ORG_ID }} | |
MONGODB_ATLAS_OPS_MANAGER_URL: ${{ vars.MONGODB_ATLAS_BASE_URL }} | |
MONGODB_ATLAS_PROFILE: cfn-cloud-dev-github-action | |
run: | | |
cd cfn-resources/alert-configuration | |
make create-test-resources | |
cat inputs/inputs_1_create.json | |
make run-contract-testing | |
make delete-test-resources | |
api-key: | |
needs: change-detection | |
if: ${{ needs.change-detection.outputs.api-key == 'true' }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 | |
- uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a | |
with: | |
go-version-file: 'cfn-resources/go.mod' | |
- name: setup Atlas CLI | |
uses: mongodb/atlas-github-action@15663d068c40a8582d881560961fce9d45e0df9a | |
- uses: aws-actions/setup-sam@819220f63fb333a9a394dd0a5cab2d8303fd17e2 | |
with: | |
use-installer: true | |
- uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 | |
with: | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID_TEST_ENV }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY_TEST_ENV }} | |
aws-region: eu-west-1 | |
- uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b | |
with: | |
python-version: '3.9' | |
cache: 'pip' # caching pip dependencies | |
- run: pip install cloudformation-cli cloudformation-cli-go-plugin | |
- name: Run the Contract test | |
shell: bash | |
env: | |
MONGODB_ATLAS_PUBLIC_API_KEY: ${{ secrets.CLOUD_DEV_PUBLIC_KEY }} | |
MONGODB_ATLAS_PRIVATE_API_KEY: ${{ secrets.CLOUD_DEV_PRIVATE_KEY }} | |
MONGODB_ATLAS_ORG_ID: ${{ secrets.CLOUD_DEV_ORG_ID }} | |
MONGODB_ATLAS_OPS_MANAGER_URL: https://cloud-dev.mongodb.com/ | |
MONGODB_ATLAS_PROFILE: cfn-cloud-dev-github-action | |
run: | | |
pushd cfn-resources/api-key | |
make create-test-resources | |
cat inputs/inputs_1_create.json | |
cat inputs/inputs_1_update.json | |
make run-contract-testing | |
make delete-test-resources | |
auditing: | |
needs: change-detection | |
if: ${{ needs.change-detection.outputs.auditing == 'true' }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 | |
- uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a | |
with: | |
go-version-file: 'cfn-resources/go.mod' | |
- name: setup Atlas CLI | |
uses: mongodb/atlas-github-action@15663d068c40a8582d881560961fce9d45e0df9a | |
- uses: aws-actions/setup-sam@819220f63fb333a9a394dd0a5cab2d8303fd17e2 | |
with: | |
use-installer: true | |
- uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 | |
with: | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID_TEST_ENV }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY_TEST_ENV }} | |
aws-region: eu-west-1 | |
- uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b | |
with: | |
python-version: '3.9' | |
cache: 'pip' # caching pip dependencies | |
- run: pip install cloudformation-cli cloudformation-cli-go-plugin | |
- name: Run the Contract test | |
shell: bash | |
env: | |
MONGODB_ATLAS_PUBLIC_API_KEY: ${{ secrets.CLOUD_DEV_PUBLIC_KEY }} | |
MONGODB_ATLAS_PRIVATE_API_KEY: ${{ secrets.CLOUD_DEV_PRIVATE_KEY }} | |
MONGODB_ATLAS_ORG_ID: ${{ secrets.CLOUD_DEV_ORG_ID }} | |
MONGODB_ATLAS_OPS_MANAGER_URL: ${{ vars.MONGODB_ATLAS_BASE_URL }} | |
MONGODB_ATLAS_PROFILE: cfn-cloud-dev-github-action | |
run: | | |
pushd cfn-resources/auditing | |
make create-test-resources | |
cat inputs/inputs_1_create.json | |
cat inputs/inputs_1_update.json | |
cat inputs/inputs_2_create.json | |
cat inputs/inputs_2_update.json | |
make run-contract-testing | |
make delete-test-resources | |
cloud-backup-restore-jobs: | |
needs: change-detection | |
if: ${{ needs.change-detection.outputs.cloud-backup-restore-jobs == 'true' }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 | |
- uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a | |
with: | |
go-version-file: 'cfn-resources/go.mod' | |
- name: setup Atlas CLI | |
uses: mongodb/atlas-github-action@15663d068c40a8582d881560961fce9d45e0df9a | |
- uses: aws-actions/setup-sam@819220f63fb333a9a394dd0a5cab2d8303fd17e2 | |
with: | |
use-installer: true | |
- uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 | |
with: | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID_TEST_ENV }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY_TEST_ENV }} | |
aws-region: eu-west-1 | |
- uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b | |
with: | |
python-version: '3.9' | |
cache: 'pip' # caching pip dependencies | |
- run: pip install cloudformation-cli cloudformation-cli-go-plugin | |
- name: Run the Contract test | |
shell: bash | |
env: | |
MONGODB_ATLAS_PUBLIC_API_KEY: ${{ secrets.CLOUD_DEV_PUBLIC_KEY }} | |
MONGODB_ATLAS_PRIVATE_API_KEY: ${{ secrets.CLOUD_DEV_PRIVATE_KEY }} | |
MONGODB_ATLAS_ORG_ID: ${{ secrets.CLOUD_DEV_ORG_ID }} | |
MONGODB_ATLAS_TEAM_ID: 641490b0207f4d22f4d8f2fd | |
MONGODB_ATLAS_OPS_MANAGER_URL: https://cloud-dev.mongodb.com/ | |
MONGODB_ATLAS_PROFILE: cfn-cloud-dev-github-action | |
run: | | |
pushd cfn-resources/cloud-backup-restore-jobs | |
make create-test-resources | |
cat inputs/inputs_1_create.json | |
make run-contract-testing | |
make delete-test-resources | |
cluster-outage-simulation : | |
needs: change-detection | |
if: ${{ needs.change-detection.outputs.cluster-outage-simulation == 'true' }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 | |
- uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a | |
with: | |
go-version-file: 'cfn-resources/go.mod' | |
- name: setup Atlas CLI | |
uses: mongodb/atlas-github-action@15663d068c40a8582d881560961fce9d45e0df9a | |
- uses: aws-actions/setup-sam@819220f63fb333a9a394dd0a5cab2d8303fd17e2 | |
with: | |
use-installer: true | |
- uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 | |
with: | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID_TEST_ENV }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY_TEST_ENV }} | |
aws-region: eu-west-1 | |
- uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b | |
with: | |
python-version: '3.9' | |
cache: 'pip' # caching pip dependencies | |
- run: pip install cloudformation-cli cloudformation-cli-go-plugin | |
- name: Run the Contract test | |
shell: bash | |
env: | |
MONGODB_ATLAS_PUBLIC_API_KEY: ${{ secrets.CLOUD_DEV_PUBLIC_KEY }} | |
MONGODB_ATLAS_PRIVATE_API_KEY: ${{ secrets.CLOUD_DEV_PRIVATE_KEY }} | |
MONGODB_ATLAS_ORG_ID: ${{ secrets.CLOUD_DEV_ORG_ID }} | |
MONGODB_ATLAS_OPS_MANAGER_URL: ${{ vars.MONGODB_ATLAS_BASE_URL }} | |
MONGODB_ATLAS_TEAM_ID: 641490b0207f4d22f4d8f2fd | |
MONGODB_ATLAS_PROFILE: cfn-cloud-dev-github-action | |
run: | | |
pushd cfn-resources/cluster-outage-simulation | |
make create-test-resources | |
cat inputs/inputs_1_create.json | |
make run-contract-testing | |
make delete-test-resources | |
federated-database-instance: | |
needs: change-detection | |
if: ${{ needs.change-detection.outputs.federated-database-instance == 'true' }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 | |
- uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a | |
with: | |
go-version-file: 'cfn-resources/go.mod' | |
- name: setup Atlas CLI | |
uses: mongodb/atlas-github-action@15663d068c40a8582d881560961fce9d45e0df9a | |
- uses: aws-actions/setup-sam@819220f63fb333a9a394dd0a5cab2d8303fd17e2 | |
with: | |
use-installer: true | |
- uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 | |
with: | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID_TEST_ENV }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY_TEST_ENV }} | |
aws-region: eu-west-1 | |
- uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b | |
with: | |
python-version: '3.9' | |
cache: 'pip' # caching pip dependencies | |
- run: pip install cloudformation-cli cloudformation-cli-go-plugin | |
- name: Run the Contract test | |
shell: bash | |
env: | |
MONGODB_ATLAS_PUBLIC_API_KEY: ${{ secrets.CLOUD_DEV_PUBLIC_KEY }} | |
MONGODB_ATLAS_PRIVATE_API_KEY: ${{ secrets.CLOUD_DEV_PRIVATE_KEY }} | |
MONGODB_ATLAS_ORG_ID: ${{ secrets.CLOUD_DEV_ORG_ID }} | |
MONGODB_ATLAS_OPS_MANAGER_URL: ${{ vars.MONGODB_ATLAS_BASE_URL }} | |
MONGODB_ATLAS_PROFILE: cfn-cloud-dev-github-action | |
run: | | |
pushd cfn-resources/federated-database-instance | |
make create-test-resources | |
cat inputs/inputs_1_create.json | |
cat inputs/inputs_1_update.json | |
make run-contract-testing | |
make delete-test-resources | |
federated-query-limit: | |
needs: change-detection | |
if: ${{ needs.change-detection.outputs.federated-query-limit == 'true' }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 | |
- uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a | |
with: | |
go-version-file: 'cfn-resources/go.mod' | |
- name: setup Atlas CLI | |
uses: mongodb/atlas-github-action@15663d068c40a8582d881560961fce9d45e0df9a | |
- uses: aws-actions/setup-sam@819220f63fb333a9a394dd0a5cab2d8303fd17e2 | |
with: | |
use-installer: true | |
- uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 | |
with: | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID_TEST_ENV }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY_TEST_ENV }} | |
aws-region: eu-west-1 | |
- uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b | |
with: | |
python-version: '3.9' | |
cache: 'pip' # caching pip dependencies | |
- run: pip install cloudformation-cli cloudformation-cli-go-plugin | |
- name: Run the Contract test | |
shell: bash | |
env: | |
MONGODB_ATLAS_PUBLIC_API_KEY: ${{ secrets.CLOUD_DEV_PUBLIC_KEY }} | |
MONGODB_ATLAS_PRIVATE_API_KEY: ${{ secrets.CLOUD_DEV_PRIVATE_KEY }} | |
MONGODB_ATLAS_ORG_ID: ${{ secrets.CLOUD_DEV_ORG_ID }} | |
MONGODB_ATLAS_OPS_MANAGER_URL: ${{ vars.MONGODB_ATLAS_BASE_URL }} | |
MONGODB_ATLAS_PROFILE: cfn-cloud-dev-github-action | |
run: | | |
pushd cfn-resources/federated-query-limit | |
make create-test-resources | |
cat inputs/inputs_1_create.json | |
cat inputs/inputs_1_update.json | |
make run-contract-testing | |
make delete-test-resources | |
online-archive: | |
needs: change-detection | |
if: ${{ needs.change-detection.outputs.online-archive == 'true' }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 | |
- uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a | |
with: | |
go-version-file: 'cfn-resources/go.mod' | |
- name: setup Atlas CLI | |
uses: mongodb/atlas-github-action@15663d068c40a8582d881560961fce9d45e0df9a | |
- uses: aws-actions/setup-sam@819220f63fb333a9a394dd0a5cab2d8303fd17e2 | |
with: | |
use-installer: true | |
- uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 | |
with: | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID_TEST_ENV }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY_TEST_ENV }} | |
aws-region: eu-west-1 | |
- uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b | |
with: | |
python-version: '3.9' | |
cache: 'pip' # caching pip dependencies | |
- run: pip install cloudformation-cli cloudformation-cli-go-plugin | |
- name: Run the Contract test | |
shell: bash | |
env: | |
MONGODB_ATLAS_PUBLIC_API_KEY: ${{ secrets.CLOUD_DEV_PUBLIC_KEY }} | |
MONGODB_ATLAS_PRIVATE_API_KEY: ${{ secrets.CLOUD_DEV_PRIVATE_KEY }} | |
MONGODB_ATLAS_ORG_ID: ${{ secrets.CLOUD_DEV_ORG_ID }} | |
MONGODB_ATLAS_OPS_MANAGER_URL: ${{ vars.MONGODB_ATLAS_BASE_URL }} | |
MONGODB_ATLAS_PROFILE: cfn-cloud-dev-github-action | |
run: | | |
pushd cfn-resources/online-archive | |
make create-test-resources | |
cat inputs/inputs_1_create.json | |
make run-contract-testing | |
make delete-test-resources | |
organization: | |
needs: change-detection | |
if: ${{ needs.change-detection.outputs.organization == 'true' }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 | |
- uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a | |
with: | |
go-version-file: 'cfn-resources/go.mod' | |
- name: setup Atlas CLI | |
uses: mongodb/atlas-github-action@15663d068c40a8582d881560961fce9d45e0df9a | |
- uses: aws-actions/setup-sam@819220f63fb333a9a394dd0a5cab2d8303fd17e2 | |
with: | |
use-installer: true | |
- uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 | |
with: | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID_TEST_ENV }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY_TEST_ENV }} | |
aws-region: eu-west-1 | |
- uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b | |
with: | |
python-version: '3.9' | |
cache: 'pip' # caching pip dependencies | |
- run: pip install cloudformation-cli cloudformation-cli-go-plugin | |
- name: Run the Contract test | |
shell: bash | |
env: | |
MONGODB_ATLAS_PUBLIC_API_KEY: ${{ secrets.CLOUD_DEV_PUBLIC_KEY }} | |
MONGODB_ATLAS_PRIVATE_API_KEY: ${{ secrets.CLOUD_DEV_PRIVATE_KEY }} | |
MONGODB_ATLAS_ORG_ID: ${{ secrets.CLOUD_DEV_ORG_ID }} | |
MONGODB_ATLAS_OPS_MANAGER_URL: ${{ vars.MONGODB_ATLAS_BASE_URL }} | |
MONGODB_ATLAS_PROFILE: cfn-cloud-dev-github-action | |
MONGODB_ATLAS_ORG_OWNER_ID: ${{ vars.CLOUD_DEV_ORG_OWNER_ID }} | |
run: | | |
pushd cfn-resources/organization | |
make create-test-resources | |
cat inputs/inputs_1_create.json | |
cat inputs/inputs_1_update.json | |
make run-contract-testing | |
make delete-test-resources | |
private-endpoint-aws: | |
needs: change-detection | |
if: ${{ needs.change-detection.outputs.private-endpoint-aws == 'true' }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 | |
- uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a | |
with: | |
go-version-file: 'cfn-resources/go.mod' | |
- name: setup Atlas CLI | |
uses: mongodb/atlas-github-action@15663d068c40a8582d881560961fce9d45e0df9a | |
- uses: aws-actions/setup-sam@819220f63fb333a9a394dd0a5cab2d8303fd17e2 | |
with: | |
use-installer: true | |
- uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 | |
with: | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID_TEST_ENV }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY_TEST_ENV }} | |
aws-region: eu-west-1 | |
- uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b | |
with: | |
python-version: '3.9' | |
cache: 'pip' # caching pip dependencies | |
- run: pip install cloudformation-cli cloudformation-cli-go-plugin | |
- name: Run the Contract test | |
shell: bash | |
env: | |
MONGODB_ATLAS_PUBLIC_API_KEY: ${{ secrets.CLOUD_DEV_PUBLIC_KEY }} | |
MONGODB_ATLAS_PRIVATE_API_KEY: ${{ secrets.CLOUD_DEV_PRIVATE_KEY }} | |
MONGODB_ATLAS_ORG_ID: ${{ secrets.CLOUD_DEV_ORG_ID }} | |
MONGODB_ATLAS_TEAM_ID: 641490b0207f4d22f4d8f2fd | |
MONGODB_ATLAS_OPS_MANAGER_URL: https://cloud-dev.mongodb.com/ | |
MONGODB_ATLAS_PROFILE: cfn-cloud-dev-github-action | |
run: | | |
pushd cfn-resources/private-endpoint-aws | |
make create-test-resources | |
cat inputs/inputs_1_create.json | |
make run-contract-testing | |
make delete-test-resources | |
private-endpoint-service: | |
needs: change-detection | |
if: ${{ needs.change-detection.outputs.private-endpoint-service == 'true' }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 | |
- uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a | |
with: | |
go-version-file: 'cfn-resources/go.mod' | |
- name: setup Atlas CLI | |
uses: mongodb/atlas-github-action@15663d068c40a8582d881560961fce9d45e0df9a | |
- uses: aws-actions/setup-sam@819220f63fb333a9a394dd0a5cab2d8303fd17e2 | |
with: | |
use-installer: true | |
- uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 | |
with: | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID_TEST_ENV }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY_TEST_ENV }} | |
aws-region: eu-west-1 | |
- uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b | |
with: | |
python-version: '3.9' | |
cache: 'pip' # caching pip dependencies | |
- run: pip install cloudformation-cli cloudformation-cli-go-plugin | |
- name: Run the Contract test | |
shell: bash | |
env: | |
MONGODB_ATLAS_PUBLIC_API_KEY: ${{ secrets.CLOUD_DEV_PUBLIC_KEY }} | |
MONGODB_ATLAS_PRIVATE_API_KEY: ${{ secrets.CLOUD_DEV_PRIVATE_KEY }} | |
MONGODB_ATLAS_ORG_ID: ${{ secrets.CLOUD_DEV_ORG_ID }} | |
MONGODB_ATLAS_TEAM_ID: 641490b0207f4d22f4d8f2fd | |
MONGODB_ATLAS_OPS_MANAGER_URL: https://cloud-dev.mongodb.com/ | |
MONGODB_ATLAS_PROFILE: cfn-cloud-dev-github-action | |
run: | | |
pushd cfn-resources/private-endpoint-service | |
make create-test-resources | |
cat inputs/inputs_1_create.json | |
make run-contract-testing | |
make delete-test-resources | |
privatelink-endpoint-service-data-federation-online-archive: | |
needs: change-detection | |
if: ${{ needs.change-detection.outputs.privatelink-endpoint-service-data-federation-online-archive == 'true' }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 | |
- uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a | |
with: | |
go-version-file: 'cfn-resources/go.mod' | |
- name: setup Atlas CLI | |
uses: mongodb/atlas-github-action@15663d068c40a8582d881560961fce9d45e0df9a | |
- uses: aws-actions/setup-sam@819220f63fb333a9a394dd0a5cab2d8303fd17e2 | |
with: | |
use-installer: true | |
- uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 | |
with: | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID_TEST_ENV }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY_TEST_ENV }} | |
aws-region: eu-west-1 | |
- uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b | |
with: | |
python-version: '3.9' | |
cache: 'pip' # caching pip dependencies | |
- run: pip install cloudformation-cli cloudformation-cli-go-plugin | |
- name: Run the Contract test | |
shell: bash | |
env: | |
MONGODB_ATLAS_PUBLIC_API_KEY: ${{ secrets.CLOUD_DEV_PUBLIC_KEY }} | |
MONGODB_ATLAS_PRIVATE_API_KEY: ${{ secrets.CLOUD_DEV_PRIVATE_KEY }} | |
MONGODB_ATLAS_ORG_ID: ${{ secrets.CLOUD_DEV_ORG_ID }} | |
MONGODB_ATLAS_OPS_MANAGER_URL: ${{ vars.MONGODB_ATLAS_BASE_URL }} | |
MONGODB_ATLAS_PROFILE: cfn-cloud-dev-github-action | |
run: | | |
pushd cfn-resources/privatelink-endpoint-service-data-federation-online-archive | |
make create-test-resources | |
cat inputs/inputs_1_create.json | |
cat inputs/inputs_1_update.json | |
make run-contract-testing | |
make delete-test-resources | |
project: | |
needs: change-detection | |
if: ${{ needs.change-detection.outputs.project == 'true' }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 | |
- uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a | |
with: | |
go-version-file: 'cfn-resources/go.mod' | |
- name: setup Atlas CLI | |
uses: mongodb/atlas-github-action@15663d068c40a8582d881560961fce9d45e0df9a | |
- uses: aws-actions/setup-sam@819220f63fb333a9a394dd0a5cab2d8303fd17e2 | |
with: | |
use-installer: true | |
- uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 | |
with: | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID_TEST_ENV }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY_TEST_ENV }} | |
aws-region: eu-west-1 | |
- uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b | |
with: | |
python-version: '3.9' | |
cache: 'pip' # caching pip dependencies | |
- run: pip install cloudformation-cli cloudformation-cli-go-plugin | |
- name: Run the Contract test | |
shell: bash | |
env: | |
MONGODB_ATLAS_PUBLIC_API_KEY: ${{ secrets.CLOUD_DEV_PUBLIC_KEY }} | |
MONGODB_ATLAS_PRIVATE_API_KEY: ${{ secrets.CLOUD_DEV_PRIVATE_KEY }} | |
MONGODB_ATLAS_ORG_ID: ${{ secrets.CLOUD_DEV_ORG_ID }} | |
MONGODB_ATLAS_OPS_MANAGER_URL: ${{ vars.MONGODB_ATLAS_BASE_URL }} | |
MONGODB_ATLAS_TEAM_ID: 641490b0207f4d22f4d8f2fd | |
MONGODB_ATLAS_PROFILE: cfn-cloud-dev-github-action | |
run: | | |
pushd cfn-resources/project | |
make create-test-resources | |
cat inputs/inputs_1_create.json | |
cat inputs/inputs_1_update.json | |
make run-contract-testing | |
make delete-test-resources | |
resource-policy: | |
needs: change-detection | |
if: ${{ needs.change-detection.outputs.resource-policy == 'true' }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 | |
- uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a | |
with: | |
go-version-file: 'cfn-resources/go.mod' | |
- name: setup Atlas CLI | |
uses: mongodb/atlas-github-action@15663d068c40a8582d881560961fce9d45e0df9a | |
- uses: aws-actions/setup-sam@819220f63fb333a9a394dd0a5cab2d8303fd17e2 | |
with: | |
use-installer: true | |
- uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 | |
with: | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID_TEST_ENV }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY_TEST_ENV }} | |
aws-region: eu-west-1 | |
- uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b | |
with: | |
python-version: '3.9' | |
cache: 'pip' # caching pip dependencies | |
- run: pip install cloudformation-cli cloudformation-cli-go-plugin | |
- name: Run the Contract test | |
shell: bash | |
env: | |
MONGODB_ATLAS_PUBLIC_API_KEY: ${{ secrets.CLOUD_DEV_PUBLIC_KEY }} | |
MONGODB_ATLAS_PRIVATE_API_KEY: ${{ secrets.CLOUD_DEV_PRIVATE_KEY }} | |
MONGODB_ATLAS_ORG_ID: ${{ secrets.CLOUD_DEV_ORG_ID }} | |
MONGODB_ATLAS_OPS_MANAGER_URL: ${{ vars.MONGODB_ATLAS_BASE_URL }} | |
MONGODB_ATLAS_PROFILE: cfn-cloud-dev-github-action | |
run: | | |
cd cfn-resources/resource-policy | |
make create-test-resources | |
cat inputs/inputs_1_create.json | |
cat inputs/inputs_1_update.json | |
cat inputs/inputs_1_invalid.json | |
cat inputs/inputs_2_create.json | |
cat inputs/inputs_2_update.json | |
make run-contract-testing | |
search-deployment: | |
needs: change-detection | |
if: ${{ needs.change-detection.outputs.search-deployment == 'true' }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 | |
- uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a | |
with: | |
go-version-file: 'cfn-resources/go.mod' | |
- name: setup Atlas CLI | |
uses: mongodb/atlas-github-action@15663d068c40a8582d881560961fce9d45e0df9a | |
- uses: aws-actions/setup-sam@819220f63fb333a9a394dd0a5cab2d8303fd17e2 | |
with: | |
use-installer: true | |
- uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 | |
with: | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID_TEST_ENV }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY_TEST_ENV }} | |
aws-region: eu-west-1 | |
- uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b | |
with: | |
python-version: '3.9' | |
cache: 'pip' # caching pip dependencies | |
- run: pip install cloudformation-cli cloudformation-cli-go-plugin | |
- name: Run the Contract test | |
shell: bash | |
env: | |
MONGODB_ATLAS_PUBLIC_API_KEY: ${{ secrets.CLOUD_DEV_PUBLIC_KEY }} | |
MONGODB_ATLAS_PRIVATE_API_KEY: ${{ secrets.CLOUD_DEV_PRIVATE_KEY }} | |
MONGODB_ATLAS_ORG_ID: ${{ secrets.CLOUD_DEV_ORG_ID }} | |
MONGODB_ATLAS_OPS_MANAGER_URL: ${{ vars.MONGODB_ATLAS_BASE_URL }} | |
MONGODB_ATLAS_PROFILE: cfn-cloud-dev-github-action | |
run: | | |
cd cfn-resources/search-deployment | |
make create-test-resources | |
cat inputs/inputs_1_create.json | |
make run-contract-testing | |
make delete-test-resources | |
serverless-private-endpoint: | |
needs: change-detection | |
if: ${{ needs.change-detection.outputs. serverless-private-endpoint == 'true' }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 | |
- uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a | |
with: | |
go-version-file: 'cfn-resources/go.mod' | |
- name: setup Atlas CLI | |
uses: mongodb/atlas-github-action@15663d068c40a8582d881560961fce9d45e0df9a | |
- uses: aws-actions/setup-sam@819220f63fb333a9a394dd0a5cab2d8303fd17e2 | |
with: | |
use-installer: true | |
- uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 | |
with: | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID_TEST_ENV }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY_TEST_ENV }} | |
aws-region: eu-west-1 | |
- uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b | |
with: | |
python-version: '3.9' | |
cache: 'pip' # caching pip dependencies | |
- run: pip install cloudformation-cli cloudformation-cli-go-plugin | |
- name: Run the Contract test | |
shell: bash | |
env: | |
MONGODB_ATLAS_PUBLIC_API_KEY: ${{ secrets.CLOUD_DEV_PUBLIC_KEY }} | |
MONGODB_ATLAS_PRIVATE_API_KEY: ${{ secrets.CLOUD_DEV_PRIVATE_KEY }} | |
MONGODB_ATLAS_ORG_ID: ${{ secrets.CLOUD_DEV_ORG_ID }} | |
MONGODB_ATLAS_TEAM_ID: 641490b0207f4d22f4d8f2fd | |
MONGODB_ATLAS_OPS_MANAGER_URL: https://cloud-dev.mongodb.com/ | |
MONGODB_ATLAS_PROFILE: cfn-cloud-dev-github-action | |
run: | | |
pushd cfn-resources/serverless-private-endpoint | |
make create-test-resources | |
cat inputs/inputs_1_create.json | |
cat inputs/inputs_1_update.json | |
make run-contract-testing | |
make delete-test-resources | |
stream-connection: | |
needs: change-detection | |
if: ${{ needs.change-detection.outputs.stream-connection == 'true' }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 | |
- uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a | |
with: | |
go-version-file: 'cfn-resources/go.mod' | |
- name: setup Atlas CLI | |
uses: mongodb/atlas-github-action@15663d068c40a8582d881560961fce9d45e0df9a | |
- uses: aws-actions/setup-sam@819220f63fb333a9a394dd0a5cab2d8303fd17e2 | |
with: | |
use-installer: true | |
- uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 | |
with: | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID_TEST_ENV }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY_TEST_ENV }} | |
aws-region: eu-west-1 | |
- uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b | |
with: | |
python-version: '3.9' | |
cache: 'pip' # caching pip dependencies | |
- run: pip install cloudformation-cli cloudformation-cli-go-plugin | |
- name: Run the Contract test | |
shell: bash | |
env: | |
MONGODB_ATLAS_PUBLIC_API_KEY: ${{ secrets.CLOUD_DEV_PUBLIC_KEY }} | |
MONGODB_ATLAS_PRIVATE_API_KEY: ${{ secrets.CLOUD_DEV_PRIVATE_KEY }} | |
MONGODB_ATLAS_ORG_ID: ${{ secrets.CLOUD_DEV_ORG_ID }} | |
MONGODB_ATLAS_OPS_MANAGER_URL: ${{ vars.MONGODB_ATLAS_BASE_URL }} | |
MONGODB_ATLAS_PROFILE: cfn-cloud-dev-github-action | |
run: | | |
cd cfn-resources/stream-connection | |
make create-test-resources | |
cat inputs/inputs_1_create.json | |
cat inputs/inputs_1_update.json | |
cat inputs/inputs_2_create.json | |
cat inputs/inputs_2_update.json | |
make run-contract-testing | |
make delete-test-resources | |
stream-instance: | |
needs: change-detection | |
if: ${{ needs.change-detection.outputs.stream-instance == 'true' }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 | |
- uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a | |
with: | |
go-version-file: 'cfn-resources/go.mod' | |
- name: setup Atlas CLI | |
uses: mongodb/atlas-github-action@15663d068c40a8582d881560961fce9d45e0df9a | |
- uses: aws-actions/setup-sam@819220f63fb333a9a394dd0a5cab2d8303fd17e2 | |
with: | |
use-installer: true | |
- uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 | |
with: | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID_TEST_ENV }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY_TEST_ENV }} | |
aws-region: eu-west-1 | |
- uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b | |
with: | |
python-version: '3.9' | |
cache: 'pip' # caching pip dependencies | |
- run: pip install cloudformation-cli cloudformation-cli-go-plugin | |
- name: Run the Contract test | |
shell: bash | |
env: | |
MONGODB_ATLAS_PUBLIC_API_KEY: ${{ secrets.CLOUD_DEV_PUBLIC_KEY }} | |
MONGODB_ATLAS_PRIVATE_API_KEY: ${{ secrets.CLOUD_DEV_PRIVATE_KEY }} | |
MONGODB_ATLAS_ORG_ID: ${{ secrets.CLOUD_DEV_ORG_ID }} | |
MONGODB_ATLAS_OPS_MANAGER_URL: ${{ vars.MONGODB_ATLAS_BASE_URL }} | |
MONGODB_ATLAS_PROFILE: cfn-cloud-dev-github-action | |
run: | | |
pushd cfn-resources/stream-instance | |
make create-test-resources | |
cat inputs/inputs_1_create.json | |
make run-contract-testing | |
make delete-test-resources |