Skip to content

Commit

Permalink
Update Set-JCRadiusServer.Tests.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
jworkmanjc authored Nov 7, 2024
1 parent ea0a23e commit 67d5613
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,15 @@ Describe -Tag:('JCRadiusServer') 'Set-JCRadiusServer Tests' {
}
Context 'Set-JCRadiusServer' {
It ('Should update a radius server ByName.') {
$RadiusServer = Set-JCRadiusServer -Name:($RadiusServerTemplate.name) -newName:('Something') -networkSourceIp:($PesterParams_networkSourceIpUpdate) -sharedSecret:('kldFaSDfAdgfAgxcxWEQTRDS') -Force;
$RadiusServer = Set-JCRadiusServer -Name:($RadiusServerTemplate.name) -newName:('Something') -sharedSecret:('kldFaSDfAdgfAgxcxWEQTRDS') -Force;
$RadiusServer | Should -Not -BeNullOrEmpty
$RadiusServer.name | Should -Be 'Something'
$RadiusServer.networkSourceIp | Should -Be $PesterParams_networkSourceIpUpdate
$RadiusServer.sharedSecret | Should -Be 'kldFaSDfAdgfAgxcxWEQTRDS'
}
It ('Should update a radius server ById.') {
$RadiusServer = Set-JCRadiusServer -Id:($RadiusServerTemplate.id) -newName:('SomethingElse') -networkSourceIp:($PesterParams_networkSourceIpInitial) -sharedSecret:('aseRDGsDFGSDfgBsdRFTygSW') -Force;
$RadiusServer = Set-JCRadiusServer -Id:($RadiusServerTemplate.id) -newName:('SomethingElse') -sharedSecret:('aseRDGsDFGSDfgBsdRFTygSW') -Force;
$RadiusServer | Should -Not -BeNullOrEmpty
$RadiusServer.name | Should -Be 'SomethingElse'
$RadiusServer.networkSourceIp | Should -Be $PesterParams_networkSourceIpInitial
$RadiusServer.sharedSecret | Should -Be 'aseRDGsDFGSDfgBsdRFTygSW'
}
}
Expand Down

0 comments on commit 67d5613

Please sign in to comment.