Commit Graph

18 Commits

Author SHA1 Message Date
manchandavishal c1928878d0 Update tox.ini for tox4
OpenStack CI now uses tox4 by default. This patch drop
"skipsdist = True". When skipsdist=True is specified, a
target application is not installed into a tox env, but
there seems no reason to do so. In various other OpenStack
projects, a target applicatin needs to be installed into a
tox vnev, for example, in docs and/or linter jobs and it
causes failures with tox4. So dropping it would avoid potential
future failures.

Change-Id: If36c0a23b96fc0c3c6b8f244c4a73d60ddb4160d
2023-01-24 17:58:44 +00:00
wu.shiming bbc752ad62 Updating python testing classifier as per Yoga testing runtime
Yoga testing runtime[1] has been updated to add py39
testing as voting. Unit tests update are handled by the
job template change in openstack-zuul-job

- https://review.opendev.org/c/openstack/openstack-zuul-jobs/+/820286

this commit updates the classifier in setup.cfg file.

[1] https://governance.openstack.org/tc/reference/runtimes/yoga.html

Change-Id: Ib3721f5e6c259f55710edea9ea83636879eb6a14
2021-12-21 10:30:15 +08:00
Radosław Piliszek 610116b00f [CI] Run bandit
Change-Id: If31afc57bb6fe23d2ae9b081b81519cdb4539ad9
2021-08-17 07:19:05 +00:00
Takashi Natsume f50f43264b Change minversion of tox to 3.18.0
The patch bumps min version of tox to 3.18.0 in order to
replace whitelist_externals with allowlist_externals option.
https://github.com/tox-dev/tox/blob/master/docs/changelog.rst#v3180-2020-07-23

Signed-off-by: Takashi Natsume <takanattie@gmail.com>
Change-Id: I1cc2c6fa8577e50b7044e0105957a1d42580c6ca
2021-05-18 23:15:36 +09:00
wu.shiming cf5c771064 Update TOX_CONSTRAINTS_FILE
UPPER_CONSTRAINTS_FILE is old name and deprecated
-https://zuul-ci.org/docs/zuul-jobs/python-roles.html#rolevar-tox.tox_constraints_file
This allows to use lower-constraints file as more
readable way instead of UPPER_CONSTRAINTS_FILE=<lower-constraints file>.

Change-Id: I6a3fa44983203127904ca93be7a1ce3245f6dee5
2020-12-14 18:02:16 +08:00
jacky06 31fe6d7544 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: Ib80f2494f0355f6eafcd1df7f7822e31e9e64c40
2020-05-15 17:24:25 +00:00
manchandavishal 57a4ce44f8 Drop Django 1.11 support
Django 1.11 ends its extended support in April 2020 (which is before
Ussuri release), so horizon drops Django 1.11 support in Ussuri.

tox envs for non-primary Django versions are no longer needed in tox.ini
as testing environments for non-primary Django versions are setup in
the zuul jobs now.

horizon>=17.1.0 is required to use Django 2.2.
requirements.txt is updated accordingly.

Depends-On: https://review.opendev.org/#/c/700733/
Change-Id: Ie0015353ec57b2daa9ff626961c142289ac18069
2020-01-01 20:53:04 +00:00
Ghanshyam Mann dbc0a4aaf1 [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

masakari-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

Change-Id: I9d3f6dc7490a8cca70ddb2ebd42b94cb86d6304b
2019-12-19 16:45:08 +00:00
manchandavishal a232649ab3 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. For information please refer [1]

Explicit testenv definitions (py27, py36, py37) are dropped
as tox handles them automatically and they are unnecessary.

[1] https://review.opendev.org/#/c/681969/

Change-Id: Iff4bb3e088bb522ee336b324b0756efe84e2fde4
2019-10-30 23:59:06 +09:00
Corey Bryant 51c88683a4 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

Co-Authored-By: gujin <gu.jin@99cloud.net>
Change-Id: Ic6c96405113b7b95425f04902e13a6f85735a69e
Story: #2005924
Task: #34221
2019-08-23 11:07:36 +08:00
openstack d3b34063a1 Run all jobs by default using python3
This patch implements the community wide goal to run all jobs by
default using python3.

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

Change-Id: I4e62491ac9a9996cfd910e7d69897b92072bb1eb
2019-03-05 08:59:44 +00:00
Zuul aa512a8d59 Merge "fix tox python3 overrides" 2018-12-18 07:43:49 +00:00
Akihiro Motoki 4052bde700 Django 2.0 support
Horizon and most horizon plugins support Django 2.0 in Rocky.
This commit focuses on passing the unit tests with Django 2.0.
It would be nice if masakari-dashboard team tests it in
real environments.

Replace django.core.urlresolves with django.urls

(In Django 2.0) The django.core.urlresolvers module is removed
in favor of its new location, django.urls.
It was deprecated in Django 1.10:
https://docs.djangoproject.com/en/2.0/releases/1.10/#id3

Drops older Django unit tests from tox.ini
as horizon dropped Django <=1.10 support in Rocky.

Change-Id: I67907a2460f8472e5a6222210d74b3eed71be064
2018-09-30 20:10:29 +09:00
Akihiro Motoki 253294f0b5 Drop nose dependencies
Horizon test setting no longer depends on nose and related stuffs.
This commit cleans up nose related dependencies.

The change was made in horizon Rocky-3,
so horizon 14.0.0.0b3 is required at least.

The command line to invoke UT in tox.ini is updated accordingly:
* --ignore-files=masakaridashboard/test/uuidsentinel.py is unnecessary
  as this file does not include test cases.
* --verbosity 2 is added to watch the test progress.
* Duplicated {posargs} in 'coverage' env is fixed.
* --exclude-dir in 'coverage' env is dropped as the corresponding
  directory does not exist.

Change-Id: I28b97f49ba480d2cbada36026e5bc6932213c689
2018-09-30 20:10:29 +09:00
Nguyen Hai d89b82ce76 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: Idfe602f9e94ae0adf4643f475a42b4681afb53e5
Story: #2002586
Task: #24310
2018-09-17 05:17:04 +00:00
huang.zhiping 3e54e0a06e fix tox python3 overrides
We want to default to running all tox environments under python 3, so
set the basepython value in each environment.

We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.

We do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.

Change-Id: I9dc46eef025a128244e54f580c4d67974657e74d
2018-08-15 06:58:55 +00:00
nirajsingh c429554def Add segment panel
Added segment panel and implemented list and create segment
functionality.Added test cases that actually not covering the
line of code but tested the list and create functionally.

Partial-Implements: blueprint masakari-dashboard

Change-Id: I1366bfdc188f4e0d53fa46f2a6ea3790c9f295fc
2018-07-05 12:34:31 +05:30
nirajsingh b09b094a2b Initial UI-Cookiecutter commit
Added required project files to the repository.

Change-Id: I869b9f2cf04ec00d8bbf00e2720e64175e55eaee
2018-03-16 10:02:55 +05:30