Skip to content

Commit

Permalink
install pip
Browse files Browse the repository at this point in the history
  • Loading branch information
potatoqualitee committed Oct 28, 2024
1 parent 0f817f0 commit 55efb3c
Show file tree
Hide file tree
Showing 48 changed files with 740 additions and 743 deletions.
3 changes: 3 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ configuration: "Debug"

build_script:
- ps: Set-Service wuauserv -StartupType Manual #otherwise, choco command exits with code 1058
- cmd: pip install aider-chat # Install aider-chat

version: 2.1.{build}

Expand All @@ -19,6 +20,8 @@ clone_depth: 100

# Set build info
environment:
PYTHON: "C:\\Python39" # or specify the path to the latest Python version
PATH: "C:\\Python39;C:\\Python39\\Scripts;%PATH%"
environment: development
version: 2.1.$(appveyor_build_number)
appveyor_rdp_password: 2odCuiKmYiem
Expand Down
36 changes: 18 additions & 18 deletions tests/Copy-DbaAgentAlert.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,25 @@ param(
)

Describe "Copy-DbaAgentAlert" -Tag "UnitTests" {
Context "Parameter validation" {
BeforeAll {
$command = Get-Command Copy-DbaAgentAlert
$expected = $TestConfig.CommonParameters
$expected += @(
"Source",
"SourceSqlCredential",
"Destination",
"DestinationSqlCredential",
"Alert",
"ExcludeAlert",
"IncludeDefaults",
"Force",
"EnableException",
"Confirm",
"WhatIf"
)
}
BeforeAll {
$command = Get-Command Copy-DbaAgentAlert
$expected = $TestConfig.CommonParameters
$expected += @(
"Source",
"SourceSqlCredential",
"Destination",
"DestinationSqlCredential",
"Alert",
"ExcludeAlert",
"IncludeDefaults",
"Force",
"EnableException",
"Confirm",
"WhatIf"
)
}

Context "Parameter validation" {
It "Has parameter: <_>" -ForEach $expected {
$command | Should -HaveParameter $PSItem
}
Expand Down
37 changes: 17 additions & 20 deletions tests/Copy-DbaAgentJob.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,23 @@ param(

Describe "Copy-DbaAgentJob" -Tag "IntegrationTests" {
BeforeAll {
$command = Get-Command Copy-DbaAgentJob
$expected = $TestConfig.CommonParameters
$expected += @(
"Source",
"SourceSqlCredential",
"Destination",
"DestinationSqlCredential",
"Job",
"ExcludeJob",
"DisableOnSource",
"DisableOnDestination",
"Force",
"InputObject",
"EnableException",
"Confirm",
"WhatIf"
)
$null = New-DbaAgentJob -SqlInstance $TestConfig.instance2 -Job dbatoolsci_copyjob
$null = New-DbaAgentJob -SqlInstance $TestConfig.instance2 -Job dbatoolsci_copyjob_disabled
$sourcejobs = Get-DbaAgentJob -SqlInstance $TestConfig.instance2
Expand All @@ -17,26 +34,6 @@ Describe "Copy-DbaAgentJob" -Tag "IntegrationTests" {
}

Context "Parameter validation" {
BeforeAll {
$command = Get-Command Copy-DbaAgentJob
$expected = $TestConfig.CommonParameters
$expected += @(
"Source",
"SourceSqlCredential",
"Destination",
"DestinationSqlCredential",
"Job",
"ExcludeJob",
"DisableOnSource",
"DisableOnDestination",
"Force",
"InputObject",
"EnableException",
"Confirm",
"WhatIf"
)
}

It "Has parameter: <_>" -ForEach $expected {
$command | Should -HaveParameter $PSItem
}
Expand Down
39 changes: 18 additions & 21 deletions tests/Copy-DbaAgentJobCategory.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -6,33 +6,30 @@ param(

Describe "Copy-DbaAgentJobCategory" -Tag "IntegrationTests" {
BeforeAll {
$null = New-DbaAgentJobCategory -SqlInstance $TestConfig.instance2 -Category 'dbatoolsci test category'
$command = Get-Command Copy-DbaAgentJobCategory

$expected = $TestConfig.CommonParameters
$expected += @(
"Source",
"SourceSqlCredential",
"Destination",
"DestinationSqlCredential",
"CategoryType",
"JobCategory",
"AgentCategory",
"OperatorCategory",
"Force",
"EnableException",
"Confirm",
"WhatIf"
)
}

AfterAll {
$null = Remove-DbaAgentJobCategory -SqlInstance $TestConfig.instance2 -Category 'dbatoolsci test category' -Confirm:$false
}

Context "Parameter validation" {
BeforeAll {
$command = Get-Command Copy-DbaAgentJobCategory

$expected = $TestConfig.CommonParameters
$expected += @(
"Source",
"SourceSqlCredential",
"Destination",
"DestinationSqlCredential",
"CategoryType",
"JobCategory",
"AgentCategory",
"OperatorCategory",
"Force",
"EnableException",
"Confirm",
"WhatIf"
)
}

It "Has parameter: <_>" -ForEach $expected {
$command | Should -HaveParameter $PSItem
}
Expand Down
34 changes: 17 additions & 17 deletions tests/Copy-DbaAgentOperator.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,24 @@ param(
)

Describe "Copy-DbaAgentOperator" -Tag "UnitTests" {
Context "Parameter validation" {
BeforeAll {
$command = Get-Command Copy-DbaAgentOperator
$expected = $TestConfig.CommonParameters
$expected += @(
"Source",
"SourceSqlCredential",
"Destination",
"DestinationSqlCredential",
"Operator",
"ExcludeOperator",
"Force",
"EnableException",
"Confirm",
"WhatIf"
)
}
BeforeAll {
$command = Get-Command Copy-DbaAgentOperator
$expected = $TestConfig.CommonParameters
$expected += @(
"Source",
"SourceSqlCredential",
"Destination",
"DestinationSqlCredential",
"Operator",
"ExcludeOperator",
"Force",
"EnableException",
"Confirm",
"WhatIf"
)
}

Context "Parameter validation" {
It "Has parameter: <_>" -ForEach $expected {
$command | Should -HaveParameter $PSItem
}
Expand Down
34 changes: 17 additions & 17 deletions tests/Copy-DbaAgentProxy.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,24 @@ param(
)

Describe "Copy-DbaAgentProxy" -Tag "UnitTests" {
Context "Parameter validation" {
BeforeAll {
$command = Get-Command Copy-DbaAgentProxy
$expected = $TestConfig.CommonParameters
$expected += @(
"Source",
"SourceSqlCredential",
"Destination",
"DestinationSqlCredential",
"ProxyAccount",
"ExcludeProxyAccount",
"Force",
"EnableException",
"Confirm",
"WhatIf"
)
}
BeforeAll {
$command = Get-Command Copy-DbaAgentProxy
$expected = $TestConfig.CommonParameters
$expected += @(
"Source",
"SourceSqlCredential",
"Destination",
"DestinationSqlCredential",
"ProxyAccount",
"ExcludeProxyAccount",
"Force",
"EnableException",
"Confirm",
"WhatIf"
)
}

Context "Parameter validation" {
It "Has parameter: <_>" -ForEach $expected {
$command | Should -HaveParameter $PSItem
}
Expand Down
36 changes: 18 additions & 18 deletions tests/Copy-DbaAgentSchedule.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,25 @@ param(
)

Describe "Copy-DbaAgentSchedule" -Tag "UnitTests" {
Context "Parameter validation" {
BeforeAll {
$command = Get-Command Copy-DbaAgentSchedule
$expected = $TestConfig.CommonParameters
$expected += @(
"Source",
"SourceSqlCredential",
"Destination",
"DestinationSqlCredential",
"Schedule",
"Id",
"InputObject",
"Force",
"EnableException",
"Confirm",
"WhatIf"
)
}
BeforeAll {
$command = Get-Command Copy-DbaAgentSchedule
$expected = $TestConfig.CommonParameters
$expected += @(
"Source",
"SourceSqlCredential",
"Destination",
"DestinationSqlCredential",
"Schedule",
"Id",
"InputObject",
"Force",
"EnableException",
"Confirm",
"WhatIf"
)
}

Context "Parameter validation" {
It "Has parameter: <_>" -ForEach $expected {
$command | Should -HaveParameter $PSItem
}
Expand Down
38 changes: 19 additions & 19 deletions tests/Copy-DbaAgentServer.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,25 @@ param(
)

Describe "Copy-DbaAgentServer" -Tag "UnitTests" {
Context "Parameter validation" {
BeforeAll {
$command = Get-Command Copy-DbaAgentServer
$expected = $TestConfig.CommonParameters
$expected += @(
"Source",
"SourceSqlCredential",
"Destination",
"DestinationSqlCredential",
"DisableJobsOnDestination",
"DisableJobsOnSource",
"ExcludeServerProperties",
"Force",
"EnableException",
"Confirm",
"WhatIf"
)
}
BeforeAll {
$command = Get-Command Copy-DbaAgentServer
$expected = $TestConfig.CommonParameters
$expected += @(
"Source",
"SourceSqlCredential",
"Destination",
"DestinationSqlCredential",
"DisableJobsOnDestination",
"DisableJobsOnSource",
"ExcludeServerProperties",
"Force",
"EnableException",
"Confirm",
"WhatIf"
)
}

Context "Parameter validation" {
It "Has parameter: <_>" -ForEach $expected {
$command | Should -HaveParameter $PSItem
}
Expand All @@ -33,4 +33,4 @@ Describe "Copy-DbaAgentServer" -Tag "UnitTests" {
Compare-Object -ReferenceObject $expected -DifferenceObject $hasParams | Should -BeNullOrEmpty
}
}
}
}
32 changes: 16 additions & 16 deletions tests/Copy-DbaBackupDevice.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,23 @@ param(
Write-Host -Object "Running $PSCommandPath" -ForegroundColor Cyan

Describe "Copy-DbaBackupDevice" -Tag "UnitTests" {
Context "Parameter validation" {
BeforeAll {
$command = Get-Command Copy-DbaBackupDevice
$expected = $TestConfig.CommonParameters
$expected += @(
"Source",
"SourceSqlCredential",
"Destination",
"DestinationSqlCredential",
"BackupDevice",
"Force",
"EnableException",
"Confirm",
"WhatIf"
)
}
BeforeAll {
$command = Get-Command Copy-DbaBackupDevice
$expected = $TestConfig.CommonParameters
$expected += @(
"Source",
"SourceSqlCredential",
"Destination",
"DestinationSqlCredential",
"BackupDevice",
"Force",
"EnableException",
"Confirm",
"WhatIf"
)
}

Context "Parameter validation" {
It "Has parameter: <_>" -ForEach $expected {
$command | Should -HaveParameter $PSItem
}
Expand Down
Loading

0 comments on commit 55efb3c

Please sign in to comment.