Changes to test functionality
This commit is contained in:
parent
6dba628d5a
commit
c16a4d823a
2 changed files with 4 additions and 4 deletions
|
|
@ -40,7 +40,7 @@ variables:
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
# PR's
|
# PR's
|
||||||
- ${{ if eq(variables['Build.Reason'], 'PullRequest') }}:
|
- ${{ if or(eq(variables['Build.Reason'], 'PullRequest'), eq(1,1)) }}: # TODO: Change condition back to normal
|
||||||
- stage: TestPr
|
- stage: TestPr
|
||||||
displayName: Run Tests For PullRequest
|
displayName: Run Tests For PullRequest
|
||||||
jobs:
|
jobs:
|
||||||
|
|
@ -74,7 +74,7 @@ stages:
|
||||||
arguments: '--no-cache --pull'
|
arguments: '--no-cache --pull'
|
||||||
|
|
||||||
- script: |
|
- script: |
|
||||||
branch_name=$(System.PullRequest.SourceBranch)
|
branch_name=$(Build.SourceBranch) #TODO: Change back to $(System.PullRequest.SourceBranch)
|
||||||
echo "Retrieved branch name: '$branch_name'"
|
echo "Retrieved branch name: '$branch_name'"
|
||||||
jira_card_number="${branch_name##*/}"
|
jira_card_number="${branch_name##*/}"
|
||||||
echo "Extracted JIRA Card number: '$jira_card_number'"
|
echo "Extracted JIRA Card number: '$jira_card_number'"
|
||||||
|
|
@ -146,7 +146,7 @@ stages:
|
||||||
tags: $(imageTag)
|
tags: $(imageTag)
|
||||||
arguments: '--no-cache --pull'
|
arguments: '--no-cache --pull'
|
||||||
- bash: |
|
- bash: |
|
||||||
branch_name=$(System.PullRequest.SourceBranch)
|
branch_name=$(Build.SourceBranch) #TODO: Change back to $(System.PullRequest.SourceBranch)
|
||||||
echo "Retrieved branch name: '$branch_name'"
|
echo "Retrieved branch name: '$branch_name'"
|
||||||
jira_card_number="${branch_name##*/}"
|
jira_card_number="${branch_name##*/}"
|
||||||
echo "Extracted JIRA Card number: '$jira_card_number'"
|
echo "Extracted JIRA Card number: '$jira_card_number'"
|
||||||
|
|
|
||||||
|
|
@ -61,7 +61,7 @@ for (const client of essentialClients) {
|
||||||
data.isAuthenticationRequired = client.clientFlags.isAuthenticationEnabled ?? false
|
data.isAuthenticationRequired = client.clientFlags.isAuthenticationEnabled ?? false
|
||||||
const tc = new TestCase({
|
const tc = new TestCase({
|
||||||
name: `0001 Essential Replace Statis ADAS Client: "${client.accountName}"`,
|
name: `0001 Essential Replace Statis ADAS Client: "${client.accountName}"`,
|
||||||
tags: [`@${client.clientTag}`, `@${client.accountName}`, '@Essentials','@0001', '@test_report'],
|
tags: [`@${client.clientTag}`, `@${client.accountName}`, '@Essentials','@0001', '@test_report', '@INSR-2178'], //TODO: Remove jira card number
|
||||||
testData: data
|
testData: data
|
||||||
}, undefined, '0001');
|
}, undefined, '0001');
|
||||||
essentialReplaceStaticAdasTests.push(tc);
|
essentialReplaceStaticAdasTests.push(tc);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue