Skip to content

Commit d4fa261

Browse files
committed
Fix integ test
1 parent cd7573f commit d4fa261

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/Integration/Resources/DSC_SqlRSSetup.Integration.Tests.ps1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ BeforeAll {
4848
. $configFile
4949

5050
# Download Microsoft SQL Server Reporting Services (October 2017) executable
51-
if (-not (Test-Path -Path $ConfigurationData.AllNodes.SourcePath))
51+
if (-not (Test-Path -Path $ConfigurationData.AllNodes.MediaPath))
5252
{
5353
# By switching to 'SilentlyContinue' should theoretically increase the download speed.
5454
$previousProgressPreference = $ProgressPreference
@@ -82,14 +82,14 @@ BeforeAll {
8282

8383
Write-Verbose -Message ('Start downloading the {1} executable at {0}.' -f (Get-Date -Format 'yyyy-MM-dd hh:mm:ss'), $script:mockSourceMediaDisplayName) -Verbose
8484

85-
Invoke-WebRequest -Uri $script:mockSourceMediaUrl -OutFile $ConfigurationData.AllNodes.SourcePath
85+
Invoke-WebRequest -Uri $script:mockSourceMediaUrl -OutFile $ConfigurationData.AllNodes.MediaPath
8686

87-
Write-Verbose -Message ('{1} executable file has SHA1 hash ''{0}''.' -f (Get-FileHash -Path $ConfigurationData.AllNodes.SourcePath -Algorithm 'SHA1').Hash, $script:mockSourceMediaDisplayName) -Verbose
87+
Write-Verbose -Message ('{1} executable file has SHA1 hash ''{0}''.' -f (Get-FileHash -Path $ConfigurationData.AllNodes.MediaPath -Algorithm 'SHA1').Hash, $script:mockSourceMediaDisplayName) -Verbose
8888

8989
$ProgressPreference = $previousProgressPreference
9090

9191
# Double check that the Microsoft SQL Server Reporting Services (October 2017) was downloaded.
92-
if (-not (Test-Path -Path $ConfigurationData.AllNodes.SourcePath))
92+
if (-not (Test-Path -Path $ConfigurationData.AllNodes.MediaPath))
9393
{
9494
Write-Warning -Message ('{0} executable could not be downloaded, can not run the integration test.' -f $script:mockSourceMediaDisplayName)
9595
return

0 commit comments

Comments
 (0)