Skip to content

Commit

Permalink
lez see
Browse files Browse the repository at this point in the history
  • Loading branch information
potatoqualitee committed Oct 25, 2024
1 parent b5be793 commit a09937f
Show file tree
Hide file tree
Showing 27 changed files with 85 additions and 29 deletions.
10 changes: 7 additions & 3 deletions .aider/prompts/conventions.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,9 @@ Describe "Get-DbaDatabase" -Tag "UnitTests" {
$expected += @(
"SqlInstance",
"SqlCredential",
"Database"
"Database",
"Confirm",
"WhatIf"
)
}
Expand Down Expand Up @@ -169,9 +171,11 @@ Describe "Get-DbaDatabase" -Tag "IntegrationTests" {
}
```

## DO NOT
## Additional instructions

- DO NOT use `$MyInvocation.MyCommand.Name` to get command names
- DO NOT use the old `knownParameters` validation approach
- DO NOT include loose code outside of proper test blocks
- DO NOT remove comments like "#TestConfig.instance3" or "#$TestConfig.instance2 for appveyor"
- DO NOT use $_ DO use $PSItem instead
- DO NOT use $_ DO use $PSItem instead
- Parameter validation is ALWAYS tagged as a Unit Test
4 changes: 3 additions & 1 deletion tests/Add-DbaAgDatabase.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ Describe "Add-DbaAgDatabase" -Tag "UnitTests" {
"SharedPath",
"UseLastBackup",
"AdvancedBackupParams",
"EnableException"
"EnableException",
"Confirm",
"WhatIf"
)
}

Expand Down
4 changes: 3 additions & 1 deletion tests/Add-DbaAgListener.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ Describe "Add-DbaAgListener" -Tag "UnitTests" {
"Dhcp",
"Passthru",
"InputObject",
"EnableException"
"EnableException",
"Confirm",
"WhatIf"
)
}

Expand Down
4 changes: 3 additions & 1 deletion tests/Add-DbaAgReplica.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ Describe "Add-DbaAgReplica" -Tag "UnitTests" {
"ConfigureXESession",
"SessionTimeout",
"InputObject",
"EnableException"
"EnableException",
"Confirm",
"WhatIf"
)
}

Expand Down
4 changes: 3 additions & 1 deletion tests/Add-DbaComputerCertificate.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ Describe "Add-DbaComputerCertificate" -Tag "UnitTests" {
"Store",
"Folder",
"Flag",
"EnableException"
"EnableException",
"Confirm",
"WhatIf"
)
}

Expand Down
4 changes: 3 additions & 1 deletion tests/Add-DbaDbMirrorMonitor.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ Describe "Add-DbaDbMirrorMonitor" -Tag "UnitTests" {
$expected += @(
"SqlInstance",
"SqlCredential",
"EnableException"
"EnableException",
"Confirm",
"WhatIf"
)
}

Expand Down
4 changes: 3 additions & 1 deletion tests/Add-DbaDbRoleMember.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ Describe "Add-DbaDbRoleMember" -Tag "UnitTests" {
"Role",
"Member",
"InputObject",
"EnableException"
"EnableException",
"Confirm",
"WhatIf"
)
}

Expand Down
4 changes: 3 additions & 1 deletion tests/Add-DbaExtendedProperty.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ Describe "Add-DbaExtendedProperty" -Tag "UnitTests" {
"Name",
"Value",
"InputObject",
"EnableException"
"EnableException",
"Confirm",
"WhatIf"
)
}

Expand Down
4 changes: 3 additions & 1 deletion tests/Add-DbaPfDataCollectorCounter.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ Describe "Add-DbaPfDataCollectorCounter" -Tag "UnitTests" {
"Collector",
"Counter",
"InputObject",
"EnableException"
"EnableException",
"Confirm",
"WhatIf"
)
}

Expand Down
4 changes: 3 additions & 1 deletion tests/Add-DbaRegServer.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ Describe "Add-DbaRegServer" -Tag "UnitTests" {
"OtherParams",
"InputObject",
"ServerObject",
"EnableException"
"EnableException",
"Confirm",
"WhatIf"
)
}

Expand Down
4 changes: 3 additions & 1 deletion tests/Add-DbaRegServerGroup.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ Describe "Add-DbaRegServerGroup" -Tag "UnitTests" {
"Description",
"Group",
"InputObject",
"EnableException"
"EnableException",
"Confirm",
"WhatIf"
)
}

Expand Down
4 changes: 3 additions & 1 deletion tests/Add-DbaServerRoleMember.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ Describe "Add-DbaServerRoleMember" -Tag "UnitTests" {
"Login",
"Role",
"InputObject",
"EnableException"
"EnableException",
"Confirm",
"WhatIf"
)
}

Expand Down
4 changes: 3 additions & 1 deletion tests/Backup-DbaComputerCertificate.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ Describe "Backup-DbaComputerCertificate" -Tag "UnitTests" {
"Path",
"FilePath",
"Type",
"EnableException"
"EnableException",
"Confirm",
"WhatIf"
)
}

Expand Down
4 changes: 3 additions & 1 deletion tests/Backup-DbaDbCertificate.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ Describe "Backup-DbaDbCertificate" -Tag "UnitTests" {
"Path",
"Suffix",
"InputObject",
"EnableException"
"EnableException",
"Confirm",
"WhatIf"
)
}

Expand Down
4 changes: 3 additions & 1 deletion tests/Backup-DbaServiceMasterKey.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ Describe "Backup-DbaServiceMasterKey" -Tag "UnitTests" {
"KeyCredential",
"SecurePassword",
"Path",
"EnableException"
"EnableException",
"Confirm",
"WhatIf"
)
}

Expand Down
4 changes: 3 additions & 1 deletion tests/Clear-DbaConnectionPool.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ Describe "Clear-DbaConnectionPool" -Tag "UnitTests" {
$expected += @(
"ComputerName",
"Credential",
"EnableException"
"EnableException",
"Confirm",
"WhatIf"
)
}

Expand Down
4 changes: 3 additions & 1 deletion tests/Clear-DbaLatchStatistics.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ Describe "Clear-DbaLatchStatistics" -Tag "UnitTests" {
$expected += @(
"SqlInstance",
"SqlCredential",
"EnableException"
"EnableException",
"Confirm",
"WhatIf"
)
}

Expand Down
4 changes: 3 additions & 1 deletion tests/Clear-DbaPlanCache.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ Describe "Clear-DbaPlanCache" -Tag "UnitTests" {
"SqlCredential",
"Threshold",
"InputObject",
"EnableException"
"EnableException",
"Confirm",
"WhatIf"
)
}

Expand Down
4 changes: 3 additions & 1 deletion tests/Clear-DbaWaitStatistics.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ Describe "Clear-DbaWaitStatistics" -Tag "UnitTests" {
$expected += @(
"SqlInstance",
"SqlCredential",
"EnableException"
"EnableException",
"Confirm",
"WhatIf"
)
}

Expand Down
4 changes: 3 additions & 1 deletion tests/Convert-DbaLsn.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ Describe "Convert-DbaLSN" -Tag "UnitTests" {

$expected += @(
"LSN",
"EnableException"
"EnableException",
"Confirm",
"WhatIf"
)
}

Expand Down
4 changes: 3 additions & 1 deletion tests/Convert-DbaMaskingValue.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ Describe "Convert-DbaMaskingValue" -Tag "UnitTests" {
"Value",
"DataType",
"Nullable",
"EnableException"
"EnableException",
"Confirm",
"WhatIf"
)
}

Expand Down
4 changes: 3 additions & 1 deletion tests/ConvertTo-DbaTimeline.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ Describe "ConvertTo-DbaTimeline" -Tag "UnitTests" {
$expected += @(
"InputObject",
"ExcludeRowLabel",
"EnableException"
"EnableException",
"Confirm",
"WhatIf"
)
}

Expand Down
4 changes: 3 additions & 1 deletion tests/ConvertTo-DbaXESession.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ Describe "ConvertTo-DbaXESession" -Tag "UnitTests" {
"InputObject",
"Name",
"OutputScriptOnly",
"EnableException"
"EnableException",
"Confirm",
"WhatIf"
)
}

Expand Down
4 changes: 3 additions & 1 deletion tests/Copy-DbaAgentAlert.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ Describe "Copy-DbaAgentAlert" -Tag "UnitTests" {
"ExcludeAlert",
"IncludeDefaults",
"Force",
"EnableException"
"EnableException",
"Confirm",
"WhatIf"
)
}

Expand Down
4 changes: 3 additions & 1 deletion tests/Copy-DbaAgentJob.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ Describe "Copy-DbaAgentJob" -Tag "IntegrationTests" {
"DisableOnDestination",
"Force",
"InputObject",
"EnableException"
"EnableException",
"Confirm",
"WhatIf"
)
}

Expand Down
4 changes: 3 additions & 1 deletion tests/Copy-DbaAgentJobCategory.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ Describe "Copy-DbaAgentJobCategory" -Tag "IntegrationTests" {
"AgentCategory",
"OperatorCategory",
"Force",
"EnableException"
"EnableException",
"Confirm",
"WhatIf"
)
}

Expand Down
4 changes: 3 additions & 1 deletion tests/Copy-DbaAgentOperator.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ Describe "Copy-DbaAgentOperator" -Tag "UnitTests" {
"Operator",
"ExcludeOperator",
"Force",
"EnableException"
"EnableException",
"Confirm",
"WhatIf"
)
}

Expand Down

0 comments on commit a09937f

Please sign in to comment.