Commit Graph

14 Commits (62e42d38001d39dbc5c47d85e004057cdd53cf08)

Author SHA1 Message Date
Pavlo Shchelokovskyy 198ef70c2b Add request context and policy enforcement
this patch introduces an oslo.policy-based API access policy
enforcement engine to ironic-inspector.
As part of implementation, a proper oslo.context-based request
context is also generated and assigned to each request.

Short overview of changes:

- added custom RequestContext class

  - extends oslo.context to handle of "is_public_api" flag
    (False by default)

- added context to request in each API route

  - '/continue' api sets the "is_public_api" flag to True

- added documented definitions for API access policies and their
- added enforcement of these policies on API requests
- added oslo.policy-specific entry points to setup.cfg
- added autogenerated policy sample file with defaults
- added documentation with autogenerated policies

Change-Id: Iff6f98fa9950d78608f0a7c325d132c11a1383b3
Closes-Bug: #1719812
2017-10-13 11:55:52 +00:00
Pavlo Shchelokovskyy 7625ed68c8 Use ostestr unit test runner
This patch moves ironic-inspector to use 'stestr' test runner
via 'ostestr' wrapper.

Effective changes:

- unit tests are now being run in parallel by default
- 'py*' jobs are not running code coverage measurements,
  which is left for 'cover' job only
- 'cover' job now also produces html reports consumable by upstream CI,
  and fails under 90% of code coverage
- users can leverage all the ostestr/stestr features

Change-Id: I75f539457dbb1d811fdee69de52d1bcee4c6ebe6
Depends-On: Ica838db23b5714c2da1e4313e1a7ece0ca241d44
Closes-Bug: #1666232
2017-10-02 14:28:58 +00:00
dparalen cc7b98aa10 Introducing the contributor content
Moving the contributor "link" and API down the mandatory directory

Change-Id: I111cd55a06e40dc4db649728a5025354a85b3e1d
Partial-Bug: 1702142
2017-07-21 10:22:33 +02:00
Dmitry Tantsur 3975337875 Generate API documentation from Python modules
Also brings "contributing" section toctree depth to the same level as

Change-Id: I661a0c7045fe945bfa7bd99589751c4aad63a61c
2016-03-08 15:07:44 +01:00
Serge Kovaleff 292e8c9cfd Generate Sphinx docs
Change-Id: I540b28d6173b30baf6ee2e6e14d8ba5ffb67b660
Closes-Bug: #1514803
2015-11-27 11:56:36 +02:00
Dmitry Tantsur f5671a4376 Use Reno for release notes management
Shameless copy-paste from Ic700d719242b17532b0b43a68b7eff507cb3a43c
and Iaef8b78802c04ec8306dd6f1da02d6c6a50697d8 with minimal changes.

Change-Id: I604136b72e2cf6b2bbbc3f9dc46ea3b419e495df
2015-11-26 10:12:14 +01:00
Dmitry Tantsur 05d0fce0aa Add .eggs/ to gitignore
This directory keeps appearing, not sure why, probably when I rebuild
the tox environment. From the README file in this directory:

    This directory contains eggs that were downloaded by setuptools to build,
    test, and run plug-ins.
    This directory caches those eggs to prevent repeated downloads.
    However, it is safe to delete this directory.

Change-Id: I67347b3e5b06f8b009df94f965b73dd2f8723475
2015-09-29 17:00:12 +02:00
Dmitry Tantsur 61b78a8314 Copy gitignore from ironic
Change-Id: I9dafa27ff3ea325312d158f0388c004e230c06a1
2015-08-19 12:32:10 +02:00
Dmitry Tantsur 9dcc2bb082 Switch to pbr
Also creates a required "venv" environment, drops version handling
from and updates requirements.

Closes-Bug: #1466477
Change-Id: I57ce71ee52cc48e0239cdecb69fd2272fc99ea41
2015-06-18 16:09:07 +02:00
Dmitry Tantsur f5977db1be Small sdist-related cleanup
Change-Id: I039b02888fd60bfe0bf5a4a74c42dfc9c6933627
2015-01-16 14:55:54 +01:00
Dmitry Tantsur 91922aebf5 gitignore .coverage file 2014-10-27 10:47:10 +01:00
Dmitry Tantsur 5c338fda5e Switch to tox 2014-10-10 15:34:45 +02:00
Dmitry Tantsur 45872dcc88 New structure, getting ready for PyPI 2014-10-02 18:17:38 +02:00
Dmitry Tantsur ea8e321f77 Initial commit 2014-09-29 15:13:25 +02:00