From 907305684013ff7bec2fd3c61f04a057138b9b44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Moreau?= Date: Tue, 17 Sep 2024 15:58:44 +0200 Subject: [PATCH] Change some tests --- Tests/integration/UserLocal.Tests.ps1 | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/Tests/integration/UserLocal.Tests.ps1 b/Tests/integration/UserLocal.Tests.ps1 index 5fb8a9bb1..c31ac4ef9 100644 --- a/Tests/integration/UserLocal.Tests.ps1 +++ b/Tests/integration/UserLocal.Tests.ps1 @@ -627,7 +627,7 @@ Describe "Configure User Local" { Add-FGTUserLocal -Name $pester_userlocal -passwd $pester_userlocalpassword } - It "Change type to RADIUS from Local" { + It "Change type to RADIUS from Local" -skip:($fgt_version -lt "6.4.0") { Get-FGTUserLocal -name $pester_userlocal | Set-FGTUserLocal -radius_server $pester_userradius $userlocal = Get-FGTUserLocal -name $pester_userlocal $userlocal.name | Should -Be $pester_userlocal @@ -635,7 +635,7 @@ Describe "Configure User Local" { $userlocal."radius-server" | Should -Be $pester_userradius } - It "Change type to TACACS from RADIUS" { + It "Change type to TACACS from RADIUS" -skip:($fgt_version -lt "6.4.0") { Get-FGTUserLocal -name $pester_userlocal | Set-FGTUserLocal -tacacs_server $pester_usertacacs $userlocal = Get-FGTUserLocal -name $pester_userlocal $userlocal.name | Should -Be $pester_userlocal @@ -643,7 +643,7 @@ Describe "Configure User Local" { $userlocal."tacacs+-server" | Should -Be $pester_usertacacs } - It "Change type to LDAP from TACACS" { + It "Change type to LDAP from TACACS" -skip:($fgt_version -lt "6.4.0") { Get-FGTUserLocal -name $pester_userlocal | Set-FGTUserLocal -ldap_server $pester_userldap $userlocal = Get-FGTUserLocal -name $pester_userlocal $userlocal.name | Should -Be $pester_userlocal @@ -651,13 +651,6 @@ Describe "Configure User Local" { $userlocal."ldap-server" | Should -Be $pester_userldap } - It "Change type to Local from LDAP" { - Get-FGTUserLocal -name $pester_userlocal | Set-FGTUserLocal -passwd $pester_userlocalpassword - $userlocal = Get-FGTUserLocal -name $pester_userlocal - $userlocal.name | Should -Be $pester_userlocal - $userlocal.type | Should -Be "password" - } - AfterAll { Get-FGTUserLocal -name $pester_userlocal | Remove-FGTUserLocal -confirm:$false Get-FGTUserRADIUS -name $pester_userradius | Remove-FGTUserRADIUS -confirm:$false