Commit Graph

25 Commits

Author SHA1 Message Date
wu.chunyang 3b56a5e0f7 kolla-cli: deprecation - Removing project content
step 2b from:
https://docs.openstack.org/project-team-guide/repository.html#step-2b-remove-project-content

Deprecation notice:
http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014983.html

Change-Id: I744f5c17232928cec68c1b90b2f5d791faf7d9e7
Depends-On: https://review.opendev.org/748259
2020-09-03 09:58:43 +02:00
Ghanshyam Mann 6b28edec64 Fix hacking min version to 3.0.1
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
2020-05-12 19:26:31 -05:00
jacky06 d237a3ed06 Update hacking for Python3
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
2020-04-06 13:57:01 +08:00
jacky06 cb017ed845 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: I6101cb044ee0fc2a7be95352569782eaf0b938aa
2020-04-06 12:33:06 +08:00
Ghanshyam Mann 3f9b0679ab [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

kolla-cli also drop py2 testing and support.

Complete discussion & schedule can be found in
- http://lists.openstack.org/pipermail/openstack-discuss/2019-October/010142.html
- https://etherpad.openstack.org/p/drop-python2-support

Ussuri Communtiy-wide goal:
https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html

Change-Id: I44fe93012739ad190f8d0fe593e70863ab238158
2020-03-01 10:46:00 +00:00
gujin ba7c612101 Move doc related modules to doc/requirements.txt
Change-Id: Id99f39dd41beaa7d997270a44b355fe184d137b5
2019-08-06 00:29:45 +08:00
jacky06 3babfbaeda Move sphinx-build into tox
Change-Id: I8b98e96a5f8be1d86f388a2fd702eacd3ad07986
2019-08-02 23:43:50 +08:00
ljhuang 8ac36d7630 Bump some requirements to latest
Change-Id: Ifce8324b00ea8904cc26ab1502ff79ff316d04cf
2019-07-18 01:23:05 +00:00
gujin aa955b7fe8 Add debug env into tox
Change-Id: Id33099d16a03babbc8474a7b72fc958e848f41f5
2019-07-15 14:31:59 +08:00
jacky06 e9c019f382 Synchronize tox and ansible version from kolla-ansible
1. Synchronize tox and ansible version from kolla-ansible
2. Remove the unnecessary space for zuul.yml

Change-Id: Ib48a0267da9b107dc6d306bcd82c65dcbb523514
2019-07-15 11:12:30 +08:00
gujin 410ca5075b Cap bandit below 1.6.0 version and add it into pep8 section
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
2019-07-12 23:50:46 +08:00
yanghongyu 77d84bba46 Blacklist sphinx 2.1.0 (autodoc bug)
See https://github.com/sphinx-doc/sphinx/issues/6440 for upstream details
Depend-On: https://review.opendev.org/#/c/663060/

Change-Id: I4a9d2c04b43844a4cf86403e464f0627a675802f
2019-07-10 09:41:57 +00:00
gujin 10cc20514f Add doc8 test into pep8
Change-Id: Ifcf29fb582eb886b065dc6171bf37a677dc35f7f
2019-07-10 16:08:37 +08:00
zhulingjie 0695a17c58 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. when run tox -e docs in localhost, some file will be created, this ps to
ignore it.

Change-Id: I97c94abd33e66691bdd1d697746bb69725457d43
2019-07-10 12:29:48 +08:00
zhulingjie 14e691bac7 Update hacking version
Co-authored-by: confi-surya <singh.surya64mnnit@gmail.com>
Change-Id: I850d3dc1ecca513c05823520c34cc84b7f39d344
2019-07-04 10:37:30 +00:00
caoyuan a79a3930eb Bump ansible_version_min to 2.4
the include_tasks is the new feature in version 2.4[0], and
kolla use it[1], the ansible_version_min should be updated
to version 2.4

Depend-on: I273ac9e8295bfe3fb97af620c1e48e9fbbf06c6e

[0]: https://docs.ansible.com/ansible/2.4/include_tasks_module.html
[1]: https://review.openstack.org/#/c/584728/

Change-Id: Ic955a6d808dfe9d0f8303b58207e7fbd71be78e2
2018-07-31 13:26:39 +08:00
Vu Cong Tuan 9f0d3f324c Remove testrepository
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
2018-07-11 17:48:47 +07:00
caoyuan c9cf67fdf5 Update the ansible min version to 2.2.0
1. The version of kolla-cli should keep consistency with kolla-ansible[0],
the min ansible version of kolla-ansible is 2.2.0, so update it.
2. Move the ansible into test-requirements.txt

[0]: https://github.com/openstack/kolla-ansible/blob/master/ansible/roles/prechecks/vars/main.yml#L4

Change-Id: I1ce0c27e72497e64f5868a027375a7ce62882173
2018-06-26 00:27:21 +08:00
Charles Short 5e3a06d887 Switch to using stestr
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>
2018-06-07 09:58:34 -04:00
Borne Mace e6459aa8f2 Add support for config reset command.
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
2018-05-25 11:16:02 -07:00
Steve Noyes 7c0bc714f1 Fix mypy static type checker
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
2018-05-17 16:12:23 -04:00
Steve Noyes 8b2f52e2c6 Align tests with how functional tests are handled
- 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
2018-05-16 16:13:54 -04:00
Borne Mace 7a1547aa47 Added support for settings / clearing multiple properties in a single call.
Jira-Issue: OSTACKDEV-19
2016-04-13 12:19:10 -07:00
Borne Mace ee57dcae8a added support for doing bandit checks. 2015-11-09 12:51:32 -08:00
Borne Mace 86b7524678 Initial commit
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.
2015-07-15 13:34:36 -07:00