mirror of
https://github.com/saltstack/salt.git
synced 2025-04-16 09:40:20 +00:00
add basic ssh-relenv test
This commit is contained in:
parent
b95855edf5
commit
a74ce63e09
1 changed files with 12 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue