Skip to content
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

Open
wants to merge 118 commits into
base: modularize
Choose a base branch
from

Conversation

emmanuel-karanja
Copy link
Collaborator

No description provided.

@emmanuel-karanja emmanuel-karanja requested a review from a team as a code owner November 15, 2024 13:53
@emmanuel-karanja emmanuel-karanja changed the base branch from main to modularize November 15, 2024 13:53
Copy link

Learn Build status updates of commit 1c0b2e9:

✅ Validation status: passed

File Status Preview URL Details
build/Beta-TypeDefs.txt ✅Succeeded
build/common-functions.ps1 ✅Succeeded
build/Create-EntraModule.ps1 ✅Succeeded
build/Create-ModuleMapping.ps1 ✅Succeeded
build/Split-Docs.ps1 ✅Succeeded
build/Split-EntraModule.ps1 ✅Succeeded
build/Split-Tests.ps1 ✅Succeeded
build/Update-CommonFunctionsImport.ps1 ✅Succeeded
build/V1.0-TypeDefs.txt ✅Succeeded
build/VNext-Build.md ✅Succeeded
module/docs/entra-powershell-v1.0/Microsoft.Graph.Entra/Set-EntraUserExtension.md ✅Succeeded View (entra-powershell-preview)
module/Entra/config/dependencyMapping.json ✅Succeeded
module/Entra/config/moduleMapping.json ✅Succeeded
module/Entra/config/ModuleSettings.json ✅Succeeded
module/Entra/customizations/Set-EntraUserExtension.ps1 ✅Succeeded
module/EntraBeta/config/dependencyMapping.json ✅Succeeded
module/EntraBeta/config/moduleMapping.json ✅Succeeded
module/EntraBeta/config/ModuleSettings.json ✅Succeeded
moduleVNext/Entra/config/dependencyMapping.json ✅Succeeded
moduleVNext/Entra/config/moduleMapping.json ✅Succeeded
moduleVNext/Entra/config/ModuleMetadata.json ✅Succeeded
moduleVNext/Entra/config/ModuleSettings.json ✅Succeeded
moduleVNext/Entra/Microsoft.Graph.Entra/Applications/Add-EntraApplicationOwner.ps1 ✅Succeeded
moduleVNext/Entra/Microsoft.Graph.Entra/Applications/Add-EntraServicePrincipalDelegatedPermissionClassification.ps1 ✅Succeeded
moduleVNext/Entra/Microsoft.Graph.Entra/Applications/Add-EntraServicePrincipalOwner.ps1 ✅Succeeded

This comment lists only the first 25 files in the pull request.
For more details, please refer to the build report.

For any questions, please:

Copy link

Learn Build status updates of commit 1c0b2e9:

✅ Validation status: passed

File Status Preview URL Details
build/V1.0-TypeDefs.txt ✅Succeeded
moduleVNext/EntraBeta/Microsoft.Graph.Entra.Beta/DirectoryManagement/Add-EntraBetaScopedRoleMembership.ps1 ✅Succeeded

For more details, please refer to the build report.

For any questions, please:

Copy link

Learn Build status updates of commit 6743d62:

✅ Validation status: passed

File Status Preview URL Details
build/V1.0-TypeDefs.txt ✅Succeeded
moduleVNext/docs/entra-powershell-beta/DirectoryManagement/Add-EntraBetaScopedRoleMembership.md ✅Succeeded
moduleVNext/EntraBeta/Microsoft.Graph.Entra.Beta/DirectoryManagement/Add-EntraBetaScopedRoleMembership.ps1 ✅Succeeded
testVNext/EntraBeta/DirectoryManagement/Add-EntraBetaScopedRoleMembership.Tests.ps1 ✅Succeeded

For more details, please refer to the build report.

For any questions, please:

Copy link

Learn Build status updates of commit bf47e72:

✅ Validation status: passed

File Status Preview URL Details
build/V1.0-TypeDefs.txt ✅Succeeded
moduleVNext/docs/entra-powershell-beta/DirectoryManagement/Add-EntraBetaScopedRoleMembership.md ✅Succeeded
testVNext/EntraBeta/DirectoryManagement/Add-EntraBetaScopedRoleMembership.Tests.ps1 ✅Succeeded

For more details, please refer to the build report.

For any questions, please:

Copy link

Learn Build status updates of commit f6f42d2:

✅ Validation status: passed

File Status Preview URL Details
moduleVNext/docs/entra-powershell-beta/DirectoryManagement/Add-EntraBetaScopedRoleMembership.md ✅Succeeded
testVNext/EntraBeta/DirectoryManagement/Add-EntraBetaScopedRoleMembership.Tests.ps1 ✅Succeeded

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"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
$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"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
$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"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
$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"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
$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"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
$RoleMember.ObjectId = "a23541ee-4fe9-4cf2-b628-102ebaef8f7e"
$RoleMember.Id = "a23541ee-4fe9-4cf2-b628-102ebaef8f7e"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants