Commit graph

1471 commits

Author SHA1 Message Date
Ghanshyam Mann
17958681f6 [goal] 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#1886298
Bump the lower constraints for required deps which added python3.8
support in their later version.

- noqa for pep8 C901 check.

Closes-Bug: #1886298

Story: #2007865
Task: #40186

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

Change-Id: I67b4957cea1ccbd5cdc0314d2eaddef0c24f7dfc
2020-09-06 00:50:35 +00:00
Luigi Toscano
bb22add60c Native Zuul v3 version of the functional legacy job
Pretty straightforward conversion, and remove the old scripts
which are not needed anymore.

Also, even though OS_TENANT_NAME is still exported,
read OS_PROJECT_NAME as first choice.

Depends-On: https://review.opendev.org/746235
Change-Id: I51314da6d6bf0467308f3598fa9e666655e286d0
2020-08-19 12:22:38 +02:00
Zuul
670fe7ce2a Merge "Use unittest.mock instead of third party mock" 2020-06-09 18:14:00 +00:00
Hervé Beraud
4408269ae3 Stop to use the __future__ module.
The __future__ module [1] was used in this context to ensure compatibility
between python 2 and python 3.

We previously dropped the support of python 2.7 [2] and now we only support
python 3 so we don't need to continue to use this module and the imports
listed below.

Imports commonly used and their related PEPs:
- `division` is related to PEP 238 [3]
- `print_function` is related to PEP 3105 [4]
- `unicode_literals` is related to PEP 3112 [5]
- `with_statement` is related to PEP 343 [6]
- `absolute_import` is related to PEP 328 [7]

[1] https://docs.python.org/3/library/__future__.html
[2] https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html
[3] https://www.python.org/dev/peps/pep-0238
[4] https://www.python.org/dev/peps/pep-3105
[5] https://www.python.org/dev/peps/pep-3112
[6] https://www.python.org/dev/peps/pep-0343
[7] https://www.python.org/dev/peps/pep-0328

Change-Id: Ifbca4f0b72663e026a92061c213e728cf755772c
2020-06-02 20:48:10 +02:00
Andreas Jaeger
3fa304428c Switch to newer openstackdocstheme and reno versions
Switch to openstackdocstheme 2.2.1 and reno 3.1.0 versions. Using
these versions will allow especially:
* Linking from HTML to PDF document
* Allow parallel building of documents
* Fix some rendering problems

Update Sphinx version as well.

Remove docs requirements from lower-constraints, they are not needed
during install or test but only for docs building.

openstackdocstheme renames some variables, so follow the renames
before the next release removes them. A couple of variables are also
not needed anymore, remove them.

Set openstackdocs_auto_name to use 'project' as name.

Change pygments_style to 'native' since old theme version always used
'native' and the theme now respects the setting and using 'sphinx' can
lead to some strange rendering.

See also
http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014971.html

Change-Id: I5598eebe898555869cd65a74950fdbd76a7baa46
2020-05-22 17:20:37 +00:00
Ghanshyam Mann
c588de4624 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: I719e643044fbdab4d24edf6457c9096ee5f8fd77
2020-05-12 19:32:40 -05:00
jacky06
8a9566864f 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: I5cf252c1a22977d3c87898e723e5001cc87a0d87
2020-05-06 05:43:23 +00:00
Sean McGinnis
71f6c6c363
Bump default tox env from py37 to py38
Python 3.8 is now our highest level supported python runtime.
This updates the default tox target environments to swap out
py37 for py38 to make sure local development testing is
covering this version.

This does not impact zuul jobs in any way, nor prevent local
tests against py37. It just changes the default if none is
explicitly provided.

Change-Id: I19e5c51f5ffa30a1257a9cc2d0b43dd35de79d5a
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-24 10:25:55 -05:00
Sean McGinnis
ff1a116a59
Add py38 package metadata
Now that we are running the Victoria tests that include a
voting py38, we can now add the Python 3.8 metadata to the
package information to reflect that support.

Change-Id: I212f8027055ebeeb3dc3948426ede6a704c719ff
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-24 08:23:16 -05:00
OpenStack Release Bot
31f8ff8bcb 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: Ia8fecb713a5985b666c1b55d113a1c7820dbc5be
2020-04-10 17:59:02 +00:00
OpenStack Release Bot
97e604e98b Update master for stable/ussuri
Add file to the reno documentation build to show release notes for
stable/ussuri.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/ussuri.

Change-Id: I8325306020f3ec99797859444f0106e969336b5e
Sem-Ver: feature
2020-04-10 17:58:58 +00:00
Andreas Jaeger
9dede4eb2b Update hacking for Python3
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.

Fix problems found.

Change-Id: I82c745f5b1236844deec4538be84037a64eebeee
2020-03-31 10:04:12 +00:00
Zuul
6b071d397e Merge "Add files-container option for stack create and update" 2020-02-21 07:54:54 +00:00
Zuul
866e90374e Merge "Allow to set poll interval to OSC stack create" 2020-02-21 07:52:00 +00:00
Zuul
207968f353 Merge "Cleanup of .keys() from dict_object.keys() *in* operator" 2020-02-21 07:45:07 +00:00
Zuul
b0308a9679 Merge "Remove dependency on mox3" 2020-02-19 04:23:59 +00:00
Zuul
b757fdd0f6 Merge "Remove mox usage from test_shell" 2020-02-19 04:20:15 +00:00
Zuul
1e931847eb Merge "tests: Convert 'test_resources' to mock" 2020-02-19 04:10:30 +00:00
Zane Bitter
869f3a943b Remove dependency on mox3
Change-Id: Ie6017be8293b36d1aedfb5cce7b76c85a8b95b63
2020-02-10 12:37:49 -05:00
Zane Bitter
163d4aa0e9 Remove mox usage from test_shell
Change-Id: I4e1dbb55dbc01ebf18ca80aa63ae492a1a8f47ae
2020-02-10 12:35:22 -05:00
Andreas Jaeger
2a8eb6a74c [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

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: I54863f2301758dcd48de4ee73bcc8582e5036afa
2020-02-10 16:05:51 +00:00
Stephen Finucane
48d19397a6 tests: Convert 'test_resources' to mock
This is the smaller of the two.

Change-Id: I2a483698209e7c4ba2da074ffd7b9466f17937e2
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
2020-01-30 15:19:55 +00:00
Stephen Finucane
75ed1cedd9 tests: Pre-mox removal cleanup
Move some stuff around in order to make the later migration easier to
parse.

Change-Id: I1404a5b23fd1852be9d04661c2a0ba12c4bb78ec
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
2020-01-30 10:59:39 +00:00
Zuul
ba6839216c Merge "Change openstack-dev to openstack-discuss" 2019-12-13 03:07:49 +00:00
Zuul
ed6d37ba6d Merge "Update master for stable/train" 2019-12-05 03:50:44 +00:00
Zuul
1120822e0c Merge "Replace git.openstack.org URLs with opendev.org URLs" 2019-12-05 03:50:40 +00:00
jacky06
fcc7befd0f Cleanup of .keys() from dict_object.keys() *in* operator
Change-Id: I49bb58e5dc2618ee02424315e4e3bf1057a77068
2019-12-05 11:05:53 +08:00
Zuul
ee0e186e4c Merge "Cap sphinx for py2 to match global requirements" 2019-12-05 02:53:41 +00:00
Pavlo Shchelokovskyy
033511c291 Allow to set poll interval to OSC stack create
In certain scenarios the default poll interval of 5s used by
`openstack stack create --wait` command is too short.

Setting the poll interval was supported in heat CLI with
`heat stack-create --poll N` but is missing in OSC plugin.

This patch adds an optional argument `--poll N` (N defaults to 5) to the
`openstack stack create` command.

Change-Id: Id279d92ea890032f280e453b795ede2818ffbb8c
Story: 2004863
Task: 29106
2019-09-25 08:57:33 +00:00
OpenStack Release Bot
19122b7ac5 Update master for stable/train
Add file to the reno documentation build to show release notes for
stable/train.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/train.

Change-Id: I10df19e4f4b25a29df9389b3f469ee053552496a
Sem-Ver: feature
2019-09-20 17:40:26 +00:00
Zuul
4d8f270157 Merge "Ignore not found when delete in test" 2019-09-05 05:04:46 +00:00
Zuul
eca1637656 Merge "Update stack_id clearify for heat client functions" 2019-08-05 16:16:26 +00:00
ricolin
82c842f3d9 Update stack_id clearify for heat client functions
most of our client major function require stack_id. We should
provide more specific information (at lest in function description)
to clearify that it's allowed to feed in stack name to `stack_id`
too. For example, both `heat.stacks.get($Stack_UUID)` and
`heat.stacks.get($Stack_Name)` works.

Change-Id: I4428097140e0391a77679f5c69e00966f249efd7
2019-08-03 00:42:19 +08:00
jacky06
87253c46fd Replace git.openstack.org URLs with opendev.org URLs
Change-Id: I65ec66ebcef80609a4fc111c71a225eccec35eeb
2019-07-14 15:05:49 +00:00
Zuul
6854247d4b Merge "Add Python 3 Train unit tests" 2019-07-06 00:58:29 +00:00
Zane Bitter
d87aa032de Fix unit tests
Change-Id: I44bbafa95d6eeb3550aac5b480391a3fc7ddaef5
2019-06-24 20:29:06 -04:00
Corey Bryant
5b1d4c2497 Add Python 3 Train unit tests
This is a mechanically generated patch to ensure unit testing is in place
for all of the Tested Runtimes for Train.

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

Change-Id: Id9ed3cec95f0e0203ef00dd5ff10d124913e39f2
Story: #2005924
Task: #34209
2019-06-24 10:34:01 -04:00
zhangboye
0789bc93dc Cap sphinx for py2 to match global requirements
Change-Id: Icbc1b3a92f796bf9e3186a512dd21661db035583
2019-06-06 16:04:52 +08:00
zhufl
036ae75689 Fix missing print format
This is to:
1. Add missing print format for "%(hook_type)".
2. Add ws between words in log message "notavailable".

Change-Id: Iaee8697c95f66bff0536db9a266158a3cbc89412
2019-05-21 15:03:08 +08:00
Zuul
270b7a0b43 Merge "Dropping the py35 testing" 2019-05-04 15:09:28 +00:00
OpenDev Sysadmins
05f52517de OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:33:54 +00:00
Ghanshyam Mann
422f001e25 Dropping the py35 testing
All the integration testing has been moved to
Bionic now[1] and py3.5 is not tested runtime for
Train or stable/stein[2].

As per below ML thread, we are good to drop the py35
testing now:
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/005097.html

[1] http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004647.html
[2]
https://governance.openstack.org/tc/reference/runtimes/stein.html
https://governance.openstack.org/tc/reference/runtimes/train.html

Change-Id: I6b8dacf455ec068acd9599d96e0d66522c8bdf5c
2019-04-15 18:06:16 +00:00
Zuul
25e2eb6974 Merge "Update master for stable/stein" 2019-04-04 17:52:06 +00:00
Ian Wienand
b69e063845 Replace openstack.org git:// URLs with https://
This is a mechanically generated change to replace openstack.org
git:// URLs with https:// equivalents.

This is in aid of a planned future move of the git hosting
infrastructure to a self-hosted instance of gitea (https://gitea.io),
which does not support the git wire protocol at this stage.

This update should result in no functional change.

For more information see the thread at

 http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003825.html

Change-Id: I84aa448129801474cb5e65d27b4901e806b319f6
2019-03-24 20:35:49 +00:00
OpenStack Release Bot
1be9b40e8d Update master for stable/stein
Add file to the reno documentation build to show release notes for
stable/stein.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/stein.

Change-Id: I241c58785ff541681113628bb9409821f035b2a2
Sem-Ver: feature
2019-03-18 14:51:17 +00:00
Zuul
9e59121af2 Merge "add python 3.7 unit test job" 2019-03-15 20:34:01 +00:00
Rabi Mishra
bd33e310e0 Set Content-Type header explictly for SessionClient
SessionClient is subclassed from keystoneauth LegacyJsonAdapter.
LegacyJsonAdapter does not set the Content-Type explicitly
and results in decodeing issues in some cases.

Change-Id: Idf23022b394607c332490331fc4b216de6ff1313
Story: 2005237
Task: 30027
2019-03-15 05:08:51 +00:00
Corey Bryant
e4c37d7b13 add python 3.7 unit test job
This is a mechanically generated patch to add a unit test job running
under Python 3.7.

See ML discussion here [1] for context.

[1] http://lists.openstack.org/pipermail/openstack-dev/2018-October/135626.html

Change-Id: Iad68a8b8e18f8b2d6e25444b4c79adf1b5bc8825
Story: #2004073
Task: #27416
2019-02-14 22:49:57 -05:00
ricolin
3b74f2ddd1 Ignore not found when delete in test
Ignore not found when delete stack or stack snapshot in tests.
Story: #1737100
Task: #19354

Change-Id: I6c980b68023b33dc318c5d9506c2cac5866c4924
2019-02-03 05:16:08 +00:00
Zuul
8af5deb458 Merge "Update the bugs link to storyboard" 2019-01-03 22:45:12 +00:00