Merge "Fix tempest realted exceptions during docs build"
This commit is contained in:
commit
463f311411
@ -64,6 +64,11 @@ MOCK_MODULES = ['nova', 'nova.compute', 'nova.context']
|
|||||||
for module in MOCK_MODULES:
|
for module in MOCK_MODULES:
|
||||||
sys.modules[module] = mock.Mock()
|
sys.modules[module] = mock.Mock()
|
||||||
|
|
||||||
|
# A list of glob-style patterns that should be excluded when looking for
|
||||||
|
# source files. They are matched against the source file names relative to the
|
||||||
|
# source directory, using slashes as directory separators on all platforms.
|
||||||
|
exclude_patterns = ['api/ironic_tempest_plugin.*']
|
||||||
|
|
||||||
# -- Options for HTML output --------------------------------------------------
|
# -- Options for HTML output --------------------------------------------------
|
||||||
|
|
||||||
# The theme to use for HTML and HTML Help pages. Major themes that come with
|
# The theme to use for HTML and HTML Help pages. Major themes that come with
|
||||||
|
@ -272,10 +272,11 @@ class LocalLinkConnectionType(wtypes.UserType):
|
|||||||
"""Validate and convert the input to a LocalLinkConnectionType.
|
"""Validate and convert the input to a LocalLinkConnectionType.
|
||||||
|
|
||||||
:param value: A dictionary of values to validate, switch_id is a MAC
|
:param value: A dictionary of values to validate, switch_id is a MAC
|
||||||
address or an OpenFlow based datapath_id, switch_info is an optional
|
address or an OpenFlow based datapath_id, switch_info is an
|
||||||
field.
|
optional field.
|
||||||
|
|
||||||
For example::
|
For example::
|
||||||
|
|
||||||
{
|
{
|
||||||
'switch_id': mac_or_datapath_id(),
|
'switch_id': mac_or_datapath_id(),
|
||||||
'port_id': 'Ethernet3/1',
|
'port_id': 'Ethernet3/1',
|
||||||
@ -285,7 +286,6 @@ class LocalLinkConnectionType(wtypes.UserType):
|
|||||||
:returns: A dictionary.
|
:returns: A dictionary.
|
||||||
:raises: Invalid if some of the keys in the dictionary being validated
|
:raises: Invalid if some of the keys in the dictionary being validated
|
||||||
are unknown, invalid, or some required ones are missing.
|
are unknown, invalid, or some required ones are missing.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
wtypes.DictType(wtypes.text, wtypes.text).validate(value)
|
wtypes.DictType(wtypes.text, wtypes.text).validate(value)
|
||||||
|
|
||||||
|
@ -109,6 +109,7 @@ autodoc_index_modules = True
|
|||||||
autodoc_exclude_modules =
|
autodoc_exclude_modules =
|
||||||
ironic.db.sqlalchemy.alembic.env
|
ironic.db.sqlalchemy.alembic.env
|
||||||
ironic.db.sqlalchemy.alembic.versions.*
|
ironic.db.sqlalchemy.alembic.versions.*
|
||||||
|
ironic_tempest_plugin.*
|
||||||
warnerrors = True
|
warnerrors = True
|
||||||
|
|
||||||
[build_sphinx]
|
[build_sphinx]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user