mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Updated tests, cut too deep removing debug statements
This commit is contained in:
parent
ff1fcf5e95
commit
12332188af
1 changed files with 10 additions and 0 deletions
|
@ -341,6 +341,16 @@ def test_salt_ownership_permission(salt_call_cli, install_salt, salt_systemd_set
|
|||
if test_minion_user not in user_list:
|
||||
ret = salt_call_cli.run("--local", "user.add", f"{test_minion_user}")
|
||||
|
||||
ret = salt_call_cli.run(
|
||||
"--local", "file.comment_line", "/etc/salt/master", "^user:"
|
||||
)
|
||||
assert ret.returncode == 0
|
||||
|
||||
ret = salt_call_cli.run(
|
||||
"--local", "file.comment_line", "/etc/salt/minion", "^user:"
|
||||
)
|
||||
assert ret.returncode == 0
|
||||
|
||||
test_string = f"\nuser: {test_master_user}\n"
|
||||
ret = salt_call_cli.run("--local", "file.append", "/etc/salt/master", test_string)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue