1919 cluster-outage-simulation : ${{ steps.filter.outputs.cluster-outage-simulation }}
2020 federated-database-instance : ${{ steps.filter.outputs.federated-database-instance }}
2121 federated-query-limit : ${{ steps.filter.outputs.federated-query-limit }}
22+ flex-cluster : ${{ steps.filter.outputs.flex-cluster }}
2223 online-archive : ${{ steps.filter.outputs.online-archive }}
2324 organization : ${{ steps.filter.outputs.organization }}
2425 private-endpoint-aws : ${{ steps.filter.outputs.private-endpoint-aws }}
5354 - 'cfn-resources/federated-database-instance/**'
5455 federated-query-limit:
5556 - 'cfn-resources/federated-query-limit/**'
57+ flex-cluster:
58+ - 'cfn-resources/flex-cluster/**'
5659 online-archive:
5760 - 'cfn-resources/online-archive/**'
5861 organization:
@@ -401,6 +404,48 @@ jobs:
401404
402405 make run-contract-testing
403406 make delete-test-resources
407+
408+ flex-cluster :
409+ needs : change-detection
410+ if : ${{ needs.change-detection.outputs.flex-cluster == 'true' }}
411+ runs-on : ubuntu-latest
412+ steps :
413+ - uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
414+ - uses : actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5
415+ with :
416+ go-version-file : ' cfn-resources/go.mod'
417+ - name : setup Atlas CLI
418+ uses : mongodb/atlas-github-action@15663d068c40a8582d881560961fce9d45e0df9a
419+ - uses : aws-actions/setup-sam@f664fad9e12492edfc187a31f575537dfbb0ff63
420+ with :
421+ use-installer : true
422+ - uses : aws-actions/configure-aws-credentials@7474bc4690e29a8392af63c5b98e7449536d5c3a
423+ with :
424+ aws-access-key-id : ${{ secrets.AWS_ACCESS_KEY_ID_TEST_ENV }}
425+ aws-secret-access-key : ${{ secrets.AWS_SECRET_ACCESS_KEY_TEST_ENV }}
426+ aws-region : eu-west-1
427+ - uses : actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065
428+ with :
429+ python-version : ' 3.9'
430+ cache : ' pip' # caching pip dependencies
431+ - run : pip install cloudformation-cli cloudformation-cli-go-plugin
432+ - name : Run the Contract test
433+ shell : bash
434+ env :
435+ MONGODB_ATLAS_PUBLIC_API_KEY : ${{ secrets.CLOUD_DEV_PUBLIC_KEY }}
436+ MONGODB_ATLAS_PRIVATE_API_KEY : ${{ secrets.CLOUD_DEV_PRIVATE_KEY }}
437+ MONGODB_ATLAS_ORG_ID : ${{ secrets.CLOUD_DEV_ORG_ID }}
438+ MONGODB_ATLAS_OPS_MANAGER_URL : ${{ vars.MONGODB_ATLAS_BASE_URL }}
439+ MONGODB_ATLAS_PROFILE : cfn-cloud-dev-github-action
440+ run : |
441+ pushd cfn-resources/flex-cluster
442+ make create-test-resources
443+
444+ cat inputs/inputs_1_create.json
445+ cat inputs/inputs_1_update.json
446+
447+ make run-contract-testing
448+ make delete-test-resources
404449 online-archive :
405450 needs : change-detection
406451 if : ${{ needs.change-detection.outputs.online-archive == 'true' }}
@@ -853,4 +898,4 @@ jobs:
853898 make create-test-resources
854899 cat inputs/inputs_1_create.json
855900 make run-contract-testing
856- make delete-test-resources
901+ make delete-test-resources
0 commit comments