Skip to content

Commit

Permalink
Merge pull request #4388 from microsoft/Dev
Browse files Browse the repository at this point in the history
Release 1.24.228.1
  • Loading branch information
ykuijs committed Feb 29, 2024
2 parents 522ec2e + bc58574 commit 74749f0
Show file tree
Hide file tree
Showing 157 changed files with 701 additions and 2,449 deletions.
41 changes: 24 additions & 17 deletions .vscode/GetTestCoverage.ps1
Expand Up @@ -2,31 +2,38 @@
param(
[Parameter(Mandatory = $true)]
[string]
$UnitTestFilePath,

[Parameter(Mandatory = $true)]
[string]
$CmdletModule = (Join-Path -Path $PSScriptRoot `
-ChildPath '..\Stubs\Microsoft365.psm1' `
-Resolve)
$UnitTestFilePath
)

if ($UnitTestFilePath.EndsWith('Tests.ps1'))
{
$moduleName = 'Pester'
$minVersion = '5.5.0'

$pesterParameters = @{
Path = $unitTestFilePath
Parameters = @{
CmdletModule = $CmdletModule
}
}
$module = Get-Module -ListAvailable | Where-Object { $_.Name -eq $moduleName -and $_.Version -ge $minVersion }

if ($module -ne $null)
{
Write-Output "Module $moduleName with version greater than or equal to $minVersion found."
}
else
{
Write-Output "Module $moduleName with version greater than or equal to $minVersion not found."
Write-Output 'Please install the module using the following command:'
Write-Output "Install-Module -Name $moduleName -MinimumVersion $minVersion"
return
}

if ($UnitTestFilePath.EndsWith('Tests.ps1'))
{
$unitTest = Get-Item -Path $UnitTestFilePath
$unitTestName = "$($unitTest.Name.Split('.')[1])"

$unitTestFilePath = (Join-Path -Path $PSScriptRoot `
$coveragePath = (Join-Path -Path $PSScriptRoot `
-ChildPath "..\Modules\Microsoft365DSC\DSCResources\MSFT_$($unitTestName)\MSFT_$($unitTestName).psm1" `
-Resolve)

Invoke-Pester -Script $pesterParameters -CodeCoverage $UnitTestFilePath -Verbose
$config = New-PesterConfiguration
$config.Run.Path = $UnitTestFilePath
$config.CodeCoverage.Enabled = $true
$config.CodeCoverage.Path = $coveragePath
Invoke-Pester -Configuration $config
}
23 changes: 18 additions & 5 deletions .vscode/launch.json
Expand Up @@ -6,9 +6,7 @@
"request": "launch",
"name": "Run current unit test",
"script": "${file}",
"args": [
"${workspaceRoot}/Tests/Unit/Stubs/Microsoft365.psm1"
],
"args": [],
"cwd": "${file}",
"createTemporaryIntegratedConsole": true
},
Expand All @@ -18,10 +16,25 @@
"name": "Get current unit test code overage",
"script": "${workspaceRoot}/.vscode/GetTestCoverage.ps1",
"args": [
"${file}",
"${workspaceRoot}/Tests/Unit/Stubs/Microsoft365.psm1"
"${file}"
],
"createTemporaryIntegratedConsole": true
},
{
"type": "PowerShell",
"request": "launch",
"name": "Run all QA tests",
"script": "Import-Module '${workspaceRoot}/Tests/TestHarness.psm1'; $QaResults = Invoke-QualityChecksHarness ",
"args": [],
"createTemporaryIntegratedConsole": true
},
{
"type": "PowerShell",
"request": "launch",
"name": "Run all Unit Tests",
"script": "Import-Module '${workspaceRoot}/Tests/TestHarness.psm1'; $UnitResults = Invoke-TestHarness",
"args": [],
"createTemporaryIntegratedConsole": true
}
]
}
77 changes: 72 additions & 5 deletions CHANGELOG.md
@@ -1,5 +1,70 @@
# Change log for Microsoft365DSC


# 1.24.228.1

* AADApplication
* Show current values of resource in Test-TargetResource
* AADAuthorizationPolicy
* Show current values of resource in Test-TargetResource
* AADConditionalAccessPolicy
* Improved verbose logging to show that items are being skipped.
* Show current values of resource in Test-TargetResource
* AADExternalIdentityPolicy
* Show current values of resource in Test-TargetResource
* AADGroup
* Fixed issue with single quotes in the display name.
FIXES [#4358](https://github.com/microsoft/Microsoft365DSC/issues/4358)
* Show current values of resource in Test-TargetResource
* AADGroupLifecyclePolicy
* Show current values of resource in Test-TargetResource
* AADGroupsNamingPolicy
* Show current values of resource in Test-TargetResource
* AADGroupsSettings
* Show current values of resource in Test-TargetResource
* AADNamedLocationPolicy
* Show current values of resource in Test-TargetResource
* AADRoleDefinition
* Show current values of resource in Test-TargetResource
* AADRoleSetting
* Show current values of resource in Test-TargetResource
* AADSecurityDefaults
* Show current values of resource in Test-TargetResource
* AADServicePrincipal
* Show current values of resource in Test-TargetResource
* AADTenantDetails
* Show current values of resource in Test-TargetResource
* AADTokenLifetimePolicy
* Show current values of resource in Test-TargetResource
* EXOActiveSyncDeviceAccessRule
* Remove extra property GUID that is stopping EXO integration tests from
running
* IntuneDeviceConfigurationScepCertificatePolicyWindows10
* Fixes an issue where the keyUsage property format was not correctly handled
* IntuneExploitProtectionPolicyWindows10SettingCatalog
* Fix update and removal of resource when Identity is from another tenant
FIXES [#3962](https://github.com/microsoft/Microsoft365DSC/issues/3962)
* SPOAccessControlSettings
* Added support for the ConditionalAccessPolicy parameter based on the PNP Module
* Teams resources
* Updated required application permissions to support [Application Based Authentication](https://learn.microsoft.com/en-us/microsoftteams/teams-powershell-application-authentication)
* TeamsCallQueue
* Reduce the number of Calls for Export using new cache pattern
FIXES [[#4191](https://github.com/microsoft/Microsoft365DSC/issues/4192)]
* TeamsGuestMeetingConfiguration
* Added the missing parameter AllowTranscription.
FIXES [#4363](https://github.com/microsoft/Microsoft365DSC/issues/4363)
* TeamsTeam
* Corrected Parameters for Graph Commands when creating a new Team
FIXES [#4383](https://github.com/microsoft/Microsoft365DSC/issues/4383)
* MISC
* M365DSCDRGUtil
Add new parameter for customizable assignment identifier
* M365DSCUtil
Change heuristics on how to find the mandatory key of the resources to
include them as part of the ResourceInstanceName during their export
FIXES [#4333](https://github.com/microsoft/Microsoft365DSC/issues/4333)

# 1.24.221.1

* AADApplication
Expand Down Expand Up @@ -72,17 +137,18 @@
* AADConditionalAccessPolicy
* Removed invalid empty string value that was added to the validate set
of two parameters.
* Updated permission reference for app-onlzy authentication.
FIXES [[#3329](https://github.com/microsoft/Microsoft365DSC/issues/3329)]
* Updated permission reference for app-only authentication.
FIXES [#3329](https://github.com/microsoft/Microsoft365DSC/issues/3329)
* AADRoleEligibilityScheduleRequest
* Fixed an issue where an error was thrown if no requests were found instead
of simply returning the Null object.
* AADRoleSetting
* Fix handling of DisplayName property in comparison
FIXES [#4019](https://github.com/microsoft/Microsoft365DSC/issues/4019)
* AADUser
* Fixed and issue where an user would be created even if the resrouce was set to absent.
FIXES [[#4265](https://github.com/microsoft/Microsoft365DSC/issues/4265)]
* Fixed and issue where an user would be created even if the resource was set
to absent.
FIXES [#4265](https://github.com/microsoft/Microsoft365DSC/issues/4265)
* EXOMobileDeviceMailboxPolicy
* Fixes an issue where an empty MinPasswordLength value was always passed down
to the update logic flow.
Expand Down Expand Up @@ -124,6 +190,7 @@
* Fix IntuneDeviceEnrolllmentPlatformRestriction comparison in report
FIXES [#4291](https://github.com/microsoft/Microsoft365DSC/issues/4291)
* Added new QA test to check for missing description in resource schema
* Added new QA test to check for falsely assigned write-premissions in settings.json

# 1.24.207.2

Expand All @@ -143,7 +210,7 @@
* SCDLPComplianceRule
* Properly escapes fancy quotes in the Get method.
* TeamsMeetingPolicy
* Ignore the AllowUserToJoinExternalMeeting parameterfor drift evaluation
* Ignore the AllowUserToJoinExternalMeeting parameter for drift evaluation
since it doesn't do anything based on official documentation.
* DEPENDENCIES
* Updated Microsoft.PowerApps.Administration.PowerShell to version 2.0.180.
Expand Down
Expand Up @@ -813,6 +813,7 @@ function Test-TargetResource
Write-Verbose -Message 'No Permissions exist for the current Azure AD App and no permissions were specified'
}
}
Write-Verbose -Message "Current Values: $(Convert-M365DscHashtableToString -Hashtable $CurrentValues)"
Write-Verbose -Message "Target Values: $(Convert-M365DscHashtableToString -Hashtable $PSBoundParameters)"

$ValuesToCheck = $PSBoundParameters
Expand Down
Expand Up @@ -489,6 +489,7 @@ function Test-TargetResource

$CurrentValues = Get-TargetResource @PSBoundParameters

Write-Verbose -Message "Current Values: $(Convert-M365DscHashtableToString -Hashtable $CurrentValues)"
Write-Verbose -Message "Target Values: $(Convert-M365DscHashtableToString -Hashtable $PSBoundParameters)"

$ValuesToCheck = $PSBoundParameters
Expand Down

0 comments on commit 74749f0

Please sign in to comment.