OpenStack Dashboard (Horizon)
Go to file
Akihiro Motoki 516e57bc89 Add UT coverage for attach_interface by port
Previously attach_interface tests in project/instances/tests.py
did not cover the case of attach_interface by port.
This commit adds UT for such cases.

Details:
- The second call of the mocked network_list_for_tenant retured
  an empty list. It sounds tricky to change the return value for
  network_list_for_tenant() in two calls, but this trick was used
  to skip the processing of port_field_data.
  This should return a same value for the two calls to test
  port_field_data() function.
- To test the behavior of attach_interface by "port",
  an unbound port (whose device_owner/device_id of the port is empty)
  is required, so this commit adds it to neutron_data.py.
- test_interface_attach_get() covers a list of choices when "By Port"
  is selected in the form.
- test_interface_attach_post_by_port() is added.

Related to the addition of an unbound port to neutron_data.py,
the following other tests are adjusted.
They assumed that all non-network ports are owned by servers,
but it is no longer true as an unbound port is added to the test data.
Note that associating an unbound port with a floating IP is a valid
operation in neutron, so there is no problem to adjust UTs.

- openstack_dashboard/dashboards/project/floating_ips/tests.py
- openstack_dashboard/test/unit/api/test_neutron.py

Related-Bug: #1943639
Change-Id: Ib0ee342463e5668858078db43c04fe0a1be6e995
2022-10-26 15:34:17 -05:00
.zuul.d Switch to 2023.1 Python3 unit tests and generic template name 2022-09-21 12:08:30 +00:00
doc Imported Translations from Zanata 2022-09-21 02:15:49 +00:00
horizon Imported Translations from Zanata 2022-10-06 03:11:09 +00:00
openstack_auth Imported Translations from Zanata 2022-10-18 03:58:00 +00:00
openstack_dashboard Add UT coverage for attach_interface by port 2022-10-26 15:34:17 -05:00
playbooks Fix ironic-ui cross job 2020-09-10 06:10:38 +00:00
releasenotes Imported Translations from Zanata 2022-09-24 03:17:58 +00:00
roles Improve integration tests logging 2020-09-04 12:46:17 +03:00
tools Fix coverage job 2020-10-05 15:32:06 +09:00
.eslintignore bump eslint version to 1.10.3 2016-03-31 14:06:45 +00:00
.eslintrc Update ESLint devDependencies in package.json 2020-12-16 12:20:10 -06:00
.gitignore [cleanup] Remove unused file refernce from .gitignore file 2020-12-08 08:57:46 +00:00
.gitreview OpenDev Migration Patch 2019-04-19 19:37:19 +00:00
.mailmap Update my mailmap 2013-10-25 14:49:23 +08:00
.pylintrc Use python3-style super() 2020-10-15 14:37:20 +09:00
CONTRIBUTING.rst [ussuri] [goal] Project PTL and contributor docs 2020-08-20 08:34:11 +09:00
HACKING.rst Update the documentation link for doc migration 2017-08-04 18:38:25 +00:00
LICENSE Initial commit 2011-01-12 13:43:31 -08:00
MANIFEST.in Update MANIFEST for dashboard config 2020-06-08 15:06:58 +02:00
README.rst Add release notes link in README 2018-07-10 14:45:26 +07:00
babel-django.cfg Drop babel extractor definitions from babel config 2019-12-23 17:25:38 +09:00
babel-djangojs.cfg Drop babel extractor definitions from babel config 2019-12-23 17:25:38 +09:00
bindep.txt Fix video recording for integration tests 2020-04-09 09:20:04 +00:00
manage.py hacking: noqa cleanup in horizon 2017-03-17 19:38:47 +00:00
package.json Update devDependencies in package.json 2020-12-17 12:21:31 -06:00
plugin-registry.csv Remove retired karbor-dashboard usage 2020-12-15 16:04:11 -08:00
reno.yaml Tell reno to ignore the kilo branch 2020-03-23 13:18:58 +00:00
requirements.txt Update Xstatic-angular version in ``requirements.txt`` 2022-08-18 18:41:13 +00:00
setup.cfg Drop py36 and py37 support 2022-06-06 17:59:13 +09:00
setup.py Drop py36 and py37 support 2022-06-06 17:59:13 +09:00
test-requirements.txt Move linters dependencies to tox.ini 2021-03-19 11:25:28 +09:00
test-shim.js Add Apache 2.0 license to source file 2016-12-02 17:40:28 +07:00
tox.ini Merge "Drop lower-constraints.txt and its testing" 2022-08-18 18:32:26 +00:00

README.rst

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.

image

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