mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
31 lines
832 B
Python
31 lines
832 B
Python
# -*- coding: utf-8 -*-
|
|
'''
|
|
tests.integration.shell.minion
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
:codeauthor: :email:`Pedro Algarvio (pedro@algarvio.me)`
|
|
:copyright: © 2012 by the SaltStack Team, see AUTHORS for more details.
|
|
:license: Apache 2.0, see LICENSE for more details.
|
|
'''
|
|
|
|
# Import python libs
|
|
import sys
|
|
|
|
# Import salt libs
|
|
from saltunittest import TestLoader, TextTestRunner
|
|
import integration
|
|
|
|
|
|
class MinionTest(integration.ShellCase, integration.ShellCaseCommonTestsMixIn):
|
|
|
|
_call_binary_ = 'salt-minion'
|
|
|
|
|
|
if __name__ == "__main__":
|
|
loader = TestLoader()
|
|
tests = loader.loadTestsFromTestCase(MinionTest)
|
|
print('Setting up Salt daemons to execute tests')
|
|
with integration.TestDaemon():
|
|
runner = TextTestRunner(verbosity=1).run(tests)
|
|
sys.exit(runner.wasSuccessful())
|