mirror of
https://github.com/benclaussen/NetboxPS.git
synced 2025-12-13 18:02:29 +00:00
Move imports for choices.json files
This commit is contained in:
parent
9a91803014
commit
bac691c196
1 changed files with 11 additions and 4 deletions
|
|
@ -244,12 +244,9 @@ Describe "Helpers tests" -Tag 'Core', 'Helpers' -Fixture {
|
||||||
}
|
}
|
||||||
|
|
||||||
Context -Name "Validating choices" -Fixture {
|
Context -Name "Validating choices" -Fixture {
|
||||||
$script:NetboxConfig.Choices.Virtualization = (Get-Content "$PSScriptRoot\VirtualizationChoices.json" -ErrorAction Stop | ConvertFrom-Json)
|
|
||||||
$script:NetboxConfig.Choices.IPAM = (Get-Content "$PSScriptRoot\IPAMChoices.json" -ErrorAction Stop | ConvertFrom-Json)
|
|
||||||
$script:NetboxConfig.Choices.DCIM = (Get-Content "$PSScriptRoot\DCIMChoices.json" -ErrorAction Stop | ConvertFrom-Json)
|
|
||||||
|
|
||||||
Context -Name "Virtualization choices" -Fixture {
|
Context -Name "Virtualization choices" -Fixture {
|
||||||
$MajorObject = 'Virtualization'
|
$MajorObject = 'Virtualization'
|
||||||
|
$script:NetboxConfig.Choices.Virtualization = (Get-Content "$PSScriptRoot\VirtualizationChoices.json" -ErrorAction Stop | ConvertFrom-Json)
|
||||||
|
|
||||||
It "Should return a valid integer for status when provided a name" {
|
It "Should return a valid integer for status when provided a name" {
|
||||||
$Result = ValidateChoice -MajorObject $MajorObject -ChoiceName 'virtual-machine:status' -ProvidedValue 'Active'
|
$Result = ValidateChoice -MajorObject $MajorObject -ChoiceName 'virtual-machine:status' -ProvidedValue 'Active'
|
||||||
|
|
@ -274,6 +271,7 @@ Describe "Helpers tests" -Tag 'Core', 'Helpers' -Fixture {
|
||||||
|
|
||||||
Context -Name "IPAM choices" -Fixture {
|
Context -Name "IPAM choices" -Fixture {
|
||||||
$MajorObject = 'IPAM'
|
$MajorObject = 'IPAM'
|
||||||
|
$script:NetboxConfig.Choices.IPAM = (Get-Content "$PSScriptRoot\IPAMChoices.json" -ErrorAction Stop | ConvertFrom-Json)
|
||||||
|
|
||||||
Context -Name "aggregate:family" -Fixture {
|
Context -Name "aggregate:family" -Fixture {
|
||||||
$ChoiceName = 'aggregate:family'
|
$ChoiceName = 'aggregate:family'
|
||||||
|
|
@ -470,6 +468,7 @@ Describe "Helpers tests" -Tag 'Core', 'Helpers' -Fixture {
|
||||||
|
|
||||||
Context -Name "DCIM choices" -Fixture {
|
Context -Name "DCIM choices" -Fixture {
|
||||||
$MajorObject = 'DCIM'
|
$MajorObject = 'DCIM'
|
||||||
|
$script:NetboxConfig.Choices.DCIM = (Get-Content "$PSScriptRoot\DCIMChoices.json" -ErrorAction Stop | ConvertFrom-Json)
|
||||||
|
|
||||||
Context -Name "device:face" -Fixture {
|
Context -Name "device:face" -Fixture {
|
||||||
$ChoiceName = 'device:face'
|
$ChoiceName = 'device:face'
|
||||||
|
|
@ -717,3 +716,11 @@ Describe "Helpers tests" -Tag 'Core', 'Helpers' -Fixture {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue