124 Commits

Author SHA1 Message Date
Zuul
807cd42a7a Merge "Django 4.x: Replace removed features" 2022-09-16 06:07:31 +00:00
Corey Bryant
ecce6298bf Django 4.x: Replace removed features
ugettext_lazy() and django.urls.url() are removed in 4.0.
https: //docs.djangoproject.com/en/4.0/releases/4.0/

Change-Id: I58c20b15468dfe746956e131c09e63818ff8c45d
2022-07-19 15:58:17 -04:00
manchandavishal
598b3d5c7b Migrate to AngularJS v1.8.2
This patch aligns current code with AngularJS v1.8.2 requirements.

Change-Id: I6ec4eaac5096564393f1cd388e28c15a20bb4033
2022-06-28 23:07:09 +05:30
OpenStack Proposal Bot
6da23dd284 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I8e6d2b6ad228a98805bc1a4d7a171e8e6b76c312
2021-03-03 08:37:03 +00:00
manchandavishal
b419a23ce1 Use TOX_CONSTRAINTS_FILE
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
2021-02-16 06:12:39 +00:00
manchandavishal
046cb42279 Run npm nodejs job with Firefox browser
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
2020-12-23 08:04:36 +00:00
Hervé Beraud
60f3442e13 Use unittest.mock instead of mock
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
2020-06-09 12:20:48 +02:00
Hervé Beraud
ca34d0b0dc Stop to use the __future__ module.
The __future__ module [1] was used in this context to ensure compatibility
between python 2 and python 3.

We previously dropped the support of python 2.7 [2] and now we only support
python 3 so we don't need to continue to use this module and the imports
listed below.

Imports commonly used and their related PEPs:
- `division` is related to PEP 238 [3]
- `print_function` is related to PEP 3105 [4]
- `unicode_literals` is related to PEP 3112 [5]
- `with_statement` is related to PEP 343 [6]
- `absolute_import` is related to PEP 328 [7]

[1] https://docs.python.org/3/library/__future__.html
[2] https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html
[3] https://www.python.org/dev/peps/pep-0238
[4] https://www.python.org/dev/peps/pep-3105
[5] https://www.python.org/dev/peps/pep-3112
[6] https://www.python.org/dev/peps/pep-0343
[7] https://www.python.org/dev/peps/pep-0328

Change-Id: I8a697a5f4e53fe973076d40a1da2622f9c494d2d
2020-06-02 21:08:37 +02:00
Andreas Jaeger
a1dec849fc Remove six usage
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
2020-01-11 15:48:50 +00:00
OpenStack Proposal Bot
472d462c90 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Ie01b387241b8def1c4adac21354cf440acf4a1c9
2019-05-02 07:10:31 +00:00
jacky06
e6db2ff4fa Update hacking version
Use latest release 1.1.0 and compatible changes w.r.t pep8

Change-Id: I2d95fd234f89ea0c377a2dc287459bade6c893e4
2019-01-09 10:10:44 +08:00
huang.zhiping
cf27da5337 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.

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>
2018-07-25 15:34:54 +09:00
Ivan Kolodyazhny
6e100d024b Rename test files to test_* pattern
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
2018-06-04 15:04:23 +00:00
Shu Muto
d18938740b Fix tox jobs and remove tox_helper.sh
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
2018-05-15 23:46:12 +00:00
Charles Short
54b7e9039d Remove mox3 from test-requirements.txt
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>
2018-05-15 18:34:15 +09:00
Zuul
4aeeedc55d Merge "Replaces yaml.load() with yaml.safe_load()" 2018-03-09 06:37:18 +00:00
OpenStack Proposal Bot
544a336ef1 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I74e5154e66f9b41f04eab7a486a448a6e65b52c7
2018-03-01 07:07:03 +00:00
Nguyen Hung Phuong
630ae1e92a Replaces yaml.load() with yaml.safe_load()
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
2018-02-13 09:31:22 +00:00
OpenStack Proposal Bot
0f1890057b Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I67ddf2b9ccf01e391cfd2520fa04e91baabe0ac7
2018-01-31 08:57:50 +00:00
Shu Muto
800e8ecea3 Fix for Queens rc-1
This patch fixes layout for sined URL dialog and handling message list
response for dialog.
Also, add release notes for Queens.

Change-Id: I30d6d61ab292016bd2fc142379565fa7f97ac09c
2018-01-30 17:37:44 +09:00
OpenStack Proposal Bot
9523d7b173 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Ic5952694ae5b12ee4740a014c53e00be9dd54edc
2018-01-25 06:31:52 +00:00
OpenStack Proposal Bot
4b5f082889 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I0eaac9f1cc2cc8dc034598a84a93860376c1cb15
2017-10-09 08:04:51 +00:00
OpenStack Proposal Bot
c6daad6b51 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I8444c1ba276392a20571744c82dd01b019e6ba35
2017-10-05 08:56:42 +00:00
ricolin
378f556871 Fix Zaqar-ui with wrong reference pbr version
Change-Id: I84cdb865478a232886ba1059febf56735a0d91ba
2017-09-27 08:19:40 +08:00
OpenStack Proposal Bot
3bb9ad7e9d Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I70bb7b5cffec8b9f25b02ebf34479e4a69c0b794
2017-09-20 08:33:55 +00:00
Jenkins
1d8b3bd0b8 Merge "Fix queue create/update without metadata modification" 2017-09-05 05:43:38 +00:00
Shu Muto
89e908c5a2 Fix queue create/update without metadata modification
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
2017-09-05 14:27:38 +09:00
Shu Muto
7a6d375b54 Fix js test
To fix error on js test, switch test browser from phantom-js to chrome.
Also, this fixes existing tests.

Change-Id: Ia9e97486976a596752df2e44538774e0ff6d13cc
2017-09-04 18:21:47 +09:00
Shu Muto
d4b03832ed Un-use 'scope' attribute for wizard modal service
'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
2017-08-24 17:00:52 +09:00
OpenStack Proposal Bot
07c9e89821 Imported Translations from Zanata
For more information about this automatic import see:
http://docs.openstack.org/developer/i18n/reviewing-translation-import.html

Change-Id: Iddf854b1218d272e4ff83da370f307f52f67a96d
2017-08-10 11:24:38 +00:00
OpenStack Proposal Bot
004d7bf0b2 Imported Translations from Zanata
For more information about this automatic import see:
http://docs.openstack.org/developer/i18n/reviewing-translation-import.html

Change-Id: Ib48f0ba90db6f993d8b99d0de057d1beba9cdbdb
2017-08-03 12:07:19 +00:00
OpenStack Proposal Bot
984eb6a4c9 Imported Translations from Zanata
For more information about this automatic import see:
http://docs.openstack.org/developer/i18n/reviewing-translation-import.html

Change-Id: Ia4ce41d200162a63cb32dc079791577ae3cb68c7
2017-07-31 13:01:48 +00:00
OpenStack Proposal Bot
63cacd22f5 Imported Translations from Zanata
For more information about this automatic import see:
http://docs.openstack.org/developer/i18n/reviewing-translation-import.html

Change-Id: I3e67e40049dfec48a79c44cb65bb9b070dd81df8
2017-07-27 12:04:25 +00:00
Feilong Wang
ca26b867eb Fix view messages dialog
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
2017-07-21 18:10:20 +09:00
OpenStack Proposal Bot
ac2de165a9 Imported Translations from Zanata
For more information about this automatic import see:
http://docs.openstack.org/developer/i18n/reviewing-translation-import.html

Change-Id: I79dde285826d4e948e8c78e020eacd7bbc91317e
2017-07-12 09:25:41 +00:00
OpenStack Proposal Bot
334e4bf9b0 Imported Translations from Zanata
For more information about this automatic import see:
http://docs.openstack.org/developer/i18n/reviewing-translation-import.html

Change-Id: I3447973b61b8718bcd4ff285d494904e6e99f1ae
2017-07-09 07:55:02 +00:00
OpenStack Proposal Bot
4a24d09989 Imported Translations from Zanata
For more information about this automatic import see:
http://docs.openstack.org/developer/i18n/reviewing-translation-import.html

Change-Id: I2b3da2f4858c6e56177d27563bc2f3e556689a01
2017-07-06 07:43:57 +00:00
OpenStack Proposal Bot
4fd4b68c70 Imported Translations from Zanata
For more information about this automatic import see:
http://docs.openstack.org/developer/i18n/reviewing-translation-import.html

Change-Id: I1bb73efe01166fcc6247384663c3ec935b29e9d1
2017-07-05 07:41:22 +00:00
Jenkins
b666dce0ca Merge "Rename pool-flavors module" 2017-07-02 22:32:42 +00:00
Jenkins
4484198883 Merge "Fix translate tag" 2017-07-02 22:31:51 +00:00
Jenkins
bf5080911b Merge "hacking: Specify white list rules in noqa explicity" 2017-07-02 22:31:45 +00:00
Shu Muto
7eaded2a04 Rename pool-flavors module
'-' should not be used for python module name.
https://www.python.org/dev/peps/pep-0008/#package-and-module-names

Change-Id: Ia788a20180cac8e85002cfcd5cdacf7343578b5b
2017-06-27 18:13:52 +09:00
OpenStack Proposal Bot
494077dd94 Imported Translations from Zanata
For more information about this automatic import see:
http://docs.openstack.org/developer/i18n/reviewing-translation-import.html

Change-Id: I26371cf30fb3ee80ec1b4aa9911e5fbfb6ef82f1
2017-06-27 07:48:24 +00:00
OpenStack Proposal Bot
16df670c0c Imported Translations from Zanata
For more information about this automatic import see:
http://docs.openstack.org/developer/i18n/reviewing-translation-import.html

Change-Id: I9f2475c1579e23f599263970c05b0e3aabc0492a
2017-06-26 07:49:00 +00:00
Shu Muto
d7fb143392 Fix translate tag
This patch fixes translate tags for translation works.

Change-Id: I2d9987b7105344d528e158cc8499b92ba7e69e0b
2017-06-26 11:56:26 +09:00
Shu Muto
64a6b4e8be hacking: Specify white list rules in noqa explicity
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
2017-06-23 12:54:08 +09:00
Andreas Jaeger
b95dd41f20 fix translation extraction
Translation setup fails due to the used special quotation marks, see
http://logs.openstack.org/periodic/zaqar-ui-propose-translation-update/cffd230/console.html
"UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 0:
ordinal not in range(128)"

Use normal quotation marks, these fix the issue.

Change-Id: Id0e2cef54278fa00ff542a1f9e7913f20a16c324
2017-06-21 22:36:54 +02:00
Jenkins
6bcdf8efb1 Merge "Add signed url action for queue" 2017-06-09 21:54:08 +00:00
Jenkins
174f4e24ff Merge "Support post messages and get messages" 2017-06-09 21:54:02 +00:00
OpenStack Proposal Bot
039f600d46 Imported Translations from Zanata
For more information about this automatic import see:
http://docs.openstack.org/developer/i18n/reviewing-translation-import.html

Change-Id: I5a91b94b07f8820fb889091e824d8a635462c496
2017-05-26 08:03:56 +00:00