# -*- coding: utf-8 -*-
'''
salt-ssh testing
'''
# Import Python libs
from __future__ import absolute_import

# Import salt testing libs
from tests.support.case import SSHCase


class SSHTest(SSHCase):
    '''
    Test general salt-ssh functionality
    '''
    def test_ping(self):
        '''
        Test a simple ping
        '''
        ret = self.run_function('test.ping')
        self.assertTrue(ret, 'Ping did not return true')

@@ -101,16 +101,40 @@
 e_import
+%0Aimport os%0Aimport shutil
 %0A%0A# Impo
@@ -453,8 +453,632 @@
  true')%0A
+%0A    def test_thin_dir(self):%0A        '''%0A        test to make sure thin_dir is created%0A        and salt-call file is included%0A        '''%0A        thin_dir = self.run_function('config.get', %5B'thin_dir'%5D, wipe=False)%0A        os.path.isdir(thin_dir)%0A        os.path.exists(os.path.join(thin_dir, 'salt-call'))%0A        os.path.exists(os.path.join(thin_dir, 'running_data'))%0A%0A    def tearDown(self):%0A        '''%0A        make sure to clean up any old ssh directories%0A        '''%0A        salt_dir = self.run_function('config.get', %5B'thin_dir'%5D, wipe=False)%0A        if os.path.exists(salt_dir):%0A            shutil.rmtree(salt_dir)%0A

Add ssh thin_dir integration test