Commit Graph

32 Commits

Author SHA1 Message Date
OpenStack Proposal Bot fe22d3ca56 Updated from global requirements
Change-Id: I5dd56f330ffaa538646e328dfec772e805a2e264
2018-03-23 00:47:38 +00:00
Monty Taylor 52d7d845b4 Shift doc requirements to doc/requirements.txt
This is the new hotness.

Add doc8 linting to the pep8 target while we're doing it. And, slim down
pep8 tox env. It doesn't need to install shade or any of the
requirements.

Change-Id: I1e73ee503c81f92b4fe84bdd384f856290b6d5dd
2018-01-24 16:03:05 +00:00
OpenStack Proposal Bot 287ae0e59d Updated from global requirements
Change-Id: I3e381df12f41a193c164e70518e0fec4181d9849
2018-01-24 00:48:31 +00:00
OpenStack Proposal Bot b081289e72 Updated from global requirements
Change-Id: Ie20ba5b4b93f701e2d9e76395b4f76af28b9f0f5
2018-01-17 20:27:06 +00:00
OpenStack Proposal Bot e63dd25b0f Updated from global requirements
Change-Id: I3507730266e5cab96bffbaf4cb635674256d9ac6
2017-11-16 10:58:17 +00:00
OpenStack Proposal Bot 35ae661b2c Updated from global requirements
Change-Id: I17ac8b33f1db658ea5571ac5e954c68bf3fa3ca7
2017-09-13 12:48:14 +00:00
Matthew Treinish 73ef1f549c
Switch to using stestr
stestr is a fork of testrepository, designed specifically to concentrate
on being a dedicated test runner. [1] The testrepository project is
basically not active anymore and has several long standing bugs and
useablility issues. stestr is still actively maintained and fixes a
large number of those issues with testrepository.

[1] https://github.com/mtreinish/stestr

Change-Id: I9b8049fd2c78d8f90aed5a8b35c0a9b40ad8c463
2017-09-08 18:40:51 -05:00
OpenStack Proposal Bot 20cc034f65 Updated from global requirements
Change-Id: I00bdd8c84248ed6f8df6c2b5e593dfe21acc07ec
2017-08-18 13:29:21 +00:00
OpenStack Proposal Bot 85d8adaec6 Updated from global requirements
Change-Id: I2da0ea1c58865c47396b001f1aa66c54ece57bfb
2017-07-27 20:19:00 +00:00
Lee Yarwood a9687a82fc Add debug to tox environment
The oslotest package distributes a shell file that may be used to assist
in debugging python code. The shell file uses testtools, and supports
debugging with pdb.

To enable debugging, run tox with the debug environment. Below are the
following ways to run it.

* tox -e debug module
* tox -e debug module.test_class
* tox -e debug module.test_class.test_method

Change-Id: If0b06dcf094682401c4b09dd72493c678ea2a6b0
2017-07-10 15:03:01 +01:00
Doug Hellmann 65ce1a2289 switch from oslosphinx to openstackdocstheme
Change-Id: I83c5856a49cdfd912eb2d62314848a4cc4905fe1
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2017-06-30 10:14:38 -04:00
OpenStack Proposal Bot 70d8cc39df Updated from global requirements
Change-Id: Id6df6784e14fa6dfd4543ab54f9c2e01c87c69cf
2017-06-27 12:07:54 +00:00
OpenStack Proposal Bot 076a407eac Updated from global requirements
Change-Id: I5b98af79293aae245f2e37eb585ed87b9153c940
2017-06-06 05:59:39 +00:00
OpenStack Proposal Bot c19a797066 Updated from global requirements
Change-Id: I245f8b4e10a57d133443683ba115274ce2332bfd
2017-05-17 03:45:54 +00:00
OpenStack Proposal Bot 5991a5e722 Updated from global requirements
Change-Id: I034286a50f55350269777e13331cda536f9c8b4f
2017-05-16 12:18:08 +00:00
OpenStack Proposal Bot 7e92e93104 Updated from global requirements
Change-Id: I87c2f41a041ebf80a97f1f4b6100800b68f4f137
2017-03-30 14:03:25 +00:00
Monty Taylor 8aa8688ba8
Move futures to requirements
Wow. We had futures in our test-requirements so we never noticed it
wasn't in our regular requirements.

Change-Id: I6ae3434effc778524908d009627e9c0da6258f7c
2017-03-28 07:52:38 -05:00
Monty Taylor db45323809
Update sphinx and turn on warnings-is-error
In order to do that, fix the warnings that are now errors.

Change-Id: I1e582a6763fc82496e4ab33f60ced193b0534f28
2017-03-16 12:17:51 +01:00
Monty Taylor 32d53d58ce Transition nova flavor tests to requests_mock
We had added a betamax fixture for create_flavor, but the requests_mock
approach is actually working out much better. Go ahead and replace it to
simplify the test suite a little bit.

Remove _by_flavor tests as they tested a behavior that's actually invalid but
worked in the test by happenstance.

Transition the rest of the file while we're in there.

Change-Id: Ic2457d7380a8af41ed7bf6b264cbdc2240780ff3
2017-01-31 22:37:14 +00:00
Monty Taylor 24acc1888b
Remove glanceclient and warlock from shade
We've removed the uses - remove both from requirements.

Change-Id: Ie3f2354d2034a695ae9086f84f5d6c7f3698d90b
2016-12-12 14:01:54 -06:00
Monty Taylor 8025c63e11
Start using requests-mock for REST unit tests
Mocking out the whole client is the wrong level. Although we'd still
like to betamax the functional tests - as we put in REST calls, let's
make the mocking of them happen at the requests level so that we test as
much of shade as we can.

Nobody look at the v2 keystone catalog. The existing clouds.yaml entry
was for a v2 cloud and I wanted to keep the patch contained to the task
at hand. We should likely do some crazy testscenarios magic at some
point to make sure _all_ the things work with both v2 and v3.

Change-Id: Ife4d95df5417d329195c737814e89d1370a0597b
2016-11-16 12:19:59 -06:00
Monty Taylor 071fb5fa8a Add unit test to show herd protection in action
The discussion around the previous patch had a simple test case which
was used to show invalid and valid behavior. Turns out, that can be a
test.

Change-Id: I39550d44f4e83f803624a833a081101bad9dc545
2016-11-08 19:09:06 +00:00
Swapnil Kulkarni (coolsvap) 354f38ab2c Remove discover from test-requirements
It's only needed for python < 2.7 which is not supported

Change-Id: I9511e1e08af8c0a5740e744252103a94e80eab43
2016-07-22 05:02:20 +00:00
Monty Taylor 51a5eb575e
Update hacking version
There is an issue with old hacking which is causing it to fail open.

Change-Id: I744fc414bffe984a63374d6431d77e6be5a28f40
2016-07-18 14:24:18 -05:00
Yolanda Robla 5f5c925631 Use keystoneauth.betamax for shade mocks
Instead of mocking the clients, use keystoneauth1.betamax
fixture to intercept keystoneauth.construct_session, and provide
our own recorded fixtures.

Change-Id: I7b2973b0f89b66c19d6bf10571c3c93692107aa3
2016-06-10 08:11:01 +02:00
David Shrewsbury 34799e9f9e Add test for os_server Ansible module
We haven't been able to test os_server because we haven't had a
way to reliably determine the image name (which changes from time
to time based on version) from the playbook. A stupidly clever
hack is to just grep out the name from a shell call to the openstack
client and pass that in to the playbook from the command line.

The playbook is simple for now for the initial commit. I expect new
tasks to be added to it later.

Change-Id: I3caedfd4c805126c8da1fc8bab06ccda3fd96528
2016-03-01 14:54:11 -05:00
Monty Taylor 83159ae486 Use reno for release notes
The OpenStack Release team has created a great release notes management
tool that integrates with Sphinx. Start using it. For reference on how
to use it, see http://docs.openstack.org/developer/reno/

Change-Id: I57692d720174fedb68ab2f52d5a4c496a6d993b2
2015-12-07 15:52:11 -05:00
Monty Taylor cb54ac5460 Update pbr version pins
We've released 1.0, so we should use it. Also, you want at least 0.11.
Update the hacking pin because we need new flake8 to deal with a
pkg_resources issue.

Change-Id: I62767ea281df94f67d453a14e9c8500aeb305e97
2015-05-28 10:52:59 -04:00
Monty Taylor a417f3882f Make warlock filtering match dict filtering
For obj_to_dict, we filter out keys that start with _ and values that
are not normal values. Do the same for our warlock conversion.

Change-Id: Idbf4303c1e4151494d1ea814be6ca5f86e76b16d
2015-05-02 15:57:39 +00:00
Monty Taylor 5ca933aa7f Add API auto-generation based on docstrings
We've been adding docstrings, maybe we should put them into our
documentation.

Change-Id: I11ee33e1b87854403ec8b4e35f338c2c604d7fa4
2015-04-02 13:50:59 -04:00
David Shrewsbury ff25b8eb3b Add methods for logical router management
Adds API methods to list existing routers, create a new logical
router, update an existing router, and delete an existing logical
router by name or UUID.

It is considered an error if more than one router with the same
name exists and you attempt to delete by name.

Also... MOAR TESTS!!! ZOMG

Change-Id: Ie6ea4eb5f2322bdda07e6db87e2cdbabea492ee9
2015-03-28 21:21:24 +00:00
Monty Taylor c046b39e79 Initial cookiecutter repo 2014-08-30 17:05:28 -07:00