Skip to content

Commit

Permalink
Resolving capitalization
Browse files Browse the repository at this point in the history
  • Loading branch information
NEllis280 committed Sep 21, 2021
1 parent f12e095 commit d7ae68e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion source/DSCResources/DSC_CMBoundaries/DSC_CMBoundaries.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ function Get-TargetResource
'AdSite' { '1' }
'IPv6Prefix' { '2' }
'IPRange' { '3' }
'VPN' { '4' }
'Vpn' { '4' }
}

if ($Type -eq 'IPSubnet')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Configuration Example
Ensure = 'Present'
}

CMBoundaries ExampleVPN
CMBoundaries ExampleVpn
{
SiteCode = 'Lab'
DisplayName = 'VPN AutoDetect'
Expand All @@ -45,7 +45,7 @@ Configuration Example
}


CMBoundaries ExampleVPNDescription
CMBoundaries ExampleVpnDescription
{
SiteCode = 'Lab'
DisplayName = 'VPN ConnectionDescription'
Expand All @@ -54,7 +54,7 @@ Configuration Example
Ensure = 'Present'
}

CMBoundaries ExampleVPNName
CMBoundaries ExampleVpnName
{
SiteCode = 'Lab'
DisplayName = 'VPN ConnectionName'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ function ConvertTo-CimBoundaries
'1' { 'AdSite' }
'2' { 'IPv6Prefix' }
'3' { 'IPRange' }
'4' { 'VPN' }
'4' { 'Vpn' }
}

$cimProperties = @{
Expand Down
10 changes: 5 additions & 5 deletions tests/Unit/CMBoundaries.tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ try
Ensure = 'Absent'
}

$inputVPNPresent = @{
$inputVpnPresent = @{
SiteCode = 'Lab'
DisplayName = 'VPN 1'
Type = 'VPN'
Expand All @@ -90,7 +90,7 @@ try
Value = '2001:0DB8:0000:000b'
}

$boundaryVPNReturn = @(
$boundaryVpnReturn = @(
@{
BoundaryId = 1677726
BoundaryType = 4
Expand Down Expand Up @@ -223,10 +223,10 @@ try
$result.BoundaryId | Should -Be -ExpectedValue '1677726'
}

It 'Should return desired result for VPN return' {
Mock -CommandName Get-CMBoundary -MockWith { $boundaryVPNReturn }
It 'Should return desired result for Vpn return' {
Mock -CommandName Get-CMBoundary -MockWith { $boundaryVpnReturn }

$result = Get-TargetResource @inputVPNPresent
$result = Get-TargetResource @inputVpnPresent
$result | Should -BeOfType System.Collections.HashTable
$result.SiteCode | Should -Be -ExpectedValue 'Lab'
$result.DisplayName | Should -Be -ExpectedValue 'VPN 1'
Expand Down

0 comments on commit d7ae68e

Please sign in to comment.