Commit Graph

22 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
OpenStack Release Bot e164eaef86 Add Python3 victoria unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for victoria.

See also the PTI in governance [1].

[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html

Change-Id: I18ed69e73c81eedfdbbb27280f9143ab4a20fcbc
2020-05-22 18:31:26 +00: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
Radosław Piliszek 83c66740fa CI: Remove failing ceph-related test
This test has no purpose now.
Kolla Ansible removed Ceph deployment support in Ussuri so it
failed CI.

This also drops py27 gating because it broke in Ussuri.

Change-Id: I09aac88e2552231b0c76c5bea112e692571151c4
2020-03-01 11:45:18 +01:00
zhulingjie 36c0c75668 Switch to official Ussuri jobs
Change-Id: Icf3024cf135d3d5bebdaaea3a5cb2f644a895b78
2019-11-13 15:34:03 +00:00
gugug 8feb577187 Revert "Switch to official Ussuri jobs"
This reverts commit 387bb8ddc5.

Change-Id: I967a8442c64d85e5f2544aa0e77bb645022dcdf5
2019-10-11 16:12:09 +00:00
caoyuan 387bb8ddc5 Switch to official Ussuri jobs
Change-Id: I3402ae9dd2889d17c40d7d86f261a4bfde05e9c0
2019-10-11 22:55:10 +08:00
jacky06 4a0d70ead9 Use openstackdocstheme and add docs check into zuul
1. Update doc's theme to openstack
2. Add tox docs check into zuul
3. tiny changes, adjust the import order

Change-Id: I0266763f08ffa1445cf985ed0abff0c693e17ef5
2019-08-03 12:45:59 +08:00
caoyuan 98dca2e8fb Rename functional to functional-py27 and add functional-py37
Change-Id: Ib45b63991793fa05cddcc23491d6c1348ba1cb86
2019-07-15 23:14:05 +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 c5fb7b1ed5 Add lower-constraints check into zuul
1. Add lower-constraints check into zuul
2. Add description into requirements.txt

Change-Id: I201373eed133e19d881022ef7bbab79c874d5eca
2019-07-12 13:39:26 +08:00
gujin e023cf9524 Use openstack-python-jobs to run pep8 and py27 test
1. Use openstack-python-jobs template to run pep8 and py27[1]
2. Add the license info for requirements.txt

[1]: refer to https://docs.openstack.org/infra/openstack-zuul-jobs/project-templates.html#

Change-Id: I7612fa970a82b3ed16ab88ace82af4fcfabfc1a7
2019-07-12 11:06:40 +08:00
gujin 05c917b365 Add cover into zuul check
Change-Id: I00e6860674b165c9b6f7a33838df2a5e39444a42
2019-07-12 09:45:09 +08:00
gujin 54cc2951f2 Add Python 3 Train unit tests
1. This is a mechanically generated patch to ensure unit testing is in place
for all of the Tested Runtimes for Train.
2. Remove a unnecessary space

See the Train python3-updates goal document for details:
https://governance.openstack.org/tc/goals/train/python3-updates.html

Change-Id: I89846e571cfabca4e6188be8a72337111bfa9bff
2019-07-12 00:04:01 +08:00
Borne Mace 8a49934653 Fixing test failures
It seems that in newer ansible versions the error strings have
changed and we are no longer able to use the hard coded
"UNREACHABLE" string in our stop test.  For now changing the
test to just skip the string investigation.  Also updating some
package dependencies to match those in kolla-ansible.

We need the 3.5 to 3.6 migration along with the UNREACHABLE
string change together to clean up the test failures  Neither
can be fixed without the other.  Thanks zhulingjie!!

Co-Authored-By: zhulingjie <easyzlj@gmail.com>
Change-Id: I347cda4bbdc6ed7dc4857cb1865da578670235fb
2019-07-04 15:47:04 +08:00
Eduardo Gonzalez 52122a6cdf Gate python3 unittests
Add a job to gate python3 unittests

Depends-on: I4c20eb58982c66598f0283864b9863b84cc29e57
Change-Id: I2195320e578d88d84d53eb2cf411e5e6476a5a5c
2018-06-07 09:30:16 +02:00
Steve Noyes 8e960e4a2b Add unit tests for host commands
As part of getting away from using calls to the shell in the
tests, we will need code coverage of the commands library which
will no longer be used when the shell is no longer called. This
change is the first of serveral to provide unnit test coverage
for commands/host.

As a result of writing these tests, I needed to tweak a few things,
some to make mocking possible, and fix some minor issues:

- move delete confirmation prompt to its own method so it can
  be mocked.
- remove extra space from failed Host check message
- fix return code to 0 in Host setup, when the host is already setup.
- in shell, move inventory check to a method so it can be mocked.

Change-Id: I63cb1afd5313959a6fdda11e9c2b03317c60197a
2018-05-31 13:44:26 -04:00
Steve Noyes bca9db24ba Enable py35 functional tests
This change sets up the functional tests to run on py35 in CI
testing. This change also:
- fixes some import problems only seen in py35.
- removes obsolete/broken code that was needed when ansible
didn't support py3.

Partially Implements: blueprint initial-testing

Change-Id: I3df34e266a8f64f4f963ded51adf8879a324be30
2018-05-18 13:14:49 -04: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
Zuul 010b8929cf Updates to fix py27 / tox tests
Work needed to get the py27 tests to run in the CI.

Implements: blueprint initial-testing

Change-Id: I2375d092c43f6a00e575f303f8e62b969365b149
2018-05-15 11:24:40 -04:00
Borne Mace 155d174df1 Add initial pep8 check / gate tests
Add initial pep8 check / gate tests

Change-Id: Icc566ce13cb4532e7ba7fc9a7c3165b2ac69dd5c
2018-04-18 18:47:54 -07:00