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
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.
Fix problems found.
Change-Id: Ib80f2494f0355f6eafcd1df7f7822e31e9e64c40
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
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
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
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
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
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
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
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