Skip to content

Commit 6378083

Browse files
Microsoft Graph DevX ToolingMicrosoft Graph DevX Tooling
authored andcommitted
Update tests
1 parent fce57a7 commit 6378083

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

config/ModulesMapping.jsonc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"Bookings": "^bookingBusinesses\\.|^bookingCurrencies\\.|^solutions.booking.*.Actions$|^solutions.bookingBusiness$|^solutions.bookingCurrency$|^solutions.virtualEventsRoot$|^solutions.booking.*.Functions$|^solutions.solutionsRoot$",
44
"BusinessScenario": "^solutions.businessScenario$|^solutions.BusinessScenario.*.Actions$|^solutions.BusinessScenario.*.Functions$",
55
"BackupRestore": "^solutions.backupRestoreRoot$|^solutions.backupRestore.*.Actions$|^solutions.backupRestore.*.Functions$",
6-
"Calendar": "^places\\.|^users.calendar$|^users.calendarGroup$|^users.event$|^groups.calendar$|^groups.event$",
6+
"Calendar": "^places\\.|^users.calendar$|^users.calendarGroup$|^users.event$|^groups.calendar$|^groups.event$|^user.calendar_getSchedule$",
77
"ChangeNotifications": "^subscriptions\\.",
88
"CloudCommunications": "^users.onlineMeeting$|^users.presence$|^communications\\.",
99
"Compliance": "^compliance\\.|^privacy.subjectRightsRequest$",

src/Authentication/Authentication/test/Find-MgGraphCommand.Tests.ps1

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,12 @@ Describe "Find-MgGraphCommand Command" {
8383
}
8484
It 'Should find command using action with FQNamespace.' {
8585
{
86-
$Uri = "/sites/{site-id}/onenote/pages/{onenotePage-id}/microsoft.graph.onenotePatchContent"
86+
$Uri = "/groups/{group-id}/sites/{site-id}/onenote/pages/{onenotePage-id}/microsoft.graph.copyToSection"
8787
$MgCommand = Find-MgGraphCommand -Uri $Uri -ApiVersion beta
8888
$MgCommand.Method | Should -Be "POST"
8989
$MgCommand.APIVersion | Should -Be "beta"
90-
$MgCommand.Command | Should -Be "Update-MgBetaSiteOnenotePageContent"
91-
$MgCommand.Uri | Should -Be "/sites/{site-id}/onenote/pages/{onenotePage-id}/onenotePatchContent"
90+
$MgCommand.Command | Should -Be "Copy-MgBetaGroupSiteOnenotePageToSection"
91+
$MgCommand.Uri | Should -Be "/groups/{group-id}/sites/{site-id}/onenote/pages/{onenotePage-id}/copyToSection"
9292
} | Should -Not -Throw
9393
}
9494
It 'Should find command using action with nested FQNamespace.' {
@@ -103,12 +103,12 @@ Describe "Find-MgGraphCommand Command" {
103103
}
104104
It 'Should find command using function without FQNamespace.' {
105105
{
106-
$Uri = "/deviceManagement/assignmentFilters/getState"
106+
$Uri = "/deviceManagement/getEffectivePermissions"
107107
$MgCommand = Find-MgGraphCommand -Uri $Uri -ApiVersion beta
108108
$MgCommand.Method | Should -Be "GET"
109109
$MgCommand.APIVersion | Should -Be "beta"
110-
$MgCommand.Command | Should -Be "Get-MgBetaDeviceManagementAssignmentFilterState"
111-
$MgCommand.Uri | Should -Be "/deviceManagement/assignmentFilters/getState"
110+
$MgCommand.Command | Should -Be "Get-MgBetaDeviceManagementEffectivePermission"
111+
$MgCommand.Uri | Should -Be "/deviceManagement/getEffectivePermissions"
112112
} | Should -Not -Throw
113113
}
114114
It 'Should support pipeline input' {
@@ -189,12 +189,12 @@ Describe "Find-MgGraphCommand Command" {
189189
Context "FindByCommand" {
190190
It 'Should find command using all parameters' {
191191
{
192-
$MgCommand = Find-MgGraphCommand -Command "Invoke-MgBetaAcceptGroupCalendarEvent" -ApiVersion beta
192+
$MgCommand = Find-MgGraphCommand -Command "Invoke-MgBetaAcceptGroupEvent" -ApiVersion beta
193193
$MgCommand | Should -HaveCount 1
194194
$MgCommand.Method | Should -Be "POST"
195195
$MgCommand.APIVersion | Should -Be "beta"
196-
$MgCommand.Command | Should -Be "Invoke-MgBetaAcceptGroupCalendarEvent"
197-
$MgCommand.URI | Should -Be "/groups/{group-id}/calendar/events/{event-id}/accept"
196+
$MgCommand.Command | Should -Be "Invoke-MgBetaAcceptGroupEvent"
197+
$MgCommand.URI | Should -Be "/groups/{group-id}/events/{event-id}/accept"
198198
} | Should -Not -Throw
199199
}
200200
It 'Should find command using regex' {

0 commit comments

Comments
 (0)