mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
27 lines
691 B
Python
27 lines
691 B
Python
|
# -*- 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
|
||
|
import salt.utils
|
||
|
|
||
|
|
||
|
@skipIf(not salt.utils.is_windows(), 'windows test only')
|
||
|
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)
|