@@ -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,8 @@ class BridgeForm(View):
193201 # Compute resource attributes
194202 network_type = FilteredDropdown (id = '_compute_attributes_type' )
195203 network = FilteredDropdown (id = '_compute_attributes_bridge' )
204+ ocpv_network = FilteredDropdown (id = '_compute_attributes_network' )
205+ cni_provider = FilteredDropdown (id = '_compute_attributes_cni_provider' )
196206 nic_type = FilteredDropdown (id = '_compute_attributes_model' )
197207
198208 def after_fill (self , was_change ):
@@ -391,6 +401,26 @@ class operating_system(SatTab):
391401 image = FilteredDropdown (id = 'azure_rm_image_id' )
392402 root_password = TextInput (id = 'host_root_pass' )
393403
404+ @provider_content .register ('OpenShift Virtualization' )
405+ class OCPVResourceForm (View ):
406+ @View .nested
407+ class virtual_machine (SatTab ):
408+ TAB_NAME = 'Virtual Machine'
409+ cpus = TextInput (id = 'host_compute_attributes_cpu_cores' )
410+ memory = TextInput (id = 'host_compute_attributes_memory' )
411+ startup = Checkbox (id = 'host_compute_attributes_start' )
412+
413+ @View .nested
414+ class storage (RemovableWidgetsItemsListView ):
415+ ROOT = "//fieldset[@id='storage_volumes']"
416+ ITEMS = "./div/div[contains(@class,'removable-item')]"
417+ ITEM_WIDGET_CLASS = ComputeResourceOpenShiftProfileStorageItem
418+
419+ @View .nested
420+ class operating_system (SatTab ):
421+ TAB_NAME = 'Operating System'
422+ provision_method = Checkbox (id = 'host_provision_method_image' )
423+
394424 @View .nested
395425 class operating_system (SatTab ):
396426 TAB_NAME = 'Operating System'
0 commit comments