blob: 6fb682cab8b71d646724cb7c8dc4b19954c3ce1f [file] [log] [blame]
Dmitry Tantsura068e662017-12-21 11:14:43 +01001=====
Jim Rollenhagen4f8f2292016-11-18 06:22:18 -05002Usage
Dmitry Tantsura068e662017-12-21 11:14:43 +01003=====
Jim Rollenhagen4f8f2292016-11-18 06:22:18 -05004
Dmitry Tantsura068e662017-12-21 11:14:43 +01005Configuring
6-----------
Jim Rollenhagen4f8f2292016-11-18 06:22:18 -05007
Dmitry Tantsura068e662017-12-21 11:14:43 +01008Update your `Tempest configuration`_ to enable support for ironic:
9
10.. code-block:: ini
11
Iury Gregory Melo Ferreiraa5129132020-03-13 11:41:19 +010012 [service_available]
Dmitry Tantsura068e662017-12-21 11:14:43 +010013 ironic = True
14
15If introspection tests are needed, also enable support for ironic-inspector:
16
17.. code-block:: ini
18
Iury Gregory Melo Ferreiraa5129132020-03-13 11:41:19 +010019 [service_available]
Dmitry Tantsura068e662017-12-21 11:14:43 +010020 ironic_inspector = True
21
Dmitry Tantsurea9af862018-03-14 16:48:48 +010022See the following example configurations for more details:
23
24.. toctree::
25 :maxdepth: 1
26
27 config/with-nova
28
29.. TODO(dtantsur): cover standalone tests
Dmitry Tantsura068e662017-12-21 11:14:43 +010030
31.. _Tempest configuration: https://docs.openstack.org/tempest/latest/configuration.html
32
33Running
34-------
35
36Run tests as described in the `Tempest documentation`_. The following patterns
37can be used with ``--regex`` option to only run bare metal tests:
38
39``ironic``
40 all bare metal tests
Dmitry Tantsur0c4a6932018-09-07 14:41:57 +020041``ironic_tempest_plugin.tests.api``
42 only API tests using fake hardware, without other OpenStack services (these
Iury Gregory Melo Ferreira8bcc4fa2020-03-09 16:50:09 +010043 tests are run by jobs starting with ``ironic-tempest-functional-python3``)
Dmitry Tantsur0c4a6932018-09-07 14:41:57 +020044``ironic_tempest_plugin.tests.scenario``
45 all integration tests, excluding the API tests with fake hardware (these
46 tests are run by most of the jobs)
Dmitry Tantsura068e662017-12-21 11:14:43 +010047``ironic_standalone``
48 standalone bare metal tests that do not use the Compute service
Iury Gregory Melo Ferreira8bcc4fa2020-03-09 16:50:09 +010049 (these tests are run by the jobs ``ironic-standalone`` and
50 ``ironic-standalone-redfish``)
Dmitry Tantsura068e662017-12-21 11:14:43 +010051``InspectorBasicTest``
Dmitry Tantsur0c4a6932018-09-07 14:41:57 +020052 basic introspection tests (these tests are run by most of the jobs with
53 ``ironic-inspector`` in their name)
Dmitry Tantsura068e662017-12-21 11:14:43 +010054``InspectorDiscoveryTest``
Dmitry Tantsur0c4a6932018-09-07 14:41:57 +020055 introspection auto-discovery tests (these tests are run by the job
Iury Gregory Melo Ferreira8bcc4fa2020-03-09 16:50:09 +010056 ``ironic-inspector-tempest-discovery`` and require additional set up)
Dmitry Tantsura068e662017-12-21 11:14:43 +010057
58.. _Tempest documentation: https://docs.openstack.org/tempest/latest/run.html