1
0

test_win_servermanager.py 746 B

123456789101112131415161718192021222324252627
  1. # -*- coding: utf-8 -*-
  2. from __future__ import absolute_import
  3. import pytest
  4. import salt.utils.platform
  5. from tests.support.case import ModuleCase
  6. from tests.support.helpers import slowTest
  7. from tests.support.unit import skipIf
  8. @skipIf(not salt.utils.platform.is_windows(), "windows test only")
  9. @pytest.mark.windows_whitelisted
  10. class WinServermanagerTest(ModuleCase):
  11. """
  12. Test for salt.modules.win_servermanager
  13. """
  14. @slowTest
  15. def test_list_available(self):
  16. """
  17. Test list available features to install
  18. """
  19. cmd = self.run_function("win_servermanager.list_available")
  20. self.assertIn("DNS", cmd)
  21. self.assertIn("NetworkController", cmd)
  22. self.assertIn("RemoteAccess", cmd)