Updated integration.states.ssh test suite to use salttesting.helpers.ensure_in_syspath()

This commit is contained in:
Pedro Algarvio 2013-06-27 13:49:50 +01:00
parent f3b145b118
commit 2ef34d1fd6

View File

@ -1,22 +1,17 @@
'''
Test the ssh_known_hosts state
'''
# Import python libs
import os
import shutil
try:
import integration
except ImportError:
if __name__ == '__main__':
import os
import sys
sys.path.insert(
0, os.path.abspath(
os.path.join(
os.path.dirname(__file__), '../../'
)
)
)
import integration
# Import Salt Testing libs
from salttesting.helpers import ensure_in_syspath
ensure_in_syspath('../../')
# Import salt libs
import integration
KNOWN_HOSTS = os.path.join(integration.TMP, 'known_hosts')
GITHUB_FINGERPRINT = '16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48'