os-win/os_win/tests/unit
Lucian Petrut 0857a0eb81 Cleanup utilsfactory map
This change cleans up the utilsfactory map, making it easier to add
new classes.

Most classes have 6.2 as a minimum version, without having a maximum
version cap. For this reason, this change sets those versions as
defaults so that we don't have to be explicit every time.

At the same time, we're now using a list for each class type, instead
of a dict that uses the class name as a key (which is redundant). So,
something like this:

'networkutils': {
    'NetworkUtils': {
        'min_version': 6.2,
        'max_version': 6.3,
        'path': 'os_win.utils.network.networkutils.NetworkUtils'},
    'NetworkUtilsR2': {
        'min_version': 6.3,
        'max_version': None,
        'path': 'os_win.utils.network.networkutils.NetworkUtilsR2'}},

... becomes

'networkutils': [
    {'max_version': 6.3,
     'path': 'os_win.utils.network.networkutils.NetworkUtils'},
    {'min_version': 6.3,
     'path': 'os_win.utils.network.networkutils.NetworkUtilsR2'},
],

Change-Id: I7919617166b2e872f1b50c0a0f40196fc90e9a82
2019-01-16 14:41:43 +02:00
..
utils Add pipe helpers 2019-01-16 14:41:00 +02:00
__init__.py Move unit tests to a separate folder 2016-10-17 14:25:45 +03:00
test_base.py Limit Failover Cluster WMI provider usage 2018-10-25 11:49:55 +03:00
test_hacking.py Update log translation hacking rule 2017-07-05 00:39:00 -04:00
test_processutils.py tests: Use mock autospec in unit tests 2018-01-22 08:39:13 -08:00
test_utils.py tests: Use mock autospec in unit tests 2018-01-22 08:39:13 -08:00
test_utilsfactory.py Cleanup utilsfactory map 2019-01-16 14:41:43 +02:00