Implement Set-SsoGroup cmdlet

Signed-off-by: Dimitar Milov <dmilov@vmware.com>
This commit is contained in:
Dimitar Milov
2021-05-26 09:44:52 +03:00
parent 04b0807ed5
commit f0cf0f58bd
8 changed files with 177 additions and 62 deletions

View File

@@ -127,4 +127,21 @@ Describe "SsoGroup Tests" {
Get-SsoGroup -Name $groupName -Domain 'vsphere.local' | Should -Be $null
}
}
Context "Set-SsoGroup" {
It 'Should update a SsoGroup with new description' {
# Arrange
$groupName = 'TestGroup4'
$expectedDescription = 'Test Description 4'
$groupToUpdate = New-SsoGroup -Name $groupName
# Act
$actual = $groupToUpdate | Set-SsoGroup -Description $expectedDescription
# Assert
$actual | Should -Not -Be $null
$script:testGroupsToDelete += $actual
$actual.Description | Should -Be $expectedDescription
}
}
}