source stringclasses 1
value | repo stringclasses 33
values | repo_url stringclasses 33
values | path stringlengths 7 179 | language stringclasses 1
value | license stringclasses 4
values | stars int64 2.27k 53.4k | ref stringclasses 4
values | size_bytes int64 48 259k | text stringlengths 48 259k |
|---|---|---|---|---|---|---|---|---|---|
github | dataplat/dbatools | https://github.com/dataplat/dbatools | private/dynamicparams/resourcepool.ps1 | PowerShell | mit | 2,763 | development | 2,102 | #region Initialize Cache
if (-not [Dataplat.Dbatools.TabExpansion.TabExpansionHost]::Cache["resourcepool"]) {
[Dataplat.Dbatools.TabExpansion.TabExpansionHost]::Cache["resourcepool"] = @{ }
}
#endregion Initialize Cache
#region Tepp Data return
$ScriptBlock = {
param (
$commandName,
$parameter... |
github | dataplat/dbatools | https://github.com/dataplat/dbatools | private/dynamicparams/processHostname.ps1 | PowerShell | mit | 2,763 | development | 930 | $scriptBlock = {
param (
$commandName,
$parameterName,
$wordToComplete,
$commandAst,
$fakeBoundParameter
)
$server = $fakeBoundParameter['SqlInstance']
if (-not $server) {
return
}
$sqlCredential = $fakeBoundParameter['SqlCredential']
tr... |
github | dataplat/dbatools | https://github.com/dataplat/dbatools | private/dynamicparams/processSpid.ps1 | PowerShell | mit | 2,763 | development | 926 | $scriptBlock = {
param (
$commandName,
$parameterName,
$wordToComplete,
$commandAst,
$fakeBoundParameter
)
$server = $fakeBoundParameter['SqlInstance']
if (-not $server) {
return
}
$sqlCredential = $fakeBoundParameter['SqlCredential']
tr... |
github | dataplat/dbatools | https://github.com/dataplat/dbatools | private/dynamicparams/customerror.ps1 | PowerShell | mit | 2,763 | development | 2,031 | #region Initialize Cache
if (-not [Dataplat.Dbatools.TabExpansion.TabExpansionHost]::Cache["customerror"]) {
[Dataplat.Dbatools.TabExpansion.TabExpansionHost]::Cache["customerror"] = @{ }
}
#endregion Initialize Cache
#region Tepp Data return
$ScriptBlock = {
param (
$commandName,
$parameterNa... |
github | dataplat/dbatools | https://github.com/dataplat/dbatools | private/dynamicparams/snapshot.ps1 | PowerShell | mit | 2,763 | development | 2,101 | #region Initialize Cache
if (-not [Dataplat.Dbatools.TabExpansion.TabExpansionHost]::Cache["snapshot"]) {
[Dataplat.Dbatools.TabExpansion.TabExpansionHost]::Cache["snapshot"] = @{ }
}
#endregion Initialize Cache
#region Tepp Data return
$ScriptBlock = {
param (
$commandName,
$parameterName,
... |
github | dataplat/dbatools | https://github.com/dataplat/dbatools | private/dynamicparams/linkedserver.ps1 | PowerShell | mit | 2,763 | development | 2,034 | #region Initialize Cache
if (-not [Dataplat.Dbatools.TabExpansion.TabExpansionHost]::Cache["linkedserver"]) {
[Dataplat.Dbatools.TabExpansion.TabExpansionHost]::Cache["linkedserver"] = @{ }
}
#endregion Initialize Cache
#region Tepp Data return
$ScriptBlock = {
param (
$commandName,
$parameter... |
github | dataplat/dbatools | https://github.com/dataplat/dbatools | private/dynamicparams/instanceproperty.ps1 | PowerShell | mit | 2,763 | development | 2,005 | #region Initialize Cache
if (-not [Dataplat.Dbatools.TabExpansion.TabExpansionHost]::Cache["instanceproperty"]) {
[Dataplat.Dbatools.TabExpansion.TabExpansionHost]::Cache["instanceproperty"] = @{ }
}
#endregion Initialize Cache
#region Tepp Data return
$ScriptBlock = {
param (
$commandName,
$p... |
github | dataplat/dbatools | https://github.com/dataplat/dbatools | private/dynamicparams/proxyaccount.ps1 | PowerShell | mit | 2,763 | development | 2,044 | #region Initialize Cache
if (-not [Dataplat.Dbatools.TabExpansion.TabExpansionHost]::Cache["proxyaccount"]) {
[Dataplat.Dbatools.TabExpansion.TabExpansionHost]::Cache["proxyaccount"] = @{ }
}
#endregion Initialize Cache
#region Tepp Data return
$ScriptBlock = {
param (
$commandName,
$parameter... |
github | dataplat/dbatools | https://github.com/dataplat/dbatools | private/dynamicparams/delimiter.ps1 | PowerShell | mit | 2,763 | development | 544 | #region Initialize Cache
if (-not [Dataplat.Dbatools.TabExpansion.TabExpansionHost]::Cache["delimiter"]) {
[Dataplat.Dbatools.TabExpansion.TabExpansionHost]::Cache["delimiter"] = @{ }
}
#endregion Initialize Cache
#region Tepp Data return
$ScriptBlock = {
param (
$commandName,
$parameterName,
... |
github | dataplat/dbatools | https://github.com/dataplat/dbatools | private/dynamicparams/audit.ps1 | PowerShell | mit | 2,763 | development | 1,978 | #region Initialize Cache
if (-not [Dataplat.Dbatools.TabExpansion.TabExpansionHost]::Cache["audit"]) {
[Dataplat.Dbatools.TabExpansion.TabExpansionHost]::Cache["audit"] = @{ }
}
#endregion Initialize Cache
#region Tepp Data return
$ScriptBlock = {
param (
$commandName,
$parameterName,
... |
github | dataplat/dbatools | https://github.com/dataplat/dbatools | private/dynamicparams/operator.ps1 | PowerShell | mit | 2,763 | development | 1,873 | #region Initialize Cache
if (-not [Dataplat.Dbatools.TabExpansion.TabExpansionHost]::Cache["operator"]) {
[Dataplat.Dbatools.TabExpansion.TabExpansionHost]::Cache["operator"] = @{ }
}
#endregion Initialize Cache
#region Tepp Data return
$ScriptBlock = {
param (
$commandName,
$parameterName,
... |
github | dataplat/dbatools | https://github.com/dataplat/dbatools | private/dynamicparams/availabilitygroup.ps1 | PowerShell | mit | 2,763 | development | 2,074 | #region Initialize Cache
if (-not [Dataplat.Dbatools.TabExpansion.TabExpansionHost]::Cache["availabilitygroup"]) {
[Dataplat.Dbatools.TabExpansion.TabExpansionHost]::Cache["availabilitygroup"] = @{ }
}
#endregion Initialize Cache
#region Tepp Data return
$ScriptBlock = {
param (
$commandName,
... |
github | dataplat/dbatools | https://github.com/dataplat/dbatools | private/dynamicparams/alert.ps1 | PowerShell | mit | 2,763 | development | 1,988 | #region Initialize Cache
if (-not [Dataplat.Dbatools.TabExpansion.TabExpansionHost]::Cache["alert"]) {
[Dataplat.Dbatools.TabExpansion.TabExpansionHost]::Cache["alert"] = @{ }
}
#endregion Initialize Cache
#region Tepp Data return
$ScriptBlock = {
param (
$commandName,
$parameterName,
... |
github | dataplat/dbatools | https://github.com/dataplat/dbatools | private/dynamicparams/powerplan.ps1 | PowerShell | mit | 2,763 | development | 1,078 | #region Initialize Cache
if (-not [Dataplat.Dbatools.TabExpansion.TabExpansionHost]::Cache["powerplan"]) {
[Dataplat.Dbatools.TabExpansion.TabExpansionHost]::Cache["powerplan"] = @()
}
#endregion Initialize Cache
#region Tepp Data return
$ScriptBlock = {
param (
$commandName,
$parameterName,
... |
github | dataplat/dbatools | https://github.com/dataplat/dbatools | private/dynamicparams/group.ps1 | PowerShell | mit | 2,763 | development | 2,148 | #region Initialize Cache
if (-not [Dataplat.Dbatools.TabExpansion.TabExpansionHost]::Cache["group"]) {
[Dataplat.Dbatools.TabExpansion.TabExpansionHost]::Cache["group"] = @{ }
}
#endregion Initialize Cache
#region Tepp Data return
$ScriptBlock = {
param (
$commandName,
$parameterName,
... |
github | dataplat/dbatools | https://github.com/dataplat/dbatools | private/dynamicparams/sqlinstance.ps1 | PowerShell | mit | 2,763 | development | 1,614 | #region Initialize Cache
if (-not [Dataplat.Dbatools.TabExpansion.TabExpansionHost]::Cache["sqlinstance"]) {
[Dataplat.Dbatools.TabExpansion.TabExpansionHost]::Cache["sqlinstance"] = @()
}
# Load user-defined instances from config (set via Add-DbaInstanceList)
foreach ($instance in (Get-DbatoolsConfigValue -FullNa... |
github | dataplat/dbatools | https://github.com/dataplat/dbatools | private/dynamicparams/database.ps1 | PowerShell | mit | 2,763 | development | 2,001 | #region Initialize Cache
if (-not [Dataplat.Dbatools.TabExpansion.TabExpansionHost]::Cache["database"]) {
[Dataplat.Dbatools.TabExpansion.TabExpansionHost]::Cache["database"] = @{ }
}
#endregion Initialize Cache
#region Tepp Data return
$ScriptBlock = {
param (
$commandName,
$parameterName,
... |
github | dataplat/dbatools | https://github.com/dataplat/dbatools | private/dynamicparams/auditspecification.ps1 | PowerShell | mit | 2,763 | development | 2,082 | #region Initialize Cache
if (-not [Dataplat.Dbatools.TabExpansion.TabExpansionHost]::Cache["auditspecification"]) {
[Dataplat.Dbatools.TabExpansion.TabExpansionHost]::Cache["auditspecification"] = @{ }
}
#endregion Initialize Cache
#region Tepp Data return
$ScriptBlock = {
param (
$commandName,
... |
github | dataplat/dbatools | https://github.com/dataplat/dbatools | private/dynamicparams/session.ps1 | PowerShell | mit | 2,763 | development | 2,283 | #region Initialize Cache
if (-not [Dataplat.Dbatools.TabExpansion.TabExpansionHost]::Cache["session"]) {
[Dataplat.Dbatools.TabExpansion.TabExpansionHost]::Cache["session"] = @{ }
}
#endregion Initialize Cache
#region Tepp Data return
$ScriptBlock = {
param (
$commandName,
$parameterName,
... |
github | dataplat/dbatools | https://github.com/dataplat/dbatools | private/dynamicparams/tag.ps1 | PowerShell | mit | 2,763 | development | 3,025 | $ScriptBlock = {
param (
$commandName,
$parameterName,
$wordToComplete,
$commandAst,
$fakeBoundParameter
)
# Hack till we get this working
function New-CompletionResult {
param ([Parameter(ValueFromPipelineByPropertyName, Mandatory, ValueFromPipeline)... |
github | dataplat/dbatools | https://github.com/dataplat/dbatools | private/dynamicparams/credential.ps1 | PowerShell | mit | 2,763 | development | 2,018 | #region Initialize Cache
if (-not [Dataplat.Dbatools.TabExpansion.TabExpansionHost]::Cache["credential"]) {
[Dataplat.Dbatools.TabExpansion.TabExpansionHost]::Cache["credential"] = @{ }
}
#endregion Initialize Cache
#region Tepp Data return
$ScriptBlock = {
param (
$commandName,
$parameterName... |
github | dataplat/dbatools | https://github.com/dataplat/dbatools | private/configurations/configuration.ps1 | PowerShell | mit | 2,763 | development | 9,471 | <#
#-------------------------#
# Warning Warning Warning #
#-------------------------#
This is the global configuration management file.
DO NOT EDIT THIS FILE!!!!!
Disobedience shall be answered by the wrath of Fred.
You've been warned.
;)
The purpose of this file is to manage the configuration system.
That means, ... |
github | dataplat/dbatools | https://github.com/dataplat/dbatools | private/configurations/settings/userinteraction.ps1 | PowerShell | mit | 2,763 | development | 3,813 | <#
This configuration file is for all settings of how dbatools interacts with users
#>
# Configure the message levels at which the function will write either an info, a verbose message or debug message
# Used by the internal "Write-Message" function
Set-DbatoolsConfig -Name 'message.maximuminfo' -Value 3 -Initialize -... |
github | dataplat/dbatools | https://github.com/dataplat/dbatools | private/configurations/settings/formatting.ps1 | PowerShell | mit | 2,763 | development | 2,892 | # The default formatting style for dates
Set-DbatoolsConfig -FullName 'Formatting.Date' -Value "dd MMM yyyy" -Initialize -Validation string -Handler { [Dataplat.Dbatools.Utility.UtilityHost]::FormatDate = $args[0] } -Description "The default formatting of Dates"
# The default formatting style for full datetime objects... |
github | dataplat/dbatools | https://github.com/dataplat/dbatools | private/configurations/settings/import.ps1 | PowerShell | mit | 2,763 | development | 3,589 | # Handle dotsourcing on import
Set-DbatoolsConfig -Name 'Import.StrictSecurityMode' -Value $false -Initialize -Validation bool -Handler {
try {
if (-not ($isLinux -or $IsMacOS)) {
if (-not (Test-Path "HKCU:\SOFTWARE\Microsoft\WindowsPowerShell\dbatools\System")) {
$null = New-Ite... |
github | dataplat/dbatools | https://github.com/dataplat/dbatools | private/configurations/settings/assets.ps1 | PowerShell | mit | 2,763 | development | 409 | <#
This is designed for all online assets you need configurations for.
#>
# The default path where dbatools stores persistent data
Set-DbatoolsConfig -FullName 'assets.sqlbuildreference' -Value 'https://dataplat.github.io/assets/dbatools-buildref-index.json' -Initialize -Validation string -Handler { } -Description "Th... |
github | dataplat/dbatools | https://github.com/dataplat/dbatools | private/configurations/settings/azure.ps1 | PowerShell | mit | 2,763 | development | 1,119 | # Azure default tenant - can be guid or name
Set-DbatoolsConfig -FullName 'azure.tenantid' -Value $null -Initialize -Validation string -Handler { } -Description "Default Azure tenantid - can be guid or name"
# Azure default AppID for MFA
Set-DbatoolsConfig -FullName 'azure.appid' -Value $null -Initialize -Validation s... |
github | dataplat/dbatools | https://github.com/dataplat/dbatools | private/configurations/settings/computermanagement.ps1 | PowerShell | mit | 2,763 | development | 4,773 | <#
This is designed for all things that control how anything that caches acts
#>
# Sets the default timeout on bad connections
Set-DbatoolsConfig -FullName 'ComputerManagement.BadConnectionTimeout' -Value (New-TimeSpan -Minutes 15) -Initialize -Validation timespan -Handler { [Dataplat.Dbatools.Connection.ConnectionHos... |
github | dataplat/dbatools | https://github.com/dataplat/dbatools | private/configurations/settings/commands.ps1 | PowerShell | mit | 2,763 | development | 3,303 | # Write-DbaDbTableData: Settings for ConvertTo-DbaDataTable
Set-DbatoolsConfig -FullName 'commands.Write-DbaDbTableData.timespantype' -Value 'TotalMilliseconds' -Initialize -Validation string -Description "When passing random objects at Write-DbaDbTableData, it will convert them to a DataTable before writing it, using ... |
github | dataplat/dbatools | https://github.com/dataplat/dbatools | private/configurations/settings/tabexpansion.ps1 | PowerShell | mit | 2,763 | development | 2,889 | # Sets the default interval and timeout for TEPP updates
Set-DbatoolsConfig -FullName 'TabExpansion.UpdateInterval' -Value (New-TimeSpan -Minutes 3) -Initialize -Validation timespan -Handler { [Dataplat.Dbatools.TabExpansion.TabExpansionHost]::TeppUpdateInterval = $args[0] } -Description 'The frequency in which TEPP tr... |
github | dataplat/dbatools | https://github.com/dataplat/dbatools | private/configurations/settings/logging.ps1 | PowerShell | mit | 2,763 | development | 4,357 | <#
This is for all configuration values regarding the logging system
NOTES:
- All these configurations should have a handler, as the logging system relies entirely on static fields for performance reasons
- If you want to change the default values, change them both here AND in the C# library
#>
Set-DbatoolsConfig -Fu... |
github | dataplat/dbatools | https://github.com/dataplat/dbatools | private/configurations/settings/remoting.ps1 | PowerShell | mit | 2,763 | development | 2,477 | # Handles PowerShell Session scrapping timeout
Set-DbatoolsConfig -FullName 'PSRemoting.Sessions.ExpirationTimeout' -Value (New-TimeSpan -Minutes 5) -Initialize -Validation timespan -Handler { [Dataplat.Dbatools.Connection.ConnectionHost]::PSSessionTimeout = $args[0] } -Description 'The timeout interval for PowerShell ... |
github | dataplat/dbatools | https://github.com/dataplat/dbatools | private/configurations/settings/sql.ps1 | PowerShell | mit | 2,763 | development | 2,863 | # Controls the timeout on sql connects
Set-DbatoolsConfig -FullName 'sql.connection.timeout' -Value 15 -Initialize -Validation integerpositive -Handler { [Dataplat.Dbatools.Connection.ConnectionHost]::SqlConnectionTimeout = $args[0] } -Description "The number of seconds before sql server connection attempts are aborted... |
github | dataplat/dbatools | https://github.com/dataplat/dbatools | private/configurations/settings/paths.ps1 | PowerShell | mit | 2,763 | development | 5,874 | <#
This is designed for all paths you need configurations for.
#>
#region Weird Path Calculation Thingy
$temp = ([System.IO.Path]::GetTempPath()).TrimEnd("\")
$docs = $([Environment]::GetFolderPath("MyDocuments"))
# get crazy here to support multiple enviornments
if (-not $temp) {
if ($psVersionTable.Platform -e... |
github | dataplat/dbatools | https://github.com/dataplat/dbatools | private/configurations/settings/availabilitygroups.ps1 | PowerShell | mit | 2,763 | development | 1,284 | <#
This is designed for all things related to availability groups
#>
# Parameters related to the availability group:
# Sets the default ClusterType
Set-DbatoolsConfig -FullName 'AvailabilityGroups.Default.ClusterType' -Value 'Wsfc' -Initialize -Description 'Used to identify if the availability group is on a Windows ... |
github | dataplat/dbatools | https://github.com/dataplat/dbatools | private/configurations/validation/integerpositive.ps1 | PowerShell | mit | 2,763 | development | 578 | Register-DbatoolsConfigValidation -Name "integerpositive" -ScriptBlock {
param (
$Value
)
$Result = New-Object PSOBject -Property @{
Success = $True
Value = $null
Message = ""
}
try { [int]$number = $Value }
catch {
$Result.Message = "Not an integer: $... |
github | dataplat/dbatools | https://github.com/dataplat/dbatools | private/configurations/validation/integer.ps1 | PowerShell | mit | 2,763 | development | 431 | Register-DbatoolsConfigValidation -Name "integer" -ScriptBlock {
param (
$Value
)
$Result = New-Object PSOBject -Property @{
Success = $True
Value = $null
Message = ""
}
try { [int]$number = $Value }
catch {
$Result.Message = "Not an integer: $Value"
... |
github | dataplat/dbatools | https://github.com/dataplat/dbatools | private/configurations/validation/securestring.ps1 | PowerShell | mit | 2,763 | development | 625 | Register-DbatoolsConfigValidation -Name "securestring" -ScriptBlock {
param (
$Value
)
$Result = New-Object PSObject -Property @{
Success = $True
Value = $null
Message = ""
}
try {
if ($Value.GetType().FullName -ne "System.Security.SecureString") {
... |
github | dataplat/dbatools | https://github.com/dataplat/dbatools | private/configurations/validation/timespan.ps1 | PowerShell | mit | 2,763 | development | 441 | Register-DbatoolsConfigValidation -Name "timespan" -ScriptBlock {
param (
$Value
)
$Result = New-Object PSObject -Property @{
Success = $True
Value = $null
Message = ""
}
try { [timespan]$timespan = $Value }
catch {
$Result.Message = "Not a Timespan: $... |
github | dataplat/dbatools | https://github.com/dataplat/dbatools | private/configurations/validation/double.ps1 | PowerShell | mit | 2,763 | development | 431 | Register-DbatoolsConfigValidation -Name "double" -ScriptBlock {
param (
$Value
)
$Result = New-Object PSOBject -Property @{
Success = $True
Value = $null
Message = ""
}
try { [double]$number = $Value }
catch {
$Result.Message = "Not a double: $Value"
... |
github | dataplat/dbatools | https://github.com/dataplat/dbatools | private/configurations/validation/bool.ps1 | PowerShell | mit | 2,763 | development | 593 | Register-DbatoolsConfigValidation -Name "bool" -ScriptBlock {
param (
$Value
)
$Result = New-Object PSObject -Property @{
Success = $True
Value = $null
Message = ""
}
try {
if ($Value.GetType().FullName -ne "System.Boolean") {
$Result.Message = ... |
github | dataplat/dbatools | https://github.com/dataplat/dbatools | private/configurations/validation/integer0to9.ps1 | PowerShell | mit | 2,763 | development | 624 | Register-DbatoolsConfigValidation -Name "integer0to9" -ScriptBlock {
param (
$Value
)
$Result = New-Object PSOBject -Property @{
Success = $True
Value = $null
Message = ""
}
try { [int]$number = $Value }
catch {
$Result.Message = "Not an integer: $Valu... |
github | dataplat/dbatools | https://github.com/dataplat/dbatools | private/configurations/validation/long.ps1 | PowerShell | mit | 2,763 | development | 425 | Register-DbatoolsConfigValidation -Name "long" -ScriptBlock {
param (
$Value
)
$Result = New-Object PSOBject -Property @{
Success = $True
Value = $null
Message = ""
}
try { [long]$number = $Value }
catch {
$Result.Message = "Not a long: $Value"
... |
github | dataplat/dbatools | https://github.com/dataplat/dbatools | private/configurations/validation/sizestyle.ps1 | PowerShell | mit | 2,763 | development | 465 | Register-DbatoolsConfigValidation -Name "sizestyle" -ScriptBlock {
param (
$Value
)
$Result = New-Object PSObject -Property @{
Success = $True
Value = $null
Message = ""
}
try { [Dataplat.Dbatools.Utility.SizeStyle]$style = $Value }
catch {
$Result.Mes... |
github | dataplat/dbatools | https://github.com/dataplat/dbatools | private/configurations/validation/string.ps1 | PowerShell | mit | 2,763 | development | 861 | Register-DbatoolsConfigValidation -Name "string" -ScriptBlock {
param (
$Value
)
$Result = New-Object PSObject -Property @{
Success = $True
Value = $null
Message = ""
}
try {
# Seriously, this should work for almost anybody and anything
[string]$da... |
github | dataplat/dbatools | https://github.com/dataplat/dbatools | private/configurations/validation/datetime.ps1 | PowerShell | mit | 2,763 | development | 441 | Register-DbatoolsConfigValidation -Name "datetime" -ScriptBlock {
param (
$Value
)
$Result = New-Object PSObject -Property @{
Success = $True
Value = $null
Message = ""
}
try { [DateTime]$DateTime = $Value }
catch {
$Result.Message = "Not a DateTime: $... |
github | dataplat/dbatools | https://github.com/dataplat/dbatools | private/scripts/logfilescript.ps1 | PowerShell | mit | 2,763 | development | 5,758 | $scriptBlock = {
$script:___ScriptName = 'dbatools-logging'
#region Helper Functions
function Clean-ErrorXml {
[CmdletBinding()]
param (
$Path
)
$totalLength = $Null
$files = Get-ChildItem -Path $Path.FullName -Filter "dbatools_$($pid)_error_*.xml" | Sor... |
github | dataplat/dbatools | https://github.com/dataplat/dbatools | private/scripts/insertTepp.ps1 | PowerShell | mit | 2,763 | development | 8,335 | # this is just 143ms, worth it
if ($ExecutionContext.SessionState.InvokeCommand.GetCommand('TabExpansionPlusPlus\Register-ArgumentCompleter','Function,Cmdlet')) {
$script:TEPP = $true
} else {
$script:TEPP = $false
}
$functions = $executionContext.SessionState.InvokeCommand.GetCommands('*-Dba*', 'Function', $t... |
github | dataplat/dbatools | https://github.com/dataplat/dbatools | private/scripts/dbatools-maintenance.ps1 | PowerShell | mit | 2,763 | development | 1,757 | foreach ($item in (Get-ChildItem "$script:PSModuleRoot\private\maintenance" -File)) {
if ($script:serialimport) {
. $item.FullName
} else {
Import-Command -Path $item.FullName
}
}
$scriptBlock = {
$script:___ScriptName = 'dbatools-maintenance'
# Import module in a way where internal... |
github | dataplat/dbatools | https://github.com/dataplat/dbatools | private/scripts/cmdlets.ps1 | PowerShell | mit | 2,763 | development | 568 | <#
Registers the cmdlets published by this module.
Necessary for full hybrid module support.
#>
$commonParam = @{
HelpFile = "$($PSModuleRoot)\en-us\dbatools.dll-Help.xml"
Module = $ExecutionContext.SessionState.Module
}
Import-DbaCmdlet @commonParam -Name Write-Message -Type ([Dataplat.Dbatools.Commands.Wri... |
github | dataplat/dbatools | https://github.com/dataplat/dbatools | private/scripts/message-transforms.ps1 | PowerShell | mit | 2,763 | development | 667 | Register-DbaMessageTransform -TargetType 'Dataplat.Dbatools.Parameter.DbaInstanceParameter' -ScriptBlock {
$args[0].FullSmoName
}
Register-DbaMessageTransform -TargetType 'Microsoft.SqlServer.Management.Smo.Server' -ScriptBlock {
([Dataplat.Dbatools.Parameter.DbaInstanceParameter]$args[0]).FullSmoName
}
Regist... |
github | dataplat/dbatools | https://github.com/dataplat/dbatools | private/scripts/updateTeppAsync.ps1 | PowerShell | mit | 2,763 | development | 4,616 | if (-not ([Dataplat.Dbatools.TabExpansion.TabExpansionHost]::TeppAsyncDisabled -or [Dataplat.Dbatools.TabExpansion.TabExpansionHost]::TeppDisabled)) {
$scriptBlock = {
$script:___ScriptName = 'dbatools-teppasynccache'
# Defer module import to avoid collisions and reduce CPU impact
Start-Sle... |
github | dataplat/dbatools | https://github.com/dataplat/dbatools | bin/typealiases.ps1 | PowerShell | mit | 2,763 | development | 1,907 | # Obtain a reference to the TypeAccelerators type
$TAType = [psobject].Assembly.GetType("System.Management.Automation.TypeAccelerators")
# Define our type aliases
$TypeAliasTable = @{
DbaInstance = "Dataplat.Dbatools.Parameter.DbaInstanceParameter"
DbaCmConnectionParameter = "Dataplat.Dbatools.Par... |
github | dataplat/dbatools | https://github.com/dataplat/dbatools | bin/PSScriptAnalyzerRules.psd1 | PowerShell | mit | 2,763 | development | 2,502 | @{
Severity = @('Error')
IncludeRules = @(
'PSUseCompatibleSyntax',
'PSAvoidUsingCmdletAliases',
'PSAvoidDefaultValueSwitchParameter',
'PSReservedCmdletChar',
'PSReservedParams',
'PSAvoidUsingUserNameAndPassWordParams',
'PSAvoidUsingPlaintTextForPasswo... |
github | dataplat/dbatools | https://github.com/dataplat/dbatools | tests/Backup-DbaDatabase.Tests.ps1 | PowerShell | mit | 2,763 | development | 28,657 | #Requires -Module @{ ModuleName="Pester"; ModuleVersion="5.0" }
param(
$ModuleName = "dbatools",
$CommandName = "Backup-DbaDatabase",
$PSDefaultParameterValues = $TestConfig.Defaults
)
Describe $CommandName -Tag UnitTests {
Context "Parameter validation" {
It "Should have the expected parameter... |
github | dataplat/dbatools | https://github.com/dataplat/dbatools | tests/Get-DbatoolsChangeLog.Tests.ps1 | PowerShell | mit | 2,763 | development | 978 | #Requires -Module @{ ModuleName="Pester"; ModuleVersion="5.0" }
param(
$ModuleName = "dbatools",
$CommandName = "Get-DbatoolsChangeLog",
$PSDefaultParameterValues = $TestConfig.Defaults
)
Describe $CommandName -Tag UnitTests {
Context "Parameter validation" {
It "Should have the expected param... |
github | dataplat/dbatools | https://github.com/dataplat/dbatools | tests/Get-DbaSuspectPage.Tests.ps1 | PowerShell | mit | 2,763 | development | 2,673 | #Requires -Module @{ ModuleName="Pester"; ModuleVersion="5.0" }
param(
$ModuleName = "dbatools",
$CommandName = "Get-DbaSuspectPage",
$PSDefaultParameterValues = $TestConfig.Defaults
)
Describe $CommandName -Tag UnitTests {
Context "Parameter validation" {
It "Should have the expected paramete... |
github | dataplat/dbatools | https://github.com/dataplat/dbatools | tests/Set-DbaPrivilege.Tests.ps1 | PowerShell | mit | 2,763 | development | 3,454 | #Requires -Module @{ ModuleName="Pester"; ModuleVersion="5.0" }
param(
$ModuleName = "dbatools",
$CommandName = "Set-DbaPrivilege",
$PSDefaultParameterValues = $TestConfig.Defaults
)
Describe $CommandName -Tag UnitTests {
Context "Parameter validation" {
It "Should have the expected parameters... |
github | dataplat/dbatools | https://github.com/dataplat/dbatools | tests/Compare-DbaAgReplicaLogin.Tests.ps1 | PowerShell | mit | 2,763 | development | 934 | #Requires -Module @{ ModuleName="Pester"; ModuleVersion="5.0" }
param(
$ModuleName = "dbatools",
$CommandName = "Compare-DbaAgReplicaLogin",
$PSDefaultParameterValues = $TestConfig.Defaults
)
Describe $CommandName -Tag UnitTests {
Context "Parameter validation" {
It "Should have the expected p... |
github | dataplat/dbatools | https://github.com/dataplat/dbatools | tests/Get-DbaDbEncryption.Tests.ps1 | PowerShell | mit | 2,763 | development | 1,907 | #Requires -Module @{ ModuleName="Pester"; ModuleVersion="5.0" }
param(
$ModuleName = "dbatools",
$CommandName = "Get-DbaDbEncryption",
$PSDefaultParameterValues = $TestConfig.Defaults
)
Describe $CommandName -Tag UnitTests {
Context "Parameter validation" {
It "Should have the expected paramet... |
github | dataplat/dbatools | https://github.com/dataplat/dbatools | tests/Uninstall-DbaSqlWatch.Tests.ps1 | PowerShell | mit | 2,763 | development | 3,461 | #Requires -Module @{ ModuleName="Pester"; ModuleVersion="5.0" }
param(
$ModuleName = "dbatools",
$CommandName = "Uninstall-DbaSqlWatch",
$PSDefaultParameterValues = $TestConfig.Defaults
)
Describe $CommandName -Tag UnitTests {
Context "Parameter validation" {
It "Should have the expected param... |
github | dataplat/dbatools | https://github.com/dataplat/dbatools | tests/Get-DbaPfDataCollectorCounter.Tests.ps1 | PowerShell | mit | 2,763 | development | 1,350 | #Requires -Module @{ ModuleName="Pester"; ModuleVersion="5.0" }
param(
$ModuleName = "dbatools",
$CommandName = "Get-DbaPfDataCollectorCounter",
$PSDefaultParameterValues = $TestConfig.Defaults
)
Describe $CommandName -Tag UnitTests {
Context "Parameter validation" {
It "Should have the expect... |
github | dataplat/dbatools | https://github.com/dataplat/dbatools | tests/Set-DbaRgResourcePool.Tests.ps1 | PowerShell | mit | 2,763 | development | 8,581 | #Requires -Module @{ ModuleName="Pester"; ModuleVersion="5.0" }
param(
$ModuleName = "dbatools",
$CommandName = "Set-DbaRgResourcePool",
$PSDefaultParameterValues = $TestConfig.Defaults
)
Describe $CommandName -Tag UnitTests {
Context "Parameter validation" {
It "Should have the expected param... |
github | dataplat/dbatools | https://github.com/dataplat/dbatools | tests/Get-DbaRandomizedDataset.Tests.ps1 | PowerShell | mit | 2,763 | development | 1,203 | #Requires -Module @{ ModuleName="Pester"; ModuleVersion="5.0" }
param(
$ModuleName = "dbatools",
$CommandName = "Get-DbaRandomizedDataset",
$PSDefaultParameterValues = $TestConfig.Defaults
)
Describe $CommandName -Tag UnitTests {
Context "Parameter validation" {
It "Should have the expected pa... |
github | dataplat/dbatools | https://github.com/dataplat/dbatools | tests/Remove-DbaDbUser.Tests.ps1 | PowerShell | mit | 2,763 | development | 3,671 | #Requires -Module @{ ModuleName="Pester"; ModuleVersion="5.0" }
param(
$ModuleName = "dbatools",
$CommandName = "Remove-DbaDbUser",
$PSDefaultParameterValues = $TestConfig.Defaults
)
Describe $CommandName -Tag UnitTests {
Context "Parameter validation" {
It "Should have the expected parameters... |
github | dataplat/dbatools | https://github.com/dataplat/dbatools | tests/Import-DbaSpConfigure.Tests.ps1 | PowerShell | mit | 2,763 | development | 1,206 | #Requires -Module @{ ModuleName="Pester"; ModuleVersion="5.0" }
param(
$ModuleName = "dbatools",
$CommandName = "Import-DbaSpConfigure",
$PSDefaultParameterValues = $TestConfig.Defaults
)
Describe $CommandName -Tag UnitTests {
Context "Parameter validation" {
It "Should have the expected param... |
github | dataplat/dbatools | https://github.com/dataplat/dbatools | tests/Copy-DbaStartupProcedure.Tests.ps1 | PowerShell | mit | 2,763 | development | 3,188 | #Requires -Module @{ ModuleName="Pester"; ModuleVersion="5.0" }
param(
$ModuleName = "dbatools",
$CommandName = "Copy-DbaStartupProcedure",
$PSDefaultParameterValues = $TestConfig.Defaults
)
Describe $CommandName -Tag UnitTests {
Context "Parameter validation" {
It "Should have the expected pa... |
github | dataplat/dbatools | https://github.com/dataplat/dbatools | tests/Connect-DbaInstance.Tests.ps1 | PowerShell | mit | 2,763 | development | 22,973 | #Requires -Module @{ ModuleName="Pester"; ModuleVersion="5.0" }
param(
$ModuleName = "dbatools",
$CommandName = "Connect-DbaInstance",
$PSDefaultParameterValues = $TestConfig.Defaults
)
Describe $CommandName -Tag UnitTests {
Context "Parameter validation" {
It "Should have the expected paramete... |
github | dataplat/dbatools | https://github.com/dataplat/dbatools | tests/Get-DbaDbRestoreHistory.Tests.ps1 | PowerShell | mit | 2,763 | development | 10,631 | #Requires -Module @{ ModuleName="Pester"; ModuleVersion="5.0" }
param(
$ModuleName = "dbatools",
$CommandName = "Get-DbaDbRestoreHistory",
$PSDefaultParameterValues = $TestConfig.Defaults
)
Describe $CommandName -Tag UnitTests {
Context "Parameter validation" {
It "Should have the expected para... |
github | dataplat/dbatools | https://github.com/dataplat/dbatools | tests/Get-DbaRunningJob.Tests.ps1 | PowerShell | mit | 2,763 | development | 842 | #Requires -Module @{ ModuleName="Pester"; ModuleVersion="5.0" }
param(
$ModuleName = "dbatools",
$CommandName = "Get-DbaRunningJob",
$PSDefaultParameterValues = $TestConfig.Defaults
)
Describe $CommandName -Tag UnitTests {
Context "Parameter validation" {
It "Should have the expected parameter... |
github | dataplat/dbatools | https://github.com/dataplat/dbatools | tests/Copy-DbaResourceGovernor.Tests.ps1 | PowerShell | mit | 2,763 | development | 5,419 | #Requires -Module @{ ModuleName="Pester"; ModuleVersion="5.0" }
param(
$ModuleName = "dbatools",
$CommandName = "Copy-DbaResourceGovernor",
$PSDefaultParameterValues = $TestConfig.Defaults
)
Describe $CommandName -Tag UnitTests {
Context "Parameter validation" {
It "Should have the expected pa... |
github | dataplat/dbatools | https://github.com/dataplat/dbatools | tests/Get-DbaDbStoredProcedure.Tests.ps1 | PowerShell | mit | 2,763 | development | 5,686 | #Requires -Module @{ ModuleName="Pester"; ModuleVersion="5.0" }
param(
$ModuleName = "dbatools",
$CommandName = "Get-DbaDbStoredProcedure",
$PSDefaultParameterValues = $TestConfig.Defaults
)
Describe $CommandName -Tag UnitTests {
Context "Parameter validation" {
It "Should have the expected pa... |
github | dataplat/dbatools | https://github.com/dataplat/dbatools | tests/Get-DbaManagementObject.Tests.ps1 | PowerShell | mit | 2,763 | development | 1,476 | #Requires -Module @{ ModuleName="Pester"; ModuleVersion="5.0" }
param(
$ModuleName = "dbatools",
$CommandName = "Get-DbaManagementObject",
$PSDefaultParameterValues = $TestConfig.Defaults
)
Describe $CommandName -Tag UnitTests {
Context "Parameter validation" {
It "Should have the expected par... |
github | dataplat/dbatools | https://github.com/dataplat/dbatools | tests/Set-DbaAgentOperator.Tests.ps1 | PowerShell | mit | 2,763 | development | 2,419 | #Requires -Module @{ ModuleName="Pester"; ModuleVersion="5.0" }
param(
$ModuleName = "dbatools",
$CommandName = "Set-DbaAgentOperator",
$PSDefaultParameterValues = $TestConfig.Defaults
)
Describe $CommandName -Tag UnitTests {
Context "Parameter validation" {
It "Should have the expected parame... |
github | dataplat/dbatools | https://github.com/dataplat/dbatools | tests/Copy-DbaDbCertificate.Tests.ps1 | PowerShell | mit | 2,763 | development | 4,240 | #Requires -Module @{ ModuleName="Pester"; ModuleVersion="5.0" }
param(
$ModuleName = "dbatools",
$CommandName = "Copy-DbaDbCertificate",
$PSDefaultParameterValues = $TestConfig.Defaults
)
Describe $CommandName -Tag UnitTests {
Context "Parameter validation" {
It "Should have the expected param... |
github | dataplat/dbatools | https://github.com/dataplat/dbatools | tests/Get-DbaDbccMemoryStatus.Tests.ps1 | PowerShell | mit | 2,763 | development | 2,454 | #Requires -Module @{ ModuleName="Pester"; ModuleVersion="5.0" }
param(
$ModuleName = "dbatools",
$CommandName = "Get-DbaDbccMemoryStatus",
$PSDefaultParameterValues = $TestConfig.Defaults
)
Describe $CommandName -Tag UnitTests {
Context "Parameter validation" {
It "Should have the expected par... |
github | dataplat/dbatools | https://github.com/dataplat/dbatools | tests/ConvertTo-DbaTimeline.Tests.ps1 | PowerShell | mit | 2,763 | development | 2,366 | #Requires -Module @{ ModuleName="Pester"; ModuleVersion="5.0" }
param(
$ModuleName = "dbatools",
$CommandName = "ConvertTo-DbaTimeline",
$PSDefaultParameterValues = $TestConfig.Defaults
)
Describe $CommandName -Tag UnitTests {
Context "Parameter validation" {
It "Should have the expected parame... |
github | dataplat/dbatools | https://github.com/dataplat/dbatools | tests/Find-DbaUserObject.Tests.ps1 | PowerShell | mit | 2,763 | development | 2,870 | #Requires -Module @{ ModuleName="Pester"; ModuleVersion="5.0" }
param(
$ModuleName = "dbatools",
$CommandName = "Find-DbaUserObject",
$PSDefaultParameterValues = $TestConfig.Defaults
)
Describe $CommandName -Tag UnitTests {
Context "Parameter validation" {
It "Should have the expected paramete... |
github | dataplat/dbatools | https://github.com/dataplat/dbatools | tests/Get-DbaWsfcAvailableDisk.Tests.ps1 | PowerShell | mit | 2,763 | development | 816 | #Requires -Module @{ ModuleName="Pester"; ModuleVersion="5.0" }
param(
$ModuleName = "dbatools",
$CommandName = "Get-DbaWsfcAvailableDisk",
$PSDefaultParameterValues = $TestConfig.Defaults
)
Describe $CommandName -Tag UnitTests {
Context "Parameter validation" {
It "Should have the expected pa... |
github | dataplat/dbatools | https://github.com/dataplat/dbatools | tests/Get-DbaReplPublication.Tests.ps1 | PowerShell | mit | 2,763 | development | 3,666 | #Requires -Module @{ ModuleName="Pester"; ModuleVersion="5.0" }
param(
$ModuleName = "dbatools",
$CommandName = "Get-DbaReplPublication",
$PSDefaultParameterValues = $TestConfig.Defaults
)
Describe $CommandName -Tag UnitTests {
Context "Parameter validation" {
It "Should have the expected para... |
github | dataplat/dbatools | https://github.com/dataplat/dbatools | tests/Disconnect-DbaInstance.Tests.ps1 | PowerShell | mit | 2,763 | development | 2,060 | #Requires -Module @{ ModuleName="Pester"; ModuleVersion="5.0" }
param(
$ModuleName = "dbatools",
$CommandName = "Disconnect-DbaInstance",
$PSDefaultParameterValues = $TestConfig.Defaults
)
Describe $CommandName -Tag UnitTests {
Context "Parameter validation" {
It "Should have the expected para... |
github | dataplat/dbatools | https://github.com/dataplat/dbatools | tests/Test-DbaDbCompression.Tests.ps1 | PowerShell | mit | 2,763 | development | 7,675 | #Requires -Module @{ ModuleName="Pester"; ModuleVersion="5.0" }
param(
$ModuleName = "dbatools",
$CommandName = "Test-DbaDbCompression",
$PSDefaultParameterValues = $TestConfig.Defaults
)
Describe $CommandName -Tag UnitTests {
Context "Parameter validation" {
It "Should have the expected parame... |
github | dataplat/dbatools | https://github.com/dataplat/dbatools | tests/Set-DbaAvailabilityGroup.Tests.ps1 | PowerShell | mit | 2,763 | development | 3,268 | #Requires -Module @{ ModuleName="Pester"; ModuleVersion="5.0" }
param(
$ModuleName = "dbatools",
$CommandName = "Set-DbaAvailabilityGroup",
$PSDefaultParameterValues = $TestConfig.Defaults
)
Describe $CommandName -Tag UnitTests {
Context "Parameter validation" {
It "Should have the expected pa... |
github | dataplat/dbatools | https://github.com/dataplat/dbatools | tests/Start-DbaDbEncryption.Tests.ps1 | PowerShell | mit | 2,763 | development | 7,305 | #Requires -Module @{ ModuleName="Pester"; ModuleVersion="5.0" }
param(
$ModuleName = "dbatools",
$CommandName = "Start-DbaDbEncryption",
$PSDefaultParameterValues = $TestConfig.Defaults
)
Describe $CommandName -Tag UnitTests {
Context "Parameter validation" {
It "Should have the expected parame... |
github | dataplat/dbatools | https://github.com/dataplat/dbatools | tests/Get-DbaPowerPlan.Tests.ps1 | PowerShell | mit | 2,763 | development | 1,118 | #Requires -Module @{ ModuleName="Pester"; ModuleVersion="5.0" }
param(
$ModuleName = "dbatools",
$CommandName = "Get-DbaPowerPlan",
$PSDefaultParameterValues = $TestConfig.Defaults
)
Describe $CommandName -Tag UnitTests {
Context "Parameter validation" {
It "Should have the expected parameters... |
github | dataplat/dbatools | https://github.com/dataplat/dbatools | tests/Copy-DbaXESessionTemplate.Tests.ps1 | PowerShell | mit | 2,763 | development | 2,017 | #Requires -Module @{ ModuleName="Pester"; ModuleVersion="5.0" }
param(
$ModuleName = "dbatools",
$CommandName = "Copy-DbaXESessionTemplate",
$PSDefaultParameterValues = $TestConfig.Defaults
)
Describe $CommandName -Tag UnitTests {
Context "Parameter validation" {
It "Should have the expected p... |
github | dataplat/dbatools | https://github.com/dataplat/dbatools | tests/Set-DbatoolsConfig.Tests.ps1 | PowerShell | mit | 2,763 | development | 1,932 | #Requires -Module @{ ModuleName="Pester"; ModuleVersion="5.0" }
param(
$ModuleName = "dbatools",
$CommandName = "Set-DbatoolsConfig",
$PSDefaultParameterValues = $TestConfig.Defaults
)
Describe $CommandName -Tag UnitTests {
Context "Parameter validation" {
It "Should have the expected paramete... |
github | dataplat/dbatools | https://github.com/dataplat/dbatools | tests/Set-DbaDbRecoveryModel.Tests.ps1 | PowerShell | mit | 2,763 | development | 3,034 | #Requires -Module @{ ModuleName="Pester"; ModuleVersion="5.0" }
param(
$ModuleName = "dbatools",
$CommandName = "Set-DbaDbRecoveryModel",
$PSDefaultParameterValues = $TestConfig.Defaults
)
Describe $CommandName -Tag UnitTests {
Context "Parameter validation" {
It "Should have the expected para... |
github | dataplat/dbatools | https://github.com/dataplat/dbatools | tests/Get-DbaModule.Tests.ps1 | PowerShell | mit | 2,763 | development | 3,133 | #Requires -Module @{ ModuleName="Pester"; ModuleVersion="5.0" }
param(
$ModuleName = "dbatools",
$CommandName = "Get-DbaModule",
$PSDefaultParameterValues = $TestConfig.Defaults
)
Describe $CommandName -Tag UnitTests {
Context "Parameter validation" {
It "Should have the expected parameters" {... |
github | dataplat/dbatools | https://github.com/dataplat/dbatools | tests/Find-DbaOrphanedFile.Tests.ps1 | PowerShell | mit | 2,763 | development | 6,818 | #Requires -Module @{ ModuleName="Pester"; ModuleVersion="5.0" }
param(
$ModuleName = "dbatools",
$CommandName = "Find-DbaOrphanedFile",
$PSDefaultParameterValues = $TestConfig.Defaults
)
Describe $CommandName -Tag UnitTests {
Context "Parameter validation" {
It "Should have the expected parame... |
github | dataplat/dbatools | https://github.com/dataplat/dbatools | tests/New-DbaDbMailAccount.Tests.ps1 | PowerShell | mit | 2,763 | development | 6,061 | #Requires -Module @{ ModuleName="Pester"; ModuleVersion="5.0" }
param(
$ModuleName = "dbatools",
$CommandName = "New-DbaDbMailAccount",
$PSDefaultParameterValues = $TestConfig.Defaults
)
Describe $CommandName -Tag UnitTests {
Context "Parameter validation" {
It "Should have the expected paramet... |
github | dataplat/dbatools | https://github.com/dataplat/dbatools | tests/Remove-DbaAgentJobCategory.Tests.ps1 | PowerShell | mit | 2,763 | development | 3,466 | #Requires -Module @{ ModuleName="Pester"; ModuleVersion="5.0" }
param(
$ModuleName = "dbatools",
$CommandName = "Remove-DbaAgentJobCategory",
$PSDefaultParameterValues = $TestConfig.Defaults
)
Describe $CommandName -Tag UnitTests {
Context "Parameter validation" {
It "Should have the expected ... |
github | dataplat/dbatools | https://github.com/dataplat/dbatools | tests/Invoke-DbaDbTransfer.Tests.ps1 | PowerShell | mit | 2,763 | development | 7,101 | #Requires -Module @{ ModuleName="Pester"; ModuleVersion="5.0" }
param(
$ModuleName = "dbatools",
$CommandName = "Invoke-DbaDbTransfer",
$PSDefaultParameterValues = $TestConfig.Defaults
)
Describe $CommandName -Tag UnitTests {
Context "Parameter validation" {
It "Should have the expected parame... |
github | dataplat/dbatools | https://github.com/dataplat/dbatools | tests/Get-DbaDbServiceBrokerService.Tests.ps1 | PowerShell | mit | 2,763 | development | 3,391 | #Requires -Module @{ ModuleName="Pester"; ModuleVersion="5.0" }
param(
$ModuleName = "dbatools",
$CommandName = "Get-DbaDbServiceBrokerService",
$PSDefaultParameterValues = $TestConfig.Defaults
)
Describe $CommandName -Tag UnitTests {
Context "Parameter validation" {
It "Should have the expect... |
github | dataplat/dbatools | https://github.com/dataplat/dbatools | tests/Clear-DbaConnectionPool.Tests.ps1 | PowerShell | mit | 2,763 | development | 1,016 | #Requires -Module @{ ModuleName="Pester"; ModuleVersion="5.0" }
param(
$ModuleName = "dbatools",
$CommandName = "Clear-DbaConnectionPool",
$PSDefaultParameterValues = $TestConfig.Defaults
)
Describe $CommandName -Tag UnitTests {
Context "Parameter validation" {
It "Should have the expected par... |
github | dataplat/dbatools | https://github.com/dataplat/dbatools | tests/Get-DbaWsfcResourceGroup.Tests.ps1 | PowerShell | mit | 2,763 | development | 840 | #Requires -Module @{ ModuleName="Pester"; ModuleVersion="5.0" }
param(
$ModuleName = "dbatools",
$CommandName = "Get-DbaWsfcResourceGroup",
$PSDefaultParameterValues = $TestConfig.Defaults
)
Describe $CommandName -Tag UnitTests {
Context "Parameter validation" {
It "Should have the expected pa... |
github | dataplat/dbatools | https://github.com/dataplat/dbatools | tests/Remove-DbaAgentOperator.Tests.ps1 | PowerShell | mit | 2,763 | development | 3,459 | #Requires -Module @{ ModuleName="Pester"; ModuleVersion="5.0" }
param(
$ModuleName = "dbatools",
$CommandName = "Remove-DbaAgentOperator",
$PSDefaultParameterValues = $TestConfig.Defaults
)
Describe $CommandName -Tag UnitTests {
Context "Parameter validation" {
It "Should have the expected par... |
github | dataplat/dbatools | https://github.com/dataplat/dbatools | tests/Test-DbaDiskAllocation.Tests.ps1 | PowerShell | mit | 2,763 | development | 1,358 | #Requires -Module @{ ModuleName="Pester"; ModuleVersion="5.0" }
param(
$ModuleName = "dbatools",
$CommandName = "Test-DbaDiskAllocation",
$PSDefaultParameterValues = $TestConfig.Defaults
)
Describe $CommandName -Tag UnitTests {
Context "Parameter validation" {
It "Should have the expected para... |
github | dataplat/dbatools | https://github.com/dataplat/dbatools | tests/Watch-DbaDbLogin.Tests.ps1 | PowerShell | mit | 2,763 | development | 3,110 | #Requires -Module @{ ModuleName="Pester"; ModuleVersion="5.0" }
param(
$ModuleName = "dbatools",
$CommandName = "Watch-DbaDbLogin",
$PSDefaultParameterValues = $TestConfig.Defaults
)
Describe $CommandName -Tag UnitTests {
Context "Parameter validation" {
It "Should have the expected parameters... |
github | dataplat/dbatools | https://github.com/dataplat/dbatools | tests/Get-DbaMaxMemory.Tests.ps1 | PowerShell | mit | 2,763 | development | 3,648 | #Requires -Module @{ ModuleName="Pester"; ModuleVersion="5.0" }
param(
$ModuleName = "dbatools",
$CommandName = "Get-DbaMaxMemory",
$PSDefaultParameterValues = $TestConfig.Defaults
)
Describe $CommandName -Tag UnitTests {
Context "Parameter validation" {
It "Should have the expected parameters... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.