Skip to content

Commit

Permalink
SystemSettings(Tests): Fix gui-proxy-inpsection with FortiOS 7.6.0
Browse files Browse the repository at this point in the history
the option/parameter is not longer available...
  • Loading branch information
alagoutte committed Aug 28, 2024
1 parent eae1be8 commit 56b6c04
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Tests/integration/SystemSettings.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ Describe "Set System Settings" {
$script:settings = Get-FGTSystemSettings
}

#Coming with FortiOS 7.2.x and need for some feature (like waf, ztna.. )
It "Change gui-proxy-inspection to enable" -skip:($fgt_version -lt "7.2.0") {
#Coming with FortiOS 7.2.x and need for some feature (like waf, ztna.. ) and remove with 7.6.0...
It "Change gui-proxy-inspection to enable" -skip:($fgt_version -lt "7.2.0" -or $fgt_version -ge "7.6.0") {
Set-FGTSystemSettings -gui_proxy_inspection
$ss = Get-FGTSystemSettings
$ss.'gui-proxy-inspection' | Should -Be "enable"
Expand Down Expand Up @@ -351,7 +351,7 @@ Describe "Set System Settings" {
$ss.'lldp-reception' | Should -Be "global"
}

It "Change gui-proxy-inspection to disable" -skip:($fgt_version -lt "7.2.0") {
It "Change gui-proxy-inspection to disable" -skip:($fgt_version -lt "7.2.0" -or $fgt_version -ge "7.6.0") {
Set-FGTSystemSettings -gui_proxy_inspection:$false
$ss = Get-FGTSystemSettings
$ss.'gui-proxy-inspection' | Should -Be "disable"
Expand Down

0 comments on commit 56b6c04

Please sign in to comment.