This repo is now testing only with Python 3, so let's make
a few cleanups:
- Remove python 2.7 stanza from setup.py
- Add requires on python >= 3.6 to setup.cfg so that pypi and pip
know about the requirement
- Remove obsolete sections from setup.cfg
- Update classifiers
- Update requirements, no need for python_version anymore
- Switch to using sphinx-build
- Use newer openstackdocstheme and Sphinx versions
- Cleanup */source/conf.py to remove now obsolete content.
- Remove Babel from requirements, it's not needed for running.
- Update lower-constraints for osprofiler as required by
other dependencies.
Change-Id: I84ec7cae5b051bb9c69969d8ccaa28b053914840
As we add support to newer versions of the Manila
API, to allow newer features be used by UI consumers,
we need a newer version of the SDK.
Change-Id: Ia3f8a5c1cffd87e90c33e98700854f0aa1dd7041
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.
Note that six.text_type is "str" in Python 3, so we can remove the
clause completly.
Change-Id: Icfb44404971b18ff865e28e551687707d52f3762
Django 1.11 ends its extended support in April 2020 (which is before
Ussuri release), so horizon drops Django 1.11 support in Ussuri.
tox envs for non-primary Django versions are no longer needed in tox.ini
as testing environments for non-primary Django versions are setup in
the zuul jobs now.
horizon>=17.1.0 is required to use Django 2.2. requirements.txt and
lower-constraints.txt are updated accordingly. for more info. please
refer [1].
Depends-On: https://review.opendev.org/#/c/700733/
[1] https://etherpad.openstack.org/p/Enable_Django22_support_in_Horizon_Plugin
Change-Id: Ide8df87a29eb94eb17ea9d132a1162f2915948ee
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.
Change-Id: Ic462de67d57ad96887bd321323b8ff88d2c71185
As of horizon 14.0.0.0b2 or later the use_mox directive is
unecessary so we can remove it.
So remove it from the manila-ui and bump the requirements to b2.
Change-Id: I90b62737f6af94bec7d374742148cea480d65c99
Signed-off-by: Chuck Short <chucks@redhat.com>
Horizon depends on Django and manila-ui depends on horizon,
so we don't need to have Django dependency explicitly.
In Rocky cycle, horizon supports Django 2.x and manila-ui has not
followed it yet. It is a good chance to drop explicit Django dependency.
Change-Id: Idedf03bf2b34d4756eafd4d6694286e14e6eaa68
... or at least the first published tarball which will lead to Rocky.
On the other side this means forcing the usage of mox as long as
there are tests that depends on it (the switch was already flipped
in Horizon, so it needs to be enabled here).
This allows us to depend on newer Horizon features, including changes
to the test suite that are useful for the mox removal effort.
Also remove mox since there are no unit tests that need it.
Change-Id: Ia8e0d5512f11e3d191ca2f6259075e35490290c2
Signed-off-by: Charles Short <zulcss@gmail.com>
django_openstack_auth has been merged into horizon tree
as an effort of blueprint merge-openstack-auth.
There is no need to depend on django_openstack_auth from now on.
Change-Id: I93f6365ccf661568b37ea9c737f8ce6115873739
Use only local mocks and add assertions with expected
amount of calls and used attributes. Remove dead code that was
carried over from Cinder-related logic.
Also, use 'memoized' decorator to avoid redundant API calls.
Change-Id: I82ae8c484e709b93862219a4d36180239aadd234
Closes-Bug: #1575747
Manila UI has two dashboards - "project" and "admin". Each of them
contains several different tabs that are loaded at once.
"admin" dashboard adds "project_name" to table rows and
takes list of projects from Keystone to perform mapping of ID-Name.
Now, it takes list of projects for each tab separately - 5 times.
It is redundant.
Make it do only one such call and reuse it among tabs.
Also, fix usage of mocked objects in unit tests making them be
mocked only for single test.
Change-Id: I01e7283ff18fe403c86c54982269893c1397a98f
Partial-Bug: #1575747
Closes-Bug: #1575660