Commit Graph

18 Commits

Author SHA1 Message Date
Anand Bhat 27c426a76f Migrate from testr to stestr
* Replace .testr.conf by .stestr.conf for migration and update
  .gitignore, test-requirements.txt and lower-constraints.txt
  files accordingly
* Use py3 as the default runtime for tox and 3.18.0 as the
  minversion for tox
* Add a new job, openstack-cover-jobs, to run the coverage in Zuul

Change-Id: If6fa3f2f861d5eb6787743edcc6333e5aacef7d0
2021-07-01 16:12:14 +05:30
Sean McGinnis d2503ab476 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: I692abac2bf1fe118c27af043e71f315c8354c8a0
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2021-02-23 14:20:15 +00:00
Martin Kopec e875b75392 Bump hacking max version to 3.0.1 and fix pep8
pep8 job is failing because the version of flake8
(flake8<2.7.0,>=2.6.0) requested by hacking<1.2.0 is not
compatible with pyflakes>=2.1.1. Therefore the patch increases
the max version of hacking.
Also the patch fixes a few pep8 errors.

Change-Id: Ib9f1cb5a77947cfb1ab28a7f26e97edba007466c
2021-01-03 11:52:53 +00:00
Ghanshyam Mann 83a20368c8 migrate testing to ubuntu focal
As per victoria cycle testing runtime and community goal[1]
we need to migrate upstream CI/CD to Ubuntu Focal(20.04).

Fixing:
- bug#1886296
Bump the pyflakes to 2.1.1 as min version to run pep8 jobs
on py3.8 which is default python vesion in ubuntu focal.

Story: #2007865
Task: #40178

Closes-Bug: #1886296
[1] https://governance.openstack.org/tc/goals/selected/victoria/migrate-ci-cd-jobs-to-ubuntu-focal.html

Change-Id: If5262d4b4c67fddc55125ee3ca9c7f6c34ebade9
2020-07-09 15:12:46 -05:00
Jason Anderson 3f30c49c6b Don't fetch entire list when looking up by ID
Blazar APIs support directly fetching a resource (whether host, floating
ip, or lease) with its ID. However, the default logic for this includes
a block that supports additionally looking up the resource by name (to
allow looking up e.g., a lease by it's name.) This requires fetching the
entire list of all resources and iterating over them until a match is
found, which is very inefficient. Moreover, this branch would be taken
even if the input was already a UUID.

This commit changes that behavior so that if a UUID is provided, it is
used to directly fetch the resource, which seems to be what the original
intent was in the first place.

Change-Id: I5b1ccf4abfe4aa9068bc011764cac4b3507ef697
2020-01-30 16:59:44 +01:00
ZhijunWei dd62254686 Update hacking version
Change-Id: I90fb45e5065f13e3a5cc803d5caf42f0e9653da1
2019-01-03 20:48:47 +08:00
OpenStack Proposal Bot 5cbecc1845 Updated from global requirements
Change-Id: If15d71435ef8df3259313a65774a5aeeffea76da
2018-01-16 04:29:01 +00:00
Sean McGinnis c8d0bb7830 Remove mox from requirements
Mox was listed in test-requirements, but it is not actually
being used anywhere. Since we want to get rid of this package
in OpenStack, removing from requirements so it does not look
like it is being used.

Change-Id: Id28298c0327ac1780f17d9d7245360116814fd67
2018-01-09 17:13:35 -06:00
OpenStack Proposal Bot cb74f08e25 Updated from global requirements
Change-Id: I12bc5bb7825b3c47b8d94b8a0870cd7fe2ea5e78
2017-11-16 11:22:55 +00:00
OpenStack Proposal Bot f6ef800907 Updated from global requirements
Change-Id: I2f083db37169457714561d7ba9a261a7fc37a68e
2017-09-11 21:29:04 +00:00
OpenStack Proposal Bot a396bbe964 Updated from global requirements
Change-Id: I09c12b12c02697dcdf7bb676ddd31e2db18f6e99
2017-05-15 00:53:36 +00:00
Tony Breeds bbd1a1c7ab Remove discover from test-requirements
It's only needed for python < 2.7 which is not supported

Change-Id: I4badc120d32460d699a71be2ccf4651ea99006fc
2017-01-03 13:59:36 +11:00
OpenStack Proposal Bot 8c8203f02d Updated from global requirements
Change-Id: I7679832bf67cc88149f96d9480bf8750b5679bae
2016-12-02 17:17:12 +00:00
Steve Martinelli 7726cc6297 use oslotest
Move over to the fancy new oslo testing library.

Removing openstack/common from all OpenStack code in favor of the
Oslo libraries is a project wide goal for the Ocata release.

Also removed all openstack/common references throughout codebase.

Change-Id: Ib5c8a1f7a00eae883308fe77ca379dd1e0ea9b6b
2016-11-12 17:43:04 +00:00
Andreas Jaeger 5d1a9375dc Fix testing
Update hacking version so that it works with newer pbr releases, other
requirements depend on newer pbr and this causes a conflict.

Add pbr to requirements since it's needed.

Add pep8 ignore for those tests that currently fail.

Rename oslo.config to oslo_config in imports.

Change-Id: I23c0afa855be4773a8799d09d1cda011e85367bd
2015-12-20 11:48:16 +01:00
Pablo Andres Fuente fb02a3a396 Removing dependencies from test-requirements
Removing pep8, pyflakes and flake8 from test-requirements.
These packages were removed from global requirements.
(Commit b1101620fc0ba1938708b2e93f529341a016f0ae)

Change-Id: I2a03d6a59e2f31153695e6f45a79d56139323988
Closes-Bug: #1306256
2014-04-11 14:42:03 -03:00
Nikolay Starodubtsev 53c79034a6 Add test framework for climateclient
Add oslo modules which we will need for tests implementation. Also
add base class for tests, tox instruction for coverage and changes
to dot files.

Change-Id: Ia105f1e5e088ee91ce4b30149d4721df81d28368
2014-02-24 09:06:03 +04:00
Dina Belova aaf7c93ae6 Initial Climate client implementation
Partially implements: blueprint python-client

Change-Id: I7ac8aedf5b7504c63d12119e1ba0842e3ce01e63
2014-01-14 16:19:03 +04:00