Project

Profile

Help

Test #5805

closed

A test scenario for an upload of a single RPM package

Added by lmjachky over 4 years ago. Updated over 2 years ago.

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

Description

Ticket moved to GitHub: "pulp/pulp_rpm/2228":https://github.com/pulp/pulp_rpm/issues/2228


The commit merged via https://github.com/pulp/pulp_rpm/pull/1517 resolved the issue https://pulp.plan.io/issues/5699. It seems like we are missing tests which validate a single upload and its publication.

Therefore, the following test scenario is proposed:
1. Create an artifact:

http --form POST :24817/pulp/api/v3/artifacts/ file@./giraffe-0.67-2.noarch.rpm

2. Create an RPM package:

http POST :24817/pulp/api/v3/content/rpm/packages/ artifact="/pulp/api/v3/artifacts/ce225ae1-9cbd-4c20-8f31-c16ab2f0a6c6/" relative_path=giraffe-0.67-2.noarch.rpm

3. Add the created content to an empty repository:

http POST :24817/pulp/api/v3/repositories/rpm/rpm/75c0c59f-d453-42d3-8d6d-a53561b5d516/modify/ add_content_units:="[\"/pulp/api/v3/content/rpm/packages/3c2ac34c-470e-41b7-85b3-b3830efd4722/\"]"

4. Create a publication and check if the corresponding task was finished with a success:

http :24817/pulp/api/v3/publications/rpm/rpm/ repository=/pulp/api/v3/repositories/rpm/rpm/75c0c59f-d453-42d3-8d6d-a53561b5d516/
Actions #1

Updated by pulpbot over 2 years ago

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

Also available in: Atom PDF