Skip to content

Commit

Permalink
Fixed UTs.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kajalp1079 committed Oct 10, 2024
1 parent 4550afe commit e92e22c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ function Set-TargetResource {
{
New-MgBetaDeviceManagementDerivedCredential @SetParameters
}
# UPDATE is not supported API, it always creates a new Derived Credential instance
# REMOVE
elseif ($Ensure -eq 'Absent' -and $currentInstance.Ensure -eq 'Present')
{
Expand Down
6 changes: 3 additions & 3 deletions Tests/Unit/Stubs/Microsoft365.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -19348,7 +19348,7 @@ function Get-MgBetaDeviceManagementGroupPolicyConfigurationAssignment
)
}

New-MgBetaDeviceManagementDerivedCredential {
function New-MgBetaDeviceManagementDerivedCredential {

[CmdletBinding()]
param (
Expand Down Expand Up @@ -19376,7 +19376,7 @@ New-MgBetaDeviceManagementDerivedCredential {
)
}

Get-MgBetaDeviceManagementDerivedCredential {
function Get-MgBetaDeviceManagementDerivedCredential {
[CmdletBinding()]
param (
[Parameter()]
Expand All @@ -19403,7 +19403,7 @@ Get-MgBetaDeviceManagementDerivedCredential {
)
}

Remove-MgBetaDeviceManagementDerivedCredential
function Remove-MgBetaDeviceManagementDerivedCredential
{
[CmdletBinding()]
param(
Expand Down

0 comments on commit e92e22c

Please sign in to comment.