Implement Set-SsoGroup cmdlet

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

No files matched your search

@@ -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
}
}
}