Skip to content
Open
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions eng/pipelines/common/templates/jobs/ci-run-tests-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,13 @@ jobs:
buildConfiguration: ${{ parameters.buildConfiguration }}

- ${{ if ne(parameters.configProperties, '{}') }}:
- template: ../steps/if-expression-test.yml@self
parameters:
${{ if parameters.configProperties.SupportsIntegratedSecurity }}:
string1: ${{ parameters.configProperties.SupportsIntegratedSecurity }}
bool1: ${{ eq(parameters.configProperties.SupportsIntegratedSecurity, 'true') }}
bool2: true

- template: ../steps/update-config-file-step.yml@self # update config.json file
parameters:
debug: ${{ parameters.debug }}
Expand Down
27 changes: 27 additions & 0 deletions eng/pipelines/common/templates/steps/if-expression-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
################################################################################
# Licensed to the .NET Foundation under one or more agreements.
# The .NET Foundation licenses this file to you under the MIT license.
# See the LICENSE file in the project root for more information.
################################################################################

parameters:

- name: string1
type: string
default: 'DEFAULT'

- name: bool1
type: boolean
default: false

- name: bool2
type: boolean
default: false

steps:

- pwsh: |
Write-Host "String1: ${{ parameters.string1 }}"
Write-Host "Bool1: ${{ parameters.bool1 }}"
Write-Host "Bool2: ${{ parameters.bool2 }}"
displayName: 'Display Parameters'
10 changes: 5 additions & 5 deletions eng/pipelines/dotnet-sqlclient-ci-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ stages:
NPConnectionString: $(SQL_NP_CONN_STRING)
AzureKeyVaultUrl: $(AzureKeyVaultUrl)
AzureKeyVaultTenantId: $(AzureKeyVaultTenantId)
SupportsIntegratedSecurity: $(SupportsIntegratedSecurity)
SupportsIntegratedSecurity: NOT_A_BOOL
UserManagedIdentityClientId: $(UserManagedIdentityClientId)
FileStreamDirectory: $(FileStreamDirectory)
LocalDbAppName: $(LocalDbAppName)
Expand Down Expand Up @@ -289,7 +289,7 @@ stages:
NPConnectionString: $(SQL_NP_CONN_STRING)
AzureKeyVaultUrl: $(AzureKeyVaultUrl)
AzureKeyVaultTenantId: $(AzureKeyVaultTenantId)
SupportsIntegratedSecurity: $(SupportsIntegratedSecurity)
SupportsIntegratedSecurity: true
UserManagedIdentityClientId: $(UserManagedIdentityClientId)
FileStreamDirectory: $(FileStreamDirectory)
LocalDbAppName: $(LocalDbAppName)
Expand Down Expand Up @@ -318,7 +318,7 @@ stages:
NPConnectionString: $(SQL_NP_CONN_STRING)
AzureKeyVaultUrl: $(AzureKeyVaultUrl)
AzureKeyVaultTenantId: $(AzureKeyVaultTenantId)
SupportsIntegratedSecurity: $(SupportsIntegratedSecurity)
SupportsIntegratedSecurity: true
UserManagedIdentityClientId: $(UserManagedIdentityClientId)
FileStreamDirectory: $(FileStreamDirectory)
LocalDbAppName: $(LocalDbAppName)
Expand Down Expand Up @@ -346,7 +346,7 @@ stages:
# config.json properties
TCPConnectionString: $(SQL_TCP_INSTANCE_CONN_STRING)
NPConnectionString: $(SQL_NP_INSTANCE_CONN_STRING)
SupportsIntegratedSecurity: $(SupportsIntegratedSecurity)
SupportsIntegratedSecurity: true
# extra config properties
SQLRootPath: $(SQL22RootPath)
instanceName: $(NamedInstance)
Expand Down Expand Up @@ -443,7 +443,7 @@ stages:
AADServicePrincipalSecret: $(AADServicePrincipalSecret)
AzureKeyVaultUrl: $(AzureKeyVaultUrl)
AzureKeyVaultTenantId: $(AzureKeyVaultTenantId)
SupportsIntegratedSecurity: $(SupportsIntegratedSecurity)
SupportsIntegratedSecurity: true
UserManagedIdentityClientId: $(UserManagedIdentityClientId)
AliasName: $(SQLAliasName)
LocalDbAppName: $(LocalDbAppName)
Expand Down
Loading