From: Guillaume Abrioux Date: Mon, 18 Dec 2023 14:26:04 +0000 (+0000) Subject: cephadm/tests: add pyyaml dependency X-Git-Tag: testing/wip-pdonnell-testing-20240430.123648-reef-debug~291^2~15 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=f5bd1839365a3cb9466d8745b150f2eeaa1f4b42;p=ceph-ci.git cephadm/tests: add pyyaml dependency node-proxy requires this dependency so it needs to be added as dependency for tox testing. Typical failure: ``` ImportError while importing test module '/root/ceph/src/cephadm/tests/test_agent.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: /usr/lib64/python3.9/importlib/__init__.py:127: in import_module return _bootstrap._gcd_import(name[level:], package, level) tests/test_agent.py:10: in _cephadm = import_cephadm() tests/fixtures.py:14: in import_cephadm import cephadm as _cephadm cephadm.py:32: in from cephadmlib.node_proxy.main import NodeProxy cephadmlib/node_proxy/main.py:2: in from .redfishdellsystem import RedfishDellSystem cephadmlib/node_proxy/redfishdellsystem.py:2: in from .baseredfishsystem import BaseRedfishSystem cephadmlib/node_proxy/baseredfishsystem.py:2: in from .basesystem import BaseSystem cephadmlib/node_proxy/basesystem.py:2: in from .util import Config cephadmlib/node_proxy/util.py:2: in import yaml E ModuleNotFoundError: No module named 'yaml' ``` Signed-off-by: Guillaume Abrioux (cherry picked from commit 6e7ea5172ac489c01e0a073acf869bcf6982a2b4) --- diff --git a/src/cephadm/tox.ini b/src/cephadm/tox.ini index f20c2255e91..a6d7f395837 100644 --- a/src/cephadm/tox.ini +++ b/src/cephadm/tox.ini @@ -37,6 +37,7 @@ deps = pyfakefs >= 5, < 6 ; python_version >= "3.7" mock pytest + pyyaml commands=pytest {posargs} [testenv:mypy]