Exemple #1
0
 def get_detail(self, *args, **kwargs):
     # TODO: remove when bug 1389299 is fixed to use common.vm.get_detail()
     # Navigate to all first to force reload of details screen without using refresh
     navigate_to(self, 'All')
     self.load_details()
     if kwargs.get('icon_href', False):
         return InfoBlock.icon_href(*kwargs.get('properties'))
     else:
         return InfoBlock.text(*kwargs.get('properties'))
Exemple #2
0
 def get_detail(self, *args, **kwargs):
     # TODO: remove when bug 1389299 is fixed to use common.vm.get_detail()
     # Navigate to all first to force reload of details screen without using refresh
     navigate_to(self, 'All')
     self.load_details()
     if kwargs.get('icon_href', False):
         return InfoBlock.icon_href(*kwargs.get('properties'))
     else:
         return InfoBlock.text(*kwargs.get('properties'))
    def get_detail(self, properties=None, icon_href=False):
        """ Gets details from the details infoblock

        Args:
            *properties: An InfoBlock title, followed by the Key name e.g. "Relationships", "Images"
            icon_href: Boolean indicating to return icon_href instead of text
        Returns: A string representing the contents of the InfoBlock's value.
        """
        navigate_to(self, 'Details')
        if icon_href:
            return InfoBlock.icon_href(*properties)
        else:
            return InfoBlock.text(*properties)
Exemple #4
0
    def get_detail(self, properties=None, icon_href=False):
        """Gets details from the details infoblock

        The function first ensures that we are on the detail page for the specific VM/Instance.

        Args:
            properties: An InfoBlock title, followed by the Key name, e.g. "Relationships", "Images"

        Returns:
            A string representing the contents of the InfoBlock's value.
        """
        self.load_details(refresh=True)
        if icon_href:
            return InfoBlock.icon_href(*properties)
        else:
            return InfoBlock.text(*properties)
Exemple #5
0
    def get_detail(self, properties=None, icon_href=False):
        """Gets details from the details infoblock

        The function first ensures that we are on the detail page for the specific VM/Instance.

        Args:
            properties: An InfoBlock title, followed by the Key name, e.g. "Relationships", "Images"

        Returns:
            A string representing the contents of the InfoBlock's value.
        """
        self.load_details(refresh=True)
        if icon_href:
            return InfoBlock.icon_href(*properties)
        else:
            return InfoBlock.text(*properties)