4046ef6616
The scenario configuration in openstack_auth test_auth was ignored somehow. Perhaps it happened when openstack_auth was merged into the horizon repo as test runners used in the horizon repo so far (django test runner, nose and pytest) do not support testscenarios. This commit tries to recover the original intention of the scenario. pytest supports several ways to parametrize tests [1] but there seems no way without changing each test functions. A quick port of "testscenarios" is explained [2], but it is just a way to generate tests based on scenarios and we still need to add scenario parameters to each test function, so we cannot refer scenario parameters in setUp(). As a result, I chose a way to inherit the original class and pass different attributes per scenario. This is not ideal and I hope pytest lovers can improve the situation. The test classes in test_auth are renamed to more meaningful ones. Direct overrides of settings in test_auth.py are improved too. [1] https://docs.pytest.org/en/stable/example/parametrize.html [2] https://docs.pytest.org/en/stable/example/parametrize.html#a-quick-port-of-testscenarios Change-Id: I1538ffbc853a2c9328c364f462a27be36c85cc2f |
||
---|---|---|
.zuul.d | ||
doc | ||
horizon | ||
openstack_auth | ||
openstack_dashboard | ||
playbooks | ||
releasenotes | ||
roles | ||
tools | ||
.eslintignore | ||
.eslintrc | ||
.gitignore | ||
.gitreview | ||
.mailmap | ||
.pylintrc | ||
babel-django.cfg | ||
babel-djangojs.cfg | ||
bindep.txt | ||
CONTRIBUTING.rst | ||
HACKING.rst | ||
LICENSE | ||
lower-constraints.txt | ||
manage.py | ||
MANIFEST.in | ||
package.json | ||
plugin-registry.csv | ||
README.rst | ||
reno.yaml | ||
requirements.txt | ||
setup.cfg | ||
setup.py | ||
test-requirements.txt | ||
test-shim.js | ||
tox.ini |
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