Commit Graph

11 Commits

Author SHA1 Message Date
Brian Rosmaita e5ae1ed54a Get ready for tox 4
This patch makes tox 4 the default so that we can hopefully catch
problems locally before they block the gate.

tox changes:
- removed skipsdist=True, which in tox 4 appears to break the
  pep8 testenv (which runs check-uuid)
- made 4.0.0 the tox minversion

zuul changes:
- make the tgt job non-voting (it's failing on jammy, and we may
  be removing tgt support anyway)

Change-Id: Ic5ebb60b96d795ac0f14882772d26e6d4adca37b
2023-02-15 10:12:14 -05:00
whoami-rajat 668ce74e28 Add command to fix/generate idempotent IDs
This patch adds a "uuidgen" command that will fix all issues
related to idempotent IDs in our tests. Also modifies pep8 to
detect these issues.
This command already exists in tempest and is required for cinder
tempest plugin as we had undetected issues in our tests that
got merged which are also fixed in this patch. The issues are as
follows:

1) Missing idempotent IDs in test_capabilities
2) Duplicate idempotent IDs in the following backup tests
    a) test_backup_create_and_restore_to_an_existing_volume
    b) test_incr_backup_create_and_restore_to_an_existing_volume

Change-Id: I6b34fd67af4c302ff17244143506d8c8a8247eb6
2022-04-26 12:17:08 +05:30
tushargite96 040eb509fd Change minversion to 3.18.0 in tox
Change-Id: I0601c1055bee5926830146723a7bf4983460fb63
2021-06-29 15:25:20 +05:30
Luigi Toscano 7c47222c54 Switch to stestr
We don't really have unit tests in the repository and any py3x venv
would not really be useful (the tests are executed through tempest),
but let's remove the old dependency anyway and depend on stestr
like all the other OpenStack projects.

Change-Id: I52d06f1c1e141cb455fb7a823a27be532afb4c16
2021-02-09 22:47:08 +01:00
Rajat Dhasmana df4f94711e Ignore H101 rule
It doesn't seem to provide any benefit and is also removed from cinder
project.
For detailed reason, please look into the commit message of the cinder
patch[1].

[1] b0a56ddd25

Change-Id: I9a7749288706c8b326c1acd0cef6edd5ea91503e
2021-01-29 17:01:24 +00:00
Andreas Jaeger 79d13904aa Cleanup py27 support
This repo is now testing only with Python 3, so let's make
a few cleanups:
- Remove python 2.7.3 stanza from setup.py
- Remove obsolete sections from setup.cfg
- Remove install_command from tox.ini, the default is fine
- Switch to hacking 3.0, ignore W503 and W504 (as in cinder repo)
- Use TOX_CONSTRAINTS instead of obsolete UPPER_CONSTRAINTS

Change-Id: Ia623c8af7f03c25bce7e4600693a7e834ab70000
2020-05-04 15:42:49 +02:00
Brian Rosmaita e0622ed5b8 Drop python 2.7 support and testing
Change-Id: I3ff7a714d5fd61edd72e00c7a454c81724844f99
Closes-bug: #1853372
2020-01-16 15:18:55 -05:00
chenke 98e029d26c Switch to the new canonical constraints URL on master
Reference:
1. http://lists.openstack.org/pipermail/openstack-discuss/2019-May/006478.html

Change-Id: Ie634a18c9684d89c799d383b6538941d048da8ae
2019-06-20 21:37:55 +08:00
Doug Hellmann 5404306667 fix tox python3 overrides
We want to default to running all tox environments under python 3, so
set the basepython value in each environment.

We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.

We do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.

Change-Id: I56e633ab1483297f5403aaa77ba98d17012d60d8
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-09-26 18:50:23 -04:00
Sean McGinnis 44fed344d1 Clean up some initial repo creation boilerplate
Minor cleanup of things not needed for our tempest plugin.

Change-Id: Ib309cb1f87211e82eae0d27fa2464ec13a9deca6
Needed-by: I5ff95ca13f02ed6e0afb35f0d6bb5c36d4111f5a
Implements: blueprint goal-split-tempest-plugin
2017-12-20 17:10:45 +00:00
Nishant Kumar 9d06ea9ff3 Apply cookiecutter to newly split project
This tempest plugin is being split out of the main keystone project in
accordance with Queens goal "Split Tempest Plugins into Separate
Repos/Projects"[1]. This patch applies the standard boilerplate files
for OpenStack projects so that it can stand on its own.

[1] https://governance.openstack.org/tc/goals/queens/split-tempest-plugins.html
2017-07-22 07:23:48 -04:00