Project

Profile

Help

Test #4839

closed

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

CRUD PublicationDistribution

Added by bmbouter almost 5 years ago. Updated almost 5 years ago.

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

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


Related issues

Related to Pulp - Test #4854: Test publication creation endpoint accepts either repository or repository_versionCLOSED - COMPLETEkersomActions
Related to Pulp - Test #4862: Test CRUD distributionsCLOSED - COMPLETEkersomActions
Actions #1

Updated by bmbouter almost 5 years ago

  • Parent issue set to #4838
Actions #2

Updated by bmbouter almost 5 years ago

  • Subject changed from Test CRUD PublicationDistribution to CRUD PublicationDistribution
Actions #3

Updated by kersom almost 5 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to kersom
Actions #4

Updated by kersom almost 5 years ago

  • Related to Test #4854: Test publication creation endpoint accepts either repository or repository_version added
Actions #5

Updated by kersom almost 5 years ago

  • Related to Test #4862: Test CRUD distributions added

Added by kersom almost 5 years ago

Revision ab3fb333 | View on GitHub

Expand create publication distribution test case

Expand create publication distribution test case. Use a publication field when creating a distribution. Update assertions about just created distribution.

#4839

Actions #6

Updated by kersom almost 5 years ago

  • Status changed from ASSIGNED to MODIFIED
Actions #7

Updated by kersom almost 5 years ago

  • Status changed from MODIFIED to CLOSED - COMPLETE

Also available in: Atom PDF