From 476c6b69b68b51168fcb42acfe6a879a73727e1e Mon Sep 17 00:00:00 2001 From: Sandro Lanfranchi Date: Wed, 8 Jan 2025 12:41:16 +0100 Subject: [PATCH] fix Test --- .../Microsoft365DSC.AADGroupEligibilitySchedule.Tests.ps1 | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Tests/Unit/Microsoft365DSC/Microsoft365DSC.AADGroupEligibilitySchedule.Tests.ps1 b/Tests/Unit/Microsoft365DSC/Microsoft365DSC.AADGroupEligibilitySchedule.Tests.ps1 index 48ad2f749c..d021389b2d 100644 --- a/Tests/Unit/Microsoft365DSC/Microsoft365DSC.AADGroupEligibilitySchedule.Tests.ps1 +++ b/Tests/Unit/Microsoft365DSC/Microsoft365DSC.AADGroupEligibilitySchedule.Tests.ps1 @@ -175,10 +175,8 @@ Describe -Name $Global:DscHelper.DescribeHeader -Fixture { MemberType = "direct" PrincipalDisplayName = "FakePrincipal" ScheduleInfo = (New-CimInstance -ClassName MSFT_MicrosoftGraphRequestSchedule -Property @{ - startDateTime = '2025-01-23T08:59:00.0000000+00:00' Expiration = (New-CimInstance -ClassName MSFT_MicrosoftGraphExpirationPattern -Property @{ - EndDateTime = '23/12/2025 08:59:00 +00:00' - Type = 'afterDateTime'} -ClientOnly) + Type = 'noExpiration'} -ClientOnly) } -ClientOnly) Ensure = "Present" Credential = $Credential; @@ -202,10 +200,8 @@ Describe -Name $Global:DscHelper.DescribeHeader -Fixture { MemberType = 'direct' PrincipalDisplayName = 'FakePrincipal' ScheduleInfo = @{ - StartDateTime = '2025-01-23T08:59:00.0000000+00:00' Expiration = @{ - EndDateTime = '2025-12-23T08:59:00.0000000+00:00' - type = 'afterDateTime' + type = 'noExpiration' } } }