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"
73+ default : false
7474 type : boolean
7575
7676env :
8282 PROXY_NAME : ${{ startsWith(inputs.sub_environment, 'pr-') && format('immunisation-fhir-api-{0}', inputs.sub_environment) || format('immunisation-fhir-api-{0}', inputs.apigee_environment) }}
8383 STATUS_API_KEY : ${{ secrets.STATUS_API_KEY }}
8484 SOURCE_COMMIT_ID : ${{ github.sha }}
85+ MNS_VALIDATION_REQUIRED : ${{ inputs.mns_validation_required || startsWith(inputs.sub_environment, 'pr-') || inputs.apigee_environment == 'internal-dev' }}
8586
8687jobs :
8788 wait-for-deployment :
@@ -212,7 +213,7 @@ jobs:
212213 echo "::add-mask::$token"
213214 echo "APIGEE_ACCESS_TOKEN=$token" >> $GITHUB_ENV
214215
215- - 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 wit MNS validation set to ${{ env.MNS_VALIDATION_REQUIRED }}
216217 working-directory : tests/e2e_automation
217218 env :
218219 S3_env : ${{ startsWith(inputs.sub_environment, 'int-') && 'preprod' || inputs.sub_environment }}
@@ -239,7 +240,7 @@ jobs:
239240 MEDICUS_client_Id : ${{ secrets.MEDICUS_client_Id }}
240241 MEDICUS_client_Secret : ${{ secrets.MEDICUS_client_Secret }}
241242 aws_account_id : ${{ vars.AWS_ACCOUNT_ID }}
242- 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 }}
243244 TEST_PATH : ${{ inputs.service_under_test == 'batch' && 'features/batchTests' || inputs.service_under_test == 'fhir_api' && 'features/APITests' || 'features' }}
244245 TEST_FILTER : ${{ inputs.suite_to_run == 'proxy_smoke' && 'Status_feature' || inputs.suite_to_run }}
245246 run : poetry run pytest "$TEST_PATH" -m "$TEST_FILTER" --junitxml=output/test-results.xml --alluredir=output/allure-results
0 commit comments