File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
function Get-CredentialType () {
2
- $wmiObject = New-RsConfigurationSettingObject - ReportServerInstance PBIRS - ReportServerVersion SQLServer2017
2
+ $wmiObject = New-RsConfigurationSettingObject - ReportServerInstance PBIRS - ReportServerVersion SQLServervNext
3
3
switch ($wmiObject.DatabaseLogonType ) {
4
4
0 { return ' Windows' }
5
5
1 { return ' SQL' }
@@ -20,7 +20,7 @@ Describe "Set-RsDatabaseCredentials" {
20
20
Context " Changing database credential type to ServiceAccount credentials" {
21
21
$credentialType = ' SQL'
22
22
$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
24
24
25
25
It " Should update credentials" {
26
26
Get-CredentialType | Should be $credentialType
@@ -29,7 +29,7 @@ Describe "Set-RsDatabaseCredentials" {
29
29
30
30
Context " Changing database credential type to SQL credentials" {
31
31
$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
33
33
34
34
It " Should update credentials" {
35
35
Get-CredentialType | Should be $credentialType
You can’t perform that action at this time.
0 commit comments