Skip to content

Commit

Permalink
fixes for types
Browse files Browse the repository at this point in the history
  • Loading branch information
potatoqualitee committed Oct 17, 2024
1 parent 1043a98 commit 66e5312
Show file tree
Hide file tree
Showing 102 changed files with 471 additions and 471 deletions.
8 changes: 4 additions & 4 deletions tests/Add-DbaDbMirrorMonitor.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,16 @@ Describe "Add-DbaDbMirrorMonitor" {
$CommandUnderTest | Should -HaveParameter Debug -Type Switch
}
It "Should have ErrorAction as a parameter" {
$CommandUnderTest | Should -HaveParameter ErrorAction -Type ActionPreference
$CommandUnderTest | Should -HaveParameter ErrorAction -Type System.Management.Automation.ActionPreference
}
It "Should have WarningAction as a parameter" {
$CommandUnderTest | Should -HaveParameter WarningAction -Type ActionPreference
$CommandUnderTest | Should -HaveParameter WarningAction -Type System.Management.Automation.ActionPreference
}
It "Should have InformationAction as a parameter" {
$CommandUnderTest | Should -HaveParameter InformationAction -Type ActionPreference
$CommandUnderTest | Should -HaveParameter InformationAction -Type System.Management.Automation.ActionPreference
}
It "Should have ProgressAction as a parameter" {
$CommandUnderTest | Should -HaveParameter ProgressAction -Type ActionPreference
$CommandUnderTest | Should -HaveParameter ProgressAction -Type System.Management.Automation.ActionPreference
}
It "Should have ErrorVariable as a parameter" {
$CommandUnderTest | Should -HaveParameter ErrorVariable -Type String
Expand Down
16 changes: 8 additions & 8 deletions tests/Backup-DbaServiceMasterKey.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,17 @@ Describe "Backup-DbaServiceMasterKey" {
It "Should have Debug as a non-mandatory switch parameter" {
$CommandUnderTest | Should -HaveParameter Debug -Type Switch -Mandatory:$false
}
It "Should have ErrorAction as a non-mandatory parameter of type ActionPreference" {
$CommandUnderTest | Should -HaveParameter ErrorAction -Type ActionPreference -Mandatory:$false
It "Should have ErrorAction as a non-mandatory parameter of Type System.Management.Automation.ActionPreference" {
$CommandUnderTest | Should -HaveParameter ErrorAction -Type System.Management.Automation.ActionPreference -Mandatory:$false
}
It "Should have WarningAction as a non-mandatory parameter of type ActionPreference" {
$CommandUnderTest | Should -HaveParameter WarningAction -Type ActionPreference -Mandatory:$false
It "Should have WarningAction as a non-mandatory parameter of Type System.Management.Automation.ActionPreference" {
$CommandUnderTest | Should -HaveParameter WarningAction -Type System.Management.Automation.ActionPreference -Mandatory:$false
}
It "Should have InformationAction as a non-mandatory parameter of type ActionPreference" {
$CommandUnderTest | Should -HaveParameter InformationAction -Type ActionPreference -Mandatory:$false
It "Should have InformationAction as a non-mandatory parameter of Type System.Management.Automation.ActionPreference" {
$CommandUnderTest | Should -HaveParameter InformationAction -Type System.Management.Automation.ActionPreference -Mandatory:$false
}
It "Should have ProgressAction as a non-mandatory parameter of type ActionPreference" {
$CommandUnderTest | Should -HaveParameter ProgressAction -Type ActionPreference -Mandatory:$false
It "Should have ProgressAction as a non-mandatory parameter of Type System.Management.Automation.ActionPreference" {
$CommandUnderTest | Should -HaveParameter ProgressAction -Type System.Management.Automation.ActionPreference -Mandatory:$false
}
It "Should have ErrorVariable as a non-mandatory parameter of type String" {
$CommandUnderTest | Should -HaveParameter ErrorVariable -Type String -Mandatory:$false
Expand Down
16 changes: 8 additions & 8 deletions tests/Clear-DbaConnectionPool.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,17 @@ Describe "Clear-DbaConnectionPool" {
It "Should have Debug as a non-mandatory switch parameter" {
$CommandUnderTest | Should -HaveParameter Debug -Type switch -Mandatory:$false
}
It "Should have ErrorAction as a non-mandatory parameter of type ActionPreference" {
$CommandUnderTest | Should -HaveParameter ErrorAction -Type ActionPreference -Mandatory:$false
It "Should have ErrorAction as a non-mandatory parameter of Type System.Management.Automation.ActionPreference" {
$CommandUnderTest | Should -HaveParameter ErrorAction -Type System.Management.Automation.ActionPreference -Mandatory:$false
}
It "Should have WarningAction as a non-mandatory parameter of type ActionPreference" {
$CommandUnderTest | Should -HaveParameter WarningAction -Type ActionPreference -Mandatory:$false
It "Should have WarningAction as a non-mandatory parameter of Type System.Management.Automation.ActionPreference" {
$CommandUnderTest | Should -HaveParameter WarningAction -Type System.Management.Automation.ActionPreference -Mandatory:$false
}
It "Should have InformationAction as a non-mandatory parameter of type ActionPreference" {
$CommandUnderTest | Should -HaveParameter InformationAction -Type ActionPreference -Mandatory:$false
It "Should have InformationAction as a non-mandatory parameter of Type System.Management.Automation.ActionPreference" {
$CommandUnderTest | Should -HaveParameter InformationAction -Type System.Management.Automation.ActionPreference -Mandatory:$false
}
It "Should have ProgressAction as a non-mandatory parameter of type ActionPreference" {
$CommandUnderTest | Should -HaveParameter ProgressAction -Type ActionPreference -Mandatory:$false
It "Should have ProgressAction as a non-mandatory parameter of Type System.Management.Automation.ActionPreference" {
$CommandUnderTest | Should -HaveParameter ProgressAction -Type System.Management.Automation.ActionPreference -Mandatory:$false
}
It "Should have ErrorVariable as a non-mandatory parameter of type String" {
$CommandUnderTest | Should -HaveParameter ErrorVariable -Type String -Mandatory:$false
Expand Down
8 changes: 4 additions & 4 deletions tests/Clear-DbaLatchStatistics.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,16 @@ Describe "Clear-DbaLatchStatistics" {
$CommandUnderTest | Should -HaveParameter Debug -Type Switch -Mandatory:$false
}
It "Should have ErrorAction as a parameter" {
$CommandUnderTest | Should -HaveParameter ErrorAction -Type ActionPreference -Mandatory:$false
$CommandUnderTest | Should -HaveParameter ErrorAction -Type System.Management.Automation.ActionPreference -Mandatory:$false
}
It "Should have WarningAction as a parameter" {
$CommandUnderTest | Should -HaveParameter WarningAction -Type ActionPreference -Mandatory:$false
$CommandUnderTest | Should -HaveParameter WarningAction -Type System.Management.Automation.ActionPreference -Mandatory:$false
}
It "Should have InformationAction as a parameter" {
$CommandUnderTest | Should -HaveParameter InformationAction -Type ActionPreference -Mandatory:$false
$CommandUnderTest | Should -HaveParameter InformationAction -Type System.Management.Automation.ActionPreference -Mandatory:$false
}
It "Should have ProgressAction as a parameter" {
$CommandUnderTest | Should -HaveParameter ProgressAction -Type ActionPreference -Mandatory:$false
$CommandUnderTest | Should -HaveParameter ProgressAction -Type System.Management.Automation.ActionPreference -Mandatory:$false
}
It "Should have ErrorVariable as a parameter" {
$CommandUnderTest | Should -HaveParameter ErrorVariable -Type String -Mandatory:$false
Expand Down
8 changes: 4 additions & 4 deletions tests/Clear-DbaWaitStatistics.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,16 @@ Describe "Clear-DbaWaitStatistics" {
$CommandUnderTest | Should -HaveParameter Debug -Type Switch
}
It "Should have ErrorAction as a parameter" {
$CommandUnderTest | Should -HaveParameter ErrorAction -Type ActionPreference
$CommandUnderTest | Should -HaveParameter ErrorAction -Type System.Management.Automation.ActionPreference
}
It "Should have WarningAction as a parameter" {
$CommandUnderTest | Should -HaveParameter WarningAction -Type ActionPreference
$CommandUnderTest | Should -HaveParameter WarningAction -Type System.Management.Automation.ActionPreference
}
It "Should have InformationAction as a parameter" {
$CommandUnderTest | Should -HaveParameter InformationAction -Type ActionPreference
$CommandUnderTest | Should -HaveParameter InformationAction -Type System.Management.Automation.ActionPreference
}
It "Should have ProgressAction as a parameter" {
$CommandUnderTest | Should -HaveParameter ProgressAction -Type ActionPreference
$CommandUnderTest | Should -HaveParameter ProgressAction -Type System.Management.Automation.ActionPreference
}
It "Should have ErrorVariable as a parameter" {
$CommandUnderTest | Should -HaveParameter ErrorVariable -Type String
Expand Down
8 changes: 4 additions & 4 deletions tests/Disconnect-DbaInstance.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@ Describe "Disconnect-DbaInstance" {
$CommandUnderTest | Should -HaveParameter Debug -Type Switch -Mandatory:$false
}
It "Should have ErrorAction as a parameter" {
$CommandUnderTest | Should -HaveParameter ErrorAction -Type ActionPreference -Mandatory:$false
$CommandUnderTest | Should -HaveParameter ErrorAction -Type System.Management.Automation.ActionPreference -Mandatory:$false
}
It "Should have WarningAction as a parameter" {
$CommandUnderTest | Should -HaveParameter WarningAction -Type ActionPreference -Mandatory:$false
$CommandUnderTest | Should -HaveParameter WarningAction -Type System.Management.Automation.ActionPreference -Mandatory:$false
}
It "Should have InformationAction as a parameter" {
$CommandUnderTest | Should -HaveParameter InformationAction -Type ActionPreference -Mandatory:$false
$CommandUnderTest | Should -HaveParameter InformationAction -Type System.Management.Automation.ActionPreference -Mandatory:$false
}
It "Should have ProgressAction as a parameter" {
$CommandUnderTest | Should -HaveParameter ProgressAction -Type ActionPreference -Mandatory:$false
$CommandUnderTest | Should -HaveParameter ProgressAction -Type System.Management.Automation.ActionPreference -Mandatory:$false
}
It "Should have ErrorVariable as a parameter" {
$CommandUnderTest | Should -HaveParameter ErrorVariable -Type String -Mandatory:$false
Expand Down
16 changes: 8 additions & 8 deletions tests/Enable-DbaReplDistributor.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,17 @@ Describe "Enable-DbaReplDistributor" {
It "Should have Debug as a non-mandatory switch parameter" {
$CommandUnderTest | Should -HaveParameter Debug -Type Switch -Mandatory:$false
}
It "Should have ErrorAction as a non-mandatory parameter of type ActionPreference" {
$CommandUnderTest | Should -HaveParameter ErrorAction -Type ActionPreference -Mandatory:$false
It "Should have ErrorAction as a non-mandatory parameter of Type System.Management.Automation.ActionPreference" {
$CommandUnderTest | Should -HaveParameter ErrorAction -Type System.Management.Automation.ActionPreference -Mandatory:$false
}
It "Should have WarningAction as a non-mandatory parameter of type ActionPreference" {
$CommandUnderTest | Should -HaveParameter WarningAction -Type ActionPreference -Mandatory:$false
It "Should have WarningAction as a non-mandatory parameter of Type System.Management.Automation.ActionPreference" {
$CommandUnderTest | Should -HaveParameter WarningAction -Type System.Management.Automation.ActionPreference -Mandatory:$false
}
It "Should have InformationAction as a non-mandatory parameter of type ActionPreference" {
$CommandUnderTest | Should -HaveParameter InformationAction -Type ActionPreference -Mandatory:$false
It "Should have InformationAction as a non-mandatory parameter of Type System.Management.Automation.ActionPreference" {
$CommandUnderTest | Should -HaveParameter InformationAction -Type System.Management.Automation.ActionPreference -Mandatory:$false
}
It "Should have ProgressAction as a non-mandatory parameter of type ActionPreference" {
$CommandUnderTest | Should -HaveParameter ProgressAction -Type ActionPreference -Mandatory:$false
It "Should have ProgressAction as a non-mandatory parameter of Type System.Management.Automation.ActionPreference" {
$CommandUnderTest | Should -HaveParameter ProgressAction -Type System.Management.Automation.ActionPreference -Mandatory:$false
}
It "Should have ErrorVariable as a non-mandatory parameter of type String" {
$CommandUnderTest | Should -HaveParameter ErrorVariable -Type String -Mandatory:$false
Expand Down
8 changes: 4 additions & 4 deletions tests/Enable-DbaReplPublishing.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,16 @@ Describe "Enable-DbaReplPublishing" {
$CommandUnderTest | Should -HaveParameter Debug -Type Switch -Mandatory:$false
}
It "Should have ErrorAction as a parameter" {
$CommandUnderTest | Should -HaveParameter ErrorAction -Type ActionPreference -Mandatory:$false
$CommandUnderTest | Should -HaveParameter ErrorAction -Type System.Management.Automation.ActionPreference -Mandatory:$false
}
It "Should have WarningAction as a parameter" {
$CommandUnderTest | Should -HaveParameter WarningAction -Type ActionPreference -Mandatory:$false
$CommandUnderTest | Should -HaveParameter WarningAction -Type System.Management.Automation.ActionPreference -Mandatory:$false
}
It "Should have InformationAction as a parameter" {
$CommandUnderTest | Should -HaveParameter InformationAction -Type ActionPreference -Mandatory:$false
$CommandUnderTest | Should -HaveParameter InformationAction -Type System.Management.Automation.ActionPreference -Mandatory:$false
}
It "Should have ProgressAction as a parameter" {
$CommandUnderTest | Should -HaveParameter ProgressAction -Type ActionPreference -Mandatory:$false
$CommandUnderTest | Should -HaveParameter ProgressAction -Type System.Management.Automation.ActionPreference -Mandatory:$false
}
It "Should have ErrorVariable as a parameter" {
$CommandUnderTest | Should -HaveParameter ErrorVariable -Type String -Mandatory:$false
Expand Down
2 changes: 1 addition & 1 deletion tests/Export-DbaBinaryFile.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Describe "Export-DbaBinaryFile" {
$CommandUnderTest | Should -HaveParameter FilePath -Type String -Mandatory:$false
}
It "Should have InputObject as a parameter" {
$CommandUnderTest | Should -HaveParameter InputObject -Type Table[] -Mandatory:$false
$CommandUnderTest | Should -HaveParameter InputObject -Type [Microsoft.SqlServer.Management.Smo.Table[]] -Mandatory:$false
}
It "Should have EnableException as a parameter" {
$CommandUnderTest | Should -HaveParameter EnableException -Type Switch -Mandatory:$false
Expand Down
2 changes: 1 addition & 1 deletion tests/Export-DbaDbTableData.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Describe "Export-DbaDbTableData" {
$CommandUnderTest = Get-Command Export-DbaDbTableData
}
It "Should have InputObject as a parameter" {
$CommandUnderTest | Should -HaveParameter InputObject -Type Table[] -Mandatory:$false
$CommandUnderTest | Should -HaveParameter InputObject -Type [Microsoft.SqlServer.Management.Smo.Table[]] -Mandatory:$false
}
It "Should have Path as a parameter" {
$CommandUnderTest | Should -HaveParameter Path -Type String -Mandatory:$false
Expand Down
8 changes: 4 additions & 4 deletions tests/Find-DbaLoginInGroup.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,16 @@ Describe "Find-DbaLoginInGroup" {
$CommandUnderTest | Should -HaveParameter Debug -Type Switch
}
It "Should have ErrorAction as a parameter" {
$CommandUnderTest | Should -HaveParameter ErrorAction -Type ActionPreference
$CommandUnderTest | Should -HaveParameter ErrorAction -Type System.Management.Automation.ActionPreference
}
It "Should have WarningAction as a parameter" {
$CommandUnderTest | Should -HaveParameter WarningAction -Type ActionPreference
$CommandUnderTest | Should -HaveParameter WarningAction -Type System.Management.Automation.ActionPreference
}
It "Should have InformationAction as a parameter" {
$CommandUnderTest | Should -HaveParameter InformationAction -Type ActionPreference
$CommandUnderTest | Should -HaveParameter InformationAction -Type System.Management.Automation.ActionPreference
}
It "Should have ProgressAction as a parameter" {
$CommandUnderTest | Should -HaveParameter ProgressAction -Type ActionPreference
$CommandUnderTest | Should -HaveParameter ProgressAction -Type System.Management.Automation.ActionPreference
}
It "Should have ErrorVariable as a parameter" {
$CommandUnderTest | Should -HaveParameter ErrorVariable -Type String
Expand Down
4 changes: 2 additions & 2 deletions tests/Get-DbaAgBackupHistory.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ Describe "Get-DbaAgBackupHistory" {
It "Should have Raw as a non-mandatory switch parameter" {
$CommandUnderTest | Should -HaveParameter Raw -Type Switch -Mandatory:$false
}
It "Should have LastLsn as a non-mandatory parameter of type BigInteger" {
$CommandUnderTest | Should -HaveParameter LastLsn -Type BigInteger -Mandatory:$false
It "Should have LastLsn as a non-mandatory parameter of Type BigInt" {
$CommandUnderTest | Should -HaveParameter LastLsn -Type BigInt -Mandatory:$false
}
It "Should have IncludeMirror as a non-mandatory switch parameter" {
$CommandUnderTest | Should -HaveParameter IncludeMirror -Type Switch -Mandatory:$false
Expand Down
8 changes: 4 additions & 4 deletions tests/Get-DbaAgentServer.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,16 @@ Describe "Get-DbaAgentServer" {
$CommandUnderTest | Should -HaveParameter Debug -Type Switch -Mandatory:$false
}
It "Should have ErrorAction as a parameter" {
$CommandUnderTest | Should -HaveParameter ErrorAction -Type ActionPreference -Mandatory:$false
$CommandUnderTest | Should -HaveParameter ErrorAction -Type System.Management.Automation.ActionPreference -Mandatory:$false
}
It "Should have WarningAction as a parameter" {
$CommandUnderTest | Should -HaveParameter WarningAction -Type ActionPreference -Mandatory:$false
$CommandUnderTest | Should -HaveParameter WarningAction -Type System.Management.Automation.ActionPreference -Mandatory:$false
}
It "Should have InformationAction as a parameter" {
$CommandUnderTest | Should -HaveParameter InformationAction -Type ActionPreference -Mandatory:$false
$CommandUnderTest | Should -HaveParameter InformationAction -Type System.Management.Automation.ActionPreference -Mandatory:$false
}
It "Should have ProgressAction as a parameter" {
$CommandUnderTest | Should -HaveParameter ProgressAction -Type ActionPreference -Mandatory:$false
$CommandUnderTest | Should -HaveParameter ProgressAction -Type System.Management.Automation.ActionPreference -Mandatory:$false
}
It "Should have ErrorVariable as a parameter" {
$CommandUnderTest | Should -HaveParameter ErrorVariable -Type String -Mandatory:$false
Expand Down
2 changes: 1 addition & 1 deletion tests/Get-DbaBinaryFileTable.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Describe "Get-DbaBinaryFileTable" {
$CommandUnderTest | Should -HaveParameter Schema -Type String[]
}
It "Should have InputObject as a parameter" {
$CommandUnderTest | Should -HaveParameter InputObject -Type Table[]
$CommandUnderTest | Should -HaveParameter InputObject -Type [Microsoft.SqlServer.Management.Smo.Table[]]
}
It "Should have EnableException as a parameter" {
$CommandUnderTest | Should -HaveParameter EnableException -Type Switch
Expand Down
Loading

0 comments on commit 66e5312

Please sign in to comment.