Commit Graph

8 Commits

Author SHA1 Message Date
Ngo Quoc Cuong 08438d2f74 Trivial fix typo in document
Change-Id: I6f008218b20babec2678d0c34b970cbeb5c432b1
2017-05-08 13:38:19 +07:00
Rafael Folco 1a8453fd9b [placement] Raising http codes on old microversion
Currently only HTTP 404 can be raised. This enables other HTTP status
to be raised if microversion does not match with the minimum required.
This is useful for new methods created to raise other http status code
for older placement microversions, like 405 HTTPMethodNotAllowed.

Change-Id: I2b684fcfd93fc70fe385a93346ee255279909489
2017-03-15 14:28:42 +00:00
Chris Dent d0900c0609 Update placement_dev with info about new decorator
webob.dec.wsgify was replaced with wsgi_wrapper.PlacementWsgify in
change I3b81c5bd00a013f1659b9e6e80c71b373d965862 .

Here the placement_dev is updated to reflect that the new decorator
should be used.

Change-Id: I049c0d50b3af0d829cb7a041668d8ec4d6e0c590
2017-02-17 17:11:30 +00:00
Chris Dent 9dd48cf4c8 [placement] Add a bit about extraction plans to placement_dev
While we've not made any immediate plans to do the extraction we
should avoid adding complexity that would make it harder later, so
this new section discusses the plan to eventually extract, and the
structures that either help or hinder this.

Change-Id: Ia3e95e4b85aa768b8f94d4a99963c7ec719b8a13
2017-01-14 10:55:21 -05:00
Chris Dent 88a456b189 [placement] Add an "Adding a Handler" section to placement_dev
The section gives an overview of the steps required to add a new
handler to the placement API and the usual expectations of those
steps.

Change-Id: I41e8e413c30c44f3b6f6b1a8b559f0d39d793f68
2017-01-14 10:55:21 -05:00
Chris Dent 4aae9d5862 [placement] placement_dev info for testing and gabbi
Add a section to placement_dev.rst explaining how testing of the
placement API works, mostly gabbi. The idea here is not to duplicate
the gabbi docs, but to provide some context on how the use of gabbi
fits in to the existing tests and how to add more, with links off to
the docs for a bit more info.

Change-Id: If99521881a017543acdbbf7e8f1b7f170f5d633d
2017-01-14 10:55:20 -05:00
Chris Dent 2d0dfc632f [placement] placement_dev info for microversion handling
A section for placement_dev.rst describing how to manage
microversions, including available utility methods.

Change-Id: I8ace96ed7fd721c547cedf5285833a8baa52a70a
2017-01-14 10:55:15 -05:00
Chris Dent 692e596d83 [placement] start a placement_dev doc
placement_dev.rst provides a nova-developer oriented perspective on
the placement API including some explanation of its structure, some
gotchas to be aware of, and some instruction on how to add to it.

Subsequent patches will fill in the missing sections.

Change-Id: Ia571800774aa14beab121c85a693d75fc30ed517
2017-01-03 13:00:36 +00:00