flake8 new release 3.8.0 added new checks and gate pep8
job start failing. hacking 3.0.1 fix the pinning of flake8 to
avoid bringing in a new version with new checks.
Though it is fixed in latest hacking but 2.0 and 3.0 has cap for
flake8 as <4.0.0 which mean flake8 new version 3.9.0 can also
break the pep8 job if new check are added.
To avoid similar gate break in future, we need to bump the hacking min
version.
- http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014828.html
Change-Id: I375f1371ae3152b299f65dd36bda48f91e23dfc8
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.
Fix problems found by updated hacking version.
Remove hacking and friends from lower-constraints, they are not needed
during installation.
Change-Id: Ic63e432161dcebb62e0b510af03e03f7bebb3fd7
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: I6101cb044ee0fc2a7be95352569782eaf0b938aa
1. Synchronize tox and ansible version from kolla-ansible
2. Remove the unnecessary space for zuul.yml
Change-Id: Ib48a0267da9b107dc6d306bcd82c65dcbb523514
1. Bandit 1.6.0 accidentally changed how to exclusion list option is
handled and breaks our use of it. Cap to the previous version until
bandit has has fixed the problem.
2. add bandit test into pep8
3. clean up envlist
Change-Id: I9c7030e6fab24fb31871042dc15d23eae9fe2161
1. Sync sphinx dependency with global requirements. It caps python 2 since
sphinx 2.0 no longer supports Python 2.7.
2. when run tox -e docs in localhost, some file will be created, this ps to
ignore it.
Change-Id: I97c94abd33e66691bdd1d697746bb69725457d43
This commit is a follow-up of "switch to using stestr"
which was merged already [1].
After switch to using stestr, testrepository is unnecessary
and should be removed.
[1] https://review.openstack.org/572518
Change-Id: I1766a01c5b23db5a9237a0d9197b5cfefc336c0d
According to Openstack summit session [1] stestr is
maintained project to which all Openstack projects
should migrate.
Let's switch it then.
[1] https://etherpad.openstack.org/p/YVR-python-pti
Change-Id: I4c20eb58982c66598f0283864b9863b84cc29e57
Signed-off-by: Charles Short <zulcss@gmail.com>
The config reset command wipes all properties,
inventory data, default tls certificates and passwords.
The password set command now only allows modification
of existing passwords, and clear only removes the value
for existing password keys. The ability to completely
add new and remove passwords no longer exists as it
was really only useful in very edge cases and did not
play nicely with the concept of doing a config reset.
Change-Id: I9d1868da1161ebaf64793ab6d0e42de74389feab
mypy was not working. This change:
- fixes mypy call in tox.ini and adds mypy job to zuul
- fix a couple of errors that mypy found
- add import typing as needed to files
Implements: blueprint initial-testing
Change-Id: I94719f7064c29168721dc37a2148638b927cd2e4
- move tests directory under kolla_cli
- create new functional directory and put all tests in there
- add empty unit test directory
- add "test_" as a prefix to all test files (so ostestr sees them)
- use ostestr (--serial) to run the tests
- add functional tests into tox and zuul configs
- update tests/common to rip out code that selected which cli
command to use. will now always use python kolla_cli/shell.py
No test files were modified.
Change-Id: Iec80f7546b0f4ff2a857b14f546fd299732c727d
Implements: blueprint initial-testing
Included basic cliff usage structure for the execition of
three host commands. Includes Babel usage structure for
i18n message extraction. Includes tox and pep8 usage
structure for code quality / testing. Includes standard
requirements.txt and test-requirements.txt files.