Project

Profile

Help

Test #4035

Test base_version parameter

Added by daviddavis about 1 year ago. Updated 6 months ago.

Status:
CLOSED - COMPLETE
Priority:
Normal
Assignee:
Category:
-
Sprint/Milestone:
-
Version:
Platform Release:
Tags:
Functional Test
Sprint:

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 version MODIFIED Actions

Associated revisions

Revision b90c8aaa View on GitHub
Added by kersom about 1 year ago

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

Revision b90c8aaa View on GitHub
Added by kersom about 1 year ago

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

Revision b90c8aaa View on GitHub
Added by kersom about 1 year ago

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

History

#1 Updated by daviddavis about 1 year ago

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

#2 Updated by kersom about 1 year ago

  • Status changed from NEW to MODIFIED
  • % Done changed from 0 to 100

#3 Updated by daviddavis 12 months ago

  • Tracker changed from Task to Test
  • Assignee set to kersom

#4 Updated by kersom 11 months ago

  • Status changed from MODIFIED to CLOSED - COMPLETE

#5 Updated by bmbouter 6 months ago

  • Tags deleted (Pulp 3)

Please register to edit this issue

Also available in: Atom PDF