ugettext_lazy() and django.urls.url() are removed in 4.0.
https: //docs.djangoproject.com/en/4.0/releases/4.0/
Change-Id: I58c20b15468dfe746956e131c09e63818ff8c45d
UPPER_CONSTRAINTS_FILE is old name and deprecated.
This allows to use upper-constraints file as more
readable way instead of UPPER_CONSTRAINTS_FILE=<lower-constraints file>.
For more info. please refer [1]. It also import ugettext_lazy
in zaqar_ui/api/rest/zaqar.py file to fix pep8 issue.
[1] https://zuul-ci.org/docs/zuul-jobs/python-roles.html#rolevar-tox.tox_constraints_file
Change-Id: I4e0c00b6d01470f59a6fa5799eaa10d3e5e94f61
This patch update browser from Chrome to Firefox
in karma.conf.js because nodejs fails with Chrome
browser as not able to access some URL.
So let's switch to Firefox browser now then we can
use Chrome browser in future once this issue is resolved.
It also updates few packages in 'lower-constraints.txt'
to fix lower-constraints job.
Change-Id: I1467fd00f3746c5c84233f31c8d41609d0345303
The mock third party library was needed for mock support in py2
runtimes. Since we now only support py36 and later, we can use the
standard lib unittest.mock module instead.
Change-Id: Ia50cc4538bf4e148f3870dafb414109d4ca9ccc1
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.
Needed-By: https://review.opendev.org/701743
Change-Id: If459ea9914274e3c93168748a949c96f72cf9254
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.
To install horizon, check python3 version and set target directory
in postinstall script on package.json.
Change-Id: I181b2a204f6998c24aa188b83a66c596cfb44f1c
Co-Authored-By: Shu Muto <shu.mutow@gmail.com>
We're going to switch to default Django test runner by default.
This patch renames test files to make tests descoverable by
Nose and Django test runners without addidional configuration.
Related blueprint: improve-horizon-testing
Change-Id: I63fd360db583d6346f259bd967547718a4c98758
Horizon plugins needs horizon on master branch for our
master development and test.
Recent changes in CI infra and horizon force to change horizon
installation, and added tox_helper.sh as trivial fix.
Now, reasonable fix found for horizon plugins,
so this patch fixes them.
Also, use python3.5 for jobs except py27.
Change-Id: I6cbda423b8c6dbfe5c1be7b73bbc4c16bcd3b940
Apart of the mox3 removal community goal for Rocky.
Change-Id: I61fcb4b8c96f47a8ade8278324d6ca860e8dc4bb
Signed-off-by: Charles Short <zulcss@gmail.com>
Co-Authord-By: Shu Muto <shu.mutow@gmail.com>
Yaml.load() return Python object may be dangerous if you receive a YAML
document from an untrusted source such as the Internet. The function
yaml.safe_load() limits this ability to simple Python objects like integers or
lists.
Reference:
https://security.openstack.org/guidelines/dg_avoid-dangerous-input-parsing-libraries.html
Change-Id: Ifa91f90658a70dcedd00a3e036e3f241746e5bd1
This patch fixes layout for sined URL dialog and handling message list
response for dialog.
Also, add release notes for Queens.
Change-Id: I30d6d61ab292016bd2fc142379565fa7f97ac09c
When metadata is not modified in queue create/update, the operation
failed. This problem was caused by the patch that changing `$scope`
handling[1]. This patch fixes it.
[1] https://review.openstack.org/#/c/497127/
Change-Id: Ia7a524c5991c63caa24be7effc1a3bdfb8f914c4
Closes-Bug: #1647995
To fix error on js test, switch test browser from phantom-js to chrome.
Also, this fixes existing tests.
Change-Id: Ia9e97486976a596752df2e44538774e0ff6d13cc
'scope' attribute for wizard modal service is deprecated.
It will be removed on Queens.
So this patch changes not to use 'scope' attribute.
Change-Id: Id716858468fcb05dcce9160809308b4213da923c
Closes-Bug: #1647995
The 'View Messages' action shows the dialog to list messages.
The dialog controller retrieves messages when called.
To refresh the messages using 'List Messages' button in the dialog,
'List Messages' button calls dialog re-creation process.
Closes-Bug: #1705598
Change-Id: I884a4b98599889cc3b66474be0e13221c1177d8e
If 'noqa' is specified all hacking checks are disabled.
It is better to ignore specific rules explicitly rather than
ignoring all. The recent flake8 supports this [1].
[1] http://flake8.pycqa.org/en/stable/user/ignoring-errors.html
Change-Id: I4ea55a0b22f8d6c975dcc074403efe2565078e22