@@ -143,6 +143,14 @@ class ComputeResourceGoogleProfileStorageItem(GenericRemovableWidgetItem):
143143 size = TextInput (locator = ".//input[contains(@id, 'size')]" )
144144
145145
146+ class ComputeResourceOpenShiftProfileStorageItem (GenericRemovableWidgetItem ):
147+ """OpenShift Virtualization Compute Resource profile "Storage" item widget"""
148+
149+ storage_class = FilteredDropdown (id = 'storage_class' )
150+ size = TextInput (locator = ".//input[contains(@id, 'capacity')]" )
151+ bootable = Checkbox (locator = ".//div[3]//input[contains(@onclick, 'bootableRadio(this)')]" )
152+
153+
146154class HostInterface (View ):
147155 ROOT = ".//div[@id='interfaceModal']"
148156 title = Text (".//h4[contains(., 'Interface')]" )
@@ -193,6 +201,7 @@ class BridgeForm(View):
193201 # Compute resource attributes
194202 network_type = FilteredDropdown (id = '_compute_attributes_type' )
195203 network = FilteredDropdown (id = '_compute_attributes_bridge' )
204+ openshift_network = FilteredDropdown (id = '_compute_attributes_network' )
196205 nic_type = FilteredDropdown (id = '_compute_attributes_model' )
197206
198207 def after_fill (self , was_change ):
@@ -391,6 +400,26 @@ class operating_system(SatTab):
391400 image = FilteredDropdown (id = 'azure_rm_image_id' )
392401 root_password = TextInput (id = 'host_root_pass' )
393402
403+ @provider_content .register ('OpenShift Virtualization' )
404+ class OpenShiftResourceForm (View ):
405+ @View .nested
406+ class virtual_machine (SatTab ):
407+ TAB_NAME = 'Virtual Machine'
408+ cpus = TextInput (id = 'host_compute_attributes_cpu_cores' )
409+ memory = TextInput (id = 'host_compute_attributes_memory' )
410+ startup = Checkbox (id = 'host_compute_attributes_start' )
411+
412+ @View .nested
413+ class storage (RemovableWidgetsItemsListView ):
414+ ROOT = "//fieldset[@id='storage_volumes']"
415+ ITEMS = "./div/div[contains(@class,'removable-item')]"
416+ ITEM_WIDGET_CLASS = ComputeResourceOpenShiftProfileStorageItem
417+
418+ @View .nested
419+ class operating_system (SatTab ):
420+ TAB_NAME = 'Operating System'
421+ provision_method = Checkbox (id = 'host_provision_method_image' )
422+
394423 @View .nested
395424 class operating_system (SatTab ):
396425 TAB_NAME = 'Operating System'
0 commit comments