-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Cédric Moreau
committed
Aug 30, 2024
1 parent
c45ff78
commit 51e43a1
Showing
2 changed files
with
11 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -107,7 +107,6 @@ Describe "Add User Local" { | |
$userlocal.name | Should -Be $pester_userlocal | ||
$userlocal.status | Should -Be "enable" | ||
$userlocal.'email-to' | Should -Be "[email protected]" | ||
$userlocal.'two-factor' | Should -Be "email" | ||
} | ||
|
||
It "Try to Add User Local $pester_userlocal (but there is already a object with same name)" { | ||
|
@@ -167,15 +166,15 @@ Describe "Configure User Local" { | |
|
||
It "Change email to with -data" { | ||
$data = @{ "email-to" = "[email protected]" } | ||
Get-FGTUserLocal -name $pester_userlocal | Set-FGTUserLocal -data $data | ||
$userlocal = Get-FGTUserLocal -name $pester_userlocal | ||
$userlocal.name | Should -Be $pester_userlocal | ||
Get-FGTUserLocal -name "pester_userlocal_change" | Set-FGTUserLocal -data $data | ||
$userlocal = Get-FGTUserLocal -name "pester_userlocal_change" | ||
$userlocal.name | Should -Be "pester_userlocal_change" | ||
$userlocal.status | Should -Be "disable" | ||
$userlocal.'email-to' | Should -Be "[email protected]" | ||
$userlocal.'two-factor' | Should -Be "disable" | ||
} | ||
|
||
AfterEach { | ||
AfterAll { | ||
Get-FGTUserLocal -name "pester_userlocal_change" | Remove-FGTUserLocal -confirm:$false | ||
} | ||
|
||
|