Commit Graph

91 Commits

Author SHA1 Message Date
Rodolfo Alonso Hernandez 6eac211b03 Explicitly convert ``assertQuerysetEqual`` input parameters
Since [1], Django do not implicitly call ``repr()`` on the input
queries. It is needed to explicitly convert the input values
before comparing. This patch is present in Django 4.1.

This patch also bumps horizon to version 23.4.0. This version
contains [2], that bumped the required version of Django to 4.2.

[1]e2be307b3a
[2]https://review.opendev.org/c/openstack/horizon/+/905218

Closes-Bug: #2057914
Change-Id: I48ec7a57b9a9774ce0cd5853a6486c4acb7d9fb3
2024-03-14 15:11:02 +00:00
Takashi Kajinami 14cce6ff81 Replace deprecated django.conf.urls.url()
This method is deprecated in Django 3.1[1], in favor of
django.urls.re_path(), and triggers the following warning.

RemovedInDjango40Warning: django.conf.urls.url() is deprecated in favor
of django.urls.re_path().

This was already fixed in Horizon by [2].

[1] https://docs.djangoproject.com/en/4.0/releases/3.1/#id2
[2] d9266fd82c1f0acc6b7236a6dc9b7e510985eb13

Change-Id: Iee805aa9b51f88756728be5df3aab8a196860a63
2022-07-11 13:51:28 +09:00
Takashi Kajinami af750f65c3 Replace deprecated ugettext_lazy and ungettext_lazy
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: Ib9a4983382efeb4f8292eb275fdb5768d7f60fa7
2022-07-11 13:51:25 +09:00
OpenStack Proposal Bot f0a1186b5f Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I603542251dbbecc0796839621f0eb8fba2d35a19
2021-03-03 07:23:25 +00:00
OpenStack Proposal Bot b3b63987fa Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: If81021128aa1a34b94e3ce936801bbddde2a84da
2020-10-11 07:22:21 +00:00
Zuul b44a227316 Merge "Add aggressive negotiation mode for ikepolicy" 2020-09-04 01:49:04 +00:00
manchandavishal a35967e596 Cleanup for Refactor-error-messages
This patch is a clean-up patch for refactor-error-messages bp
which remove the exception message from base message otherwise
the same exception message display twice like
this https://ibb.co/XyFWMdz .

Depends-On: https://review.opendev.org/#/c/708069/
Change-Id: I56ac07e20768dbbe5610741736c0c545b1dfaa0d
2020-08-28 15:28:00 +00:00
zhanghao 484b57e436 Add aggressive negotiation mode for ikepolicy
The phase1 negotiation mode adds support for aggressive mode,
which can be selected when creating an ikepolicy.

Change-Id: Idd11861ec3d6cca09beea68832999a9f3410281e
Partial-Bug: #1701413
2020-06-24 07:46:01 -04:00
Hervé Beraud 6d1c85303d 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: I4e9fac7738991526948dcf708b86207185115fa8
2020-06-02 20:30:58 +02:00
OpenStack Proposal Bot 68721ea02f Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Id214957764d8df99da2974fc4e12da1001134690
2020-04-04 07:08:19 +00:00
Rafael Weingärtner b3e37ba44d Fix help text for "Authorization algorithm"
The pull request https://review.opendev.org/#/c/625442/ enabled the user
to select new hashing algorithms to create the VPN client. However, one
of the old help texts was left behind. This PR is simply proposing the
removal of an outdated help text.

Change-Id: Ia87dfe719b4030f8d50a6802f590354da339b9d8
2019-09-24 08:04:07 -03:00
OpenStack Proposal Bot 64793e5ac1 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I0c0b17fa3169d9960abac46cf70b69fee9f4d374
2019-05-06 07:14:53 +00:00
OpenStack Proposal Bot 2bc25d9fee Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Idb4a6e7a1151712155c8aa81955e4b385d90b37c
2019-03-27 07:21:04 +00:00
OpenStack Proposal Bot b3922c541b Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Idcbfa04ac87ebb0c219174db9e853f8f57295955
2019-03-22 07:03:27 +00:00
OpenStack Proposal Bot 69ed7d21c8 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I2b3ef9b1129c56b637abc3ca6c1a739a2fd7333c
2019-03-19 06:53:02 +00:00
Zuul e2982c445d Merge "Bump hacking to 1.1.0" 2019-02-19 16:04:56 +00:00
Akihiro Motoki 82a046cec4 Bump hacking to 1.1.0
Ignore W504 and F405 by configurations.
Reasons of disabling them are explained as comments in tox.ini.
They are already ignored in the horizon repository and
AFAICT it is not easy to avoid them in horizon plugins as well.

Fixes the following new error:
* E123 closing bracket does not match indentation of opening bracket's line

Change-Id: Ic2154fff3b90cebbfba86deb8cf832232682d347
2019-02-14 01:52:13 +09:00
OpenStack Proposal Bot 2c8695b8b2 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I79bb525dee47e813e078338bfc23bb4eb70b9011
2019-01-16 06:25:51 +00:00
Zuul b4437b4574 Merge "Support alrogithms other than sha1" 2019-01-12 20:37:18 +00:00
Akihiro Motoki d26d936248 Remove use_mox usage
As of horizon 14.0.0.0b2 or later the use_mox directive is unecessary
because use_mox defaults to False, so we can remove it.

Change-Id: If7109c998b791bca0c3a19e0ff7a65a086d510f4
2019-01-13 03:41:01 +09:00
Akihiro Motoki 5157219107 Support alrogithms other than sha1
neutron-vpnaas now supports sha1, sha256, sha384, sha512
for IKE policy auth_algorithm and IPsec policy auth_algorithm.

Change-Id: I7d8f3116500230113f66de71a781d13f3ca7b2d9
Closes-Bug: #1803386
2018-12-25 02:21:59 +09:00
OpenStack Proposal Bot 5c05a4455e Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Ic8f5bddb5c796926a41500caa18f527d15dfb3c6
2018-09-14 06:18:18 +00:00
OpenStack Proposal Bot abd2e63735 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I22e23b3aa65f1f1b2f1a68cd0f7907b0424cdf63
2018-08-09 07:50:46 +00:00
Zuul d8c1dd5865 Merge "Switch test runner to django default runner" 2018-06-21 17:09:45 +00:00
Akihiro Motoki eebb9946b1 Switch test runner to django default runner
nose is not actively maintained now and Django default test runner
seems to have enough features.

Also drops unnecessary python dependencies so that
the maintenance of requirements files easily.
There is no need to install Django explicitly as it is a horizon dependency.
testscenarios, testrepository, testtools are not used actually.

Depends-On: https://review.openstack.org/#/c/544296/
Change-Id: Ic360c181d1f3278957007fc7188560893cc5ed03
2018-06-11 08:37:50 +09:00
OpenStack Proposal Bot 74f62d0314 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I951f1f70227b75fe987e7c4fed543e9036f72f84
2018-05-11 06:55:07 +00:00
Zuul 845ede6f57 Merge "Imported Translations from Zanata" 2018-04-26 08:39:47 +00:00
Zuul 905c335632 Merge "Django 2.0 support" 2018-04-26 08:39:47 +00:00
OpenStack Proposal Bot 6025f05296 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I4953f8ad8ee1d2fb83ab7491d1bf04f6ee64eec8
2018-04-26 07:19:10 +00:00
Cao Xuan Hoang d364f25765 Fix pep8 errors
Pep8 job is broken due to recent pep8 upgrade and corresponding
pycodestyle update.

This commit fixes the following errors:
 - E402 module level import not at top of file

Change-Id: Ibb444748d8797631394c1f4ee6176363eb69eb05
2018-04-13 14:44:55 +07:00
Akihiro Motoki d9fd377e29 Django 2.0 support
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 depreacted in Django 1.10:
https://docs.djangoproject.com/en/2.0/releases/1.10/#id3

Add py35dj20 job to test Django 2.0 integration.
Also drops py27dj110 from tox.ini as horizon droped
Django 1.10 support in Rocky.

Change-Id: Ieb4364d9c46f126d4fa797b42f7602fb73f33a0f
2018-04-02 11:31:50 +09:00
Zuul 3735c35cdf Merge "Imported Translations from Zanata" 2018-03-25 18:12:33 +00:00
Zuul 4b61c2083e Merge "Drop mox3 from test-requirements.txt" 2018-03-25 18:12:32 +00:00
Zuul fb1dfc38bc Merge "Drop mox usage from VPNaaS panel tests" 2018-03-25 18:06:41 +00:00
Zuul c6a51e881c Merge "Drop mox usage from VPNaaS API tests" 2018-03-25 18:06:40 +00:00
OpenStack Proposal Bot ef668660a3 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Idd75cb59b973240b17f413843a145bc57df61dcd
2018-03-24 06:36:08 +00:00
OpenStack Proposal Bot 740229ea99 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I964c134d293890ef3c3f30862d4f759af1261000
2018-03-14 20:53:25 +00:00
OpenStack Proposal Bot 1c3b2c8c6e Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Idc75a7ec40b77d3c87e6c99d7dce6daf6137ffb4
2018-03-08 06:07:15 +00:00
Akihiro Motoki 4ae1508604 Drop mox3 from test-requirements.txt
create_stubs in test.helpers is also dropped in this commit
because this creates a stub using mox.

This is part of mox-removal community goal in Rocky.

Depends-On: https://review.openstack.org/549842/
Change-Id: I150d654b40dd14bb738e0da991e5db7f311cf7b6
Closes-Bug: #1753504
2018-03-06 04:08:21 +09:00
Akihiro Motoki 6cbdee8340 Drop mox usage from VPNaaS panel tests
AddEndpointGroup workflow previously passes 'subnets' and 'cidrs'
in "context" data to endpointgroup_create(), but precisely speaking
this is not correct (even though endpointgroup_create() does filtering
inside the function). After mock introduction, arguments are checked
more stricly and it is tricky to have 'subnets' and 'cidrs' in
assert_called_once_with, so this commit changes the arguments in
the AddEndpointGroup workflow.

This is part of mox-removal community goal in Rocky.

Partial-Bug: #1753504
Change-Id: Ida3a5fdad267144392aba946c089113c478c4405
2018-03-05 23:20:51 +09:00
Akihiro Motoki 0087e89e44 Drop mox usage from VPNaaS API tests
This is part of mox-removal community goal in Rocky.

Partial-Bug: #1753504
Change-Id: I95ec86d8da0293e3d2be27d4b147e648a5bfbdc0
2018-03-05 14:17:56 +00:00
OpenStack Proposal Bot f47b006756 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Id91dffa4552406d2edd52d82c67c00c976c3a6a9
2018-03-02 06:12:38 +00:00
OpenStack Proposal Bot 15f47fe37c Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I3764dbcd9b4c9498ce6b0f89cd7e104da17a738a
2018-02-15 06:14:41 +00:00
Reik Keutterling 3aaa18a638 [trivial] fixed typo in vpn/forms.py
(due the hard string freeze only fixed in master)

Change-Id: Ifa6381a8a057c515629a4b06a4c91ff77c64c215
2018-02-13 13:20:17 +01:00
OpenStack Proposal Bot c7a31052f7 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I13570e2df8cff213eb01510928bbefbe8495fa65
2018-02-08 07:12:24 +00:00
Zuul bd1354fc78 Merge "Add VPN service: List only routers with external gateway" 2018-02-08 03:39:54 +00:00
OpenStack Proposal Bot bc4cbc1973 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: If34d9d973350cc59bd211b89586019514672781b
2018-02-07 07:15:35 +00:00
Zuul 536a857469 Merge "Fix unnecessary capitalized messages" 2018-02-03 18:37:47 +00:00
Zuul e0ab793bc0 Merge "Replace None with - (hyphen) for value None" 2018-02-03 18:37:17 +00:00
Zuul d7722d532f Merge "Make switched multiple choice field work" 2018-02-03 18:37:03 +00:00