Commit Graph

26 Commits

Author SHA1 Message Date
OpenStack Release Bot aeed480a44 Switch to 2023.1 Python3 unit tests and generic template name
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for antelope. Also,
updating the template name to generic one.

See also the PTI in governance [1].

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

Change-Id: I89e4b6c5304e1cb78b8e51404e8061212fa3a374
2022-09-13 12:31:58 +00:00
Ghanshyam Mann 4791c14886 Drop lower-constraints.txt and its testing
As discussed in TC PTG[1] and TC resolution[2], we are
dropping the lower-constraints.txt file and its testing.
We will keep lower bounds in the requirements.txt file but
with a note that these are not tested lower bounds and we
try our best to keep them updated.

[1] https://etherpad.opendev.org/p/tc-zed-ptg#L326
[2] https://governance.openstack.org/tc/resolutions/20220414-drop-lower-constraints.html#proposal

Change-Id: I8f4276fbd0f756cf7032822ffb6ca51b4d934478
2022-08-10 15:14:41 +02:00
OpenStack Release Bot 19ba30d6f6 Add Python3 zed unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for zed.

See also the PTI in governance [1].

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

Change-Id: I8f858a119a3a0d19298754fe1cb105c9162dd503
2022-03-11 11:54:07 +00:00
OpenStack Release Bot c356c278b7 Add Python3 yoga unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for yoga.

See also the PTI in governance [1].

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

Change-Id: If1116c0e42503df303b7a475133d21c184b214c1
2021-09-17 16:48:11 +00:00
OpenStack Release Bot 4604f95cb2 Add Python3 xena unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for xena.

See also the PTI in governance [1].

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

Change-Id: I85d1aaa23aee4ca2377cd92445239952b402b257
2021-03-22 10:03:06 +00:00
OpenStack Release Bot 474fa6b5dc Add Python3 wallaby unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for wallaby.

See also the PTI in governance [1].

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

Change-Id: Ic0695b19987c724bbdff23a527ee1020afc0bfd9
2020-09-23 13:16:34 +00:00
OpenStack Release Bot bb1a09c426 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: I4cf1740ad3d58a70684c70ea755248f5083d06f7
2020-04-23 19:12:21 +00:00
Luigi Toscano 18921beb2e Test fixes: unittest.mock, better l-c job, pytest dep
Now only python 3 is supported, which means unittest.mock
can be used instead of the external mock module.
This change can be done thanks to the Horizon
change I2de669d8e89b8daeb7ee5405ffab35af6307c40b

Switch to openstack-lower-constraints-jobs-horizon
which pulls in the last horizon. The lower-constraint
version of horizon should be bumped when a new
version (post-18.2.0) is released.

Finally, add pytest to the set of test requirements
to prevent an missing import error (even through
the sahara scenario tests still need to be ported
to pytest).

Change-Id: I2c61e9d88b2d05c9f0b68066d7bb15b43cdf083f
2020-04-15 17:59:11 +02:00
Ghanshyam Mann aa2bdc68e6 [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

sahara-dashboard is ready with python 3 and ok to drop the
python 2.7 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

Depends-On: https://review.opendev.org/#/c/693631/
Change-Id: I9bbca7e2d317090dc2d05d08ccf8c45206cd160c
2019-11-18 12:02:49 +00:00
Zuul 0eb13d1318 Merge "Use Horizon project template for django jobs" 2019-10-30 08:07:46 +00:00
manchandavishal 3584317a46 Use Horizon project template for django jobs
Horizon defined a project template 'horizon-non-primary-django-jobs'
for django jobs. This patch use that template to run django jobs
here and fix the failed test cases for django2.2 support by replacing
None with an empty string and add renderer argument.
For information please refer [1], [2], [3].

[1] https://review.opendev.org/#/c/681969/
[2] https://github.com/django/django/commit/6fe9c45b725
[3] https://docs.djangoproject.com/en/2.1/releases/2.1/#features-removed-in-2-1
Change-Id: I9a62bb0a56b16cd6caa6cc9bf7db9b85c99ed580
2019-10-18 17:48:25 +00:00
manchandavishal 5199f8a58d Switch to official Ussuri jobs
Change-Id: Ia7665d7af18dd1addf0f7c70992892eacae98d50
2019-10-14 07:01:02 +00:00
Jeremy Freudberg 0a67ded0a2 Use the proper Python3 Train jobs
We need to pull in Horizon properly.
7d240182b1 introduced the mistake.

Depends-On: Ia8787a65c110731f1dab9339f382b2680240cab3
Change-Id: Ie865136eb1ee776d4080e7d843836f57b6245ac9
2019-07-10 14:00:02 +00:00
pengyuesheng 7d240182b1 Use openstack-python3-train-jobs for python3 test runtime
Depends-On:https://review.opendev.org/#/c/641878/

Change-Id: Ib08230aca4c0baf2a35d5cc347dd8c7ee45beec8
2019-06-25 16:31:06 +08:00
OpenDev Sysadmins 71e6813c76 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:32:17 +00:00
Ghanshyam Mann 45ef652c22 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: I10ac5a633a2549e8053b5f0f438f692b5efca821
2019-04-16 17:34:27 +00:00
Ian Wienand 6abed272e2 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: I091a2c6e17f778d857c39be51bf2a3c9e4f7ab77
2019-03-24 20:36:04 +00:00
Luigi Toscano 65961853cc Overhaul of the unit test jobs and tox environments
Since Rocky, horizon depends on Django 2.0 when Python 3 is used.
The old sahara-dashboard-tox-py35dj20 and the py35dj20 tox environments
are thus no longer needed.
Add few more jobs:
- the py36 and py37 jobs and the related tox environments;
- a py3/django 1.11 job and tox environment, and set is a voting
  like its Horizon counterpart;
- the tox environment for a django 2.1 job (Horizon provides one as well.)

Finally, don't require the last version of horizon for the py3/django 1.11,
but relies on the stable version (which should provide the proper library
interface, as it happen with the other unit test jobs.)

Change-Id: Ic76b454f36d81a25b40e91a88d131f20a8df12f9
2019-03-07 12:33:15 +01:00
Luigi Toscano bd66017874 Native Zuul v3 dashboard-integration test
- create a native Zuul v3 job, and move it to experimental
  until it works;
- install libav-utils on dpkg systems and enable the capture
  of the video;
- adapt to the changes in OverviewPage:
  * go_to_system_flavorspage -> go_to_admin_compute_flavorspage
  * go_to_compute_imagespage -> go_to_project_compute_imagespage

The job is failing right now, but apart the increased running time,
at least the tests are now executed.

Story: 2001686
Task: 8662

Change-Id: I311203779bd3e6c6660cfe1b84e89c7dc0825c98
2019-02-21 00:47:34 +01:00
Andreas Jaeger c2cb8dfd09 Use template for lower-constraints
Small cleanups:

* Use openstack-lower-constraints-jobs template, remove individual
  jobs.
* Sort list of templates

Change-Id: Ie0b07ea66e59f2ad17a3f0c1391b854040697528
Needed-By: https://review.openstack.org/623229
2018-12-20 21:39:45 +01:00
Doug Hellmann 1999c154d7 switch documentation job to new PTI
This is a mechanically generated patch to switch the documentation
jobs to use the new PTI versions of the jobs as part of the
python3-first goal.

See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html

Change-Id: I9cf41b5092f3a5b535f22ce5a66ea6a7b39ac3be
Story: #2002586
Task: #24332
2018-08-20 16:33:51 -04:00
Doug Hellmann 97ec8d4305 import zuul job settings from project-config
This is a mechanically generated patch to complete step 1 of moving
the zuul job settings out of project-config and into each project
repository.

Because there will be a separate patch on each branch, the branch
specifiers for branch-specific jobs have been removed.

Because this patch is generated by a script, there may be some
cosmetic changes to the layout of the YAML file(s) as the contents are
normalized.

See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html

Change-Id: I461ce32191cc01fc6ada633be60da98c660cdefe
Story: #2002586
Task: #24332
2018-08-20 16:33:02 -04:00
Doug Hellmann b81d74661c add lower-constraints job
Create a tox environment for running the unit tests against the lower
bounds of the dependencies.

Create a lower-constraints.txt to be used to enforce the lower bounds
in those tests.

Add openstack-tox-lower-constraints job to the zuul configuration.

See http://lists.openstack.org/pipermail/openstack-dev/2018-March/128352.html
for more details.

---
sahara-dashboard specific changes:
- sahara-dashboard uses django.urls module which is only available in
  Django 1.11 or later, so the Django min version needs to be bumped to 1.11.
  Horizon Rocky bumped the Django min version
  to >=1.11
- django-babel needs to bumped to 0.6.2 to support Django 1.11 and 2.0.
- nose-exclude needs to bumped to 0.5.0 to run all existing unit tests.

https://review.openstack.org/555402 allows us to bump lower requirements.

Co-Authored-By: Akihiro Motoki <amotoki@gmail.com>
Change-Id: I6cc5d973ea0e586e6fbe2ab4ba1345857722d008
Depends-On: https://review.openstack.org/555034
Depends-On: https://review.openstack.org/555402
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
Signed-off-by: Akihiro Motoki <amotoki@gmail.com>
2018-03-26 05:13:19 +09:00
Luigi Toscano 276212fb30 Fix the job set required for Rocky
Horizon in Rocky will only support Django 1.11 and 2.0.
Also, Horizon is trying to be more compatible with Python 3.
See: https://blueprints.launchpad.net/horizon/+spec/django2-support

This require few changes (for master only):
- remove the jobs and the tox entry points for unit tests
  with Django < 1.11 (which started to fail anyway after some
  recent changes in Horizon);
- add a tox target and a corresponding non-voting job which runs
  the unit tests using Django 2.0 with Python 3;
- create a basic job for all non-standard unit tests jobs (even if
  there is just one right now) which improves the set of irrelevant
  files (translations, release notes, documentation).

Change-Id: I8d87fb3bcdb1baa221246ca4fc5edf8ae14f0cb2
2018-03-04 15:41:39 +01:00
James E. Blair a940d48270 Zuul: Remove project name
Zuul no longer requires the project-name for in-repo configuration.
Omitting it makes forking or renaming projects easier.

Change-Id: I12b12926c2c90b73054db2dd3e0e017f80f2c190
2018-02-01 16:02:13 -08:00
Luigi Toscano 450edfaf37 Initial Zuul v3 jobs: unittests
Native jobs for unittest under different versions of Django.
The conversion of integration tests is out of scope for this
change.

Depends-On: I6664404b869a98c6f178667073a1c77604736925
Change-Id: Id4d15b8bd5f032ff457395af5d77b255b6077a2a
2017-10-25 14:17:57 +02:00