def install_katello_ca(self, sat_hostname=None): """Downloads and installs katello-ca rpm on the broker virtual machine. Uses common helper `install_katello_ca(hostname=None)`, but passes `self.hostname` instead of the hostname as we are using fake hostnames for broker virtual machines. :return: None. :raises robottelo.hosts.ContentHostError: If katello-ca wasn't installed. """ try: install_katello_ca(hostname=self.hostname, sat_hostname=sat_hostname) except AssertionError: raise ContentHostError('Failed to download and install the katello-ca rpm')
def setUpClass(cls): """Create an organization and product which can be re-used in tests.""" super(DockerContainerTestCase, cls).setUpClass() cls.org = entities.Organization().create() cls.cr_internal = entities.DockerComputeResource( name=gen_string('alpha'), organization=[cls.org], url=settings.docker.get_unix_socket_url(), ).create() cls.cr_external = entities.DockerComputeResource( name=gen_string('alpha'), organization=[cls.org], url=settings.docker.external_url, ).create() install_katello_ca()
def install_katello_ca(self): """Downloads and installs katello-ca rpm on the virtual machine. Uses common helper `install_katello_ca(hostname=None)`, but passes `self.ip_addr` instead of the hostname as we are using fake hostnames for virtual machines. :return: None. :raises robottelo.vm.VirtualMachineError: If katello-ca wasn't installed. """ try: install_katello_ca(hostname=self.ip_addr) except AssertionError: raise VirtualMachineError('Failed to download and install the katello-ca rpm')
def install_katello_ca(self): """Downloads and installs katello-ca rpm on the virtual machine. Uses common helper `install_katello_ca(hostname=None)`, but passes `self.ip_addr` instead of the hostname as we are using fake hostnames for virtual machines. :return: None. :raises robottelo.vm.VirtualMachineError: If katello-ca wasn't installed. """ try: install_katello_ca(hostname=self.ip_addr) except AssertionError: raise VirtualMachineError( 'Failed to download and install the katello-ca rpm')