Beispiel #1
0
 def test_all(self):
     """Create a synced RPM repo."""
     clean_repo(RPM_REPO)
     distributor = gen_rpm_distributor()
     distributor['auto_publish'] = True
     distributor['distributor_config']['relative_url'] = RPM_REPO
     body = gen_rpm_repo()
     body['distributors'] = [distributor]
     body['importer_config'] = {
         'feed': RPM_SIGNED_FEED_URL,
     }
     body['display_name'] = RPM_REPO
     body['id'] = body['display_name']
     repo = self.client.post(REPOSITORY_PATH, body)
     utils.sync_repo(self.cfg, repo)
Beispiel #2
0
 def test_all(self):
     """Create a synced Python repo."""
     clean_repo(PYTHON_REPO)
     distributor = gen_python_distributor()
     distributor['auto_publish'] = True
     distributor['distributor_config']['relative_url'] = PYTHON_REPO
     body = gen_python_repo()
     body['distributors'] = [distributor]
     body['importer_config'] = {
         'feed': PYTHON_PYPI_FEED_URL,
         'package_names': PYTHON_PYPI_PACKAGES,
     }
     body['display_name'] = PYTHON_REPO
     body['id'] = body['display_name']
     repo = self.client.post(REPOSITORY_PATH, body)
     utils.sync_repo(self.cfg, repo)
Beispiel #3
0
 def test_v2(self):
     """Create a synced Docker repo with v2 content."""
     clean_repo(DOCKER_V2_REPO)
     distributor = gen_docker_distributor()
     distributor['auto_publish'] = True
     distributor['distributor_config']['relative_url'] = DOCKER_V2_REPO
     body = gen_docker_repo()
     body['distributors'] = [distributor]
     body['importer_config'] = {
         'feed': DOCKER_V2_FEED_URL,
         'upstream_name': DOCKER_UPSTREAM_NAME,
     }
     body['display_name'] = DOCKER_V2_REPO
     body['id'] = body['display_name']
     repo = self.client.post(REPOSITORY_PATH, body)
     utils.sync_repo(self.cfg, repo)
Beispiel #4
0
 def test_clean_dockerv2(self):
     """Delete Docker V2 repo created by `pulp_migrate.populate`."""
     clean_repo(DOCKER_V2_REPO)
Beispiel #5
0
 def test_clean_python(self):
     """Delete Python repo created by `pulp_migrate.populate`."""
     clean_repo(PYTHON_REPO)
Beispiel #6
0
 def test_clean_rpm(self):
     """Delete RPM repo created by `pulp_migrate.populate`."""
     clean_repo(RPM_REPO)