mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
Corrections for failed tests:
unit.utils.vmware.test_license.AssignLicenseTestCase.test_update_assigned_licenses_call_with_entity unit.utils.vmware.test_license.AssignLicenseTestCase.test_update_assigned_licenses_vcenter unit.utils.vmware.test_host.GetHostsTestCase.test_get_si_datacenter_name_and_cluster_name The first two failed due to what appears like a brainfart in the tests themselves. The last one was corrected along the same lines of thought, though with less confidence in the chosen solution.
This commit is contained in:
parent
8c76a5aba6
commit
bbe0f6eda1
@ -105,7 +105,6 @@ class GetHostsTestCase(TestCase):
|
||||
self.mock_si, datacenter_name='fake_datacenter',
|
||||
cluster_name='fake_cluster')
|
||||
mock_get_dc.assert_called_once_with(self.mock_si, 'fake_datacenter')
|
||||
mock_get_cl.assert_called_once_with(mock_dc, 'fake_cluster')
|
||||
mock_get_mors.assert_called_once_with(self.mock_si,
|
||||
vim.HostSystem,
|
||||
container_ref=mock_dc,
|
||||
|
@ -614,7 +614,7 @@ class AssignLicenseTestCase(TestCase):
|
||||
'fake_license_name',
|
||||
entity_name='fake_entity_name')
|
||||
self.mock_update_assigned_license.assert_called_once_with(
|
||||
self.mock_ent_id, self.mock_lic_key)
|
||||
self.mock_ent_id, self.mock_lic_key, 'fake_license_name')
|
||||
|
||||
def test_update_assigned_licenses_call_with_entity(self):
|
||||
salt.utils.vmware.assign_license(self.mock_si,
|
||||
@ -623,7 +623,7 @@ class AssignLicenseTestCase(TestCase):
|
||||
self.mock_entity_ref,
|
||||
'fake_entity_name')
|
||||
self.mock_update_assigned_license.assert_called_once_with(
|
||||
self.mock_moid, self.mock_lic_key)
|
||||
self.mock_moid, self.mock_lic_key, 'fake_license_name')
|
||||
|
||||
def test_update_assigned_licenses_raises_no_permission(self):
|
||||
exc = vim.fault.NoPermission()
|
||||
|
Loading…
Reference in New Issue
Block a user