This commit adds support for Designate zones. This can be used to
provide the user a drop down list of zones they can choose from when
launching apps.
This should be coupled with a commit to murano to add a new
io.murano.resources.RecordSet resource type, so that new a new DNS
record can be added for new apps.
Change-Id: I71deb3e264b2777ec4126d8e46c3ac45b9fc42c6
Currently if you enable murano UI and try to compile messages you will be
thrown `NameError: name 'HORIZON_CONFIG' is not defined
So we explicitly import HORIZON_CONFIG along with POLICY_FILES
to make horizon successfully compile when murano-ui
was enabled.
Change-Id: Id5ab97349f702be1afc536c154cf0e35197150b8
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: I4e0f50b95b7c94cf641fc778268b6c4c1267175c
Now that we no longer support py27, we can use the standard library
unittest.mock module instead of the third party mock lib.
Change-Id: I5ad2c7a44dee2e19ab2576f206c69d94126a22b1
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
Co-Authored-By: zhurong <aaronzhu1121@gmail.com>
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.
Fix problems found.
Update local hacking checks for new flake8.
Change-Id: I7073a478d38fb46619e7a300808e9449403e704d
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.
Change-Id: Ibc743a552a43147153dd0ca3a46ab8d977c7ca0d
This commit makes some sensible default choices for fields
when adding and application to an environment. These are applied
to the image and keypairs fields.
In both cases, if only one option is available, then make that
the initial value selected.
In the images case, we take it a step further and if there is
only one image, make that the only choice, dropping the
'Select Image' option completely.
Change-Id: I24462374a50c1b8d83970f10278362f3dc5daf8b
The add keypair button referenced a view that it no longer
available when using the new angular keypairs panel, otherwise
a 'Danger' error is thrown then you try and click it.
This commit simply removes the add button as there is no way to
get the functionality back when using the angular panel.
Change-Id: Iaf7aa5f0805ba91d2f7f9115cc3cf19cf344dd4b
When using the debreach random comment middleware with Django,
the API response when adding a dependency package to an
environment would end up with a html-style comment at the end of
the response, which would then fail JSON parsing by the dashboard.
To prevent debreach from adding the random data, the content type
needs to be something other than text/html. The response output
itself isn't really JSON so switching to JsonResponse doesn't
work becuase the content isn't a dict, so just use text/plain
instead.
Change-Id: Ie710487d865344c9a5cd71d4dec3bf927cfabf40
Availability zones that were unavailable should have been filtered
from the list, but weren't due to incomplete filtering.
This commit specifically tests whether the AZ status is available
before allowing it in the list of choices.
This filtering mechanism is the same as how the OpenStack dashboard
'Launch Instance' dialog handles availability zone availability.
Change-Id: I8bdb38e29209aff92f51532812b409e48462a0af
In Python 2, dict.keys() would return a copy of the keys as a
list which could be modified. In Python 3 it is returned as an
iterator which can't be modified, so simply cast it as a list.
Change-Id: I0c955337b689ad2cbdb3975ca4f1ddd52e277a70
Since horizon separate module nova to _nova in commit [0],
change this for murano-dashboard.
[0]: If91cf4f30d2ddab471757129c2a74b26b6d38b1e
Change-Id: I4160342c571a5c0d952f96503de920fedc88a33b
django-floppyforms is not very well supported anymore
and was dropped from Ubuntu in Xenial.
Closes-bug: #1805193
Change-Id: I46bf2d43794a67a4dc080afa9f1740a582cb7631
In Stein development version of horizon, APITestCase and APIMockTestCase
are identical, and APIMockTestCase will be dropped in future.
murano-dashboard is the only consumer of APIMockTestCase now.
This commit clean up the usage of APIMockTestCase.
horizon stein depends on osprofiler>=2.3.0, so lower-constraints.txt
file is updated accordingly.
Change-Id: I36cb8ade8ec80cd313dc9be9e1f1a67daeb60c87
nose is not actively maintained now and Django default test runner
seems to have enough features.
Horizon test setting no longer depends on nose and related stuffs.
This commit cleans up nose related dependencies.
The change was made in horizon Rocky-3,
so horizon 14.0.0.0b3 is required at least.
And murano-dashboard using unittest instead of testtools.
Co-Authored-By: Akihiro Motoki <amotoki@gmail.com>
Change-Id: I419e0e166ea88c3ab1203f35ffa00928cf94acb1
Depends-On: https://review.openstack.org/599156/