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
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
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
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
The phase1 negotiation mode adds support for aggressive mode,
which can be selected when creating an ikepolicy.
Change-Id: Idd11861ec3d6cca09beea68832999a9f3410281e
Partial-Bug: #1701413
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
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
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
neutron-vpnaas now supports sha1, sha256, sha384, sha512
for IKE policy auth_algorithm and IPsec policy auth_algorithm.
Change-Id: I7d8f3116500230113f66de71a781d13f3ca7b2d9
Closes-Bug: #1803386
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
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
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
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
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