Allow using the fake-hardware hardware type for API tests

Currently we only allow the fake classic driver. Also correct the help
string of the [baremetal]driver option, since it's very misleading.

Change-Id: I6540bca3e19ec1d09d6f71c0d3fc987439bc8138
This commit is contained in:
Dmitry Tantsur 2018-04-26 16:12:45 +02:00
parent b50f6e0e83
commit 893b1a9f40
2 changed files with 3 additions and 2 deletions

View File

@ -52,9 +52,10 @@ BaremetalGroup = [
cfg.StrOpt('catalog_type',
default='baremetal',
help="Catalog type of the baremetal provisioning service"),
# TODO(dtantsur): change to fake-hardware when Ocata is no longer supported
cfg.StrOpt('driver',
default='fake',
help="Driver name which Ironic uses"),
help="Driver name to use for API tests"),
cfg.StrOpt('endpoint_type',
default='publicURL',
choices=['public', 'admin', 'internal',

View File

@ -28,7 +28,7 @@ CONF = config.CONF
# will require passing driver-specific data to Tempest (addresses,
# credentials, etc). Until then, only support testing against the fake driver,
# which has no external dependencies.
SUPPORTED_DRIVERS = ['fake']
SUPPORTED_DRIVERS = ['fake', 'fake-hardware']
# NOTE(jroll): resources must be deleted in a specific order, this list
# defines the resource types to clean up, and the correct order.