Commit Graph

12 Commits

Author SHA1 Message Date
Sean McGinnis 4b08096d23
Use unittest.mock instead of third party mock
Now that we no longer support py27, we can use the standard library
unittest.mock module instead of the third party mock lib.

Change-Id: Ida2ec7793c3863836e1c626eb72e0aa9f48b6810
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-03-24 07:47:24 -05:00
Adrian Turjak 46045d407c Add tests for Black, and ignore reformat blame
Change-Id: Ie6c6933a46c4aedf559713d37900ecd617e93885
2020-02-21 14:52:39 +13:00
Adrian Turjak c750fd6d6c Rework Adjutant's config system to use CONFspirator
CONFspirator was written to just specifically for Adjutant
and it allows us to do oslo.config style config management
and definition with nested groups and for yaml.

This is a major change that touches vast amounts of the
code simply because of how much the config touches.

Actions, Tasks, DelegateAPIs, and Notification Handlers
now can define config in their own class and this will
be added to the config.

All the other config is located in `adjutant.config`,
with everything now registed nicely on the config tree,
and grouped in much saner ways.

CONFspirator will also now allow Adjutant to be entirely
configured via environment variables.

We have removed `modify_dict_settings` because that is
now entirely handled by CONFspirator's test utils.

`NotificationEngine`s are now `NotificationHandler`s.

`test_settings.py` is gone! And we now have better ways
to define test settings and defaults.

Project line length bumped to 88, and bugbear added to enforce
that instead.

Story: 2004488

Change-Id: I1d97d72d06b3a3a5df90355d3a4b4fe414381424
2020-02-05 19:07:04 +13:00
Andreas Jaeger f81cf9a905 Update docs building
Follow PTI [1] for doc building:
* Create doc/requirements.txt file with all docs requirements.
* Switch to openstackdocstheme and update conf.py for this.
* Move doc8 to pep8 section since it's a linter.

Additionally:
* Fix all build errors with doc building.
* Update requirements list with license info.
* Use hacking instead of flake directly.
* Remove unused _static files, those are not needed.
* Update git URLs, fix contributor guide URL
* Move README.md to RST, everything else in this repo is RST
* Publish documents to docs.o.o - note that
  https://adjutant.readthedocs.io/en/latest/ was last updated  in March
  2018

This adds jobs for building of release notes - only building since
there's no content yet - and publishing of documentation.

Publishing of api-ref can be done via:
 https://review.opendev.org/675766

[1] https://governance.openstack.org/tc/reference/project-testing-interface.html#documentation

Change-Id: I82f56ef5ea800899b2a8db795b6cf2b21d03ac7a
2019-08-11 12:06:13 +02:00
Adrian Turjak 470f253003 Added support for reno release notes
Change-Id: Icf04f5d8dcb4a04f567e6a3bc10760831e6b43cc
2019-07-02 15:04:04 +12:00
jacky06 7f3a7b6755 Sync Sphinx requirement
1. Sync sphinx dependency with global requirements. It caps python 2 since
sphinx 2.0 no longer supports Python 2.7.
2. Remove unncessary "=="

Change-Id: I86e633512de5e35384f8dc7aa0b29a1fc07aef97
2019-06-18 21:59:27 +08:00
Adrian Turjak afcf377ccb Update requirements files
Sync up requirement files with global-requirements,
and set tox default envs to be 'py3' over 'py35'

Change-Id: Ic78246a4a75b88027b4896664874d1efc587582c
2019-05-17 10:48:32 +12:00
Amelia Cordwell 6cbf3fa7f7 Documentation and Api Reference
* API Reference and documentation as two seperate sphinx
  document sets
* Information from the Devstack guide and README moved over
  to the new documentation
* Configuration examples
* Examples of building plugins
* Both use the new sphinx-rtd-theme

Change-Id: If347905aa14b77b5943f1a9de97f6e287b98ce95
2017-11-04 18:00:28 +13:00
adrian-turjak c17320c069 Update test files for openstack-infra
* also update the gitreview file
* add base doc folder for future use (and to make
  CI happy)

Change-Id: Ifd854682c8121720e940c0a7d8ac3656cbf97af0
2017-06-21 16:18:37 +12:00
adrian-turjak 3da809bfaa Adding support for code coverage reposting in tests.
Change-Id: I6e379747d347fc6b3d2fef00a711ae13bb62dfc5
2017-05-29 15:57:30 +12:00
adrian-turjak 1961ca91c3 Adding pep8 tests
* also fixing test posargs to allow single test running
* fixing up random pep8 failures
* removing empty or unused test modules

Change-Id: I59bb2fedeeac2b8eeb45740d16768fec59fb3e4b
2016-12-06 18:09:36 +13:00
adriant 572b22a1a8 adding tox file and some changes to test setup
Change-Id: Icd1f3965e4c2617c16c3440e79df17aa4ca0ab0a
2015-07-31 16:44:03 +12:00