-
Notifications
You must be signed in to change notification settings - Fork 500
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3852 from NikCharlebois/Fix-3787
Fix 3787
- Loading branch information
Showing
3 changed files
with
59 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,6 +25,7 @@ Describe -Name $Global:DscHelper.DescribeHeader -Fixture { | |
$secpasswd = ConvertTo-SecureString 'test@password1' -AsPlainText -Force | ||
$Credential = New-Object System.Management.Automation.PSCredential ('[email protected]', $secpasswd) | ||
$Script:exportedInstances = $null | ||
$Script:ExportMode = $null | ||
Mock -CommandName Add-M365DSCTelemetryEvent -MockWith { | ||
} | ||
|
||
|
@@ -159,8 +160,7 @@ Describe -Name $Global:DscHelper.DescribeHeader -Fixture { | |
RoleDefinition = "Teams Communications Administrator"; | ||
ScheduleInfo = New-CimInstance -ClassName MSFT_AADRoleEligibilityScheduleRequestSchedule -Property @{ | ||
|
||
expiration = New-CimInstance -ClassName MSFT_AADRoleEligibilityScheduleRequestScheduleExpiration -Property @{ | ||
|
||
expiration = New-CimInstance -ClassName MSFT_AADRoleEligibilityScheduleRequestScheduleExpiration -Property @{ | ||
type = 'afterDateTime' | ||
} -ClientOnly | ||
} -ClientOnly | ||
|
@@ -182,6 +182,21 @@ Describe -Name $Global:DscHelper.DescribeHeader -Fixture { | |
}; | ||
} | ||
} | ||
Mock -CommandName Get-MgBetaRoleManagementDirectoryRoleEligibilitySchedule -MockWith { | ||
return @{ | ||
Action = "AdminAssign"; | ||
Id = '12345-12345-12345-12345-12345' | ||
DirectoryScopeId = "/"; | ||
IsValidationOnly = $False; | ||
PrincipalId = "123456"; | ||
RoleDefinitionId = "12345"; | ||
ScheduleInfo = @{ | ||
expiration = @{ | ||
type = 'afterDateTime' | ||
} | ||
}; | ||
} | ||
} | ||
} | ||
|
||
It 'Should return Values from the Get method' { | ||
|