Skip to content

Commit

Permalink
Change after review
Browse files Browse the repository at this point in the history
  • Loading branch information
Cédric Moreau committed Oct 3, 2024
1 parent 9073056 commit e350e0b
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Tests/integration/UserLocal.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ Describe "Add User Local" {
$userlocal.status | Should -Be "enable"
$userlocal.'email-to' | Should -BeNullOrEmpty
$userlocal.'two-factor' | Should -Be "disable"
$userlocal.type | Should -Be "password"
}

It "Add User Local $pester_userlocal email to" {
Expand All @@ -100,6 +101,7 @@ Describe "Add User Local" {
$userlocal.status | Should -Be "disable"
$userlocal.'email-to' | Should -Be "[email protected]"
$userlocal.'two-factor' | Should -Be "disable"
$userlocal.type | Should -Be "password"
}

It "Add User Local $pester_userlocal MFA by email" {
Expand All @@ -109,6 +111,7 @@ Describe "Add User Local" {
$userlocal.status | Should -Be "enable"
$userlocal.'email-to' | Should -Be "[email protected]"
$userlocal.'two-factor' | Should -Be "email"
$userlocal.type | Should -Be "password"
}

It "Add User Local $pester_userlocal email with -data" {
Expand All @@ -118,6 +121,7 @@ Describe "Add User Local" {
$userlocal.name | Should -Be $pester_userlocal
$userlocal.status | Should -Be "enable"
$userlocal.'email-to' | Should -Be "[email protected]"
$userlocal.type | Should -Be "password"
}

}
Expand All @@ -143,6 +147,7 @@ Describe "Add User Local" {
$userlocal.status | Should -Be "enable"
$userlocal.'email-to' | Should -BeNullOrEmpty
$userlocal.'two-factor' | Should -Be "disable"
$userlocal.'radius-server' | Should -Be $pester_userradius
}

It "Add User Local $pester_userlocal as RADIUS user email to" {
Expand All @@ -152,6 +157,7 @@ Describe "Add User Local" {
$userlocal.status | Should -Be "disable"
$userlocal.'email-to' | Should -Be "[email protected]"
$userlocal.'two-factor' | Should -Be "disable"
$userlocal.'radius-server' | Should -Be $pester_userradius
}

It "Add User Local $pester_userlocal as RADIUS user MFA by email" {
Expand All @@ -161,6 +167,7 @@ Describe "Add User Local" {
$userlocal.status | Should -Be "enable"
$userlocal.'email-to' | Should -Be "[email protected]"
$userlocal.'two-factor' | Should -Be "email"
$userlocal.'radius-server' | Should -Be $pester_userradius
}

It "Add User Local $pester_userlocal as RADIUS user email with -data" {
Expand All @@ -170,6 +177,7 @@ Describe "Add User Local" {
$userlocal.name | Should -Be $pester_userlocal
$userlocal.status | Should -Be "enable"
$userlocal.'email-to' | Should -Be "[email protected]"
$userlocal.'radius-server' | Should -Be $pester_userradius
}

AfterEach {
Expand Down Expand Up @@ -203,6 +211,7 @@ Describe "Add User Local" {
$userlocal.status | Should -Be "enable"
$userlocal.'email-to' | Should -BeNullOrEmpty
$userlocal.'two-factor' | Should -Be "disable"
$userlocal.'tacacs+-server' | Should -Be $pester_usertacacs
}

It "Add User Local $pester_userlocal as TACACS user email to" {
Expand All @@ -212,6 +221,7 @@ Describe "Add User Local" {
$userlocal.status | Should -Be "disable"
$userlocal.'email-to' | Should -Be "[email protected]"
$userlocal.'two-factor' | Should -Be "disable"
$userlocal.'tacacs+-server' | Should -Be $pester_usertacacs
}

It "Add User Local $pester_userlocal as TACACS user MFA by email" {
Expand All @@ -221,6 +231,7 @@ Describe "Add User Local" {
$userlocal.status | Should -Be "enable"
$userlocal.'email-to' | Should -Be "[email protected]"
$userlocal.'two-factor' | Should -Be "email"
$userlocal.'tacacs+-server' | Should -Be $pester_usertacacs
}

It "Add User Local $pester_userlocal as TACACS user email with -data" {
Expand All @@ -230,6 +241,7 @@ Describe "Add User Local" {
$userlocal.name | Should -Be $pester_userlocal
$userlocal.status | Should -Be "enable"
$userlocal.'email-to' | Should -Be "[email protected]"
$userlocal.'tacacs+-server' | Should -Be $pester_usertacacs
}

AfterEach {
Expand Down Expand Up @@ -263,6 +275,7 @@ Describe "Add User Local" {
$userlocal.status | Should -Be "enable"
$userlocal.'email-to' | Should -BeNullOrEmpty
$userlocal.'two-factor' | Should -Be "disable"
$userlocal.'ldap-server' | Should -Be $pester_userldap
}

It "Add User Local $pester_userlocal as TACACS user email to" {
Expand All @@ -272,6 +285,7 @@ Describe "Add User Local" {
$userlocal.status | Should -Be "disable"
$userlocal.'email-to' | Should -Be "[email protected]"
$userlocal.'two-factor' | Should -Be "disable"
$userlocal.'ldap-server' | Should -Be $pester_userldap
}

It "Add User Local $pester_userlocal as TACACS user MFA by email" {
Expand All @@ -281,6 +295,7 @@ Describe "Add User Local" {
$userlocal.status | Should -Be "enable"
$userlocal.'email-to' | Should -Be "[email protected]"
$userlocal.'two-factor' | Should -Be "email"
$userlocal.'ldap-server' | Should -Be $pester_userldap
}

It "Add User Local $pester_userlocal as TACACS user email with -data" {
Expand All @@ -290,6 +305,7 @@ Describe "Add User Local" {
$userlocal.name | Should -Be $pester_userlocal
$userlocal.status | Should -Be "enable"
$userlocal.'email-to' | Should -Be "[email protected]"
$userlocal.'ldap-server' | Should -Be $pester_userldap
}

AfterEach {
Expand Down

0 comments on commit e350e0b

Please sign in to comment.