
The test for the instance table with boot-from-volume had several issues previously. a) api.cinder.volume_list is mocked but return_value was not specified and called arguments were not checked. b) The mocked api.nova.server_list returned Server instance from novaclient, but it should return Server instance from the horizon API wrapper (api.nova.Server). As a result, for example, "image_name" property in api.nova.Server was skipped. c) Test data for cinder volumes had wrong attachment information. attachment ID must match a volume ID, but it did not. This commit fixes the above issues and adds a test logic to check volume_image_metadata handling in instances/views.py. This is a preparation to implement a unit test in https://review.opendev.org/#/c/668595/. NOTE: The issues (a) and (b) above need to be fixed globally in the openstack_dashboard testing, but it will be covered by follow-up commit(s). This commit focues to prepare for https://review.opendev.org/#/c/668595/. Change-Id: I7ebb68220f75fef36b43b89e32e5aff18fc0fe25
Horizon (OpenStack Dashboard)
Horizon is a Django-based project aimed at providing a complete
OpenStack Dashboard along with an extensible framework for building new
dashboards from reusable components. The
openstack_dashboard
module is a reference implementation of
a Django site that uses the horizon
app to provide
web-based interactions with the various OpenStack projects.
- Project documentation: https://docs.openstack.org/horizon/latest/
- Release management: https://launchpad.net/horizon
- Blueprints and feature specifications: https://blueprints.launchpad.net/horizon
- Issue tracking: https://bugs.launchpad.net/horizon
- Release notes: https://docs.openstack.org/releasenotes/horizon/
Using Horizon
See doc/source/install/index.rst
about how to install
Horizon in your OpenStack setup. It describes the example steps and has
pointers for more detailed settings and configurations.
It is also available at Installation Guide.
Getting Started for Developers
doc/source/quickstart.rst
or Quickstart
Guide describes how to setup Horizon development environment and
start development.
Building Contributor Documentation
This documentation is written by contributors, for contributors.
The source is maintained in the doc/source
directory
using reStructuredText and
built by Sphinx
To build the docs, use:
$ tox -e docs
Results are in the doc/build/html
directory