Skip to content

Commit

Permalink
maybe
Browse files Browse the repository at this point in the history
  • Loading branch information
potatoqualitee committed Oct 25, 2024
1 parent 8e085ac commit a92e29f
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 17 deletions.
7 changes: 2 additions & 5 deletions tests/Add-DbaPfDataCollectorCounter.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ Describe "Add-DbaPfDataCollectorCounter" -Tag "UnitTests" {

Describe "Add-DbaPfDataCollectorCounter" -Tag "IntegrationTests" {
BeforeAll {
$null = Get-DbaPfDataCollectorSetTemplate -Template 'Long Running Queries' | Import-DbaPfDataCollectorSetTemplate |
Get-DbaPfDataCollector | Get-DbaPfDataCollectorCounter -Counter '\LogicalDisk(*)\Avg. Disk Queue Length' | Remove-DbaPfDataCollectorCounter -Confirm:$false
$null = Get-DbaPfDataCollectorSetTemplate -Template 'Long Running Queries' | Import-DbaPfDataCollectorSetTemplate | Get-DbaPfDataCollector | Get-DbaPfDataCollectorCounter -Counter '\LogicalDisk(*)\Avg. Disk Queue Length' | Remove-DbaPfDataCollectorCounter -Confirm:$false
}

AfterAll {
Expand All @@ -47,9 +46,7 @@ Describe "Add-DbaPfDataCollectorCounter" -Tag "IntegrationTests" {
CollectorSet = 'Long Running Queries'
Counter = '\LogicalDisk(*)\Avg. Disk Queue Length'
}
$results = Get-DbaPfDataCollectorSet @splatAddCounter |
Get-DbaPfDataCollector |
Add-DbaPfDataCollectorCounter @splatAddCounter
$results = Get-DbaPfDataCollectorSet @splatAddCounter | Get-DbaPfDataCollector | Add-DbaPfDataCollectorCounter @splatAddCounter
}

It "Returns the correct DataCollectorSet" {
Expand Down
4 changes: 1 addition & 3 deletions tests/Backup-DbaComputerCertificate.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@ Describe "Backup-DbaComputerCertificate" -Tag "UnitTests" {
"Path",
"FilePath",
"Type",
"EnableException",
"Confirm",
"WhatIf"
"EnableException"
)
$hasparms = $command.Parameters.Values.Name
Compare-Object -ReferenceObject $expected -DifferenceObject $hasparms | Should -BeNullOrEmpty
Expand Down
4 changes: 1 addition & 3 deletions tests/Clear-DbaConnectionPool.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ Describe "Clear-DbaConnectionPool" -Tag "UnitTests" {
$expected += @(
"ComputerName",
"Credential",
"EnableException",
"Confirm",
"WhatIf"
"EnableException"
)

$hasparms = $command.Parameters.Values.Name
Expand Down
4 changes: 1 addition & 3 deletions tests/Convert-DbaLsn.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ Describe "Convert-DbaLSN" -Tag "UnitTests" {
$expected = $TestConfig.CommonParameters
$expected += @(
"LSN",
"EnableException",
"Confirm",
"WhatIf"
"EnableException"
)
$hasparms = $command.Parameters.Values.Name
Compare-Object -ReferenceObject $expected -DifferenceObject $hasparms | Should -BeNullOrEmpty
Expand Down
4 changes: 1 addition & 3 deletions tests/Convert-DbaMaskingValue.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@ Describe "Convert-DbaMaskingValue" -Tag "UnitTests" {
"Value",
"DataType",
"Nullable",
"EnableException",
"Confirm",
"WhatIf"
"EnableException"
)
$hasparms = $command.Parameters.Values.Name
Compare-Object -ReferenceObject $expected -DifferenceObject $hasparms | Should -BeNullOrEmpty
Expand Down

0 comments on commit a92e29f

Please sign in to comment.