Commit Graph

106 Commits

Author SHA1 Message Date
Takashi Kajinami 444a209cb1 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: If17fba432f4a00979f70b535bc1f1750d8a15f19
2022-07-11 05:42:10 +00:00
manchandavishal ad4f6941e3 Address RemovedInDjango40Warning
In Django 3.1, django.conf.urls.url() is deprecated
in favor of django.urls.re_path(). For more info see [1]
These were already replaced in Horizon repo by [2].

[1] https://docs.djangoproject.com/en/4.0/releases/3.1/#id2
[2] https://review.opendev.org/c/openstack/horizon/+/827093

Change-Id: I67a54ce20d71165414553518d81a81764b375dc0
2022-04-29 22:39:40 +05:30
zhouhenglc 041d9d16b0 Rename zh-cn translations to zh-hans
See http://lists.openstack.org/pipermail/openstack-discuss/2021-February/020169.html

Change-Id: Iddf5a690df324b3e77415052e3c5cd4a97498c88
2022-02-18 11:01:20 +08:00
ZhouHeng e8463a1ad4 Revert "Retire neutron-fwaas-dashboard project"
This reverts commit 4a0f1a3ae5.

Reason for revert:
Neutron drivers team agreed to include neutron-fwaas again to Neutron
stadium[1], and goverance change is proposed at [2].

[1] https://meetings.opendev.org/meetings/neutron_drivers/2022/neutron_drivers.2022-01-28-14.00.log.html#l-14
[2] https://review.opendev.org/c/openstack/governance/+/828078

Change-Id: I5018dfdf9ea866e113a17f9bd5a3b153e4f1c08f
2022-02-10 20:58:31 +08:00
Slawek Kaplonski 4a0f1a3ae5 Retire neutron-fwaas-dashboard project
Governance change is proposed at [1] and project config patch is
proposed at [2]

[1] https://review.opendev.org/735828
[2] https://review.opendev.org/#/c/735812/

Change-Id: Ib78ff301076c0295aad9b1bf49eed0f1a7adb7c2
2020-06-16 12:39:14 +02:00
Hervé Beraud 6451d3dbff 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: I72feb6bdcee015029beb274b57600e3e5b4b9ed9
2020-06-11 10:53:14 +02:00
Ivan Kolodyazhny 725e1ac496 Add neutron-fwaas-dashboard integration tests
This patch adds basic tests to verify that neutron-fwaas-dashboard
is installed and could be opened.

Also this patch decoupless sphinx vesrions for Python 2.7 and 3.x
to fix gates.

neutron-fwaas-dashboard job is added in a non-voting mode.

Change-Id: I1dca0bfbdc44186fffcbe757a142c930f5bc14b4
2019-10-21 17:33:35 +03:00
Zuul 4557db7ee9 Merge "django22: django.test.client.encode_multipart no longer accepts None" 2019-09-13 05:59:57 +00:00
Zuul e52bb93015 Merge "Fixes Django 2.2 for TableSelectWidget" 2019-09-12 20:09:14 +00:00
Akihiro Motoki 5168c4dfdc django22: django.test.client.encode_multipart no longer accepts None
As seen here [1].

When a corresponding field has no selection, an empty string is
passed to the server. This change replaces None with an empty string.

After this change, all tests pass with Django 2.2,
so we can make django22 job voting.

[1] https://github.com/django/django/commit/6fe9c45b725

Change-Id: I4cd551253ac361eaa46b6de35369125eb0e20e98
2019-09-13 05:08:12 +09:00
mareklycka 2d3cc79878 Fixes Django 2.2 for TableSelectWidget
Changes the signature of the custom TableSelectWidget to be compatible
with Django 2.2.

Change-Id: Ic77917fca514ef3686131a051cc2474ec9fcc8bd
closes-bug: 1843701
2019-09-12 13:37:07 +02:00
Adit Sarfaty 1be0cfb10e Set FW group admin-state UP by default
By default, the admin state of a new firwall group should be UP.
This patch mark the checkbox.

Change-Id: Id377c656788e0fbb13c4b8f90dd022e39c50adbf
Closes-bug: #1833374
2019-08-21 08:50:07 +03:00
OpenStack Proposal Bot c0a4ee55b7 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Ibbd2e2d20b708931767451a00348c7877f781d1a
2019-08-14 08:47:50 +00:00
OpenStack Proposal Bot f722df5b03 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I1c6877a0c13ff0f6afc6c00f1dd5902cd20e221c
2019-05-06 08:05:22 +00:00
OpenStack Proposal Bot 916b3326b8 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Id2bdfcc42f526fcc24085d367a0b5e85000cdd08
2019-04-04 09:44:04 +00:00
OpenStack Proposal Bot bf88a3f1a9 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I0e325bff738893880ee390d10b919ee2440db6ef
2019-03-21 08:13:35 +00:00
OpenStack Proposal Bot a84ddc6314 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Ib65ec7fd53a0ccd5a1c3ee22d76c0522ad17b32a
2019-03-19 09:17:43 +00:00
OpenStack Proposal Bot a6c91325be Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I69d8fbf8f69c2accd92e8cf167e4a4aaff85ecc1
2019-03-06 06:12:53 +00:00
Zuul 1d67a7ce98 Merge "Drop FWaaS v1 dashboard" 2019-02-05 07:57:34 +00:00
OpenStack Proposal Bot 6abf5aae27 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I644fd01e167803a3e2736d4e7001b8eb9558a654
2019-01-27 06:53:14 +00:00
Zuul 104b488a7c Merge "Displays selectable ports in a tabular pop-up" 2019-01-18 03:22:35 +00:00
Zuul cba7f58e1d Merge "Cleanup 'firewall' usage in v2 dashboard (part 1)" 2019-01-18 02:55:44 +00:00
mareklycka cb7c8c449a Displays selectable ports in a tabular pop-up
This commit adds a new customizable Django/Horizon widget which displays
Select options as table without adding AngularJS components or new
custom JS code.

The widget is then used to display port information in the dialogs used
for port adding to, and removing from, Firewall Groups.

Change-Id: I9707179557919643d4432d8ed29f2c80e44e6af4
Closes-Bug: #1810391
2019-01-14 08:41:24 +01:00
Zuul 2b099a2417 Merge "Use tabs.DetailTabsGroup for better top margin" 2019-01-12 21:32:20 +00:00
Akihiro Motoki 813bdfdeb8 Use tabs.DetailTabsGroup for better top margin
DetailTabsGroup class is prepared to have a good margin
between a tab bar and the detail information in detail pages.
Previously we have no margin between the tab bar and the detail
information in the firewall group detail page. The issue can be
addressed by using DetailTabsGroup.

Change-Id: Ic7a1ca388812ae5759c9c4c9edbc4f5793a70a35
2019-01-13 06:12:11 +09:00
Akihiro Motoki 285c481f0d Avoid invalid links when no policy is associated
ingress/egress_firewall_policy_id of a firewall group can be null.
Previously the firewall group detail page always create a link
even when ingress/egress_firewall_policy_id is null and it leads
to an invalid link.

Change-Id: I491482789385e9d9735ebcafcc5574fc11fdd2ac
2019-01-13 06:04:26 +09:00
Akihiro Motoki 0b47a5ecc1 Cleanup 'firewall' usage in v2 dashboard (part 1)
This commit cleans up usage of 'firewall' (in favor of
'firewall group') in the API wrapper layer and messages.

Change-Id: Icf496933ebfd00eac15e24c9c15249c4d18d86de
Partial-Bug: #1723952
2019-01-13 04:39:30 +09:00
Akihiro Motoki cf86037560 Drop FWaaS v1 dashboard
FWaaS v1 support has been deprecated and neutron-fwaas
dropped it in Stein cycle.

Change-Id: Ib14c9edf4dbd66ab7fc898f497f740dcf7aa81b3
2018-12-25 08:46:43 +09:00
Akihiro Motoki 72d38faa87 devstack: update the way to setup policy.json
Previously devstack/plugin.sh mirrors POLICY_FILES in horizon repo
but this is not a good idea because we must catch up with changes
in horizon.

This commit prepares a local_settings.d file for neutron-fwaas-dashboard
to setup POLICY_FILES entry for the dashboard.

Change-Id: I45d8e8a27f70708f701ec84559d9af40561dd549
2018-11-24 10:40:41 +09:00
OpenStack Proposal Bot 9fee86717a Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I2ea48a1fb5adee60cb80d28433de222f10ecae13
2018-09-14 07:20:31 +00:00
Zuul d59d6f73c4 Merge "FWaaS v2 dashbaord: clean up unnecessary get_dict() methods" 2018-08-30 22:10:28 +00:00
Chuck Short 677c631b0b Remove use_mox directive
As of horizon 14.0.0.0b2 or later the use_mox directive is unecessary
so we can remove it.

Change-Id: I1191bb4223556b7da1f4377bec70277abf58dd39
Signed-off-by: Chuck Short <chucks@redhat.com>
2018-08-15 08:54:05 -04:00
OpenStack Proposal Bot 66932c04f1 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Id951972c8d4f6cd01fa3eee17d6d786e6dd9c397
2018-08-10 06:17:16 +00:00
OpenStack Proposal Bot e63100d18c Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I51eff50eeb2e254276cfb0db1248e9b63c4c2e27
2018-08-09 06:31:52 +00:00
Ivan Kolodyazhny 209da556ac 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: I16022a448139958905746cc37520c345b48d6970
2018-06-04 14:13:41 +00:00
OpenStack Proposal Bot 3a6a7bdee8 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Iba8be7cbee1315ff8fe979eaccf2cbbfb46d7960
2018-05-11 07:05:44 +00:00
OpenStack Proposal Bot d851e2e5cb Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Iba9e9695a473576d7a04dbf5f56a6975ac4f383b
2018-05-09 07:12:11 +00:00
Akihiro Motoki fa6b0e1356 FWaaS v2 dashbaord: clean up unnecessary get_dict() methods
APIDictWrapper provides to_dict() method, so there is no need
to have get_dict() method in Firewall wrapper API classes.

firewalls_v2.views.RouterCommonView is also unnecessary
as this is not used anywhere.

Change-Id: I760d653aa2404f574755572a90bfcd2bbad9a7bf
Closes-Bug: #1723951
2018-05-03 16:01:40 +09:00
Akihiro Motoki 32397d14a8 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: I0e6c31c6e8edd6994854f98d898ee897c91dd140
2018-05-02 20:25:19 +09:00
Akihiro Motoki 36e8f3999e 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.

blueprint django2-support

Change-Id: I8e0dcb64e1c82580767db482631450ba38654fc3
2018-04-03 19:37:55 +00:00
Zuul c709d55379 Merge "Remove unnecessary fields from SelectRoutersStep.contributes" 2018-04-03 18:35:15 +00:00
Akihiro Motoki 6faaf2cad7 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.

lower-constraints.txt are updated to pass requirements-check
as this file is updated automatically now and we need to update
it when updating this file from some reasons.

Change-Id: Ib4c7c3003ce5d895c9c514aa0af6491da1667891
Closes-Bug: #1753504
2018-04-04 00:13:02 +09:00
Zuul e8e6f4a5a1 Merge "Drop mox usage from FWaaS v2 panel tests" 2018-04-03 14:20:25 +00:00
Zuul e3e87f2274 Merge "Drop mox usage from FWaaS v2 API tests" 2018-04-03 14:20:25 +00:00
Zuul 3cb1614d00 Merge "Drop mox usage from FWaaS v1 panel tests" 2018-04-03 14:20:24 +00:00
OpenStack Proposal Bot 26466b29a0 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I1fd3ceaa011bb9247a45eb08c81a7e4d6df934eb
2018-03-28 07:19:38 +00:00
Akihiro Motoki 6cd9d487ed Drop mox usage from FWaaS v2 panel tests
Previously expected PUT data for update tests were completely wrong.
I don't know why the previous mox unit tests pass. After switching to
mock, they no longer can pass and this commit fixes them.

This patch also clean up unnecessary mocked methods.

This is part of mox-removal community goal in Rocky.
Partial-Bug: #1753504

Change-Id: I135b1745c933deca37d17e6af250e16aabf912e7
2018-03-28 15:02:16 +09:00
Akihiro Motoki 58804c1e99 Drop mox usage from FWaaS v2 API tests
This is part of mox-removal community goal in Rocky.
Partial-Bug: #1753504

Change-Id: I41362bb41384434418f1250e7a97eb1226202c51
2018-03-28 15:02:16 +09:00
Akihiro Motoki b17392b5fa Drop mox usage from FWaaS v1 panel tests
Note that test_add_firewall_post_with_router_extension() is also fixed
because we need to post unassociated router IDs to the form of creating
a new firewall but the previous test sends associated router ID.
This fix is required to pass the test after mock is used.
I am not sure why the test succeeded with mox though....

Also cleans up unnecessary mocked methods.

This is part of mox-removal community goal in Rocky.
Partial-Bug: #1753504

Change-Id: I033421aeb00d97c049bec3d04da6989c811d1514
2018-03-28 15:02:16 +09:00
Akihiro Motoki abe32f20c8 Remove unnecessary fields from SelectRoutersStep.contributes
SelectRoutersStep.contributes contains non-existing fields
"all_routers_selected" and "Select No Routers".
It is confusing for future maintenance. Let's drop them.

Change-Id: Ie4f710f28328623d1bd56d6298fd638615f6a14f
2018-03-28 05:08:53 +00:00