Test the retain_old_count feature.
When more than one version of an RPM is present in a repository and Pulp syncs from that repository, it must choose how many versions of that RPM to sync. By default, it syncs all versions of that RPM. The retain_old_count option lets one sync a limited number of outdated RPMs.
This test targets Pulp #2785.
Create and sync a repository. Return information about it.
Implement the logic described by the
Create, populate and publish a repository.
Ensure at least two versions of an RPM are present in the repository.
retain_old_counta value of one.
Create a repository whose feed references the repository created in
setUpClass(), and whose
retain_old_countoption is one. Sync the repository, and assert that one old version of any duplicate RPMs were copied over.