Skip to content

Commit

Permalink
Changes to xSQLServerSetup
Browse files Browse the repository at this point in the history
- Fixed so integration test does not write warnings when SQLPS module is loaded
  (issue dsccommunity#798).
  • Loading branch information
johlju committed Sep 11, 2017
1 parent 2410835 commit 38ccf34
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
- Fixed so that the integration test renames back the SQLPS module folders if
they was renamed by AppVeyor (in the appveyor.yml file).
([issue #774](https://github.com/PowerShell/xFailOverCluster/issues/774)).
- Fixed so integration test does not write warnings when SQLPS module is loaded
([issue #798](https://github.com/PowerShell/xFailOverCluster/issues/798)).
- Changes to xSQLServerAlwaysOnAvailabilityGroup
- Change the check of the values entered as parameter for
BasicAvailabilityGroup. It is a boolean, hence it was not possible to
Expand Down
14 changes: 13 additions & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,19 @@ test_script:
Write-Verbose ('Renaming ''{0}'' to ''..\{1}''' -f $_, $newFolderName) -Verbose
Rename-Item $_ -NewName $newFolderName -Force
}
Write-Verbose -Message '---------------------------------' -Verbose
Write-Verbose -Message '' -Verbose
# Workaround for issue #798
Write-Verbose -Message '--- WORKAROUND FOR ISSUE #798 ---' -Verbose
$sqlModules = Get-Module -ListAvailable -Name 'ServiceManagement'
$sqlUniqueModulePath = Split-Path -Path (Split-Path $sqlModules.Path -Parent) -Parent | Sort-Object -Unique
$sqlUniqueModulePath | ForEach-Object -Process {
$newFolderName = '{0}.old' -f (Split-Path -Path $_ -Leaf)
Write-Verbose ('Renaming ''{0}'' to ''..\{1}''' -f $_, $newFolderName) -Verbose
Rename-Item $_ -NewName $newFolderName -Force
}
Write-Verbose -Message '' -Verbose
Invoke-AppveyorTestScriptTask -CodeCoverage -CodeCovIo -ExcludeTag @() -RunTestInOrder
Expand Down

0 comments on commit 38ccf34

Please sign in to comment.