示例#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
文件: vm.py 项目: nachandr/cfme_tests
 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')