File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11function Get-CredentialType () {
2- $wmiObject = New-RsConfigurationSettingObject - ReportServerInstance PBIRS - ReportServerVersion SQLServer2017
2+ $wmiObject = New-RsConfigurationSettingObject - ReportServerInstance PBIRS - ReportServerVersion SQLServervNext
33 switch ($wmiObject.DatabaseLogonType ) {
44 0 { return ' Windows' }
55 1 { return ' SQL' }
@@ -20,7 +20,7 @@ Describe "Set-RsDatabaseCredentials" {
2020 Context " Changing database credential type to ServiceAccount credentials" {
2121 $credentialType = ' SQL'
2222 $credential = Get-SaCredentials
23- Set-RsDatabaseCredentials - DatabaseCredentialType $credentialType - DatabaseCredential $credential - Confirm:$false - Verbose - ReportServerInstance PBIRS - ReportServerVersion SQLServer2017
23+ Set-RsDatabaseCredentials - DatabaseCredentialType $credentialType - DatabaseCredential $credential - Confirm:$false - Verbose - ReportServerInstance PBIRS - ReportServerVersion SQLServervNext
2424
2525 It " Should update credentials" {
2626 Get-CredentialType | Should be $credentialType
@@ -29,7 +29,7 @@ Describe "Set-RsDatabaseCredentials" {
2929
3030 Context " Changing database credential type to SQL credentials" {
3131 $credentialType = ' ServiceAccount'
32- Set-RsDatabaseCredentials - DatabaseCredentialType $credentialType - Confirm:$false - Verbose - ReportServerInstance PBIRS - ReportServerVersion SQLServer2017
32+ Set-RsDatabaseCredentials - DatabaseCredentialType $credentialType - Confirm:$false - Verbose - ReportServerInstance PBIRS - ReportServerVersion SQLServervNext
3333
3434 It " Should update credentials" {
3535 Get-CredentialType | Should be $credentialType
You can’t perform that action at this time.
0 commit comments