Skip to content

Commit

Permalink
Fix tests : auth-type --> authen-type
Browse files Browse the repository at this point in the history
  • Loading branch information
Cédric Moreau committed Sep 16, 2024
1 parent bb13528 commit 7fe405c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Tests/integration/UserTacacs.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -292,35 +292,35 @@ Describe "Configure User TACACS" {
Get-FGTUserTACACS -name $pester_usertacacs | Set-FGTuserTACACS -authen_type mschap
$usertacacs = Get-FGTUserTACACS -name $pester_usertacacs
$usertacacs.name | Should -Be $pester_usertacacs
$usertacacs."auth-type" | Should -Be "mschap"
$usertacacs."authen-type" | Should -Be "mschap"
}

It "Change type chap" {
Get-FGTUserTACACS -name $pester_usertacacs | Set-FGTuserTACACS -authen_type chap
$usertacacs = Get-FGTUserTACACS -name $pester_usertacacs
$usertacacs.name | Should -Be $pester_usertacacs
$usertacacs."auth-type" | Should -Be "chap"
$usertacacs."authen-type" | Should -Be "chap"
}

It "Change type pap" {
Get-FGTUserTACACS -name $pester_usertacacs | Set-FGTuserTACACS -authen_type pap
$usertacacs = Get-FGTUserTACACS -name $pester_usertacacs
$usertacacs.name | Should -Be $pester_usertacacs
$usertacacs."auth-type" | Should -Be "pap"
$usertacacs."authen-type" | Should -Be "pap"
}

It "Change type ascii" {
Get-FGTUserTACACS -name $pester_usertacacs | Set-FGTuserTACACS -authen_type ascii
$usertacacs = Get-FGTUserTACACS -name $pester_usertacacs
$usertacacs.name | Should -Be $pester_usertacacs
$usertacacs."auth-type" | Should -Be "ascii"
$usertacacs."authen-type" | Should -Be "ascii"
}

It "Change type auto" {
Get-FGTUserTACACS -name $pester_usertacacs | Set-FGTuserTACACS -authen_type auto
$usertacacs = Get-FGTUserTACACS -name $pester_usertacacs
$usertacacs.name | Should -Be $pester_usertacacs
$usertacacs."auth-type" | Should -Be "auto"
$usertacacs."authen-type" | Should -Be "auto"
}

AfterAll {
Expand Down

0 comments on commit 7fe405c

Please sign in to comment.