Skip to content

Commit

Permalink
Merge pull request #84 from PowerShell/dev
Browse files Browse the repository at this point in the history
Release of version 3.3.0.0 of ActiveDirectoryCSDsc
  • Loading branch information
kwirkykat authored May 15, 2019
2 parents 9614a48 + 02c0bb1 commit ba0aecc
Show file tree
Hide file tree
Showing 20 changed files with 1,183 additions and 373 deletions.
3 changes: 2 additions & 1 deletion .MetaTestOptIn.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@
"Common Tests - Custom Script Analyzer Rules",
"Common Tests - Validate Example Files To Be Published",
"Common Tests - Validate Markdown Links",
"Common Tests - Relative Path Length"
"Common Tests - Relative Path Length",
"Common Tests - Validate Localization"
]
26 changes: 8 additions & 18 deletions ActiveDirectoryCSDsc.psd1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@{
# Version number of this module.
moduleVersion = '3.2.0.0'
moduleVersion = '3.3.0.0'

# ID used to uniquely identify this module
GUID = 'f8ddd7fc-c6d6-469e-8a80-c96efabe2fcc'
Expand Down Expand Up @@ -62,26 +62,16 @@
# IconUri = ''

# ReleaseNotes of this module
ReleaseNotes = '- Added "DscResourcesToExport" to manifest to improve information in
PowerShell Gallery - fixes [Issue 68](https://github.com/PowerShell/ActiveDirectoryCSDsc/issues/68).
- Removed unused CAType variables and references in AdcsOnlineResponder - fixes
[issue 52](https://github.com/PowerShell/ActiveDirectoryCSDsc/issues/52).
- Updated Examples to enable publising to PowerShell Gallery - fixes
[issue 54](https://github.com/PowerShell/ActiveDirectoryCSDsc/issues/54).
- Cleaned up property alignment in module manifest file.
- Added new resource AdcsOcspExtension - see [Issue 70](https://github.com/PowerShell/ActiveDirectoryCSDsc/issues/70).
- Added new ActiveDirectoryCSDsc.CommonHelper.psm1 helper module and unit test.
- Added stub function to /Tests/TestHelpers (ADCSStub.psm1) so Pester tests
can run without having to install ADCSAdministration module.
- Converted module to auto-documentation Wiki - fixes [Issue 53](https://github.com/PowerShell/ActiveDirectoryCSDsc/issues/53).
- Enabled Example publishing to PSGallery.
- Moved change log to CHANGELOG.MD.
- Opted into Common Tests "Validate Example Files To Be Published",
"Validate Markdown Links" and "Relative Path Length".
- Correct AppVeyor `Invoke-AppveyorAfterTestTask` - fixes [Issue 73](https://github.com/PowerShell/ActiveDirectoryCSDsc/issues/73).
ReleaseNotes = '- Remove reference to StorageDsc in README.md - fixes [Issue 76](https://github.com/PowerShell/ActiveDirectoryCSDsc/issues/76).
- Combined all `ActiveDirectoryCSDsc.ResourceHelper` module functions into
`ActiveDirectoryCSDsc.Common` module and renamed to `ActiveDirectoryCSDsc.CommonHelper`
module.
- Opted into Common Tests "Common Tests - Validate Localization" -
fixes [Issue 82](https://github.com/PowerShell/ActiveDirectoryCSDsc/issues/82).
'
} # End of PSData hashtable
} # End of PrivateData hashtable
}


9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@

## Unreleased

## 3.3.0.0

- Remove reference to StorageDsc in README.md - fixes [Issue #76](https://github.com/PowerShell/ActiveDirectoryCSDsc/issues/76).
- Combined all `ActiveDirectoryCSDsc.ResourceHelper` module functions into
`ActiveDirectoryCSDsc.Common` module and renamed to `ActiveDirectoryCSDsc.CommonHelper`
module.
- Opted into Common Tests 'Common Tests - Validate Localization' -
fixes [Issue #82](https://github.com/PowerShell/ActiveDirectoryCSDsc/issues/82).

## 3.2.0.0

- Added 'DscResourcesToExport' to manifest to improve information in
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
$modulePath = Join-Path -Path (Split-Path -Path (Split-Path -Path $PSScriptRoot -Parent) -Parent) -ChildPath 'Modules'

# Import the ADCS Deployment Resource Helper Module.
# Import the ADCS Deployment Resource Common Module.
Import-Module -Name (Join-Path -Path $modulePath `
-ChildPath (Join-Path -Path 'ActiveDirectoryCSDsc.ResourceHelper' `
-ChildPath 'ActiveDirectoryCSDsc.ResourceHelper.psm1'))
-ChildPath (Join-Path -Path 'ActiveDirectoryCSDsc.Common' `
-ChildPath 'ActiveDirectoryCSDsc.Common.psm1'))

# Import Localization Strings.
$LocalizedData = Get-LocalizedData `
-ResourceName 'MSFT_AdcsCertificationAuthority' `
-ResourcePath (Split-Path -Parent $script:MyInvocation.MyCommand.Path)
$script:localizedData = Get-LocalizedData -ResourceName 'MSFT_AdcsCertificationAuthority'

<#
.SYNOPSIS
Expand Down Expand Up @@ -203,7 +201,7 @@ Function Get-TargetResource

Write-Verbose -Message ( @(
"$($MyInvocation.MyCommand): "
$($LocalizedData.GettingAdcsCAStatusMessage -f $CAType)
$($script:localizedData.GettingAdcsCAStatusMessage -f $CAType)
) -join '' )

$adcsParameters = @{} + $PSBoundParameters
Expand Down Expand Up @@ -431,7 +429,7 @@ Function Set-TargetResource

Write-Verbose -Message ( @(
"$($MyInvocation.MyCommand): "
$($LocalizedData.SettingAdcsCAStatusMessage -f $CAType)
$($script:localizedData.SettingAdcsCAStatusMessage -f $CAType)
) -join '' )

$adcsParameters = @{} + $PSBoundParameters
Expand All @@ -453,7 +451,7 @@ Function Set-TargetResource
{
Write-Verbose -Message ( @(
"$($MyInvocation.MyCommand): "
$($LocalizedData.InstallingAdcsCAMessage -f $CAType)
$($script:localizedData.InstallingAdcsCAMessage -f $CAType)
) -join '' )

$resultObject = Install-AdcsCertificationAuthority @adcsParameters -Force
Expand All @@ -470,7 +468,7 @@ Function Set-TargetResource
{
Write-Verbose -Message ( @(
"$($MyInvocation.MyCommand): "
$($LocalizedData.UninstallingAdcsCAMessage -f $CAType)
$($script:localizedData.UninstallingAdcsCAMessage -f $CAType)
) -join '' )

$resultObject = Uninstall-AdcsCertificationAuthority -Force
Expand Down Expand Up @@ -676,7 +674,7 @@ Function Test-TargetResource

Write-Verbose -Message ( @(
"$($MyInvocation.MyCommand): "
$($LocalizedData.TestingAdcsCAStatusMessage -f $CAType)
$($script:localizedData.TestingAdcsCAStatusMessage -f $CAType)
) -join '' )

$adcsParameters = @{} + $PSBoundParameters
Expand All @@ -701,7 +699,7 @@ Function Test-TargetResource
# CA is not installed but should be - change required
Write-Verbose -Message ( @(
"$($MyInvocation.MyCommand): "
$($LocalizedData.AdcsCANotInstalledButShouldBeMessage -f $CAType)
$($script:localizedData.AdcsCANotInstalledButShouldBeMessage -f $CAType)
) -join '' )

return $false
Expand All @@ -712,7 +710,7 @@ Function Test-TargetResource
# CA is not installed and should not be - change not required
Write-Verbose -Message ( @(
"$($MyInvocation.MyCommand): "
$($LocalizedData.AdcsCANotInstalledAndShouldNotBeMessage -f $CAType)
$($script:localizedData.AdcsCANotInstalledAndShouldNotBeMessage -f $CAType)
) -join '' )

return $true
Expand All @@ -729,7 +727,7 @@ Function Test-TargetResource
# CA is installed and should be - change not required
Write-Verbose -Message ( @(
"$($MyInvocation.MyCommand): "
$($LocalizedData.AdcsCAInstalledAndShouldBeMessage -f $CAType)
$($script:localizedData.AdcsCAInstalledAndShouldBeMessage -f $CAType)
) -join '' )

return $true
Expand All @@ -740,7 +738,7 @@ Function Test-TargetResource
# CA is installed and should not be - change required
Write-Verbose -Message ( @(
"$($MyInvocation.MyCommand): "
$($LocalizedData.AdcsCAInstalledButShouldNotBeMessage -f $CAType)
$($script:localizedData.AdcsCAInstalledButShouldNotBeMessage -f $CAType)
) -join '' )

return $false
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
$modulePath = Join-Path -Path (Split-Path -Path (Split-Path -Path $PSScriptRoot -Parent) -Parent) -ChildPath 'Modules'

# Import the ADCS Deployment Resource Helper Module.
# Import the ADCS Deployment Resource Common Module.
Import-Module -Name (Join-Path -Path $modulePath `
-ChildPath (Join-Path -Path 'ActiveDirectoryCSDsc.ResourceHelper' `
-ChildPath 'ActiveDirectoryCSDsc.ResourceHelper.psm1'))
-ChildPath (Join-Path -Path 'ActiveDirectoryCSDsc.Common' `
-ChildPath 'ActiveDirectoryCSDsc.Common.psm1'))

# Import Localization Strings.
$LocalizedData = Get-LocalizedData `
-ResourceName 'MSFT_AdcsEnrollmentPolicyWebService' `
-ResourcePath (Split-Path -Parent $script:MyInvocation.MyCommand.Path)
$script:localizedData = Get-LocalizedData -ResourceName 'MSFT_AdcsEnrollmentPolicyWebService'

<#
.SYNOPSIS
Expand Down Expand Up @@ -69,7 +67,7 @@ Function Get-TargetResource

Write-Verbose -Message ( @(
"$($MyInvocation.MyCommand): "
$($LocalizedData.GettingAdcsEnrollmentPolicyWebServiceStatusMessage -f $AuthenticationType)
$($script:localizedData.GettingAdcsEnrollmentPolicyWebServiceStatusMessage -f $AuthenticationType)
) -join '' )

$installed = Test-AdcsEnrollmentPolicyWebServiceInstallState `
Expand Down Expand Up @@ -151,7 +149,7 @@ Function Set-TargetResource

Write-Verbose -Message ( @(
"$($MyInvocation.MyCommand): "
$($LocalizedData.SettingAdcsEnrollmentPolicyWebServiceStatusMessage -f $AuthenticationType)
$($script:localizedData.SettingAdcsEnrollmentPolicyWebServiceStatusMessage -f $AuthenticationType)
) -join '' )

$adcsEnrollmentPolicyWebServiceParameters = @{} + $PSBoundParameters
Expand All @@ -169,7 +167,7 @@ Function Set-TargetResource
{
Write-Verbose -Message ( @(
"$($MyInvocation.MyCommand): "
$($LocalizedData.InstallingAdcsEnrollmentPolicyWebServiceMessage -f $AuthenticationType)
$($script:localizedData.InstallingAdcsEnrollmentPolicyWebServiceMessage -f $AuthenticationType)
) -join '' )

$errorMessage = (Install-AdcsEnrollmentPolicyWebService @adcsEnrollmentPolicyWebServiceParameters -Force).ErrorString
Expand All @@ -182,7 +180,7 @@ Function Set-TargetResource

Write-Verbose -Message ( @(
"$($MyInvocation.MyCommand): "
$($LocalizedData.UninstallingAdcsEnrollmentPolicyWebServiceMessage -f $AuthenticationType)
$($script:localizedData.UninstallingAdcsEnrollmentPolicyWebServiceMessage -f $AuthenticationType)
) -join '' )

$errorMessage = (Uninstall-AdcsEnrollmentPolicyWebService @adcsEnrollmentPolicyWebServiceParameters -Force).ErrorString
Expand All @@ -198,7 +196,7 @@ Function Set-TargetResource
{
Write-Verbose -Message ( @(
"$($MyInvocation.MyCommand): "
$($LocalizedData.AdcsEnrollmentPolicyWebServiceErrorMessage -f $errorMessage)
$($script:localizedData.AdcsEnrollmentPolicyWebServiceErrorMessage -f $errorMessage)
) -join '' )
New-InvalidOperationException -Message $errorMessage
}
Expand Down Expand Up @@ -266,7 +264,7 @@ Function Test-TargetResource

Write-Verbose -Message ( @(
"$($MyInvocation.MyCommand): "
$($LocalizedData.TestingAdcsEnrollmentPolicyWebServiceStatusMessage -f $AuthenticationType)
$($script:localizedData.TestingAdcsEnrollmentPolicyWebServiceStatusMessage -f $AuthenticationType)
) -join '' )

$installed = Test-AdcsEnrollmentPolicyWebServiceInstallState `
Expand All @@ -283,7 +281,7 @@ Function Test-TargetResource
# CA is installed and should be - change not required
Write-Verbose -Message ( @(
"$($MyInvocation.MyCommand): "
$($LocalizedData.AdcsEnrollmentPolicyWebServiceInstalledAndShouldBeMessage -f $AuthenticationType)
$($script:localizedData.AdcsEnrollmentPolicyWebServiceInstalledAndShouldBeMessage -f $AuthenticationType)
) -join '' )

return $true
Expand All @@ -294,7 +292,7 @@ Function Test-TargetResource
# CA is installed and should not be - change required
Write-Verbose -Message ( @(
"$($MyInvocation.MyCommand): "
$($LocalizedData.AdcsEnrollmentPolicyWebServiceInstalledButShouldNotBeMessage -f $AuthenticationType)
$($script:localizedData.AdcsEnrollmentPolicyWebServiceInstalledButShouldNotBeMessage -f $AuthenticationType)
) -join '' )

return $false
Expand All @@ -311,7 +309,7 @@ Function Test-TargetResource
# CA is not installed but should be - change required
Write-Verbose -Message ( @(
"$($MyInvocation.MyCommand): "
$($LocalizedData.AdcsEnrollmentPolicyWebServiceNotInstalledButShouldBeMessage -f $AuthenticationType)
$($script:localizedData.AdcsEnrollmentPolicyWebServiceNotInstalledButShouldBeMessage -f $AuthenticationType)
) -join '' )

return $false
Expand All @@ -322,7 +320,7 @@ Function Test-TargetResource
# CA is not installed and should not be - change not required
Write-Verbose -Message ( @(
"$($MyInvocation.MyCommand): "
$($LocalizedData.AdcsEnrollmentPolicyWebServiceNotInstalledAndShouldNotBeMessage -f $AuthenticationType)
$($script:localizedData.AdcsEnrollmentPolicyWebServiceNotInstalledAndShouldNotBeMessage -f $AuthenticationType)
) -join '' )

return $true
Expand Down Expand Up @@ -365,7 +363,7 @@ Function Test-AdcsEnrollmentPolicyWebServiceInstallState

Write-Verbose -Message ( @(
"$($MyInvocation.MyCommand): "
$($LocalizedData.TestingAdcsEnrollmentPolicyWebServiceInstallStateMessage -f $AuthenticationType, $KeyBasedRenewal)
$($script:localizedData.TestingAdcsEnrollmentPolicyWebServiceInstallStateMessage -f $AuthenticationType, $KeyBasedRenewal)
) -join '' )

# Determine the expected name of the Web Application
Expand Down Expand Up @@ -398,7 +396,7 @@ Function Test-AdcsEnrollmentPolicyWebServiceInstallState
{
Write-Verbose -Message ( @(
"$($MyInvocation.MyCommand): "
$($LocalizedData.AdcsEnrollmentPolicyWebServiceInstallIsNotInstalledMessage -f $AuthenticationType, $KeyBasedRenewal)
$($script:localizedData.AdcsEnrollmentPolicyWebServiceInstallIsNotInstalledMessage -f $AuthenticationType, $KeyBasedRenewal)
) -join '' )

return $false
Expand All @@ -407,7 +405,7 @@ Function Test-AdcsEnrollmentPolicyWebServiceInstallState
{
Write-Verbose -Message ( @(
"$($MyInvocation.MyCommand): "
$($LocalizedData.AdcsEnrollmentPolicyWebServiceInstallIsInstalledMessage -f $AuthenticationType, $KeyBasedRenewal)
$($script:localizedData.AdcsEnrollmentPolicyWebServiceInstallIsInstalledMessage -f $AuthenticationType, $KeyBasedRenewal)
) -join '' )

return $true
Expand Down Expand Up @@ -518,7 +516,7 @@ function Test-Thumbprint
else
{
New-InvalidOperationException `
-Message ($LocalizedData.InvalidHashError -f $hash)
-Message ($script:localizedData.InvalidHashAlgorithmErrorMessage -f $hash)
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ ConvertFrom-StringData @'
AdcsEnrollmentPolicyWebServiceInstallIsInstalledMessage = ADCS Enrollment Policy Web Service with authentication mode '{0}' and key based renewal is '{1}' is installed.
AdcsEnrollmentPolicyWebServiceInstallIsNotInstalledMessage = ADCS Enrollment Policy Web Service with authentication mode '{0}' and key based renewal is '{1}' is not installed.
AdcsEnrollmentPolicyWebServiceErrorMessage = An installation/uninstallation error occured: {0}
InvalidHashAlgorithmErrorMessage = '{0}' is not a valid hash.
'@
Loading

0 comments on commit ba0aecc

Please sign in to comment.