2013-11-27 11:19:24 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
2014-11-21 19:05:13 +00:00
|
|
|
# Import Python libs
|
|
|
|
from __future__ import absolute_import
|
|
|
|
|
2013-06-27 10:46:54 +00:00
|
|
|
# Import Salt Testing libs
|
|
|
|
from salttesting.helpers import ensure_in_syspath
|
|
|
|
ensure_in_syspath('../../')
|
2012-03-29 07:02:40 +00:00
|
|
|
|
|
|
|
# Import salt libs
|
2013-06-27 10:46:54 +00:00
|
|
|
import integration
|
2012-03-29 07:02:40 +00:00
|
|
|
|
2012-05-05 14:09:23 +00:00
|
|
|
|
|
|
|
class TestSyndic(integration.SyndicCase):
|
2012-03-29 07:02:40 +00:00
|
|
|
'''
|
|
|
|
Validate the syndic interface by testing the test module
|
|
|
|
'''
|
|
|
|
def test_ping(self):
|
|
|
|
'''
|
|
|
|
test.ping
|
|
|
|
'''
|
|
|
|
self.assertTrue(self.run_function('test.ping'))
|
|
|
|
|
|
|
|
def test_fib(self):
|
|
|
|
'''
|
|
|
|
test.fib
|
|
|
|
'''
|
|
|
|
self.assertEqual(
|
|
|
|
self.run_function(
|
|
|
|
'test.fib',
|
2015-04-11 18:48:48 +00:00
|
|
|
['20'],
|
|
|
|
)[0],
|
|
|
|
6765
|
2012-03-29 07:02:40 +00:00
|
|
|
)
|
|
|
|
|
2013-06-24 22:53:59 +00:00
|
|
|
|
2013-06-27 10:46:54 +00:00
|
|
|
if __name__ == '__main__':
|
2013-06-24 22:53:59 +00:00
|
|
|
from integration import run_tests
|
|
|
|
run_tests(TestSyndic)
|