Test #5805
Updated by pulpbot about 3 years ago
**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: ~~~text http --form POST :24817/pulp/api/v3/artifacts/ file@./giraffe-0.67-2.noarch.rpm ~~~ 2\. Create an RPM package: ~~~text 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: ~~~text 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: ~~~text http :24817/pulp/api/v3/publications/rpm/rpm/ repository=/pulp/api/v3/repositories/rpm/rpm/75c0c59f-d453-42d3-8d6d-a53561b5d516/ ~~~