force_text() is deprecated in favor of force_str()
and urlquote() is deprecated in favor of
urllib.parse.quote() in Django 4.0. For more please
refer [1].
[1] https: //docs.djangoproject.com/en/4.0/releases/4.0/
Co-Authored-By: manchandavishal <manchandavishal143@gmail.com>
Change-Id: Ibc97402b735c3ddbdd7a2174e14353dad34cbc22
The ugettext_lazy method and the ungettext_lazy method are both
deprecated since Django 3.0[1].
These were already replaced in Horizon repo by [2].
[1] https://docs.djangoproject.com/en/3.0/releases/3.0/#id3
[2] cd7c1b5110fe1f64cd9dfbeb1072b37912d0efee
Change-Id: I90224714987c8583a8d407f661494479db4214af
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
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.
Fix problems found.
Update local hacking checks for new flake8.
Remove hacking and friends from lower-constraints, it's not needed
there for co-installing.
Change-Id: I3d250ba82cc14f163f4295381b9b9c232486ac9f
This repo does not support Python 2 anymore, so we don't need
six for compatibility between Python2 and 3, convert six usage to Python
3 code.
Change-Id: Ib1659e903aded26994cc5cd56881a21e102964fe
Needed-By: https://review.opendev.org/701743
The use of filter() within the codebase expected the output to be
an interator, but the filter function in Python 3 now returns a
lazy loading generator and resulted in stack traces.
This commit replaces the use of filter() (+ lambdas) with more
readable list comprehension to be compatible with Python 2 and 3.
Change-Id: I56af1dc1f6648ec334f901cb59893240b0125031
- 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
Increasing the max number fields to allow CDH node group templates creation
Story: 2004866
Task: 29110
Change-Id: I007f6cb5528e658fa8a0211a833500385a4aa07a
Now that mox has been removed we can remove the create_stubs
helper function as well.
Change-Id: I1c7c8e234013c28e3bbd20ba18e8bfab313a8533
Signed-off-by: Chuck Short <chucks@redhat.com>
nose is not actively maintained now and Django default test runner
seems to have enough features.
* 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.
* Integraion tests is marked via django.test.tag mechanism which is
introduced in Django 1.10.
* Rename filename of test files to names starting with 'test_'
so that the django test runner can find tests expectedly.
* run_tests.sh is no longer called from tox.ini, so it can be dropped.
Note that the similar run_tests.sh in horizon was dropped long ago.
Change-Id: I1e5471078cc95031e8819f01100319a9ee2a3a73
We'll commit to the idea of constructing a session based on token auth
here in the sahara-dashboard code itself. And in preparation for some
upcoming python-saharaclient changes, move certificate settings into
that session object.
Change-Id: I5f76af0e14822513849af2e75445af837af85285
Story: 1747838
The porting to mock of sahara-dashboard is complete.
This fulfills the community goal
"Remove Use of mox/mox3 for Testing" set for Rocky:
https://governance.openstack.org/tc/goals/rocky/mox_removal.html
Raise the requirement to the Rocky M2 release of Horizon,
which drops the usage of mox by default (it should be
explicitly enabled). Without a forced import from Horizon
the mox dependencies can be dropped here.
Bump also a dependency needed by this new version of Horizon.
Change-Id: Iaf272af9919f8a69562c0a469130bbf8628936cf
Horizon commit e50a69d69f338d0ec66baa659a7d82e328e62a67 saw
_cls_registry become a list instead of a set. We need to reflect this
change, or else see:
'set' object has no attribute 'append'
Change-Id: I302b6120145909fc4d342579818b05584a0820a3
Horizon is going to switch to Django Test Runner [1].
To not break Sahara Dashboard we need to use Nose Test Runner
until we'll be ready to remove Nose from sahara-dashboard.
[1] https://review.openstack.org/#/c/544296/
Change-Id: Ic248f7cc716ea0cfe8a6398438efa0a39228db85