Skip to content

Commit 4bb45cd

Browse files
committed
Connection(Tests): fix oldauth tests
1 parent c9c527a commit 4bb45cd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Tests/integration/Connection.Tests.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ Describe "Connect to a fortigate (using HTTPS)" {
8080
$DefaultFGTConnection.serial | Should -Not -BeNullOrEmpty
8181
}
8282

83-
It "Connect to a FortiGate (using HTTPS) to old (before FortiOS 6.4 without -oldauth)" -Skip:($httpOnly -and $fgt_version -ge "6.4.0" ) {
84-
{ Connect-FGT $ipaddress -Username $login -password $mysecpassword -SkipCertificateCheck -port $port } | Should -throw "Log in failure. Most likely an incorrect username/password combo"
83+
It "Connect to a FortiGate (using HTTPS) to old (before FortiOS 6.4 without -oldauth)" -Skip:($httpOnly -or $fgt_version -ge "6.4.0" ) {
84+
{ Connect-FGT $ipaddress -Username $login -password $mysecpassword -SkipCertificateCheck -port $port } | Should -throw "Not supported API Authentication method on this FortiGate (try use -oldauth parameter)"
8585
}
8686
}
8787

0 commit comments

Comments
 (0)