Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixup! DASDDiscoverTask: use consolidated device configuration with z…
…dev (#1802482,#1937049) As blockdev was already mocked it's not clear to me how the test would mock that sanitize_dev_input would actually canonicalize a DASD device bus-ID. So just check that the new code calls execWithRedirect() exactly once and ignore the arguments. It would be a separate fix patch to improve a fake sanitize unit test. I suppose it would need to start with a DASD device bus-ID that is not yet canonical/sanitized, e.g. something along the lines of: DASDDiscoverTask("A100").run() blockdev.s390.sanitize_dev_input.return_value = "0.0.A100" blockdev.s390.sanitize_dev_input.assert_called_once_with("A100") sanitized_input = blockdev.s390.sanitize_dev_input.return_value execWithRedirect.assert_called_once_with(...) Not sure how much value that would have, though. Signed-off-by: Steffen Maier <[email protected]>
- Loading branch information