Skip to content

Commit 4b7f3bb

Browse files
emmanuel-karanjaKenitoInc
authored andcommitted
update tests del UPN
1 parent 8622b00 commit 4b7f3bb

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

module/EntraBeta/customizations/Set-EntraBetaUserPassword.ps1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
[System.Security.SecureString] $Password,
1818
[Parameter(ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true)]
1919
[System.Boolean] $EnforceChangePasswordPolicy
20+
[Parameter(ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true)]
21+
[System.Boolean] $ForceChangePasswordNextSignInWithMfa
2022
)
2123
PROCESS {
2224
$params = @{}

test/module/EntraBeta/Set-EntraBetaUserPassword.Tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ Describe "Set-EntraBetaUserPassword" {
9494
$secPassword = ConvertTo-SecureString $newPassword -AsPlainText -Force
9595
$result = Set-EntraBetaUserPassword -UserId $userUPN -Password $secPassword -ForceChangePasswordNextLogin $true -EnforceChangePasswordPolicy $true
9696
$result | Should -BeNullOrEmpty
97-
$userAgentHeaderValue = "PowerShell/$psVersion EntraPowershell/$entraVersion Set-EntraUserPassword"
97+
$userAgentHeaderValue = "PowerShell/$psVersion EntraPowershell/$entraVersion Set-EntraBetaUserPassword"
9898
Should -Invoke -CommandName Update-MgUser -ModuleName Microsoft.Graph.Entra.Beta -Times 1 -ParameterFilter {
9999
$Headers.'User-Agent' | Should -Be $userAgentHeaderValue
100100
$true

0 commit comments

Comments
 (0)