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.') 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)
def tearDown(self): """Delete created resources.""" docker_utils.repo_delete(self.cfg, self.repo_id)
def tearDownClass(cls): """Delete created resources.""" docker_utils.repo_delete(cls.cfg, cls.repo_id)