"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tests/integration/ssh/test_deploy.py" between
salt-3002.1.tar.gz and salt-3002.2.tar.gz

About: SaltStack is a systems management software for data center automation, cloud orchestration, server provisioning, configuration management and more. Community version.

test_deploy.py  (salt-3002.1):test_deploy.py  (salt-3002.2)
skipping to change at line 40 skipping to change at line 40
def test_thin_dir(self): def test_thin_dir(self):
""" """
test to make sure thin_dir is created test to make sure thin_dir is created
and salt-call file is included and salt-call file is included
""" """
thin_dir = self.run_function("config.get", ["thin_dir"], wipe=False) thin_dir = self.run_function("config.get", ["thin_dir"], wipe=False)
os.path.isdir(thin_dir) os.path.isdir(thin_dir)
os.path.exists(os.path.join(thin_dir, "salt-call")) os.path.exists(os.path.join(thin_dir, "salt-call"))
os.path.exists(os.path.join(thin_dir, "running_data")) os.path.exists(os.path.join(thin_dir, "running_data"))
def test_set_path(self): def test_set_path(self):
""" """
test setting the path env variable test setting the path env variable
""" """
path = "/pathdoesnotexist/" path = "/pathdoesnotexist/"
roster = os.path.join(RUNTIME_VARS.TMP, "roster-set-path") roster = os.path.join(RUNTIME_VARS.TMP, "roster-set-path")
self.custom_roster( self.custom_roster(
roster, data={"set_path": "$PATH:/usr/local/bin/:{}".format(path)} roster, data={"set_path": "$PATH:/usr/local/bin/:{}".format(path)}
) )
ret = self.run_function("environ.get", ["PATH"], roster_file=roster) ret = self.run_function("environ.get", ["PATH"], roster_file=roster)
assert path in ret assert path in ret
def test_tty(self):
test using tty
roster = os.path.join(RUNTIME_VARS.TMP, "roster-tty")
self.custom_roster(roster, data={"tty": True})
ret = self.run_function("test.ping", roster_file=roster)
assert ret is True
 End of changes. 2 change blocks. 
0 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)