From 0fd856883a554b0fca2bbaf22c2d2a5a4811933f Mon Sep 17 00:00:00 2001 From: Johan Ljunggren Date: Mon, 30 Jul 2018 13:55:29 +0200 Subject: [PATCH] xWebAdministration: Minor typo updates (#388) - Update section header for WebApplicationHandler in README. - Fix tests for helper function `Get-LocalizedData` in Helper.Tests.ps1 that referenced the wrong path. --- README.md | 7 ++++++- Tests/Unit/Helper.Tests.ps1 | 6 +++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 0ac42063f..fba001522 100644 --- a/README.md +++ b/README.md @@ -215,7 +215,7 @@ Please check out common DSC Resources [contributing guidelines](https://github.c * **SslFlags**: SslFlags for the application: The acceptable values for this property are: `''`, `Ssl`, `SslNegotiateCert`, `SslRequireCert`, `Ssl128` * **EnabledProtocols**: EnabledProtocols for the application. The acceptable values for this property are: `http`, `https`, `net.tcp`, `net.msmq`, `net.pipe` -#### WebApplicationHandler +### WebApplicationHandler * **[String] Ensure** _(Write)_: Indicates if the application handler exists. Set this property to `Absent` to ensure that the application handler does not exist. Default value is 'Present'. { *Present* | Absent } @@ -316,6 +316,11 @@ This resource manages the IIS configuration section locking (overrideMode) to co ### Unreleased +* Changes to xWebAdministration + * Update section header for WebApplicationHandler in README. + * Fix tests for helper function `Get-LocalizedData` in Helper.Tests.ps1 + that referenced the wrong path. + ### 2.1.0.0 * Added new resources **xWebConfigProperty** and **xWebConfigPropertyCollection** extending functionality provided by **xWebConfigKeyValue**, addresses #249. diff --git a/Tests/Unit/Helper.Tests.ps1 b/Tests/Unit/Helper.Tests.ps1 index f8ec65b7c..b0be37538 100644 --- a/Tests/Unit/Helper.Tests.ps1 +++ b/Tests/Unit/Helper.Tests.ps1 @@ -496,18 +496,18 @@ try return 'en-US' } -Verifiable - { Get-LocalizedData -ResourceName 'DummyResource' -ResourcePath ..\..\DSCResources\MSFT_xWebApplicationHandler\en-us\MSFT_xWebApplicationHandler.strings.psd1} | Should Not Throw + { Get-LocalizedData -ResourceName 'DummyResource' -ResourcePath '..\..\DSCResources\MSFT_WebApplicationHandler\en-us\MSFT_WebApplicationHandler.strings.psd1'} | Should Not Throw } It 'Should call Get-LocalizedData and fallback to en-US if input language does not exist' { Mock -CommandName Test-Path -MockWith {$false} -Verifiable Mock -CommandName Join-Path -MockWith { - '..\..\DSCResources\MSFT_xWebApplicationHandler\en-us\Dummy.strings.psd1\DummyPath' + '..\..\DSCResources\MSFT_WebApplicationHandler\en-us\Dummy.strings.psd1' } -Verifiable Mock -CommandName Import-LocalizedData -Verifiable - { Get-LocalizedData -ResourceName 'DummyResource' -ResourcePath ..\..\DSCResources\MSFT_xWebApplicationHandler\en-us\Dummy.strings.psd1} | Should -Not -Throw + { Get-LocalizedData -ResourceName 'DummyResource' -ResourcePath '..\..\DSCResources\MSFT_WebApplicationHandler\en-us\Dummy.strings.psd1' } | Should -Not -Throw Assert-MockCalled -CommandName Join-Path -Exactly -Times 2 -Scope It Assert-MockCalled -CommandName Test-Path -Exactly -Times 1 -Scope It