Commit 8dbccdf7 authored by David Diederich's avatar David Diederich
Browse files

Adding TEST_COLLECTION_CONFIG as a variable for each job, to configure the protected access

Now that all providers are in the same generated pipeline, this is not constant
anymore. Therefore, we need to include it in each job specification and pass it
along to the default rule.
parent 2d50cc08
......@@ -48,8 +48,8 @@ with open('test-execution.gitlab-ci.yml', 'w') as pipelineConfig:
' - newman --version ',
'# - npm install -g newman-reporter-html',
'# - npm install -g newman-reporter-htmlextra',
'# - newman run "$COLLECTION_JSON" -e "$ENVIRONMENT" -d "$' + platform.upper() + '_TEST_COLLECTION_CONFIG" --reporters cli,htmlextra,junit --reporter-htmlextra-export "$HTML_REPORT_NAME" --reporter-junit-export "$JUNIT_REPORT_NAME"',
' - newman run "$COLLECTION_JSON" -e "$ENVIRONMENT" -d "$' + platform.upper() + '_TEST_COLLECTION_CONFIG" --reporters cli',
'# - newman run "$COLLECTION_JSON" -e "$ENVIRONMENT" -d "$TEST_COLLECTION_CONFIG" --reporters cli,htmlextra,junit --reporter-htmlextra-export "$HTML_REPORT_NAME" --reporter-junit-export "$JUNIT_REPORT_NAME"',
' - newman run "$COLLECTION_JSON" -e "$ENVIRONMENT" -d "$TEST_COLLECTION_CONFIG" --reporters cli',
''
]))
......@@ -76,6 +76,7 @@ with open('test-execution.gitlab-ci.yml', 'w') as pipelineConfig:
' needs: []',
' variables:',
' ENVIRONMENT: "' + environ['path'] + '"',
' TEST_COLLECTION_CONFIG: "$' + platform.upper() + '_TEST_COLLECTION_CONFIG"',
' COLLECTION_JSON: "' + collect['path'] + '"',
' HTML_REPORT_NAME: "' + htmlReportName + '"',
' JUNIT_REPORT_NAME: "' + junitReportName + '"'
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment