Skip to content

Commit

Permalink
meta(Tests): fix q_type check for FortiOS 6.0.(x)
Browse files Browse the repository at this point in the history
  • Loading branch information
alagoutte committed Feb 1, 2024
1 parent 4861006 commit 35db328
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Tests/integration/FirewallAddress.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Describe "Get Firewall Address" {
$address.q_static | Should -Not -BeNullOrEmpty
$address.q_no_rename | Should -Not -BeNullOrEmpty
$address.q_global_entry | Should -Not -BeNullOrEmpty
$address.q_type | Should -BeIn @('28', '30', '31')
$address.q_type | Should -BeIn @('27', '28', '30', '31')
$address.q_path | Should -Be "firewall"
$address.q_name | Should -Be "address"
$address.q_mkey_type | Should -Be "string"
Expand Down
2 changes: 1 addition & 1 deletion Tests/integration/FirewallAddressGroup.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Describe "Get Firewall Address Group" {
$addressgroup.q_static | Should -Not -BeNullOrEmpty
$addressgroup.q_no_rename | Should -Not -BeNullOrEmpty
$addressgroup.q_global_entry | Should -Not -BeNullOrEmpty
$addressgroup.q_type | Should -BeIn @('30', '32', '33')
$addressgroup.q_type | Should -BeIn @('29', '30', '32', '33')
$addressgroup.q_path | Should -Be "firewall"
$addressgroup.q_name | Should -Be "addrgrp"
$addressgroup.q_mkey_type | Should -Be "string"
Expand Down
2 changes: 1 addition & 1 deletion Tests/integration/FirewallPolicy.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Describe "Get Firewall Policy" {
$policy.q_static | Should -Not -BeNullOrEmpty
$policy.q_no_rename | Should -Not -BeNullOrEmpty
$policy.q_global_entry | Should -Not -BeNullOrEmpty
$policy.q_type | Should -BeIn @('50', '52', '53')
$policy.q_type | Should -BeIn @('50', '51', '52', '53')
$policy.q_path | Should -Be "firewall"
$policy.q_name | Should -Be "policy"
$policy.q_mkey_type | Should -Be "integer"
Expand Down
2 changes: 1 addition & 1 deletion Tests/integration/FirewallProxyAddress.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Describe "Get Firewall Proxy Address" {
$address.q_static | Should -Not -BeNullOrEmpty
$address.q_no_rename | Should -Not -BeNullOrEmpty
$address.q_global_entry | Should -Not -BeNullOrEmpty
$address.q_type | Should -BeIn @('459', '468', '484', '487')
$address.q_type | Should -BeIn @('422', '459', '468', '484', '487')
$address.q_path | Should -Be "firewall"
$address.q_name | Should -Be "proxy-address"
$address.q_mkey_type | Should -Be "string"
Expand Down
2 changes: 1 addition & 1 deletion Tests/integration/FirewallProxyAddressGroup.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Describe "Get Firewall Proxy Address Group" {
$addressgroup.q_static | Should -Not -BeNullOrEmpty
$addressgroup.q_no_rename | Should -Not -BeNullOrEmpty
$addressgroup.q_global_entry | Should -Not -BeNullOrEmpty
$addressgroup.q_type | Should -BeIn @('460', '469', '485', '488')
$addressgroup.q_type | Should -BeIn @('423', '460', '469', '485', '488')
$addressgroup.q_path | Should -Be "firewall"
$addressgroup.q_name | Should -Be "proxy-addrgrp"
$addressgroup.q_mkey_type | Should -Be "string"
Expand Down
2 changes: 1 addition & 1 deletion Tests/integration/FirewallProxyPolicy.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Describe "Get Firewall Proxy Policy" {
$policy.q_static | Should -Not -BeNullOrEmpty
$policy.q_no_rename | Should -Not -BeNullOrEmpty
$policy.q_global_entry | Should -Not -BeNullOrEmpty
$policy.q_type | Should -BeIn @('450', '459', '475', '478')
$policy.q_type | Should -BeIn @('413', '450', '459', '475', '478')
$policy.q_path | Should -Be "firewall"
$policy.q_name | Should -Be "proxy-policy"
$policy.q_mkey_type | Should -Be "integer"
Expand Down
2 changes: 1 addition & 1 deletion Tests/integration/FirewallVipGroup.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Describe "Get Firewall Vip Group" {
$vipgroup.q_static | Should -Not -BeNullOrEmpty
$vipgroup.q_no_rename | Should -Not -BeNullOrEmpty
$vipgroup.q_global_entry | Should -Not -BeNullOrEmpty
$vipgroup.q_type | Should -BeIn @('197', '198', '206')
$vipgroup.q_type | Should -BeIn @('188', '197', '198', '206')
$vipgroup.q_path | Should -Be "firewall"
$vipgroup.q_name | Should -Be "vipgrp"
$vipgroup.q_mkey_type | Should -Be "string"
Expand Down
2 changes: 1 addition & 1 deletion Tests/integration/VpnIPsecPhase1Interface.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Describe "Get VPN Ipsec Phase 1 Interface" {
$interface.q_static | Should -Not -BeNullOrEmpty
$interface.q_no_rename | Should -Not -BeNullOrEmpty
$interface.q_global_entry | Should -Not -BeNullOrEmpty
$interface.q_type | Should -BeIn @('165', '166', '178')
$interface.q_type | Should -BeIn @('160', '165', '166', '178')
$interface.q_path | Should -Be "vpn.ipsec"
$interface.q_name | Should -Be "phase1-interface"
$interface.q_mkey_type | Should -Be "string"
Expand Down
2 changes: 1 addition & 1 deletion Tests/integration/VpnIPsecPhase2Interface.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Describe "Get VPN Ipsec Phase 2 Interface" {
$interface.q_static | Should -Not -BeNullOrEmpty
$interface.q_no_rename | Should -Not -BeNullOrEmpty
$interface.q_global_entry | Should -Not -BeNullOrEmpty
$interface.q_type | Should -BeIn @('166', '167', '179')
$interface.q_type | Should -BeIn @('161', '166', '167', '179')
$interface.q_path | Should -Be "vpn.ipsec"
$interface.q_name | Should -Be "phase2-interface"
$interface.q_mkey_type | Should -Be "string"
Expand Down

0 comments on commit 35db328

Please sign in to comment.