add basic ssh-relenv test

This commit is contained in:
Tyler Levy Conde 2024-09-20 11:15:53 -06:00 committed by Daniel Wozniak
parent b95855edf5
commit a74ce63e09

View file

@ -163,6 +163,18 @@ def test_thin_dir(salt_ssh_cli):
assert thin_dir.joinpath("running_data").exists()
def test_relenv(salt_ssh_cli):
"""
test to make sure thin_dir is created
and salt-call file is included
"""
ret = salt_ssh_cli.run("--relenv", "config.get", "thin_dir")
assert ret.returncode == 0
thin_dir = pathlib.Path(ret.data)
assert thin_dir.is_dir()
assert thin_dir.joinpath("salt-call").exists()
def test_wipe(salt_ssh_cli):
"""
Ensure --wipe is respected by the state module wrapper