After 7052b7f065 merged in openstack/horizon a new Unit
test class introduced in horizon i.e. RestAPITestCase.
This patch updates heat-dashboard to import RestAPITestCase
class instead of TestCase. For more info. see [1]
It also update few packages version in lower-constraints.txt and
other files to fix lower-constraints job.
[1] https://review.opendev.org/c/openstack/horizon/+/827097/2/openstack_dashboard/test/helpers.py#485
NOTE: py36 support has been dropped for Zed, so py36 UT no longer works
with upper-constraints for Zed. Thus, the zuul job template is updated
for Zed in this commit together. This commit also needs to be backported
to stable/yoga to fix the UT. When backported, make sure not to include
the zuul template change for Zed.
Co-Authored-By: Akihiro Motoki <amotoki@gmail.com>
Change-Id: I81241b2225f1e8b7b38f8f03928d5b4c0b4c8094
This patch updates some packages version in lower-contraints.txt
to fix lower-constraint job. It also drops some linter from
lower-constraints.txt as not required for lower-constraints job.
Change-Id: If62522f716ae589d3b227ecdd1ea156090ca887a
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.
Update local hacking checks for new flake8.
Remove hacking and friends from lower-constraints, they are not needed
for installation.
Change-Id: Ib6f30427e736ff488598e80e87ce0a8b39e92f33
horizon recently switched from the third-party mock to unittest.mock.
This breaks heat-dashboard unit tests somehow.
We no longer support py27 and we can use the standard library
unittest.mock module. Rather than investigating the cause of
the failure, it would be nice to switch to unittest.mock.
horizon dependency is updated to 18.3.1 as unittest.mock is used
since 18.3.0 and 18.3.0 has an issue that it always requires pytest.
lower-constraints is updated to match horizon requirements.
hacking local-check-factory is disabled temporarily due to
the incompatibility with hacking 2.0 or later.
https://review.opendev.org/#/c/715690/ will recover it.
Change-Id: I517d6d7d36410c64bf48ad958b3e2115725a6491
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 and
lower-constraints.txt are updated accordingly. for more info. please
refer [1].
Depends-On: https://review.opendev.org/#/c/700733/
[1] https://etherpad.openstack.org/p/Enable_Django22_support_in_Horizon_Plugin
Change-Id: Ie197efeb0080c5ad7f223823ff8b1888ff7dc0de
This patch adds basic tests to verify that heat-dashboard is
installed and could be opened.
heat-dashboard-integration-tests job is added in a
non-voting mode.
Depends-On: https://review.openstack.org/634712
Change-Id: I2550d6fcd1ce4e05502f247e227aaec05e762fcb
Small cleanups:
* Use openstack-lower-constraints-jobs template, remove individual
jobs.
* Sort list of templates
Also, update some minimal requirement for horizon
needs newer versions. This is needed to pass the lower-constraints
job.
Change-Id: I6d69299c6099bdcd3671e7e7c764604676e8eaef
Needed-By: https://review.openstack.org/623229
The porting of mock is complete. This fullfills the
community goal
200~"Remove Use of mox/mox3 for Testing" set for Rocky:
https://governance.openstack.org/tc/goals/rocky/mox_removal.html
This commit does the following code:
- Remove dead code that was previously used by mox.
- Raise the requirement to the Rocky M2 relase of Horizon.
- Convert the clients to use mock.
Change-Id: I33521b4bc8e873d50b1d2390e544eea0923dca4f
Signed-off-by: Chuck Short <chucks@redhat.com>
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.
Change-Id: I25cb4aa6558c599d3c1e334c5281dcb6ca7e3b9f
... or at least the first published tarball which will lead to Rocky.
On the other side this means forcing the usage of mox as long as
there are tests that depends on it (the switch was already flipped
in Horizon, so it needs to be enabled here).
This allows us to depend on newer Horizon features, including changes
to the test suite that are useful for the mox removal effort.
Change-Id: Ibf41998cb154c5170e8038f5b2708c928b68b8b4
Signed-off-by: Charles Short <zulcss@gmail.com>
Story: #2002037
Task: #19678
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.
Change-Id: Ic5fa4edff518a453941ec3d288f7a859adccec76
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>