Project

Profile

Help

Test #4839

Test #4838: [Epic] Test Distribution and AutoDistribution features from core

CRUD PublicationDistribution

Added by bmbouter 3 days ago. Updated 2 days ago.

Status:
NEW
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
-
Tags:
Sprint:

Description

The PublicationDistribution is designed to be subclassed and can't be fully tested unless it is subclassed. Thus, the recommended way to test core's functionality is to test it using the FileDistributor from pulp_file.

CRUD the FileDistributor here: https://docs.pulpproject.org/en/3.0/nightly/restapi.html#operation/distributions_file_file_create

1. Create a repo and repo_version with at least 1 file content in it. Make a Publication from this repo_version
2. Create a PublicationDistribution with 'publication' field set to the publication from step (1)
3. Assert the Distribution got created correctly with the correct base_path, name, and publication. Leave content guard unset.
4. Assert that FilePublication has a 'distributions' reference to the Distribution (it's backref) https://docs.pulpproject.org/en/3.0/nightly/restapi.html#operation/publications_file_file_read

History

#1 Updated by bmbouter 3 days ago

  • Parent task set to #4838

#2 Updated by bmbouter 2 days ago

  • Subject changed from Test CRUD PublicationDistribution to CRUD PublicationDistribution

Please register to edit this issue

Also available in: Atom PDF