Example #1
0
    def remove_katello_ca(self):
        """Removes katello-ca rpm from the broker virtual machine.

        :return: None.
        :raises robottelo.hosts.ContentHostError: If katello-ca wasn't removed.
        """
        try:
            remove_katello_ca(hostname=self.hostname)
        except AssertionError:
            raise ContentHostError('Failed to remove the katello-ca rpm')
Example #2
0
    def remove_katello_ca(self, capsule=None):
        """Removes katello-ca rpm from the broker virtual machine.

        :param: str capsule: (optional) Capsule hostname
        :return: None.
        :raises robottelo.hosts.ContentHostError: If katello-ca wasn't removed.
        """
        hostname = capsule or self.hostname
        try:
            remove_katello_ca(hostname=hostname)
        except AssertionError:
            raise ContentHostError('Failed to remove the katello-ca rpm')
Example #3
0
    def remove_katello_ca(self):
        """Removes katello-ca rpm from the virtual machine.

        Uses common helper `remove_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 removed.
        """
        try:
            remove_katello_ca(hostname=self.ip_addr)
        except AssertionError:
            raise VirtualMachineError('Failed to remove the katello-ca rpm')
Example #4
0
    def remove_katello_ca(self):
        """Removes katello-ca rpm from the virtual machine.

        Uses common helper `remove_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 removed.
        """
        try:
            remove_katello_ca(hostname=self.ip_addr)
        except AssertionError:
            raise VirtualMachineError('Failed to remove the katello-ca rpm')
Example #5
0
 def tearDownClass(cls):
     """Remove katello-ca certificate"""
     remove_katello_ca()
     super(DockerContainerTestCase, cls).tearDownClass()
Example #6
0
 def tearDownClass(cls):
     """Remove katello-ca certificate"""
     remove_katello_ca()
     super(DockerContainerTestCase, cls).tearDownClass()