7070 - Batch_File_Validation_Feature
7171 mns_validation_required :
7272 description : Set to true if you want the MNS validation to be performed as part of the tests. please keep in mind it will increase execution time.
73- default : " false"
74- required : false
75- type : string
73+ default : false
74+ type : boolean
7675
7776env :
7877 APIGEE_AUTH_ENV : ${{ inputs.apigee_environment == 'int' && inputs.apigee_environment || 'internal-dev' }}
8382 PROXY_NAME : ${{ startsWith(inputs.sub_environment, 'pr-') && format('immunisation-fhir-api-{0}', inputs.sub_environment) || format('immunisation-fhir-api-{0}', inputs.apigee_environment) }}
8483 STATUS_API_KEY : ${{ secrets.STATUS_API_KEY }}
8584 SOURCE_COMMIT_ID : ${{ github.sha }}
85+ MNS_VALIDATION_REQUIRED : ${{ inputs.mns_validation_required || startsWith(inputs.sub_environment, 'pr-') || inputs.apigee_environment == 'internal-dev' }}
8686
8787jobs :
8888 wait-for-deployment :
@@ -213,7 +213,7 @@ jobs:
213213 echo "::add-mask::$token"
214214 echo "APIGEE_ACCESS_TOKEN=$token" >> $GITHUB_ENV
215215
216- - name : Run Pytest-BDD ${{ inputs.service_under_test }} tests with the ${{ inputs.suite_to_run }} filter
216+ - name : Run Pytest-BDD ${{ inputs.service_under_test }} tests with the ${{ inputs.suite_to_run }} filter and MNS validation set to ${{ env.MNS_VALIDATION_REQUIRED }}
217217 working-directory : tests/e2e_automation
218218 env :
219219 S3_env : ${{ startsWith(inputs.sub_environment, 'int-') && 'preprod' || inputs.sub_environment }}
@@ -240,7 +240,7 @@ jobs:
240240 MEDICUS_client_Id : ${{ secrets.MEDICUS_client_Id }}
241241 MEDICUS_client_Secret : ${{ secrets.MEDICUS_client_Secret }}
242242 aws_account_id : ${{ vars.AWS_ACCOUNT_ID }}
243- mns_validation_required : ${{ inputs.mns_validation_required || startsWith(inputs.sub_environment, 'pr-') || inputs.apigee_environment == 'internal-dev' }}
243+ mns_validation_required : ${{ env.MNS_VALIDATION_REQUIRED }}
244244 TEST_PATH : ${{ inputs.service_under_test == 'batch' && 'features/batchTests' || inputs.service_under_test == 'fhir_api' && 'features/APITests' || 'features' }}
245245 TEST_FILTER : ${{ inputs.suite_to_run == 'proxy_smoke' && 'Status_feature' || inputs.suite_to_run }}
246246 run : poetry run pytest "$TEST_PATH" -m "$TEST_FILTER" --junitxml=output/test-results.xml --alluredir=output/allure-results
0 commit comments