Project

Profile

Help

Test #4956

closed

As a user, I can clear all units from a new repository version

Added by daviddavis over 3 years ago. Updated over 3 years ago.

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

Description

In #4901, we allowed users to pass in '*' as part of the list of remove_content_units when creating a RepositoryVersion so that they could remove ALL units from a new repo version.

Test Case 1

1. Create a new repo version with content units
2. Create a new repo version with remove_content_units with ['*']
3. Verify the repo version is empty

Test Case 2 (optional)

1. Create a new repo version with content units
2. Create a new content unit but don't add it to the repo version
3. Create a new repo version by specifying ['*'] for remove_content_units and your new content unit from step 2 for add_content_units
4. Verify the repo version only has the new content unit from step 2

Test Case 3

1. Create a new repo version with content units
2. Attempt to specify both '*' and a content id for remove_units (ie ["*", "/pulp/api/v3/content/file/files/209b2814-79ae-4530-97c5-c097193730ab/"])
3. Verify a 400 response + error


Related issues

Related to Pulp - Story #4901: Repository Version creation api should provide an easy way to clear out all units when adding new unitsCLOSED - CURRENTRELEASEdaviddavis

Actions
Actions #1

Updated by daviddavis over 3 years ago

  • Related to Story #4901: Repository Version creation api should provide an easy way to clear out all units when adding new units added
Actions #2

Updated by daviddavis over 3 years ago

  • Description updated (diff)
Actions #3

Updated by daviddavis over 3 years ago

  • Description updated (diff)
Actions #4

Updated by kersom over 3 years ago

  • Assignee set to kersom

Added by kersom over 3 years ago

Revision dd3ba8d2

Add test to clear all units

Add test to clear all units.

#4956

Actions #5

Updated by kersom over 3 years ago

  • Status changed from NEW to MODIFIED
Actions #6

Updated by kersom over 3 years ago

  • Status changed from MODIFIED to CLOSED - COMPLETE

Also available in: Atom PDF