Пример #1
0
 def step(self, *args, **kwargs):
     """Navigate to the Add page"""
     if self.obj.appliance.version >= '5.7':
         self.prerequisite_view.toolbar.configuration.item_select('Create Cloud Tenant')
     else:
         raise DestinationNotFound('Cannot add Cloud Tenants in CFME < 5.7')
Пример #2
0
 def step(self):
     if self.obj.appliance.version < '5.7':
         self.prerequisite_view.replication.select()
     else:
         raise DestinationNotFound(
             'Replication destination is absent in 5.7')
Пример #3
0
 def step(self):
     view = self.prerequisite_view
     try:
         view.contents.relationships.click_at('Nodes')
     except NameError:
         raise DestinationNotFound("Nodes aren't present on details page of this provider")
Пример #4
0
 def step(self, *args, **kwargs):
     configuration = self.prerequisite_view.toolbar.configuration
     try:
         configuration.item_select("Right-Size Recommendations")
     except NoSuchElementException:
         raise DestinationNotFound("Right Size option not available.")
Пример #5
0
 def step(self, *args, **kwargs):
     if self.obj.appliance.version >= '5.7':
         cfg_btn('Edit Cloud Tenant')
     else:
         raise DestinationNotFound('Cannot edit Cloud Tenants in CFME < 5.7')