murano-dashboard/muranodashboard/tests/unit/packages
Felipe Monteiro 51cbeb6640 Fix missing import package button in murano dashboard
After https://review.openstack.org/#/c/476273/ was merged, murano
dashboard is throwing errors related to listing categories when
trying to import a package. Currently, python-muranoclient still
contains a function [0] for listing categories using the deprecated
API v1/packages/categories. The problem is that murano dashboard
calls this function [1][2][3] in python-muranoclient which throws a 404,
as the deprecated API was removed from murano.

This commit replaces instances of client.packages.categories() with
client.categories.list(). However, while the former returns a list
of category names, the latter returns of a list of category objects
-- so they then need to be iterated over to retrieve the list
of category names.

[0] 08411aa8d2/muranoclient/v1/packages.py (L52)
[1] f98e08d827/muranodashboard/packages/forms.py (L216)
[2] f98e08d827/muranodashboard/packages/forms.py (L288)
[3] bc8e4b97d0/muranodashboard/packages/tables.py (L54)

Change-Id: I715b1c9ccfdd044980596cc6d966062e0386884c
Partial-Bug: #1701067
2017-07-02 00:55:15 +00:00
..
__init__.py Increase unit test coverage for muranodashboard Packages Forms API 2016-10-21 20:53:00 +01:00
test_api.py Fixed issues on Python 3 2017-05-11 17:19:27 +03:00
test_forms.py Fix missing import package button in murano dashboard 2017-07-02 00:55:15 +00:00
test_tables.py Fix missing import package button in murano dashboard 2017-07-02 00:55:15 +00:00
test_views.py Fix form of package modification 2017-06-27 12:18:49 +03:00