Skip to content

Commit bca7a9c

Browse files
committed
Fix integ test
1 parent 5104307 commit bca7a9c

File tree

41 files changed

+44
-44
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+44
-44
lines changed

.github/copilot-instructions.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,9 @@ also be written to test the command in a real environment, using real
143143
resources and dependencies.
144144

145145
The module being tested should not be imported in the integration tests.
146-
All integration tests for commands should should use this code block prior
147-
to the `Describe` block which will set up the test environment and will make
148-
sure the correct module is available for testing:
146+
All integration tests should should use this code block prior to the `Describe`
147+
block which will set up the test environment and will make sure the correct
148+
module is available for testing:
149149

150150
```powershell
151151
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSUseDeclaredVarsMoreThanAssignments', '', Justification = 'Suppressing this rule because Script Analyzer does not understand Pester syntax.')]
@@ -160,7 +160,7 @@ BeforeDiscovery {
160160
if (-not (Get-Module -Name 'DscResource.Test' -ListAvailable))
161161
{
162162
# Redirect all streams to $null, except the error stream (stream 2)
163-
& "$PSScriptRoot/../../build.ps1" -Tasks 'noop' 2>&1 4>&1 5>&1 6>&1 > $null
163+
& "$PSScriptRoot/../../../build.ps1" -Tasks 'noop' 2>&1 4>&1 5>&1 6>&1 > $null
164164
}
165165
166166
# If the dependencies has not been resolved, this will throw an error.

tests/Integration/Commands/Connect-SqlDscDatabaseEngine.Integration.Tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ BeforeDiscovery {
1010
if (-not (Get-Module -Name 'DscResource.Test' -ListAvailable))
1111
{
1212
# Redirect all streams to $null, except the error stream (stream 2)
13-
& "$PSScriptRoot/../../build.ps1" -Tasks 'noop' 2>&1 4>&1 5>&1 6>&1 > $null
13+
& "$PSScriptRoot/../../../build.ps1" -Tasks 'noop' 2>&1 4>&1 5>&1 6>&1 > $null
1414
}
1515

1616
# If the dependencies has not been resolved, this will throw an error.

tests/Integration/Commands/Get-SqlDscInstalledInstance.Integration.Tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ BeforeDiscovery {
1010
if (-not (Get-Module -Name 'DscResource.Test' -ListAvailable))
1111
{
1212
# Redirect all streams to $null, except the error stream (stream 2)
13-
& "$PSScriptRoot/../../build.ps1" -Tasks 'noop' 2>&1 4>&1 5>&1 6>&1 > $null
13+
& "$PSScriptRoot/../../../build.ps1" -Tasks 'noop' 2>&1 4>&1 5>&1 6>&1 > $null
1414
}
1515

1616
# If the dependencies has not been resolved, this will throw an error.

tests/Integration/Commands/Get-SqlDscRSSetupConfiguration.Integration.Tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ BeforeDiscovery {
1010
if (-not (Get-Module -Name 'DscResource.Test' -ListAvailable))
1111
{
1212
# Redirect all streams to $null, except the error stream (stream 2)
13-
& "$PSScriptRoot/../../build.ps1" -Tasks 'noop' 2>&1 4>&1 5>&1 6>&1 > $null
13+
& "$PSScriptRoot/../../../build.ps1" -Tasks 'noop' 2>&1 4>&1 5>&1 6>&1 > $null
1414
}
1515

1616
# If the dependencies has not been resolved, this will throw an error.

tests/Integration/Commands/Install-SqlDscBIReportServer.Integration.Tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ BeforeDiscovery {
1010
if (-not (Get-Module -Name 'DscResource.Test' -ListAvailable))
1111
{
1212
# Redirect all streams to $null, except the error stream (stream 2)
13-
& "$PSScriptRoot/../../build.ps1" -Tasks 'noop' 2>&1 4>&1 5>&1 6>&1 > $null
13+
& "$PSScriptRoot/../../../build.ps1" -Tasks 'noop' 2>&1 4>&1 5>&1 6>&1 > $null
1414
}
1515

1616
# If the dependencies has not been resolved, this will throw an error.

tests/Integration/Commands/Install-SqlDscReportingService.Integration.Tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ BeforeDiscovery {
1010
if (-not (Get-Module -Name 'DscResource.Test' -ListAvailable))
1111
{
1212
# Redirect all streams to $null, except the error stream (stream 2)
13-
& "$PSScriptRoot/../../build.ps1" -Tasks 'noop' 2>&1 4>&1 5>&1 6>&1 > $null
13+
& "$PSScriptRoot/../../../build.ps1" -Tasks 'noop' 2>&1 4>&1 5>&1 6>&1 > $null
1414
}
1515

1616
# If the dependencies has not been resolved, this will throw an error.

tests/Integration/Commands/Install-SqlDscServer.Integration.Tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ BeforeDiscovery {
1010
if (-not (Get-Module -Name 'DscResource.Test' -ListAvailable))
1111
{
1212
# Redirect all streams to $null, except the error stream (stream 2)
13-
& "$PSScriptRoot/../../build.ps1" -Tasks 'noop' 2>&1 4>&1 5>&1 6>&1 > $null
13+
& "$PSScriptRoot/../../../build.ps1" -Tasks 'noop' 2>&1 4>&1 5>&1 6>&1 > $null
1414
}
1515

1616
# If the dependencies has not been resolved, this will throw an error.

tests/Integration/Commands/Prerequisites.Integration.Tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ BeforeDiscovery {
1010
if (-not (Get-Module -Name 'DscResource.Test' -ListAvailable))
1111
{
1212
# Redirect all streams to $null, except the error stream (stream 2)
13-
& "$PSScriptRoot/../../build.ps1" -Tasks 'noop' 2>&1 4>&1 5>&1 6>&1 > $null
13+
& "$PSScriptRoot/../../../build.ps1" -Tasks 'noop' 2>&1 4>&1 5>&1 6>&1 > $null
1414
}
1515

1616
# If the dependencies has not been resolved, this will throw an error.

tests/Integration/Commands/Repair-SqlDscBIReportServer.Integration.Tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ BeforeDiscovery {
1010
if (-not (Get-Module -Name 'DscResource.Test' -ListAvailable))
1111
{
1212
# Redirect all streams to $null, except the error stream (stream 2)
13-
& "$PSScriptRoot/../../build.ps1" -Tasks 'noop' 2>&1 4>&1 5>&1 6>&1 > $null
13+
& "$PSScriptRoot/../../../build.ps1" -Tasks 'noop' 2>&1 4>&1 5>&1 6>&1 > $null
1414
}
1515

1616
# If the dependencies has not been resolved, this will throw an error.

tests/Integration/Commands/Repair-SqlDscReportingService.Integration.Tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ BeforeDiscovery {
1010
if (-not (Get-Module -Name 'DscResource.Test' -ListAvailable))
1111
{
1212
# Redirect all streams to $null, except the error stream (stream 2)
13-
& "$PSScriptRoot/../../build.ps1" -Tasks 'noop' 2>&1 4>&1 5>&1 6>&1 > $null
13+
& "$PSScriptRoot/../../../build.ps1" -Tasks 'noop' 2>&1 4>&1 5>&1 6>&1 > $null
1414
}
1515

1616
# If the dependencies has not been resolved, this will throw an error.

0 commit comments

Comments
 (0)