From 56b6c04ad13b20e7dbdcb3ff64d8363f11bfabf6 Mon Sep 17 00:00:00 2001 From: Alexis La Goutte Date: Wed, 28 Aug 2024 08:28:38 +0200 Subject: [PATCH] SystemSettings(Tests): Fix gui-proxy-inpsection with FortiOS 7.6.0 the option/parameter is not longer available... --- Tests/integration/SystemSettings.Tests.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Tests/integration/SystemSettings.Tests.ps1 b/Tests/integration/SystemSettings.Tests.ps1 index 64ddf7480..dff3ecb9c 100644 --- a/Tests/integration/SystemSettings.Tests.ps1 +++ b/Tests/integration/SystemSettings.Tests.ps1 @@ -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" @@ -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"