Actions
Test #4035
closedTest base_version parameter
Version:
Platform Release:
Tags:
Functional Test
Sprint:
Quarter:
Description
In #3360, we introduced a new param to the POST /pulp/api/v3/repositories/1/versions/ call that lets you set the base repository version. This lets users copy the contents of one repository into another.
Test same repository¶
1. Create a new repo
2. Sync the repo (this creates repo version 1)
3. Upload (or associate) a new content unit a new repository version (this create repo version 2)
4. Create a new repo version from version 1 (this creates version 3)
5. Check that version 1 and version 3 have the same content
Test different repository¶
1. Create a new repo A and sync it
2. Create a new repo B and a new version for this repo specify repo A version 1 as the base_version
3. Check that repo A version 1 and repo B version 2 have the same content
Related issues
Actions
Add tests for base_version and repository versions
Add tests to verify that
base_version
can be used to create another repository version. Using the same repository, and a different one.Besides that, add a test to assure that an HTTP exception is raised when using a non-exitent
base_version
.closes: #4035 https://pulp.plan.io/issues/4035