Simple HTTP CLI for OpenStack services
Go to file
Jamie Lennox 2477249a40 Add initial tests
To make os-http testable we do a little bit of rearranging of the shell
so that it returns strings and exceptions rather than printing directly.

With this rearranging we can then add a couple of tests to verify basic
functionality.
2016-06-06 14:23:58 +10:00
doc/source Initial Cookiecutter Commit. 2015-09-22 11:03:46 +10:00
os_http Add initial tests 2016-06-06 14:23:58 +10:00
.coveragerc Initial Cookiecutter Commit. 2015-09-22 11:03:46 +10:00
.gitignore Initial Cookiecutter Commit. 2015-09-22 11:03:46 +10:00
.gitreview Initial Cookiecutter Commit. 2015-09-22 11:03:46 +10:00
.mailmap Initial Cookiecutter Commit. 2015-09-22 11:03:46 +10:00
.testr.conf Initial Cookiecutter Commit. 2015-09-22 11:03:46 +10:00
babel.cfg Initial Cookiecutter Commit. 2015-09-22 11:03:46 +10:00
CONTRIBUTING.rst Initial Cookiecutter Commit. 2015-09-22 11:03:46 +10:00
HACKING.rst Initial Cookiecutter Commit. 2015-09-22 11:03:46 +10:00
LICENSE Initial Cookiecutter Commit. 2015-09-22 11:03:46 +10:00
MANIFEST.in Initial Cookiecutter Commit. 2015-09-22 11:03:46 +10:00
openstack-common.conf Initial Cookiecutter Commit. 2015-09-22 11:03:46 +10:00
README.rst Quick and dirty first version 2015-09-22 12:35:19 +10:00
requirements.txt Use os-client-config instead of keystoneauth directly 2016-04-11 16:01:01 +10:00
setup.cfg Quick and dirty first version 2015-09-22 12:35:19 +10:00
setup.py Initial Cookiecutter Commit. 2015-09-22 11:03:46 +10:00
test-requirements.txt Add initial tests 2016-06-06 14:23:58 +10:00
tox.ini Initial Cookiecutter Commit. 2015-09-22 11:03:46 +10:00

os-http

Simple HTTP CLI for OpenStack

A common problem I have in development is needing to make a request against an authenticated request against an OpenStack API "correctly" (using the catalog, real authentication, version discovery etc).

os-http is a httpie inspired wrapper around basic keystoneauth functionality that can make and display the response to HTTP requests against openstack services.

Usage

source accrc  # load your cloud authentication
os-http --os-service-type image \
        --os-api-version 2      \
        --os-interface public   \
        --os-region RegionTwo   \
        get /images