1
0
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:
Maysa Macedo
2023-11-06 21:41:28 -03:00
committed by Radek Maňák
parent 2c991e05b1
commit f6a9ce358f
2 changed files with 2 additions and 2 deletions

View File

@@ -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__':

View File

@@ -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__':