Project

Profile

Help

Test #4035

closed

Test base_version parameter

Added by daviddavis about 6 years ago. Updated over 5 years ago.

Status:
CLOSED - COMPLETE
Priority:
Normal
Assignee:
Category:
-
Sprint/Milestone:
-
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

Related to Pulp - Story #3360: As a user, I can create a repository version from any repository versionCLOSED - CURRENTRELEASEdaviddavis

Actions
Actions #1

Updated by daviddavis about 6 years ago

  • Related to Story #3360: As a user, I can create a repository version from any repository version added

Added by kersom about 6 years ago

Revision b90c8aaa | View on GitHub

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

Added by kersom about 6 years ago

Revision b90c8aaa | View on GitHub

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

Actions #2

Updated by kersom about 6 years ago

  • Status changed from NEW to MODIFIED
  • % Done changed from 0 to 100
Actions #3

Updated by daviddavis about 6 years ago

  • Tracker changed from Task to Test
  • Assignee set to kersom
Actions #4

Updated by kersom about 6 years ago

  • Status changed from MODIFIED to CLOSED - COMPLETE
Actions #5

Updated by bmbouter over 5 years ago

  • Tags deleted (Pulp 3)

Also available in: Atom PDF