Skip to content

Commit

Permalink
Change test file (Wrong variable)
Browse files Browse the repository at this point in the history
  • 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.
16 changes: 8 additions & 8 deletions Tests/integration/UserLocal.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down Expand Up @@ -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"
Expand All @@ -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"
Expand All @@ -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"
Expand All @@ -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"
}

}
Expand All @@ -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" {
Expand Down Expand Up @@ -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" {
Expand Down

0 comments on commit c431a96

Please sign in to comment.