manila-ui/manila_ui/tests
Goutham Pacha Ravi 6ad8fd882a Fix parsing names in switched fields
In the share creation form dialog, share network
selection is optionally provided based on whether
the share type chosen supports the DHSS extra-spec.
This selection breaks often when dealing with share
types that have a name matching the format: ".*-\d+.*".
For example: test-700. The root cause of this seems to
be in javascript code for "switchable" fields [1] that
doesn't get triggered as expected.

A similar issue manifests in the share Network Creation
form where we setup switched fields with the Neutron
network IDs (dashed format UUIDs) and in the Share
Group Creation form where we setup switched fields
with the Share Group Type IDs (dashed format UUIDs).

So, we could encode the "-" in these field names to
workaround this issue.

Closes-Bug: #1931641
[1] 647c2b7530/horizon/static/horizon/js/horizon.forms.js (L491-L613)

Change-Id: Id924fc55debdc38ae2131bf8cef396f28caa3e77
Signed-off-by: Goutham Pacha Ravi <gouthampravi@gmail.com>
(cherry picked from commit 37e5b2f053)
(cherry picked from commit b7d87e886a)
2021-06-18 14:34:26 -07:00
..
api Merge "Improve unit test coverage for manila.py" 2020-09-23 20:28:18 +00:00
dashboards Fix parsing names in switched fields 2021-06-18 14:34:26 -07:00
integration User messages panel 2020-09-09 18:13:44 -03:00
test_data Update hacking for Python3 2020-04-01 13:37:50 +02:00
__init__.py Place all unit tests under single subdir 2016-05-04 13:52:09 +03:00
helpers.py Use unittest.mock instead of third party mock 2020-04-03 17:48:42 +00:00
settings.py Moves OPENSTACK_MANILA_SETTINGS TO local_settings.d/ 2016-12-12 20:36:50 +00:00
urls.py Fix unit tests for Django 1.9 2016-07-21 19:18:14 +03:00