Skip to content

Commit

Permalink
fix appveyor repo
Browse files Browse the repository at this point in the history
  • Loading branch information
potatoqualitee committed Oct 20, 2024
1 parent 67be969 commit 2e9e64f
Show file tree
Hide file tree
Showing 26 changed files with 103 additions and 103 deletions.
2 changes: 1 addition & 1 deletion tests/Add-DbaComputerCertificate.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Describe "$CommandName Unit Tests" -Tag 'UnitTests' {

Describe "$commandname Integration Tests" -Tags "IntegrationTests" {
Context "Certificate is added properly" {
$results = Add-DbaComputerCertificate -Path $TestConfig.appveyorlabrepo\certificates\localhost.crt -Confirm:$false
$results = Add-DbaComputerCertificate -Path $($TestConfig.appveyorlabrepo)\certificates\localhost.crt -Confirm:$false

It "Should show the proper thumbprint has been added" {
$results.Thumbprint | Should Be "29C469578D6C6211076A09CEE5C5797EEA0C2713"
Expand Down
2 changes: 1 addition & 1 deletion tests/Backup-DbaComputerCertificate.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Describe "$CommandName Unit Tests" -Tag 'UnitTests' {

Describe "$commandname Integration Tests" -Tags "IntegrationTests" {
Context "Certificate is added properly" {
$null = Add-DbaComputerCertificate -Path $TestConfig.appveyorlabrepo\certificates\localhost.crt -Confirm:$false
$null = Add-DbaComputerCertificate -Path $($TestConfig.appveyorlabrepo)\certificates\localhost.crt -Confirm:$false
It "returns the proper results" {
$result = Get-DbaComputerCertificate -Thumbprint 29C469578D6C6211076A09CEE5C5797EEA0C2713 | Backup-DbaComputerCertificate -Path C:\temp
$result.Name -match '29C469578D6C6211076A09CEE5C5797EEA0C2713.cer'
Expand Down
2 changes: 1 addition & 1 deletion tests/Backup-DbaDatabase.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ Describe "$commandname Integration Tests" -Tags "IntegrationTests" {
}

Context "Backup can pipe to restore" {
$null = Restore-DbaDatabase -SqlInstance $TestConfig.instance1 -Path $TestConfig.appveyorlabrepo\singlerestore\singlerestore.bak -DatabaseName "dbatoolsci_singlerestore"
$null = Restore-DbaDatabase -SqlInstance $TestConfig.instance1 -Path $($TestConfig.appveyorlabrepo)\singlerestore\singlerestore.bak -DatabaseName "dbatoolsci_singlerestore"
$results = Backup-DbaDatabase -SqlInstance $TestConfig.instance1 -BackupDirectory $DestBackupDir -Database "dbatoolsci_singlerestore" | Restore-DbaDatabase -SqlInstance $TestConfig.instance2 -DatabaseName $DestDbRandom -TrustDbBackupHistory -ReplaceDbNameInFile
It "Should return successful restore" {
$results.RestoreComplete | Should -Be $true
Expand Down
2 changes: 1 addition & 1 deletion tests/Copy-DbaDatabase.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ Describe "$commandname Integration Tests" -Tag "IntegrationTests" {
$null = Remove-DbaDatabase -SqlInstance $TestConfig.instance3 -Database "$prefix$backuprestoredb"
}

$null = Restore-DbaDatabase -SqlInstance $TestConfig.instance2 -path $TestConfig.appveyorlabrepo\RestoreTimeClean2016 -useDestinationDefaultDirectories
$null = Restore-DbaDatabase -SqlInstance $TestConfig.instance2 -path $($TestConfig.appveyorlabrepo)\RestoreTimeClean2016 -useDestinationDefaultDirectories
It "Should warn and exit if newname and >1 db specified" {
$null = Copy-DbaDatabase -Source $TestConfig.instance2 -Destination $TestConfig.instance3 -Database $backuprestoredb, RestoreTimeClean -DetachAttach -Reattach -NewName warn -WarningVariable warnvar 3> $null
$warnvar | Should -BeLike "*Cannot use NewName when copying multiple databases"
Expand Down
2 changes: 1 addition & 1 deletion tests/Copy-DbaDbCertificate.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Describe "$CommandName Integration Tests" -Tags "IntegrationTests" {
EncryptionPassword = $passwd
MasterKeyPassword = $passwd
Database = "dbatoolscopycred"
SharedPath = $TestConfig.appveyorlabrepo
SharedPath = $($TestConfig.appveyorlabrepo)
}
$results = Copy-DbaDbCertificate @paramscopydb -Confirm:$false | Where-Object SourceDatabase -eq dbatoolscopycred | Select-Object -First 1
$results.Notes | Should -Be $null
Expand Down
4 changes: 2 additions & 2 deletions tests/Copy-DbaLogin.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Describe "$commandname Integration Tests" -Tags "IntegrationTests" {
}

# create objects
$null = Invoke-DbaQuery -SqlInstance $TestConfig.instance1 -InputFile $TestConfig.appveyorlabrepo\sql2008-scripts\logins.sql
$null = Invoke-DbaQuery -SqlInstance $TestConfig.instance1 -InputFile $($TestConfig.appveyorlabrepo)\sql2008-scripts\logins.sql

$tableQuery = @("CREATE TABLE tester_table (a int)", "CREATE USER tester FOR LOGIN tester", "GRANT INSERT ON tester_table TO tester;")
$null = Invoke-DbaQuery -SqlInstance $TestConfig.instance1 -Database tempdb -Query ($tableQuery -join '; ')
Expand Down Expand Up @@ -97,7 +97,7 @@ Describe "$commandname Integration Tests" -Tags "IntegrationTests" {

Context "No overwrite" {
BeforeAll {
$null = Invoke-DbaQuery -SqlInstance $TestConfig.instance2 -InputFile $TestConfig.appveyorlabrepo\sql2008-scripts\logins.sql
$null = Invoke-DbaQuery -SqlInstance $TestConfig.instance2 -InputFile $($TestConfig.appveyorlabrepo)\sql2008-scripts\logins.sql
}
$results = Copy-DbaLogin -Source $TestConfig.instance1 -Destination $TestConfig.instance2 -Login tester
It "Should say skipped" {
Expand Down
4 changes: 2 additions & 2 deletions tests/Export-DbaBinaryFile.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ Describe "$commandname Integration Tests" -Tags "IntegrationTests" {
BeforeEach {
$db = Get-DbaDatabase -SqlInstance $TestConfig.instance2 -Database tempdb
$null = $db.Query("CREATE TABLE [dbo].[BunchOFilezz]([FileName123] [nvarchar](50) NULL, [TheFile123] [image] NULL)")
$null = Import-DbaBinaryFile -SqlInstance $TestConfig.instance2 -Database tempdb -Table BunchOFilezz -FilePath $TestConfig.appveyorlabrepo\azure\adalsql.msi
$null = Get-ChildItem $TestConfig.appveyorlabrepo\certificates | Import-DbaBinaryFile -SqlInstance $TestConfig.instance2 -Database tempdb -Table BunchOFilezz
$null = Import-DbaBinaryFile -SqlInstance $TestConfig.instance2 -Database tempdb -Table BunchOFilezz -FilePath $($TestConfig.appveyorlabrepo)\azure\adalsql.msi
$null = Get-ChildItem $($TestConfig.appveyorlabrepo)\certificates | Import-DbaBinaryFile -SqlInstance $TestConfig.instance2 -Database tempdb -Table BunchOFilezz
}
AfterEach {
try {
Expand Down
6 changes: 3 additions & 3 deletions tests/Get-DbaBackupInformation.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ Describe "$CommandName Integration Tests" -Tags "IntegrationTests" {
$random = Get-Random
$dbname = "dbatoolsci_Backuphistory_$random"
$null = Get-DbaDatabase -SqlInstance $TestConfig.instance1 -Database $dbname | Remove-DbaDatabase -Confirm:$false
$null = Restore-DbaDatabase -SqlInstance $TestConfig.instance1 -Path $TestConfig.appveyorlabrepo\singlerestore\singlerestore.bak -DatabaseName $dbname -DestinationFilePrefix $dbname
$null = Restore-DbaDatabase -SqlInstance $TestConfig.instance1 -Path $($TestConfig.appveyorlabrepo)\singlerestore\singlerestore.bak -DatabaseName $dbname -DestinationFilePrefix $dbname
$db = Get-DbaDatabase -SqlInstance $TestConfig.instance1 -Database $dbname
$db | Backup-DbaDatabase -Type Full -BackupDirectory $DestBackupDir
$db | Backup-DbaDatabase -Type Differential -BackupDirectory $DestBackupDir
$db | Backup-DbaDatabase -Type Log -BackupDirectory $DestBackupDir

$dbname2 = "dbatoolsci_Backuphistory2_$random"
$null = Get-DbaDatabase -SqlInstance $TestConfig.instance1 -Database $dbname2 | Remove-DbaDatabase -Confirm:$false
$null = Restore-DbaDatabase -SqlInstance $TestConfig.instance1 -Path $TestConfig.appveyorlabrepo\singlerestore\singlerestore.bak -DatabaseName $dbname2 -DestinationFilePrefix $dbname2
$null = Restore-DbaDatabase -SqlInstance $TestConfig.instance1 -Path $($TestConfig.appveyorlabrepo)\singlerestore\singlerestore.bak -DatabaseName $dbname2 -DestinationFilePrefix $dbname2
$db2 = Get-DbaDatabase -SqlInstance $TestConfig.instance1 -Database $dbname2
$db2 | Backup-DbaDatabase -Type Full -BackupDirectory $DestBackupDir
$db2 | Backup-DbaDatabase -Type Differential -BackupDirectory $DestBackupDir
Expand All @@ -53,7 +53,7 @@ Describe "$CommandName Integration Tests" -Tags "IntegrationTests" {

$dbname3 = "dbatoolsci_BackuphistoryOla_$random"
$null = Get-DbaDatabase -SqlInstance $TestConfig.instance1 -Database $dbname3 | Remove-DbaDatabase -Confirm:$false
$null = Restore-DbaDatabase -SqlInstance $TestConfig.instance1 -Path $TestConfig.appveyorlabrepo\singlerestore\singlerestore.bak -DatabaseName $dbname3 -DestinationFilePrefix $dbname3
$null = Restore-DbaDatabase -SqlInstance $TestConfig.instance1 -Path $($TestConfig.appveyorlabrepo)\singlerestore\singlerestore.bak -DatabaseName $dbname3 -DestinationFilePrefix $dbname3
$db3 = Get-DbaDatabase -SqlInstance $TestConfig.instance1 -Database $dbname3
$db3 | Backup-DbaDatabase -Type Full -BackupDirectory "$DestBackupDirOla\FULL"
$db3 | Backup-DbaDatabase -Type Differential -BackupDirectory "$DestBackupDirOla\Diff"
Expand Down
4 changes: 2 additions & 2 deletions tests/Get-DbaBinaryFileTable.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ Describe "$commandname Integration Tests" -Tags "IntegrationTests" {
BeforeAll {
$db = Get-DbaDatabase -SqlInstance $TestConfig.instance2 -Database tempdb
$null = $db.Query("CREATE TABLE [dbo].[BunchOFilez]([FileName123] [nvarchar](50) NULL, [TheFile123] [image] NULL)")
$null = Import-DbaBinaryFile -SqlInstance $TestConfig.instance2 -Database tempdb -Table BunchOFilez -FilePath $TestConfig.appveyorlabrepo\azure\adalsql.msi
$null = Get-ChildItem $TestConfig.appveyorlabrepo\certificates | Import-DbaBinaryFile -SqlInstance $TestConfig.instance2 -Database tempdb -Table BunchOFilez
$null = Import-DbaBinaryFile -SqlInstance $TestConfig.instance2 -Database tempdb -Table BunchOFilez -FilePath $($TestConfig.appveyorlabrepo)\azure\adalsql.msi
$null = Get-ChildItem $($TestConfig.appveyorlabrepo)\certificates | Import-DbaBinaryFile -SqlInstance $TestConfig.instance2 -Database tempdb -Table BunchOFilez
}
AfterAll {
try {
Expand Down
2 changes: 1 addition & 1 deletion tests/Get-DbaComputerCertificate.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Describe "$CommandName Unit Tests" -Tag 'UnitTests' {
Describe "$CommandName Integration Tests" -Tags "IntegrationTests" {
Context "Can get a certificate" {
BeforeAll {
$null = Add-DbaComputerCertificate -Path $TestConfig.appveyorlabrepo\certificates\localhost.crt -Confirm:$false
$null = Add-DbaComputerCertificate -Path $($TestConfig.appveyorlabrepo)\certificates\localhost.crt -Confirm:$false
$thumbprint = "29C469578D6C6211076A09CEE5C5797EEA0C2713"
}
AfterAll {
Expand Down
2 changes: 1 addition & 1 deletion tests/Get-DbaDbBackupHistory.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Describe "$CommandName Integration Tests" -Tag "IntegrationTests" {
$dbname = "dbatoolsci_history_$random"
$dbnameForked = "dbatoolsci_history_forked_$random"
$null = Get-DbaDatabase -SqlInstance $TestConfig.instance1 -Database $dbname, $dbnameForked | Remove-DbaDatabase -Confirm:$false
$null = Restore-DbaDatabase -SqlInstance $TestConfig.instance1 -Path $TestConfig.appveyorlabrepo\singlerestore\singlerestore.bak -DatabaseName $dbname -DestinationFilePrefix $dbname
$null = Restore-DbaDatabase -SqlInstance $TestConfig.instance1 -Path $($TestConfig.appveyorlabrepo)\singlerestore\singlerestore.bak -DatabaseName $dbname -DestinationFilePrefix $dbname
$server = Connect-DbaInstance -SqlInstance $TestConfig.instance1
$server.Databases['master'].ExecuteNonQuery("CREATE DATABASE $dbnameForked; ALTER DATABASE $dbnameForked SET AUTO_CLOSE OFF WITH ROLLBACK IMMEDIATE")
$db = Get-DbaDatabase -SqlInstance $TestConfig.instance1 -Database $dbname
Expand Down
10 changes: 5 additions & 5 deletions tests/Get-DbaDbRestoreHistory.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ Describe "$commandname Integration Tests" -Tags "IntegrationTests" {
$dbname1 = "dbatoolsci_restorehistory1_$random"
$dbname2 = "dbatoolsci_restorehistory2_$random"
$null = Get-DbaDatabase -SqlInstance $TestConfig.instance2 -Database $dbname1, $dbname2 | Remove-DbaDatabase -Confirm:$false
$null = Restore-DbaDatabase -SqlInstance $TestConfig.instance2 -Path $TestConfig.appveyorlabrepo\singlerestore\singlerestore.bak -DatabaseName $dbname1 -DestinationFilePrefix $dbname1
$null = Restore-DbaDatabase -SqlInstance $TestConfig.instance2 -Path $TestConfig.appveyorlabrepo\singlerestore\singlerestore.bak -DatabaseName $dbname2 -DestinationFilePrefix $dbname2
$null = Restore-DbaDatabase -SqlInstance $TestConfig.instance2 -Path $TestConfig.appveyorlabrepo\singlerestore\singlerestore.bak -DatabaseName $dbname2 -DestinationFilePrefix "rsh_pre_$dbname2" -WithReplace
$null = Restore-DbaDatabase -SqlInstance $TestConfig.instance2 -Path $($TestConfig.appveyorlabrepo)\singlerestore\singlerestore.bak -DatabaseName $dbname1 -DestinationFilePrefix $dbname1
$null = Restore-DbaDatabase -SqlInstance $TestConfig.instance2 -Path $($TestConfig.appveyorlabrepo)\singlerestore\singlerestore.bak -DatabaseName $dbname2 -DestinationFilePrefix $dbname2
$null = Restore-DbaDatabase -SqlInstance $TestConfig.instance2 -Path $($TestConfig.appveyorlabrepo)\singlerestore\singlerestore.bak -DatabaseName $dbname2 -DestinationFilePrefix "rsh_pre_$dbname2" -WithReplace
$fullBackup = Backup-DbaDatabase -SqlInstance $TestConfig.instance2 -Database $dbname1 -Type Full
$diffBackup = Backup-DbaDatabase -SqlInstance $TestConfig.instance2 -Database $dbname1 -Type Diff
$logBackup = Backup-DbaDatabase -SqlInstance $TestConfig.instance2 -Database $dbname1 -Type Log
Expand All @@ -47,7 +47,7 @@ Describe "$commandname Integration Tests" -Tags "IntegrationTests" {
}
It "Should return the full restore with the correct properties" {
$results[0].RestoreType | Should -Be "Database"
$results[0].From | Should -Be $TestConfig.appveyorlabrepo\singlerestore\singlerestore.bak
$results[0].From | Should -Be $($TestConfig.appveyorlabrepo)\singlerestore\singlerestore.bak
$results[0].To | Should -Match "\\rsh_pre_$dbname2"
}
}
Expand All @@ -59,7 +59,7 @@ Describe "$commandname Integration Tests" -Tags "IntegrationTests" {
It "Should return the full restore with the correct properties" {
$results[0].RestoreType | Should -Be "Database"
$results[1].RestoreType | Should -Be "Log"
$results[0].From | Should -Be $TestConfig.appveyorlabrepo\singlerestore\singlerestore.bak
$results[0].From | Should -Be $($TestConfig.appveyorlabrepo)\singlerestore\singlerestore.bak
$results[1].From | Should -Be $logBackup.BackupPath
($results | Where-Object Database -eq $dbname1).To | Should -Match "\\$dbname1"
($results | Where-Object Database -eq $dbname2).To | Should -Match "\\rsh_pre_$dbname2"
Expand Down
2 changes: 1 addition & 1 deletion tests/Get-DbaDbSharePoint.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Describe "$commandname Integration Tests" -Tag "IntegrationTests" {
}
# Andreas Jordan: We should try to get a backup working again or even better just a sql script to set this up.
# This takes a long time but I cannot figure out why every backup of this db is malformed
$bacpac = "$TestConfig.appveyorlabrepo\bacpac\sharepoint_config.bacpac"
$bacpac = "$($TestConfig.appveyorlabrepo)\bacpac\sharepoint_config.bacpac"
if (Test-Path -Path $bacpac) {
$sqlpackage = (Get-Command sqlpackage -ErrorAction Ignore).Source
if (-not $sqlpackage) {
Expand Down
2 changes: 1 addition & 1 deletion tests/Get-DbaWaitResource.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Describe "$CommandName Integration Tests" -Tags "IntegrationTests" {

$random = Get-Random
$WaitResourceDB = "WaitResource$random"
Restore-DbaDatabase -SqlInstance $TestConfig.instance1 -DatabaseName $WaitResourceDB -ReplaceDbNameInFile -Path $TestConfig.appveyorlabrepo\singlerestore\singlerestore.bak
Restore-DbaDatabase -SqlInstance $TestConfig.instance1 -DatabaseName $WaitResourceDB -ReplaceDbNameInFile -Path $($TestConfig.appveyorlabrepo)\singlerestore\singlerestore.bak
$sql = "
create table waittest (
col1 int,
Expand Down
2 changes: 1 addition & 1 deletion tests/Grant-DbaAgPermission.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Describe "$CommandName Unit Tests" -Tag 'UnitTests' {

Describe "$commandname Integration Tests" -Tag "IntegrationTests" {
BeforeAll {
$null = Invoke-DbaQuery -SqlInstance $TestConfig.instance3 -InputFile $TestConfig.appveyorlabrepo\sql2008-scripts\logins.sql -ErrorAction SilentlyContinue
$null = Invoke-DbaQuery -SqlInstance $TestConfig.instance3 -InputFile $($TestConfig.appveyorlabrepo)\sql2008-scripts\logins.sql -ErrorAction SilentlyContinue
$agname = "dbatoolsci_ag_grant"
$null = New-DbaAvailabilityGroup -Primary $TestConfig.instance3 -Name $agname -ClusterType None -FailoverMode Manual -Confirm:$false -Certificate dbatoolsci_AGCert
}
Expand Down
6 changes: 3 additions & 3 deletions tests/Import-DbaBinaryFile.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,18 @@ Describe "$commandname Integration Tests" -Tags "IntegrationTests" {
}

It "imports files into table data" {
$results = Import-DbaBinaryFile -SqlInstance $TestConfig.instance2 -Database tempdb -Table BunchOFiles -FilePath $TestConfig.appveyorlabrepo\azure\adalsql.msi -WarningAction Continue -ErrorAction Stop -EnableException
$results = Import-DbaBinaryFile -SqlInstance $TestConfig.instance2 -Database tempdb -Table BunchOFiles -FilePath $($TestConfig.appveyorlabrepo)\azure\adalsql.msi -WarningAction Continue -ErrorAction Stop -EnableException
$results.Database | Should -Be "tempdb"
$results.FilePath | Should -match "adalsql.msi"
}
It "imports files into table data from piped" {
$results = Get-ChildItem -Path $TestConfig.appveyorlabrepo\certificates | Import-DbaBinaryFile -SqlInstance $TestConfig.instance2 -Database tempdb -Table BunchOFiles -WarningAction Continue -ErrorAction Stop -EnableException
$results = Get-ChildItem -Path $($TestConfig.appveyorlabrepo)\certificates | Import-DbaBinaryFile -SqlInstance $TestConfig.instance2 -Database tempdb -Table BunchOFiles -WarningAction Continue -ErrorAction Stop -EnableException
$results.Database | Should -Be @("tempdb", "tempdb")
Split-Path -Path $results.FilePath -Leaf | Should -Be @("localhost.crt", "localhost.pfx")
}

It "piping from Get-DbaBinaryFileTable works" {
$results = Get-DbaBinaryFileTable -SqlInstance $TestConfig.instance2 -Database tempdb -Table BunchOFiles | Import-DbaBinaryFile -WarningAction Continue -ErrorAction Stop -EnableException -Path $TestConfig.appveyorlabrepo\certificates
$results = Get-DbaBinaryFileTable -SqlInstance $TestConfig.instance2 -Database tempdb -Table BunchOFiles | Import-DbaBinaryFile -WarningAction Continue -ErrorAction Stop -EnableException -Path $($TestConfig.appveyorlabrepo)\certificates
$results.Database | Should -Be @("tempdb", "tempdb")
Split-Path -Path $results.FilePath -Leaf | Should -Be @("localhost.crt", "localhost.pfx")
}
Expand Down
10 changes: 5 additions & 5 deletions tests/Import-DbaCsv.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ Describe "$CommandName Integration Tests" -Tag "IntegrationTests" {
Invoke-DbaQuery -SqlInstance $TestConfig.instance1, $TestConfig.instance2 -Database tempdb -Query "drop table SuperSmall; drop table CommaSeparatedWithHeader"
}

$path = "$TestConfig.appveyorlabrepo\csv\SuperSmall.csv"
$CommaSeparatedWithHeader = "$TestConfig.appveyorlabrepo\csv\CommaSeparatedWithHeader.csv"
$col1 = "$TestConfig.appveyorlabrepo\csv\cols.csv"
$col2 = "$TestConfig.appveyorlabrepo\csv\col2.csv"
$pipe3 = "$TestConfig.appveyorlabrepo\csv\pipe3.psv"
$path = "$($TestConfig.appveyorlabrepo)\csv\SuperSmall.csv"
$CommaSeparatedWithHeader = "$($TestConfig.appveyorlabrepo)\csv\CommaSeparatedWithHeader.csv"
$col1 = "$($TestConfig.appveyorlabrepo)\csv\cols.csv"
$col2 = "$($TestConfig.appveyorlabrepo)\csv\col2.csv"
$pipe3 = "$($TestConfig.appveyorlabrepo)\csv\pipe3.psv"


Context "Works as expected" {
Expand Down
2 changes: 1 addition & 1 deletion tests/Invoke-DbaWhoisActive.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Describe "$CommandName Unit Tests" -Tag 'UnitTests' {

Describe "$commandname Integration Tests" -Tags "IntegrationTests" {
BeforeAll {
$testzippath = "$TestConfig.appveyorlabrepo\CommunitySoftware\sp_whoisactive-12.00.zip"
$testzippath = "$($TestConfig.appveyorlabrepo)\CommunitySoftware\sp_whoisactive-12.00.zip"
$resultInstallMaster = Install-DbaWhoIsActive -SqlInstance $TestConfig.instance1 -LocalFile $testzippath -Database master -WarningVariable warnInstallMaster
$resultInstallTempdb = Install-DbaWhoIsActive -SqlInstance $TestConfig.instance1 -LocalFile $testzippath -Database tempdb -WarningVariable warnInstallTempdb
}
Expand Down
Loading

0 comments on commit 2e9e64f

Please sign in to comment.