Remove '.. end' comments
Following by https://review.openstack.org/#/c/605097/ These were used by now-dead tooling. We can remove them. Change-Id: I790a18b3a40c22ec94bc6f6dba656ba4db518cfe
This commit is contained in:
@@ -35,8 +35,6 @@ testing purposes, if at all.
|
|||||||
cd kolla/
|
cd kolla/
|
||||||
tox -e genconfig
|
tox -e genconfig
|
||||||
|
|
||||||
.. end
|
|
||||||
|
|
||||||
The location of the generated configuration file is
|
The location of the generated configuration file is
|
||||||
``etc/kolla/kolla-build.conf``, it can also be copied to ``/etc/kolla``. The
|
``etc/kolla/kolla-build.conf``, it can also be copied to ``/etc/kolla``. The
|
||||||
default location is one of ``/etc/kolla/kolla-build.conf`` or
|
default location is one of ``/etc/kolla/kolla-build.conf`` or
|
||||||
@@ -51,16 +49,12 @@ In general, images are built like this:
|
|||||||
|
|
||||||
kolla-build
|
kolla-build
|
||||||
|
|
||||||
.. end
|
|
||||||
|
|
||||||
* For development, run:
|
* For development, run:
|
||||||
|
|
||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
|
|
||||||
python tools/build.py
|
python tools/build.py
|
||||||
|
|
||||||
.. end
|
|
||||||
|
|
||||||
By default, the above command would build all images based on CentOS image.
|
By default, the above command would build all images based on CentOS image.
|
||||||
|
|
||||||
The operator can change the base distro with the ``-b`` option:
|
The operator can change the base distro with the ``-b`` option:
|
||||||
@@ -69,16 +63,12 @@ The operator can change the base distro with the ``-b`` option:
|
|||||||
|
|
||||||
kolla-build -b ubuntu
|
kolla-build -b ubuntu
|
||||||
|
|
||||||
.. end
|
|
||||||
|
|
||||||
* For development, run:
|
* For development, run:
|
||||||
|
|
||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
|
|
||||||
python tools/build.py -b ubuntu
|
python tools/build.py -b ubuntu
|
||||||
|
|
||||||
.. end
|
|
||||||
|
|
||||||
There are following distros available for building images:
|
There are following distros available for building images:
|
||||||
|
|
||||||
- centos
|
- centos
|
||||||
@@ -99,16 +89,12 @@ command line:
|
|||||||
|
|
||||||
kolla-build keystone
|
kolla-build keystone
|
||||||
|
|
||||||
.. end
|
|
||||||
|
|
||||||
* For development, run:
|
* For development, run:
|
||||||
|
|
||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
|
|
||||||
python tools/build.py keystone
|
python tools/build.py keystone
|
||||||
|
|
||||||
.. end
|
|
||||||
|
|
||||||
In this case, the build script builds all images whose name contains the
|
In this case, the build script builds all images whose name contains the
|
||||||
``keystone`` string along with their dependencies.
|
``keystone`` string along with their dependencies.
|
||||||
|
|
||||||
@@ -118,16 +104,12 @@ Multiple names may be specified on the command line:
|
|||||||
|
|
||||||
kolla-build keystone nova
|
kolla-build keystone nova
|
||||||
|
|
||||||
.. end
|
|
||||||
|
|
||||||
* For development, run:
|
* For development, run:
|
||||||
|
|
||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
|
|
||||||
python tools/build.py keystone nova
|
python tools/build.py keystone nova
|
||||||
|
|
||||||
.. end
|
|
||||||
|
|
||||||
The set of images built can be defined as a profile in the ``profiles`` section
|
The set of images built can be defined as a profile in the ``profiles`` section
|
||||||
of ``kolla-build.conf``. Later, profile can be specified by ``--profile`` CLI
|
of ``kolla-build.conf``. Later, profile can be specified by ``--profile`` CLI
|
||||||
argument or ``profile`` option in ``kolla-build.conf``. Kolla provides some
|
argument or ``profile`` option in ``kolla-build.conf``. Kolla provides some
|
||||||
@@ -153,8 +135,6 @@ These images can be built using command line:
|
|||||||
|
|
||||||
kolla-build --profile magnum
|
kolla-build --profile magnum
|
||||||
|
|
||||||
.. end
|
|
||||||
|
|
||||||
Or put following line to ``DEFAULT`` section in ``kolla-build.conf`` file:
|
Or put following line to ``DEFAULT`` section in ``kolla-build.conf`` file:
|
||||||
|
|
||||||
.. path /etc/kolla/kolla-build.conf
|
.. path /etc/kolla/kolla-build.conf
|
||||||
@@ -163,8 +143,6 @@ Or put following line to ``DEFAULT`` section in ``kolla-build.conf`` file:
|
|||||||
[DEFAULT]
|
[DEFAULT]
|
||||||
profile = magnum
|
profile = magnum
|
||||||
|
|
||||||
.. end
|
|
||||||
|
|
||||||
The :command:`kolla-build` uses ``kolla`` as default Docker namespace. This is
|
The :command:`kolla-build` uses ``kolla`` as default Docker namespace. This is
|
||||||
controlled with the ``-n`` command line option. To push images to a Dockerhub
|
controlled with the ``-n`` command line option. To push images to a Dockerhub
|
||||||
repository named ``mykollarepo``:
|
repository named ``mykollarepo``:
|
||||||
@@ -173,8 +151,6 @@ repository named ``mykollarepo``:
|
|||||||
|
|
||||||
kolla-build -n mykollarepo --push
|
kolla-build -n mykollarepo --push
|
||||||
|
|
||||||
.. end
|
|
||||||
|
|
||||||
To push images to a `local registry
|
To push images to a `local registry
|
||||||
<https://docs.openstack.org/kolla-ansible/latest/user/multinode.html#deploy-a-registry>`_,
|
<https://docs.openstack.org/kolla-ansible/latest/user/multinode.html#deploy-a-registry>`_,
|
||||||
use ``--registry`` flag:
|
use ``--registry`` flag:
|
||||||
@@ -183,8 +159,6 @@ use ``--registry`` flag:
|
|||||||
|
|
||||||
kolla-build --registry 172.22.2.81:5000 --push
|
kolla-build --registry 172.22.2.81:5000 --push
|
||||||
|
|
||||||
.. end
|
|
||||||
|
|
||||||
Build OpenStack from source
|
Build OpenStack from source
|
||||||
===========================
|
===========================
|
||||||
|
|
||||||
@@ -198,16 +172,12 @@ installed from source code. The default method of the OpenStack install is
|
|||||||
|
|
||||||
kolla-build -t source
|
kolla-build -t source
|
||||||
|
|
||||||
.. end
|
|
||||||
|
|
||||||
* For development, run:
|
* For development, run:
|
||||||
|
|
||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
|
|
||||||
python tools/build.py -t source
|
python tools/build.py -t source
|
||||||
|
|
||||||
.. end
|
|
||||||
|
|
||||||
The locations of OpenStack source code are written in
|
The locations of OpenStack source code are written in
|
||||||
``etc/kolla/kolla-build.conf``.
|
``etc/kolla/kolla-build.conf``.
|
||||||
Now the source type supports ``url``, ``git``, and ``local``. The location of
|
Now the source type supports ``url``, ``git``, and ``local``. The location of
|
||||||
@@ -237,8 +207,6 @@ The ``etc/kolla/kolla-build.conf`` file looks like:
|
|||||||
type = local
|
type = local
|
||||||
location = /tmp/ironic.tar.gz
|
location = /tmp/ironic.tar.gz
|
||||||
|
|
||||||
.. end
|
|
||||||
|
|
||||||
To build RHEL containers, it is necessary to include registration with RHN
|
To build RHEL containers, it is necessary to include registration with RHN
|
||||||
of the container runtime operating system.To obtain a RHN
|
of the container runtime operating system.To obtain a RHN
|
||||||
username/password/pool id, contact Red Hat. Use a template's header block
|
username/password/pool id, contact Red Hat. Use a template's header block
|
||||||
@@ -249,8 +217,6 @@ overrides file, add the following:
|
|||||||
RUN subscription-manager register --user=<user-name> \
|
RUN subscription-manager register --user=<user-name> \
|
||||||
--password=<password> && subscription-manager attach --pool <pool-id>
|
--password=<password> && subscription-manager attach --pool <pool-id>
|
||||||
|
|
||||||
.. end
|
|
||||||
|
|
||||||
Dockerfile Customisation
|
Dockerfile Customisation
|
||||||
========================
|
========================
|
||||||
|
|
||||||
@@ -290,24 +256,18 @@ First, create a file to contain the customisations, for example:
|
|||||||
RUN useradd --user-group myuser
|
RUN useradd --user-group myuser
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
.. end
|
|
||||||
|
|
||||||
Then rebuild the horizon image, passing the ``--template-override`` argument:
|
Then rebuild the horizon image, passing the ``--template-override`` argument:
|
||||||
|
|
||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
|
|
||||||
kolla-build --template-override template-overrides.j2 horizon
|
kolla-build --template-override template-overrides.j2 horizon
|
||||||
|
|
||||||
.. end
|
|
||||||
|
|
||||||
* For development, run:
|
* For development, run:
|
||||||
|
|
||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
|
|
||||||
python tools/build.py --template-override template-overrides.j2 horizon
|
python tools/build.py --template-override template-overrides.j2 horizon
|
||||||
|
|
||||||
.. end
|
|
||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
|
|
||||||
The above example will replace all contents from the original block. Hence
|
The above example will replace all contents from the original block. Hence
|
||||||
@@ -340,24 +300,18 @@ for example, ``template-overrides.j2``. In this place the following:
|
|||||||
# Horizon
|
# Horizon
|
||||||
{% set horizon_packages_append = ['iproute'] %}
|
{% set horizon_packages_append = ['iproute'] %}
|
||||||
|
|
||||||
.. end
|
|
||||||
|
|
||||||
Then rebuild the horizon image, passing the ``--template-override`` argument:
|
Then rebuild the horizon image, passing the ``--template-override`` argument:
|
||||||
|
|
||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
|
|
||||||
kolla-build --template-override template-overrides.j2 horizon
|
kolla-build --template-override template-overrides.j2 horizon
|
||||||
|
|
||||||
.. end
|
|
||||||
|
|
||||||
* For development, run:
|
* For development, run:
|
||||||
|
|
||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
|
|
||||||
python tools/build.py --template-override template-overrides.j2 horizon
|
python tools/build.py --template-override template-overrides.j2 horizon
|
||||||
|
|
||||||
.. end
|
|
||||||
|
|
||||||
Alternatively ``template_override`` can be set in ``kolla-build.conf``.
|
Alternatively ``template_override`` can be set in ``kolla-build.conf``.
|
||||||
|
|
||||||
The ``append`` suffix in the above example carries special significance. It
|
The ``append`` suffix in the above example carries special significance. It
|
||||||
@@ -382,8 +336,6 @@ Base-image can be specified by argument ``--base-image``. For example:
|
|||||||
|
|
||||||
kolla-build --base-image registry.access.redhat.com/rhel7/rhel --base rhel
|
kolla-build --base-image registry.access.redhat.com/rhel7/rhel --base rhel
|
||||||
|
|
||||||
.. end
|
|
||||||
|
|
||||||
Plugin Functionality
|
Plugin Functionality
|
||||||
--------------------
|
--------------------
|
||||||
|
|
||||||
@@ -408,8 +360,6 @@ image, one may want to add the following to the ``template-override`` file:
|
|||||||
&& pip --no-cache-dir install networking-cisco
|
&& pip --no-cache-dir install networking-cisco
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
.. end
|
|
||||||
|
|
||||||
Astute readers may notice there is one problem with this however. Assuming
|
Astute readers may notice there is one problem with this however. Assuming
|
||||||
nothing else in the Dockerfile changes for a period of time, the above ``RUN``
|
nothing else in the Dockerfile changes for a period of time, the above ``RUN``
|
||||||
statement will be cached by Docker, meaning new commits added to the Git
|
statement will be cached by Docker, meaning new commits added to the Git
|
||||||
@@ -430,8 +380,6 @@ format:
|
|||||||
|
|
||||||
[<image>-plugin-<plugin-name>]
|
[<image>-plugin-<plugin-name>]
|
||||||
|
|
||||||
.. end
|
|
||||||
|
|
||||||
Where ``<image>`` is the image that the plugin should be installed into, and
|
Where ``<image>`` is the image that the plugin should be installed into, and
|
||||||
``<plugin-name>`` is the chosen plugin identifier.
|
``<plugin-name>`` is the chosen plugin identifier.
|
||||||
|
|
||||||
@@ -446,8 +394,6 @@ Continuing with the above example, add the following to
|
|||||||
location = https://git.openstack.org/openstack/networking-cisco
|
location = https://git.openstack.org/openstack/networking-cisco
|
||||||
reference = master
|
reference = master
|
||||||
|
|
||||||
.. end
|
|
||||||
|
|
||||||
The build will clone the repository, resulting in the following archive
|
The build will clone the repository, resulting in the following archive
|
||||||
structure:
|
structure:
|
||||||
|
|
||||||
@@ -457,8 +403,6 @@ structure:
|
|||||||
|__ plugins
|
|__ plugins
|
||||||
|__networking-cisco
|
|__networking-cisco
|
||||||
|
|
||||||
.. end
|
|
||||||
|
|
||||||
The template now becomes:
|
The template now becomes:
|
||||||
|
|
||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
@@ -468,8 +412,6 @@ The template now becomes:
|
|||||||
pip --no-cache-dir install /plugins/*
|
pip --no-cache-dir install /plugins/*
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
.. end
|
|
||||||
|
|
||||||
Many of the Dockerfiles already copy the ``plugins-archive`` to the image and
|
Many of the Dockerfiles already copy the ``plugins-archive`` to the image and
|
||||||
install available plugins at build time.
|
install available plugins at build time.
|
||||||
|
|
||||||
@@ -500,8 +442,6 @@ format:
|
|||||||
|
|
||||||
[<image>-additions-<additions-name>]
|
[<image>-additions-<additions-name>]
|
||||||
|
|
||||||
.. end
|
|
||||||
|
|
||||||
Where ``<image>`` is the image that the plugin should be installed into, and
|
Where ``<image>`` is the image that the plugin should be installed into, and
|
||||||
``<additions-name>`` is the chosen additions identifier.
|
``<additions-name>`` is the chosen additions identifier.
|
||||||
|
|
||||||
@@ -515,8 +455,6 @@ Continuing with the above example, add the following to
|
|||||||
type = local
|
type = local
|
||||||
location = /path/to/your/jenkins/data
|
location = /path/to/your/jenkins/data
|
||||||
|
|
||||||
.. end
|
|
||||||
|
|
||||||
The build will copy the directory, resulting in the following archive
|
The build will copy the directory, resulting in the following archive
|
||||||
structure:
|
structure:
|
||||||
|
|
||||||
@@ -526,8 +464,6 @@ structure:
|
|||||||
|__ additions
|
|__ additions
|
||||||
|__jenkins
|
|__jenkins
|
||||||
|
|
||||||
.. end
|
|
||||||
|
|
||||||
Alternatively, it is also possible to create an ``additions-archive.tar`` file
|
Alternatively, it is also possible to create an ``additions-archive.tar`` file
|
||||||
yourself without passing by ``/etc/kolla/kolla-build.conf`` in order to use the
|
yourself without passing by ``/etc/kolla/kolla-build.conf`` in order to use the
|
||||||
feature for binary build type.
|
feature for binary build type.
|
||||||
@@ -541,8 +477,6 @@ The template now becomes:
|
|||||||
RUN cp /additions/jenkins/jenkins.json /jenkins.json
|
RUN cp /additions/jenkins/jenkins.json /jenkins.json
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
.. end
|
|
||||||
|
|
||||||
Custom Repos
|
Custom Repos
|
||||||
------------
|
------------
|
||||||
|
|
||||||
@@ -559,8 +493,6 @@ Update ``rpm_setup_config`` in ``/etc/kolla/kolla-build.conf``:
|
|||||||
|
|
||||||
rpm_setup_config = https://trunk.rdoproject.org/centos7/currrent/delorean.repo,https://trunk.rdoproject.org/centos7/delorean-deps.repo
|
rpm_setup_config = https://trunk.rdoproject.org/centos7/currrent/delorean.repo,https://trunk.rdoproject.org/centos7/delorean-deps.repo
|
||||||
|
|
||||||
.. end
|
|
||||||
|
|
||||||
If specifying a ``.repo`` file, each ``.repo`` file will need to exist in the
|
If specifying a ``.repo`` file, each ``.repo`` file will need to exist in the
|
||||||
same directory as the base Dockerfile (``kolla/docker/base``):
|
same directory as the base Dockerfile (``kolla/docker/base``):
|
||||||
|
|
||||||
@@ -569,8 +501,6 @@ same directory as the base Dockerfile (``kolla/docker/base``):
|
|||||||
|
|
||||||
rpm_setup_config = epel.repo,delorean.repo,delorean-deps.repo
|
rpm_setup_config = epel.repo,delorean.repo,delorean-deps.repo
|
||||||
|
|
||||||
.. end
|
|
||||||
|
|
||||||
Ubuntu
|
Ubuntu
|
||||||
------
|
------
|
||||||
For Debian based images, additional apt sources may be added to the build as
|
For Debian based images, additional apt sources may be added to the build as
|
||||||
@@ -580,8 +510,6 @@ follows:
|
|||||||
|
|
||||||
apt_sources_list = custom.list
|
apt_sources_list = custom.list
|
||||||
|
|
||||||
.. end
|
|
||||||
|
|
||||||
Known issues
|
Known issues
|
||||||
============
|
============
|
||||||
|
|
||||||
@@ -626,8 +554,6 @@ To set the proxy settings, we can add this to the template's header block:
|
|||||||
ENV http_proxy=https://evil.corp.proxy:80
|
ENV http_proxy=https://evil.corp.proxy:80
|
||||||
ENV https_proxy=https://evil.corp.proxy:80
|
ENV https_proxy=https://evil.corp.proxy:80
|
||||||
|
|
||||||
.. end
|
|
||||||
|
|
||||||
To unset the proxy settings, we can add this to the template's footer block:
|
To unset the proxy settings, we can add this to the template's footer block:
|
||||||
|
|
||||||
.. code-block:: ini
|
.. code-block:: ini
|
||||||
@@ -635,8 +561,6 @@ To unset the proxy settings, we can add this to the template's footer block:
|
|||||||
ENV http_proxy=""
|
ENV http_proxy=""
|
||||||
ENV https_proxy=""
|
ENV https_proxy=""
|
||||||
|
|
||||||
.. end
|
|
||||||
|
|
||||||
Besides this configuration options, the script will automatically read these
|
Besides this configuration options, the script will automatically read these
|
||||||
environment variables. If the host system proxy parameters match the ones
|
environment variables. If the host system proxy parameters match the ones
|
||||||
going to be used, no other input parameters will be needed. These are the
|
going to be used, no other input parameters will be needed. These are the
|
||||||
@@ -647,8 +571,6 @@ variables that will be picked up from the user env:
|
|||||||
HTTP_PROXY, http_proxy, HTTPS_PROXY, https_proxy, FTP_PROXY,
|
HTTP_PROXY, http_proxy, HTTPS_PROXY, https_proxy, FTP_PROXY,
|
||||||
ftp_proxy, NO_PROXY, no_proxy
|
ftp_proxy, NO_PROXY, no_proxy
|
||||||
|
|
||||||
.. end
|
|
||||||
|
|
||||||
Also these variables could be overwritten using ``--build-args``, which have
|
Also these variables could be overwritten using ``--build-args``, which have
|
||||||
precedence.
|
precedence.
|
||||||
|
|
||||||
|
|||||||
@@ -20,12 +20,9 @@ Point to the desired version of OpenDaylight in `kolla-build.conf`:
|
|||||||
type = url
|
type = url
|
||||||
location = https://nexus.opendaylight.org/content/repositories/opendaylight.release/org/opendaylight/integration/distribution-karaf/0.6.2-Carbon/distribution-karaf-0.6.2-Carbon.tar.gz
|
location = https://nexus.opendaylight.org/content/repositories/opendaylight.release/org/opendaylight/integration/distribution-karaf/0.6.2-Carbon/distribution-karaf-0.6.2-Carbon.tar.gz
|
||||||
|
|
||||||
.. end
|
|
||||||
|
|
||||||
Build the container by executing the following command:
|
Build the container by executing the following command:
|
||||||
|
|
||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
|
|
||||||
kolla-build --type source --template-override contrib/template-override/opendaylight-template-overrides.j2 opendaylight
|
kolla-build --type source --template-override contrib/template-override/opendaylight-template-overrides.j2 opendaylight
|
||||||
|
|
||||||
.. end
|
|
||||||
|
|||||||
@@ -29,8 +29,6 @@ In this place the ``contrib/template-override/ovs-dpdk.j2`` file:
|
|||||||
location = http://dpdk.org/git/dpdk
|
location = http://dpdk.org/git/dpdk
|
||||||
reference = v17.02
|
reference = v17.02
|
||||||
|
|
||||||
.. end
|
|
||||||
|
|
||||||
To build the container execute the follow command:
|
To build the container execute the follow command:
|
||||||
|
|
||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
@@ -38,4 +36,3 @@ To build the container execute the follow command:
|
|||||||
tools/build.py --template-override \
|
tools/build.py --template-override \
|
||||||
contrib/template-override/ovs-dpdk.j2 dpdk
|
contrib/template-override/ovs-dpdk.j2 dpdk
|
||||||
|
|
||||||
.. end
|
|
||||||
|
|||||||
@@ -26,8 +26,6 @@ so the only package you install is ``tox`` itself:
|
|||||||
|
|
||||||
pip install tox
|
pip install tox
|
||||||
|
|
||||||
.. end
|
|
||||||
|
|
||||||
See the `unit testing <https://wiki.openstack.org/wiki/Testing#Unit_Tests>`__
|
See the `unit testing <https://wiki.openstack.org/wiki/Testing#Unit_Tests>`__
|
||||||
section of the Testing wiki page for more information.
|
section of the Testing wiki page for more information.
|
||||||
Following are some simple examples.
|
Following are some simple examples.
|
||||||
@@ -38,24 +36,18 @@ To run the Python 2.7 tests:
|
|||||||
|
|
||||||
tox -e py27
|
tox -e py27
|
||||||
|
|
||||||
.. end
|
|
||||||
|
|
||||||
To run the style tests:
|
To run the style tests:
|
||||||
|
|
||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
|
|
||||||
tox -e pep8
|
tox -e pep8
|
||||||
|
|
||||||
.. end
|
|
||||||
|
|
||||||
To run multiple tests separate items by commas:
|
To run multiple tests separate items by commas:
|
||||||
|
|
||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
|
|
||||||
tox -e py27,py35,pep8
|
tox -e py27,py35,pep8
|
||||||
|
|
||||||
.. end
|
|
||||||
|
|
||||||
Running a subset of tests
|
Running a subset of tests
|
||||||
-------------------------
|
-------------------------
|
||||||
|
|
||||||
@@ -69,16 +61,12 @@ To run the tests located only in the ``kolla/tests`` directory:
|
|||||||
|
|
||||||
tox -e py27 kolla.tests
|
tox -e py27 kolla.tests
|
||||||
|
|
||||||
.. end
|
|
||||||
|
|
||||||
To run the tests of a specific file say ``kolla/tests/test_set_config.py``:
|
To run the tests of a specific file say ``kolla/tests/test_set_config.py``:
|
||||||
|
|
||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
|
|
||||||
tox -e py27 test_set_config
|
tox -e py27 test_set_config
|
||||||
|
|
||||||
.. end
|
|
||||||
|
|
||||||
To run the tests in the ``ConfigFileTest`` class in
|
To run the tests in the ``ConfigFileTest`` class in
|
||||||
the ``kolla/tests/test_set_config.py`` file:
|
the ``kolla/tests/test_set_config.py`` file:
|
||||||
|
|
||||||
@@ -86,8 +74,6 @@ the ``kolla/tests/test_set_config.py`` file:
|
|||||||
|
|
||||||
tox -e py27 test_set_config.ConfigFileTest
|
tox -e py27 test_set_config.ConfigFileTest
|
||||||
|
|
||||||
.. end
|
|
||||||
|
|
||||||
To run the ``ConfigFileTest.test_delete_path_not_exists`` test method in
|
To run the ``ConfigFileTest.test_delete_path_not_exists`` test method in
|
||||||
the ``kolla/tests/test_set_config.py`` file:
|
the ``kolla/tests/test_set_config.py`` file:
|
||||||
|
|
||||||
@@ -95,8 +81,6 @@ the ``kolla/tests/test_set_config.py`` file:
|
|||||||
|
|
||||||
tox -e py27 test_set_config.ConfigFileTest.test_delete_path_not_exists
|
tox -e py27 test_set_config.ConfigFileTest.test_delete_path_not_exists
|
||||||
|
|
||||||
.. end
|
|
||||||
|
|
||||||
Coverage Report Generation
|
Coverage Report Generation
|
||||||
--------------------------
|
--------------------------
|
||||||
|
|
||||||
@@ -106,8 +90,6 @@ In order to get coverage report for Kolla, run the below command.
|
|||||||
|
|
||||||
tox -e cover
|
tox -e cover
|
||||||
|
|
||||||
.. end
|
|
||||||
|
|
||||||
Debugging unit tests
|
Debugging unit tests
|
||||||
--------------------
|
--------------------
|
||||||
|
|
||||||
@@ -118,8 +100,6 @@ a breaking point to the code:
|
|||||||
|
|
||||||
import pdb; pdb.set_trace()
|
import pdb; pdb.set_trace()
|
||||||
|
|
||||||
.. end
|
|
||||||
|
|
||||||
Then run :command:`tox` with the debug environment as one of the following:
|
Then run :command:`tox` with the debug environment as one of the following:
|
||||||
|
|
||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
@@ -127,8 +107,6 @@ Then run :command:`tox` with the debug environment as one of the following:
|
|||||||
tox -e debug
|
tox -e debug
|
||||||
tox -e debug test_file_name.TestClass.test_name
|
tox -e debug test_file_name.TestClass.test_name
|
||||||
|
|
||||||
.. end
|
|
||||||
|
|
||||||
For more information see the `oslotest documentation
|
For more information see the `oslotest documentation
|
||||||
<https://docs.openstack.org/oslotest/latest/user/features.html#debugging-with-oslo-debug-helper>`_.
|
<https://docs.openstack.org/oslotest/latest/user/features.html#debugging-with-oslo-debug-helper>`_.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user