mirror of
https://github.com/openshift/installer.git
synced 2026-02-05 06:46:36 +01:00
Fix FailureDomains check on manifests test
The `FailureDomains` was updated to become a pointer, consequently the field may be absent in the `OpenShiftMachineV1Beta1MachineTemplate`. This commits updates the manifests test to take that into account.
This commit is contained in:
committed by
Radek Maňák
parent
2c991e05b1
commit
f6a9ce358f
@@ -18,7 +18,7 @@ class ControlPlaneMachineSet(unittest.TestCase):
|
||||
|
||||
def test_compute_zones(self):
|
||||
"""Assert that the OpenStack CPMS failureDomains value is empty."""
|
||||
self.assertNotIn("openstack", self.cpms["spec"]["template"]["machines_v1beta1_machine_openshift_io"]["failureDomains"])
|
||||
self.assertIsNone(self.cpms["spec"]["template"]["machines_v1beta1_machine_openshift_io"].get("failureDomains"))
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
@@ -18,7 +18,7 @@ class ControlPlaneMachineSet(unittest.TestCase):
|
||||
|
||||
def test_compute_zones(self):
|
||||
"""Assert that the OpenStack CPMS failureDomains value is empty."""
|
||||
self.assertNotIn("openstack", self.cpms["spec"]["template"]["machines_v1beta1_machine_openshift_io"]["failureDomains"])
|
||||
self.assertIsNone(self.cpms["spec"]["template"]["machines_v1beta1_machine_openshift_io"].get("failureDomains"))
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
Reference in New Issue
Block a user