From 67d561310e0f2c4f2b89589d90b10cbcbe09a7a5 Mon Sep 17 00:00:00 2001 From: Joe Workman <54448601+jworkmanjc@users.noreply.github.com> Date: Thu, 7 Nov 2024 12:26:57 -0700 Subject: [PATCH] Update Set-JCRadiusServer.Tests.ps1 --- .../Tests/Public/RadiusServer/Set-JCRadiusServer.Tests.ps1 | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/PowerShell/JumpCloud Module/Tests/Public/RadiusServer/Set-JCRadiusServer.Tests.ps1 b/PowerShell/JumpCloud Module/Tests/Public/RadiusServer/Set-JCRadiusServer.Tests.ps1 index c91371e96..de2f5f1cb 100644 --- a/PowerShell/JumpCloud Module/Tests/Public/RadiusServer/Set-JCRadiusServer.Tests.ps1 +++ b/PowerShell/JumpCloud Module/Tests/Public/RadiusServer/Set-JCRadiusServer.Tests.ps1 @@ -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' } }