Open andy-maier opened 1 year ago
Initial analysis shows that create_hmc_session() only supports real HMCs, because it dos not create FakedSession objects for mocked HMCs. See zhmcclient fixture hmc_session() for how it is done.
However, since delete_hmc_session()
and is_valid_hmc_session()
depend on working session IDs, we first need to add proper session ID support to the zhmcclient_mock support. Created https://github.com/zhmcclient/python-zhmcclient/issues/1437 for that.
PR https://github.com/zhmcclient/python-zhmcclient/pull/1456 targeted for zhmcclient 1.15.0 provides dynamically created session IDs, and the ability in the FakedHmc
class to validate, add and remove session IDs. That should allow to resolve this issue here.
With PR #411 , the following error is surfaced (using a locally defined mock file, on Python 3.9 on macOS):