As a user, I can upload an rpm file with a single request
Currently, users have to submit three requests to upload an rpm to a repository:
$ http --form POST :8000/pulp/api/v3/artifacts/ email@example.com $ http POST :8000/pulp/api/v3/content/rpm/packages/ ... $ http POST ':8000'$REPO_HREF'versions/' add_content_units:="[\"$CONTENT_HREF\"]"
See https://github.com/pulp/pulp_rpm/blob/master/docs/workflows/upload.rst for more info.
The goal of this story is to allow users to upload rpm packages in a single call:
$ http --form POST :8000/pulp_rpm/upload/ repository=$REPO_HREF firstname.lastname@example.org
See this proof of concept in pulp_ansible as an example:
Data to create the rpm will need to be parsed from the rpm's headers. See here how to do this:
Please register to edit this issue