Skip to content

Commit

Permalink
Merge pull request #5646 from ricmestre/fixtest
Browse files Browse the repository at this point in the history
EXOTenantAllowBlockListItems: Fix Test-TargetResource
  • Loading branch information
ykuijs authored Jan 21, 2025
2 parents d3590d2 + 7b859e4 commit 2cd3bfe
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 6 deletions.
23 changes: 23 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,22 @@
* Add DisableResilienceDefaults false szenario
* AADDeviceRegistrationPolicy
* Fixes an error when trying to disable AAD join.
* AADGroupsNamingPolicy
* Use correct parameter `DesiredValues` given to `Test-M365DSCParameterState`,
contrary to `EXOTenantAllowBlockListItems` these resources are not affected
but we still should use the correct parameter
* AADRoleSetting
* Fixed issue where missing settings object for a role caused errors.
FIXES [#5602](https://github.com/microsoft/Microsoft365DSC/issues/5602)
* AADServicePrincipal
* FIXES [#5549](https://github.com/microsoft/Microsoft365DSC/issues/5549)
* EXOHostedContentFilterPolicy
* Use correct parameter `DesiredValues` given to `Test-M365DSCParameterState`,
contrary to `EXOTenantAllowBlockListItems` these resources are not affected
but we still should use the correct parameter
* EXOTenantAllowBlockListItems
* Fixed `Test-TargetResource` by using the correct parameter `DesiredValues`
given to `Test-M365DSCParameterState`
* EXOTransportRule
* Fix type of `SenderInRecipientList` in schema
* FabricAdminTenantSettings
Expand All @@ -21,6 +32,18 @@
* Fix values that have a zero length whitespace character.
* IntuneAppProtectionPolicyiOS
* Fixes [#5589] https://github.com/microsoft/Microsoft365DSC/issues/5589
* SCAutoSensitivityLabelPolicy
* Use correct parameter `DesiredValues` given to `Test-M365DSCParameterState`,
contrary to `EXOTenantAllowBlockListItems` these resources are not affected
but we still should use the correct parameter
* SCLabelPolicy
* Use correct parameter `DesiredValues` given to `Test-M365DSCParameterState`,
contrary to `EXOTenantAllowBlockListItems` these resources are not affected
but we still should use the correct parameter
* SCSecurityFilter
* Use correct parameter `DesiredValues` given to `Test-M365DSCParameterState`,
contrary to `EXOTenantAllowBlockListItems` these resources are not affected
but we still should use the correct parameter
* SPOSPOBrowserIdleSignout
* Corrected export types where the schema expected a String, but received a different type
FIXES [#5648](https://github.com/microsoft/Microsoft365DSC/issues/5648)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ function Test-TargetResource

$TestResult = Test-M365DSCParameterState -CurrentValues $CurrentValues `
-Source $($MyInvocation.MyCommand.Source) `
-DesiredValues $ValuesToCheck `
-DesiredValues $PSBoundParameters `
-ValuesToCheck $ValuesToCheck.Keys

Write-Verbose -Message "Test-TargetResource returned $TestResult"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1091,7 +1091,7 @@ function Test-TargetResource

$TestResult = Test-M365DSCParameterState -CurrentValues $CurrentValues `
-Source $($MyInvocation.MyCommand.Source) `
-DesiredValues $ValuesToCheck `
-DesiredValues $PSBoundParameters `
-ValuesToCheck $ValuesToCheck.Keys

Write-Verbose -Message "Test-TargetResource returned $TestResult"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ function Test-TargetResource

$testResult = Test-M365DSCParameterState -CurrentValues $CurrentValues `
-Source $($MyInvocation.MyCommand.Source) `
-DesiredValues $ValuesToCheck `
-DesiredValues $PSBoundParameters `
-ValuesToCheck $ValuesToCheck.Keys

Write-Verbose -Message "Test-TargetResource returned $testResult"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -773,7 +773,7 @@ function Test-TargetResource

$TestResult = Test-M365DSCParameterState -CurrentValues $CurrentValues `
-Source $($MyInvocation.MyCommand.Source) `
-DesiredValues $ValuesToCheck `
-DesiredValues $PSBoundParameters `
-ValuesToCheck $ValuesToCheck.Keys

Write-Verbose -Message "Test-TargetResource returned $TestResult"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -771,7 +771,7 @@ function Test-TargetResource

$TestResult = Test-M365DSCParameterState -CurrentValues $CurrentValues `
-Source $($MyInvocation.MyCommand.Source) `
-DesiredValues $ValuesToCheck `
-DesiredValues $PSBoundParameters `
-ValuesToCheck $ValuesToCheck.Keys

Write-Verbose -Message "Test-TargetResource returned $TestResult"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ function Test-TargetResource

$TestResult = Test-M365DSCParameterState -CurrentValues $CurrentValues `
-Source $($MyInvocation.MyCommand.Source) `
-DesiredValues $ValuesToCheck `
-DesiredValues $PSBoundParameters `
-ValuesToCheck $ValuesToCheck.Keys

Write-Verbose -Message "Test-TargetResource returned $TestResult"
Expand Down

0 comments on commit 2cd3bfe

Please sign in to comment.