2018-05-22 14:43:11 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
|
|
|
# Import Python libs
|
|
|
|
from __future__ import absolute_import
|
|
|
|
|
|
|
|
# Import Salt Testing libs
|
|
|
|
from tests.support.case import ModuleCase
|
|
|
|
from tests.support.unit import skipIf
|
|
|
|
|
|
|
|
# Import Salt libs
|
2018-05-29 15:19:34 +00:00
|
|
|
import salt.utils.platform
|
2018-05-22 14:43:11 +00:00
|
|
|
|
|
|
|
|
2018-05-29 15:19:34 +00:00
|
|
|
@skipIf(not salt.utils.platform.is_windows(), 'windows test only')
|
2018-05-22 14:43:11 +00:00
|
|
|
class WinServermanagerTest(ModuleCase):
|
|
|
|
'''
|
|
|
|
Test for salt.modules.win_servermanager
|
|
|
|
'''
|
|
|
|
def test_list_available(self):
|
|
|
|
'''
|
|
|
|
Test list available features to install
|
|
|
|
'''
|
|
|
|
cmd = self.run_function('win_servermanager.list_available')
|
|
|
|
self.assertIn('DNS', cmd)
|
|
|
|
self.assertIn('NetworkController', cmd)
|
|
|
|
self.assertIn('RemoteAccess', cmd)
|