minimal yum repo server, with rest API and filesystem backend
Python Shell
Permalink
Failed to load latest commit information.
docroot
res use apache on port 80 Oct 30, 2015
scripts cleanup after build, bump version Nov 10, 2016
src
.gitignore
.travis.yml cleanup after build, bump version Nov 10, 2016
LICENSE Initial commit Oct 18, 2015
README.md
build.py cleanup after build, bump version Nov 10, 2016
setup.centos6.cfg add cfg for centos6 Apr 1, 2016
setup.centos7.cfg build rpm for different python versions, in fresh docker container Apr 1, 2016
setup.cfg build rpm for different python versions, in fresh docker container Apr 1, 2016
setup.fedora23.cfg build rpm for different python versions, in fresh docker container Apr 1, 2016
setup.py

README.md

yumrepos

Build Status Coverage Status PyPI

Minimal Yum Repo Server, with ReST API and Filesystem Backend

tl;dr for centos7 end users

follow instructions in our centos7-specific repository

tl;dr for developers

git clone https://github.com/arnehilmann/yumrepos.git
cd yumrepos
scripts/init-virtualenv
. venv/bin/activate

rest API

check if yum-repo service is up

curl $HOST/repos/

response: 200 OK, exit code of curl != 0

create repo

curl -X PUT $HOST/admin/v1/NEW_REPO

response: 201 CREATED, ?

check repo

curl $HOST/$TESTREPO1/

response: 200 OK, 404 NOT FOUND

upload rpm

curl -F rpm=@file_to_be_uploaded.rpm $HOST/admin/v1/TARGET_REPO

response: 201 CREATED, 404 NOT FOUND

check metadata of uploaded rpm

curL $HOST/admin/v1/TARGET_REPO/RPM/info

response: 200 OK (info in response body as json), 404 NOT FOUND

move rpm to another repo

curl -X STAGE $HOST/admin/v1/SOURCE_REPO/RPM/stageto/TARGET_REPO

response: ?

delete empty repo

curl -X DELETE $HOST/admin/v1/OBSOLETE_REPO

repsonse: 204 NO CONTENT, 409 CONFLICT (if not empty)

link to another repo

curl -X PUT $HOST/admin/v1/NEW_REPO?link_to=REPO_ALREADY_PRESENT

response: 201 CREATED

check if repo is a link

curl $HOST/admin/v1/REPO_TO_CHECK/is_link

repsonse: 200 OK (true or false in response body), 404 NOT FOUND

delete rpm

curl -X DELETE $HOST/admin/v1/REPO/RPM_TO_DELETE

response: 204 NO CONTENT, 404 NOT FOUND

delete repo recursivly

curl -X DELETERECURSIVLY $HOST/admin/v1/REPO_TO_BE_DELETED

response: ?

shutdown repo server

curl -X POST $HOST/admin/v1/shutdown

response: ?