-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enganga/fix typemismatch issue #1214
base: modularize
Are you sure you want to change the base?
Conversation
…1194) * Sub-Modules as RequiredModules * Sub-Modules as RequiredModules * Sub-Modules as RequiredModules * Sub-Modules as RequiredModules * Sub-Modules as RequiredModules * Sub-Modules as RequiredModules
Learn Build status updates of commit 1c0b2e9: ✅ Validation status: passed
For more details, please refer to the build report. For any questions, please:
|
Learn Build status updates of commit 6743d62: ✅ Validation status: passed
For more details, please refer to the build report. For any questions, please:
|
Learn Build status updates of commit bf47e72: ✅ Validation status: passed
For more details, please refer to the build report. For any questions, please:
|
Learn Build status updates of commit f6f42d2: ✅ Validation status: passed
For more details, please refer to the build report. For any questions, please:
|
@@ -31,7 +31,7 @@ BeforeAll { | |||
Describe "Add-EntraBetaScopedRoleMembership" { | |||
Context "Test for Add-EntraBetaScopedRoleMembership" { | |||
It "Should add a user to the specified role within the specified administrative unit" { | |||
$RoleMember = New-Object -TypeName Microsoft.Open.AzureAD.Model.RoleMemberInfo | |||
$RoleMember = New-Object -TypeName Microsoft.Open.MSGraph.Model.MsRoleMemberInfo | |||
$RoleMember.ObjectId = "a23541ee-4fe9-4cf2-b628-102ebaef8f7e" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$RoleMember.ObjectId = "a23541ee-4fe9-4cf2-b628-102ebaef8f7e" | |
$RoleMember.Id = "a23541ee-4fe9-4cf2-b628-102ebaef8f7e" |
@@ -42,7 +42,7 @@ Describe "Add-EntraBetaScopedRoleMembership" { | |||
Should -Invoke -CommandName New-MgBetaDirectoryAdministrativeUnitScopedRoleMember -ModuleName Microsoft.Graph.Entra.Beta.DirectoryManagement -Times 1 | |||
} | |||
It "Should add a user to the specified role within the specified administrative unit with alias" { | |||
$RoleMember = New-Object -TypeName Microsoft.Open.AzureAD.Model.RoleMemberInfo | |||
$RoleMember = New-Object -TypeName Microsoft.Open.MSGraph.Model.MsRoleMemberInfo | |||
$RoleMember.ObjectId = "a23541ee-4fe9-4cf2-b628-102ebaef8f7e" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$RoleMember.ObjectId = "a23541ee-4fe9-4cf2-b628-102ebaef8f7e" | |
$RoleMember.Id = "a23541ee-4fe9-4cf2-b628-102ebaef8f7e" |
@@ -71,7 +71,7 @@ Describe "Add-EntraBetaScopedRoleMembership" { | |||
{ Add-EntraBetaScopedRoleMembership -AdministrativeUnitId "0e3840ee-40b6-4b72-827b-c06e1f59d2be" -RoleMemberInfo "" } | Should -Throw "Cannot process argument transformation on parameter 'RoleMemberInfo'*" | |||
} | |||
It "Result should contain Alias properties"{ | |||
$RoleMember = New-Object -TypeName Microsoft.Open.AzureAD.Model.RoleMemberInfo | |||
$RoleMember = New-Object -TypeName Microsoft.Open.MSGraph.Model.MsRoleMemberInfo | |||
$RoleMember.ObjectId = "a23541ee-4fe9-4cf2-b628-102ebaef8f7e" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$RoleMember.ObjectId = "a23541ee-4fe9-4cf2-b628-102ebaef8f7e" | |
$RoleMember.Id = "a23541ee-4fe9-4cf2-b628-102ebaef8f7e" |
@@ -91,7 +91,7 @@ Describe "Add-EntraBetaScopedRoleMembership" { | |||
$params.AdministrativeUnitId1 | Should -Be "0e3840ee-40b6-4b72-827b-c06e1f59d2be" | |||
} | |||
It "Should contain RoleId in parameters when passed RoleObjectId to it" { | |||
$RoleMember = New-Object -TypeName Microsoft.Open.AzureAD.Model.RoleMemberInfo | |||
$RoleMember = New-Object -TypeName Microsoft.Open.MSGraph.Model.MsRoleMemberInfo | |||
$RoleMember.ObjectId = "a23541ee-4fe9-4cf2-b628-102ebaef8f7e" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$RoleMember.ObjectId = "a23541ee-4fe9-4cf2-b628-102ebaef8f7e" | |
$RoleMember.Id = "a23541ee-4fe9-4cf2-b628-102ebaef8f7e" |
@@ -101,7 +101,7 @@ Describe "Add-EntraBetaScopedRoleMembership" { | |||
It "Should contain 'User-Agent' header" { | |||
$userAgentHeaderValue = "PowerShell/$psVersion EntraPowershell/$entraVersion Add-EntraBetaScopedRoleMembership" | |||
$userAgentHeaderValue = "PowerShell/$psVersion EntraPowershell/$entraVersion Add-EntraBetaScopedRoleMembership" | |||
$RoleMember = New-Object -TypeName Microsoft.Open.AzureAD.Model.RoleMemberInfo | |||
$RoleMember = New-Object -TypeName Microsoft.Open.MSGraph.Model.MsRoleMemberInfo | |||
$RoleMember.ObjectId = "a23541ee-4fe9-4cf2-b628-102ebaef8f7e" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$RoleMember.ObjectId = "a23541ee-4fe9-4cf2-b628-102ebaef8f7e" | |
$RoleMember.Id = "a23541ee-4fe9-4cf2-b628-102ebaef8f7e" |
e6ba625
to
0fff351
Compare
No description provided.