Most of the os-win utils are created through
os_win.utilsfactory, which all rely on its function
'_get_class' to load and initialize the proper Utils
based on the OS version.
This commit patches the mention method, returning
an autospeced mock for the desired Utils instead.
Reviewed: https:/ /review. openstack. org/539954 /git.openstack. org/cgit/ openstack/ compute- hyperv/ commit/ ?id=d19606a8280 9f2a909d20b1021 66880b65d74b1f
Committed: https:/
Submitter: Zuul
Branch: master
commit d19606a82809f2a 909d20b10216688 0b65d74b1f
Author: Claudiu Belu <email address hidden>
Date: Tue Jan 30 06:06:47 2018 -0800
autospecs os-win utils classes
Most of the os-win utils are created through win.utilsfactor y, which all rely on its function
os_
'_get_class' to load and initialize the proper Utils
based on the OS version.
This commit patches the mention method, returning
an autospeced mock for the desired Utils instead.
Closes-Bug: #1735588
Change-Id: If0002b2c711aae af13273bed9b912 fdd9c639a64