-
Notifications
You must be signed in to change notification settings - Fork 37
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 26, 2024
1 parent
f7e1146
commit c431a96
Showing
1 changed file
with
8 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ BeforeAll { | |
Describe "Get User Local" { | ||
|
||
BeforeAll { | ||
Add-FGTUserLocal -name $pester_userlocal -password $pester_userlocalpassword | ||
Add-FGTUserLocal -name $pester_userlocal -passwd $pester_userlocalpassword | ||
#$script:uuid = $addr.uuid | ||
} | ||
|
||
|
@@ -69,7 +69,7 @@ Describe "Add User Local" { | |
} | ||
|
||
It "Add User Local $pester_userlocal enable" { | ||
Add-FGTUserLocal -Name $pester_userlocal -status -password $pester_userlocalpassword | ||
Add-FGTUserLocal -Name $pester_userlocal -status -passwd $pester_userlocalpassword | ||
$userlocal = Get-FGTUserLocal -name $pester_userlocal | ||
$userlocal.name | Should -Be $pester_userlocal | ||
$userlocal.status | Should -Be "enable" | ||
|
@@ -78,7 +78,7 @@ Describe "Add User Local" { | |
} | ||
|
||
It "Add User Local $pester_userlocal email to" { | ||
Add-FGTUserLocal -Name $pester_userlocal -email_to "[email protected]" -password $pester_userlocalpassword | ||
Add-FGTUserLocal -Name $pester_userlocal -email_to "[email protected]" -passwd $pester_userlocalpassword | ||
$userlocal = Get-FGTUserLocal -name $pester_userlocal | ||
$userlocal.name | Should -Be $pester_userlocal | ||
$userlocal.status | Should -Be "disable" | ||
|
@@ -87,7 +87,7 @@ Describe "Add User Local" { | |
} | ||
|
||
It "Add User Local $pester_userlocal MFA by email" { | ||
Add-FGTUserLocal -Name $pester_userlocal -status -two_factor email -email_to "[email protected]" -password $pester_userlocalpassword | ||
Add-FGTUserLocal -Name $pester_userlocal -status -two_factor email -email_to "[email protected]" -passwd $pester_userlocalpassword | ||
$userlocal = Get-FGTUserLocal -name $pester_userlocal | ||
$userlocal.name | Should -Be $pester_userlocal | ||
$userlocal.status | Should -Be "enable" | ||
|
@@ -97,9 +97,9 @@ Describe "Add User Local" { | |
|
||
It "Try to Add User Local $pester_userlocal (but there is already a object with same name)" { | ||
#Add first userlocal | ||
Add-FGTUserLocal -Name $pester_userlocal -status -password $pester_userlocalpassword | ||
Add-FGTUserLocal -Name $pester_userlocal -status -passwd $pester_userlocalpassword | ||
#Add Second userlocal with same name | ||
{ Add-FGTUserLocal -Name $pester_userlocal -status -password $pester_userlocalpassword } | Should -Throw "Already an Local User object using the same name" | ||
{ Add-FGTUserLocal -Name $pester_userlocal -status -passwd $pester_userlocalpassword } | Should -Throw "Already an Local User object using the same name" | ||
} | ||
|
||
} | ||
|
@@ -111,7 +111,7 @@ Describe "Configure User Local" { | |
Context "Change name, email, MFA, etc" { | ||
|
||
BeforeAll { | ||
Add-FGTUserLocal -Name $pester_userlocal -password $pester_userlocalpassword | ||
Add-FGTUserLocal -Name $pester_userlocal -passwd $pester_userlocalpassword | ||
} | ||
|
||
It "Change status User Local" { | ||
|
@@ -162,7 +162,7 @@ Describe "Remove User Local" { | |
Context "local" { | ||
|
||
BeforeEach { | ||
Add-FGTUserLocal -Name $pester_userlocal -password $pester_userlocalpassword | ||
Add-FGTUserLocal -Name $pester_userlocal -passwd $pester_userlocalpassword | ||
} | ||
|
||
It "Remove User Local $pester_userlocal by pipeline" { | ||
|