Project

Profile

Help

Test #7441

closed

Add test coverage for per repository version uniqueness constraints

Added by quba42 over 3 years ago. Updated over 2 years ago.

Status:
CLOSED - DUPLICATE
Priority:
Normal
Assignee:
-
Sprint/Milestone:
Platform Release:
Tags:
Sprint:
Quarter:

Description

Ticket moved to GitHub: "pulp/pulp_deb/394":https://github.com/pulp/pulp_deb/issues/394


Provide test coverage for: https://pulp.plan.io/issues/6429

I deferred the test coverage in the interest of getting this issue merged, but I still think test coverage would be useful (and at this point I have a fairly detailed idea of what would be needed):

Minimal test:

Create a repository Upload https://fixtures.pulpproject.org/debian/pool/asgard/o/odin/odin_1.0_ppc64.deb to it. Also upload https://fixtures.pulpproject.org/debian-complex-dists/pool/asgard/o/odin/odin_1.0_ppc64.deb to it. Assert that the second repository version has only one package in it, and that the first package was removed from the version.

If we want to be fancy:

Add both packages to an empty repository in a single API call. Assert that the relevant error is thrown.

Add both packages to the repository from the minimal test using a single API call. Assert that the new version still only has one package in it.

Extra fancy:

Build a third colliding package in the fixtures. Add all three to the repository from the minimal test in a single API call. Assert that the relevant error is thrown.


Related issues

Related to Debian Support - Task #6429: Ensure per repository package uniqueness constraintsCLOSED - CURRENTRELEASE

Actions
Actions #1

Updated by quba42 over 3 years ago

  • Related to Task #6429: Ensure per repository package uniqueness constraints added
Actions #2

Updated by pulpbot over 2 years ago

  • Description updated (diff)
  • Status changed from NEW to CLOSED - DUPLICATE

Also available in: Atom PDF