Exemplo n.º 1
0
    def setUpClass(cls):
        """Provide a server config and a repository ID."""
        cls.cfg = config.get_config()

        if cls.cfg.pulp_version < version.Version('2.8'):
            raise unittest.SkipTest('These tests require Pulp 2.8 or above.')

        utils.pulp_admin_login(cls.cfg)

        cls.repo_id = utils.uuid4()
        docker_utils.repo_create(
            cls.cfg,
            enable_v2='true',
            repo_id=cls.repo_id,
        )
        docker_utils.repo_sync(cls.cfg, repo_id=cls.repo_id)
        cls.delete_cmd = docker_utils.repo_delete(cls.cfg, cls.repo_id)
Exemplo n.º 2
0
 def tearDown(self):
     """Delete created resources."""
     docker_utils.repo_delete(self.cfg, self.repo_id)
Exemplo n.º 3
0
 def tearDownClass(cls):
     """Delete created resources."""
     docker_utils.repo_delete(cls.cfg, cls.repo_id)