Skip to content

Commit

Permalink
Merge pull request #4172 from NikCharlebois/Integration-Tests
Browse files Browse the repository at this point in the history
Fixes Integration Tests
  • Loading branch information
NikCharlebois authored Jan 16, 2024
2 parents fb4204b + e4bbb55 commit 6752cf1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ function Get-TargetResource
[OutputType([System.Collections.Hashtable])]
param
(
#region resource generator code
[Parameter()]
[Microsoft.Management.Infrastructure.CimInstance]
$AuthenticationModeConfiguration,
Expand All @@ -30,8 +29,6 @@ function Get-TargetResource
[System.String]
$Id,

#endregion

[Parameter()]
[System.String]
[ValidateSet('Absent', 'Present')]
Expand Down Expand Up @@ -118,7 +115,8 @@ function Get-TargetResource
$complexAuthenticationModeConfiguration.Add('Rules', $complexRules)
}
}
else {
else
{
$complexAuthenticationModeConfiguration.Add('Rules', @(''))
}

Expand Down Expand Up @@ -392,7 +390,7 @@ function Set-TargetResource
#region resource generator code
$UpdateParameters.Add('@odata.type', '#microsoft.graph.x509CertificateAuthenticationMethodConfiguration')
Write-Verbose -Message "Updating with Values: $(Convert-M365DscHashtableToString -Hashtable $UpdateParameters)"
Update-MgBetaPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration `
Update-MgBetaPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration `
-AuthenticationMethodConfigurationId $currentInstance.Id `
-BodyParameter $UpdateParameters
#endregion
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Configuration Example
{
AuthenticationModeConfiguration = MSFT_MicrosoftGraphx509CertificateAuthenticationModeConfiguration{
X509CertificateAuthenticationDefaultMode = 'x509CertificateSingleFactor'
Rules = @()
};
CertificateUserBindings = @(
MSFT_MicrosoftGraphx509CertificateUserBinding{
Expand Down

0 comments on commit 6752cf1

Please sign in to comment.