Project

Profile

Help

Test #4846

closed

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

CRUD RepositoryVersionDistribution

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

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

Description

The RepositoryVersionDistribution 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 AnsibleDistribution from pulp_ansible.

CRUD the PulpDistributor.

1. Create a repo and repo_version with at least 1 file content in it.
2. Create a AnsibleDistribution with 'repository' field set to the repository from step 1. Verify it accepts it.
3. Update the AnsibleDistribution to unset 'repository' and set 'repository_version'. Verify it accepts it.
4. Update the AnsibleDistribution to set both 'repository' and 'repository_version' and verify it rejects it. These options cannot be used together


Related issues

Related to Ansible Plugin - Issue #4910: AnsibleDistribution allows setting repo and repo_version together in a PUT requestCLOSED - CURRENTRELEASEfao89Actions
Actions #1

Updated by bmbouter over 5 years ago

  • Parent issue set to #4838
Actions #2

Updated by rochacbruno over 5 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to rochacbruno
Actions #3

Updated by rochacbruno over 5 years ago

  • Status changed from ASSIGNED to POST
Actions #4

Updated by rochacbruno over 5 years ago

  • Related to Issue #4910: AnsibleDistribution allows setting repo and repo_version together in a PUT request added

Added by Bruno Rocha over 5 years ago

Revision b6efb8dc | View on GitHub

Test AnsibleDistribution using repo and repo_version.

This test targets the following issue:

`Pulp #4846 <https://pulp.plan.io/issues/4846>`_

Do the following:

1. Create a repo and repo_version with at least 1 ansible content synced.
2. Create a AnsibleDistribution with 'repository' field set to the
   repository from step 1. Verify it accepts it.
3. Update the AnsibleDistribution to unset 'repository' and set
   'repository_version'. Verify it accepts it.
4. Update the AnsibleDistribution to set both 'repository' and
   'repository_version' and verify it rejects it. These options cannot be
   used together.
5. Attempt to update AnsibleDistribution to set repository to invalid
   repository path ans verify it rejects it.

https://pulp.plan.io/issues/4846 closes #4846

Actions #5

Updated by Anonymous over 5 years ago

  • Status changed from POST to MODIFIED
Actions #6

Updated by kersom over 5 years ago

  • Status changed from MODIFIED to CLOSED - COMPLETE

Also available in: Atom PDF