Skip to content

Commit

Permalink
name to full name using gpt-4o-mini
Browse files Browse the repository at this point in the history
  • Loading branch information
potatoqualitee committed Oct 18, 2024
1 parent 29e6002 commit 2b69f17
Show file tree
Hide file tree
Showing 408 changed files with 3,233 additions and 3,229 deletions.
40 changes: 20 additions & 20 deletions tests/Add-DbaAgDatabase.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -11,41 +11,41 @@ Describe "Add-DbaAgDatabase" {
BeforeAll {
$CommandUnderTest = Get-Command Add-DbaAgDatabase
}
It "Should have SqlInstance as a non-mandatory parameter of type DbaInstanceParameter" {
$CommandUnderTest | Should -HaveParameter SqlInstance -Type DbaInstanceParameter -Mandatory:$false
It "Should have SqlInstance as a non-mandatory parameter of type Dataplat.Dbatools.Parameter.DbaInstanceParameter" {
$CommandUnderTest | Should -HaveParameter SqlInstance -Type Dataplat.Dbatools.Parameter.DbaInstanceParameter -Mandatory:$false
}
It "Should have SqlCredential as a non-mandatory parameter of type PSCredential" {
$CommandUnderTest | Should -HaveParameter SqlCredential -Type PSCredential -Mandatory:$false
It "Should have SqlCredential as a non-mandatory parameter of type System.Management.Automation.PSCredential" {
$CommandUnderTest | Should -HaveParameter SqlCredential -Type System.Management.Automation.PSCredential -Mandatory:$false
}
It "Should have AvailabilityGroup as a non-mandatory parameter of type String" {
$CommandUnderTest | Should -HaveParameter AvailabilityGroup -Type String -Mandatory:$false
It "Should have AvailabilityGroup as a non-mandatory parameter of type System.String" {
$CommandUnderTest | Should -HaveParameter AvailabilityGroup -Type System.String -Mandatory:$false
}
It "Should have Database as a non-mandatory parameter of type String[]" {
$CommandUnderTest | Should -HaveParameter Database -Type String[] -Mandatory:$false
It "Should have Database as a non-mandatory parameter of type System.String[]" {
$CommandUnderTest | Should -HaveParameter Database -Type System.String[] -Mandatory:$false
}
It "Should have Secondary as a non-mandatory parameter of type DbaInstanceParameter[]" {
$CommandUnderTest | Should -HaveParameter Secondary -Type DbaInstanceParameter[] -Mandatory:$false
It "Should have Secondary as a non-mandatory parameter of type Dataplat.Dbatools.Parameter.DbaInstanceParameter[]" {
$CommandUnderTest | Should -HaveParameter Secondary -Type Dataplat.Dbatools.Parameter.DbaInstanceParameter[] -Mandatory:$false
}
It "Should have SecondarySqlCredential as a non-mandatory parameter of type PSCredential" {
$CommandUnderTest | Should -HaveParameter SecondarySqlCredential -Type PSCredential -Mandatory:$false
It "Should have SecondarySqlCredential as a non-mandatory parameter of type System.Management.Automation.PSCredential" {
$CommandUnderTest | Should -HaveParameter SecondarySqlCredential -Type System.Management.Automation.PSCredential -Mandatory:$false
}
It "Should have InputObject as a non-mandatory parameter of type Microsoft.SqlServer.Management.Smo.Database[]" {
$CommandUnderTest | Should -HaveParameter InputObject -Type Microsoft.SqlServer.Management.Smo.Database[] -Mandatory:$false
}
It "Should have SeedingMode as a non-mandatory parameter of type String" {
$CommandUnderTest | Should -HaveParameter SeedingMode -Type String -Mandatory:$false
It "Should have SeedingMode as a non-mandatory parameter of type System.String" {
$CommandUnderTest | Should -HaveParameter SeedingMode -Type System.String -Mandatory:$false
}
It "Should have SharedPath as a non-mandatory parameter of type String" {
$CommandUnderTest | Should -HaveParameter SharedPath -Type String -Mandatory:$false
It "Should have SharedPath as a non-mandatory parameter of type System.String" {
$CommandUnderTest | Should -HaveParameter SharedPath -Type System.String -Mandatory:$false
}
It "Should have UseLastBackup as a non-mandatory switch parameter" {
$CommandUnderTest | Should -HaveParameter UseLastBackup -Type Switch -Mandatory:$false
$CommandUnderTest | Should -HaveParameter UseLastBackup -Type System.Management.Automation.Switch -Mandatory:$false
}
It "Should have AdvancedBackupParams as a non-mandatory parameter of type Hashtable" {
$CommandUnderTest | Should -HaveParameter AdvancedBackupParams -Type Hashtable -Mandatory:$false
It "Should have AdvancedBackupParams as a non-mandatory parameter of type System.Collections.Hashtable" {
$CommandUnderTest | Should -HaveParameter AdvancedBackupParams -Type System.Collections.Hashtable -Mandatory:$false
}
It "Should have EnableException as a non-mandatory switch parameter" {
$CommandUnderTest | Should -HaveParameter EnableException -Type Switch -Mandatory:$false
$CommandUnderTest | Should -HaveParameter EnableException -Type System.Management.Automation.Switch -Mandatory:$false
}
}

Expand Down
40 changes: 20 additions & 20 deletions tests/Add-DbaAgListener.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -11,41 +11,41 @@ Describe "Add-DbaAgListener" {
BeforeAll {
$CommandUnderTest = Get-Command Add-DbaAgListener
}
It "Should have SqlInstance as a non-mandatory parameter of type DbaInstanceParameter[]" {
$CommandUnderTest | Should -HaveParameter SqlInstance -Type DbaInstanceParameter[] -Mandatory:$false
It "Should have SqlInstance as a non-mandatory parameter of type Dataplat.Dbatools.Parameter.DbaInstanceParameter[]" {
$CommandUnderTest | Should -HaveParameter SqlInstance -Type Dataplat.Dbatools.Parameter.DbaInstanceParameter[] -Mandatory:$false
}
It "Should have SqlCredential as a non-mandatory parameter of type PSCredential" {
$CommandUnderTest | Should -HaveParameter SqlCredential -Type PSCredential -Mandatory:$false
It "Should have SqlCredential as a non-mandatory parameter of type System.Management.Automation.PSCredential" {
$CommandUnderTest | Should -HaveParameter SqlCredential -Type System.Management.Automation.PSCredential -Mandatory:$false
}
It "Should have AvailabilityGroup as a non-mandatory parameter of type String[]" {
$CommandUnderTest | Should -HaveParameter AvailabilityGroup -Type String[] -Mandatory:$false
It "Should have AvailabilityGroup as a non-mandatory parameter of type System.String[]" {
$CommandUnderTest | Should -HaveParameter AvailabilityGroup -Type System.String[] -Mandatory:$false
}
It "Should have Name as a non-mandatory parameter of type String" {
$CommandUnderTest | Should -HaveParameter Name -Type String -Mandatory:$false
It "Should have Name as a non-mandatory parameter of type System.String" {
$CommandUnderTest | Should -HaveParameter Name -Type System.String -Mandatory:$false
}
It "Should have IPAddress as a non-mandatory parameter of type IPAddress[]" {
$CommandUnderTest | Should -HaveParameter IPAddress -Type IPAddress[] -Mandatory:$false
It "Should have IPAddress as a non-mandatory parameter of type System.Net.IPAddress[]" {
$CommandUnderTest | Should -HaveParameter IPAddress -Type System.Net.IPAddress[] -Mandatory:$false
}
It "Should have SubnetIP as a non-mandatory parameter of type IPAddress[]" {
$CommandUnderTest | Should -HaveParameter SubnetIP -Type IPAddress[] -Mandatory:$false
It "Should have SubnetIP as a non-mandatory parameter of type System.Net.IPAddress[]" {
$CommandUnderTest | Should -HaveParameter SubnetIP -Type System.Net.IPAddress[] -Mandatory:$false
}
It "Should have SubnetMask as a non-mandatory parameter of type IPAddress[]" {
$CommandUnderTest | Should -HaveParameter SubnetMask -Type IPAddress[] -Mandatory:$false
It "Should have SubnetMask as a non-mandatory parameter of type System.Net.IPAddress[]" {
$CommandUnderTest | Should -HaveParameter SubnetMask -Type System.Net.IPAddress[] -Mandatory:$false
}
It "Should have Port as a non-mandatory parameter of type Int32" {
$CommandUnderTest | Should -HaveParameter Port -Type Int32 -Mandatory:$false
It "Should have Port as a non-mandatory parameter of type System.Int32" {
$CommandUnderTest | Should -HaveParameter Port -Type System.Int32 -Mandatory:$false
}
It "Should have Dhcp as a non-mandatory switch parameter" {
$CommandUnderTest | Should -HaveParameter Dhcp -Type Switch -Mandatory:$false
$CommandUnderTest | Should -HaveParameter Dhcp -Type System.Management.Automation.SwitchParameter -Mandatory:$false
}
It "Should have Passthru as a non-mandatory switch parameter" {
$CommandUnderTest | Should -HaveParameter Passthru -Type Switch -Mandatory:$false
$CommandUnderTest | Should -HaveParameter Passthru -Type System.Management.Automation.SwitchParameter -Mandatory:$false
}
It "Should have InputObject as a non-mandatory parameter of type AvailabilityGroup[]" {
It "Should have InputObject as a non-mandatory parameter of type Microsoft.SqlServer.Management.Smo.AvailabilityGroup[]" {
$CommandUnderTest | Should -HaveParameter InputObject -Type Microsoft.SqlServer.Management.Smo.AvailabilityGroup[] -Mandatory:$false
}
It "Should have EnableException as a non-mandatory switch parameter" {
$CommandUnderTest | Should -HaveParameter EnableException -Type Switch -Mandatory:$false
$CommandUnderTest | Should -HaveParameter EnableException -Type System.Management.Automation.SwitchParameter -Mandatory:$false
}
}

Expand Down
38 changes: 19 additions & 19 deletions tests/Add-DbaAgReplica.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -11,64 +11,64 @@ Describe "Add-DbaAgReplica" {
$CommandUnderTest = Get-Command Add-DbaAgReplica
}
It "Should have SqlInstance parameter" {
$CommandUnderTest | Should -HaveParameter SqlInstance -Type DbaInstanceParameter[]
$CommandUnderTest | Should -HaveParameter SqlInstance -Type Dataplat.Dbatools.Parameter.DbaInstanceParameter[]
}
It "Should have SqlCredential parameter" {
$CommandUnderTest | Should -HaveParameter SqlCredential -Type PSCredential
$CommandUnderTest | Should -HaveParameter SqlCredential -Type System.Management.Automation.PSCredential
}
It "Should have Name parameter" {
$CommandUnderTest | Should -HaveParameter Name -Type String
$CommandUnderTest | Should -HaveParameter Name -Type System.String
}
It "Should have ClusterType parameter" {
$CommandUnderTest | Should -HaveParameter ClusterType -Type String
$CommandUnderTest | Should -HaveParameter ClusterType -Type System.String
}
It "Should have AvailabilityMode parameter" {
$CommandUnderTest | Should -HaveParameter AvailabilityMode -Type String
$CommandUnderTest | Should -HaveParameter AvailabilityMode -Type System.String
}
It "Should have FailoverMode parameter" {
$CommandUnderTest | Should -HaveParameter FailoverMode -Type String
$CommandUnderTest | Should -HaveParameter FailoverMode -Type System.String
}
It "Should have BackupPriority parameter" {
$CommandUnderTest | Should -HaveParameter BackupPriority -Type Int32
$CommandUnderTest | Should -HaveParameter BackupPriority -Type System.Int32
}
It "Should have ConnectionModeInPrimaryRole parameter" {
$CommandUnderTest | Should -HaveParameter ConnectionModeInPrimaryRole -Type String
$CommandUnderTest | Should -HaveParameter ConnectionModeInPrimaryRole -Type System.String
}
It "Should have ConnectionModeInSecondaryRole parameter" {
$CommandUnderTest | Should -HaveParameter ConnectionModeInSecondaryRole -Type String
$CommandUnderTest | Should -HaveParameter ConnectionModeInSecondaryRole -Type System.String
}
It "Should have SeedingMode parameter" {
$CommandUnderTest | Should -HaveParameter SeedingMode -Type String
$CommandUnderTest | Should -HaveParameter SeedingMode -Type System.String
}
It "Should have Endpoint parameter" {
$CommandUnderTest | Should -HaveParameter Endpoint -Type String
$CommandUnderTest | Should -HaveParameter Endpoint -Type System.String
}
It "Should have EndpointUrl parameter" {
$CommandUnderTest | Should -HaveParameter EndpointUrl -Type String[]
$CommandUnderTest | Should -HaveParameter EndpointUrl -Type System.String[]
}
It "Should have Passthru parameter" {
$CommandUnderTest | Should -HaveParameter Passthru -Type Switch
$CommandUnderTest | Should -HaveParameter Passthru -Type System.Management.Automation.SwitchParameter
}
It "Should have ReadOnlyRoutingList parameter" {
$CommandUnderTest | Should -HaveParameter ReadOnlyRoutingList -Type String[]
$CommandUnderTest | Should -HaveParameter ReadOnlyRoutingList -Type System.String[]
}
It "Should have ReadonlyRoutingConnectionUrl parameter" {
$CommandUnderTest | Should -HaveParameter ReadonlyRoutingConnectionUrl -Type String
$CommandUnderTest | Should -HaveParameter ReadonlyRoutingConnectionUrl -Type System.String
}
It "Should have Certificate parameter" {
$CommandUnderTest | Should -HaveParameter Certificate -Type String
$CommandUnderTest | Should -HaveParameter Certificate -Type System.String
}
It "Should have ConfigureXESession parameter" {
$CommandUnderTest | Should -HaveParameter ConfigureXESession -Type Switch
$CommandUnderTest | Should -HaveParameter ConfigureXESession -Type System.Management.Automation.SwitchParameter
}
It "Should have SessionTimeout parameter" {
$CommandUnderTest | Should -HaveParameter SessionTimeout -Type Int32
$CommandUnderTest | Should -HaveParameter SessionTimeout -Type System.Int32
}
It "Should have InputObject parameter" {
$CommandUnderTest | Should -HaveParameter InputObject -Type Microsoft.SqlServer.Management.Smo.AvailabilityGroup
}
It "Should have EnableException parameter" {
$CommandUnderTest | Should -HaveParameter EnableException -Type Switch
$CommandUnderTest | Should -HaveParameter EnableException -Type System.Management.Automation.SwitchParameter
}
}

Expand Down
16 changes: 8 additions & 8 deletions tests/Add-DbaComputerCertificate.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -12,31 +12,31 @@ Describe "Add-DbaComputerCertificate" {
$CommandUnderTest = Get-Command Add-DbaComputerCertificate
}
It "Should have ComputerName as a parameter" {
$CommandUnderTest | Should -HaveParameter ComputerName -Type DbaInstanceParameter[]
$CommandUnderTest | Should -HaveParameter ComputerName -Type Dataplat.Dbatools.Parameter.DbaInstanceParameter[]
}
It "Should have Credential as a parameter" {
$CommandUnderTest | Should -HaveParameter Credential -Type PSCredential
$CommandUnderTest | Should -HaveParameter Credential -Type System.Management.Automation.PSCredential
}
It "Should have SecurePassword as a parameter" {
$CommandUnderTest | Should -HaveParameter SecurePassword -Type SecureString
$CommandUnderTest | Should -HaveParameter SecurePassword -Type System.Security.SecureString
}
It "Should have Certificate as a parameter" {
$CommandUnderTest | Should -HaveParameter Certificate -Type System.Security.Cryptography.X509Certificates.X509Certificate2[]
}
It "Should have Path as a parameter" {
$CommandUnderTest | Should -HaveParameter Path -Type String
$CommandUnderTest | Should -HaveParameter Path -Type System.String
}
It "Should have Store as a parameter" {
$CommandUnderTest | Should -HaveParameter Store -Type String
$CommandUnderTest | Should -HaveParameter Store -Type System.String
}
It "Should have Folder as a parameter" {
$CommandUnderTest | Should -HaveParameter Folder -Type String
$CommandUnderTest | Should -HaveParameter Folder -Type System.String
}
It "Should have Flag as a parameter" {
$CommandUnderTest | Should -HaveParameter Flag -Type String[]
$CommandUnderTest | Should -HaveParameter Flag -Type System.String[]
}
It "Should have EnableException as a parameter" {
$CommandUnderTest | Should -HaveParameter EnableException -Type Switch
$CommandUnderTest | Should -HaveParameter EnableException -Type System.Management.Automation.SwitchParameter
}
}

Expand Down
10 changes: 5 additions & 5 deletions tests/Add-DbaDbMirrorMonitor.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,19 @@ Describe "Add-DbaDbMirrorMonitor" {
$CommandUnderTest = Get-Command Add-DbaDbMirrorMonitor
}
It "Should have SqlInstance as a parameter" {
$CommandUnderTest | Should -HaveParameter SqlInstance -Type DbaInstanceParameter[]
$CommandUnderTest | Should -HaveParameter SqlInstance -Type Dataplat.Dbatools.Parameter.DbaInstanceParameter[]
}
It "Should have SqlCredential as a parameter" {
$CommandUnderTest | Should -HaveParameter SqlCredential -Type PSCredential
$CommandUnderTest | Should -HaveParameter SqlCredential -Type System.Management.Automation.PSCredential
}
It "Should have EnableException as a parameter" {
$CommandUnderTest | Should -HaveParameter EnableException -Type Switch
$CommandUnderTest | Should -HaveParameter EnableException -Type System.Management.Automation.SwitchParameter
}
It "Should have WhatIf as a parameter" {
$CommandUnderTest | Should -HaveParameter WhatIf -Type Switch
$CommandUnderTest | Should -HaveParameter WhatIf -Type System.Management.Automation.SwitchParameter
}
It "Should have Confirm as a parameter" {
$CommandUnderTest | Should -HaveParameter Confirm -Type Switch
$CommandUnderTest | Should -HaveParameter Confirm -Type System.Management.Automation.SwitchParameter
}
}

Expand Down
Loading

0 comments on commit 2b69f17

Please sign in to comment.