Wrote tests covering get VMC SDDC Version

Fixed up get VMC Hosts a bit.
This commit is contained in:
Conor Tolan
2019-02-25 22:28:23 +00:00
parent f926508d1f
commit 3e09f0a601
2 changed files with 76 additions and 1 deletions

View File

@@ -54,7 +54,7 @@ inModuleScope VMware.VMC {
}
# Testing a single SDDC response
It "gets the task details via list method and returns the properties" {
$(Get-VMCVMHost -Org $OrgId).esx_id | Should -be "Mocked_esx_id"#$esx_id
$(Get-VMCVMHost -Org $OrgId).esx_id | Should -be $esx_id
$(Get-VMCVMHost -Org $OrgId).name | Should -be $VMHost_name
$(Get-VMCVMHost -Org $OrgId).hostname | Should -be $VMhostName
$(Get-VMCVMHost -Org $OrgId).esx_state | Should -be $esx_state