Skip to content

Commit

Permalink
Update the test for the assertion failure (#14833)
Browse files Browse the repository at this point in the history
  • Loading branch information
shweta83 authored Apr 18, 2024
1 parent 5c7abc1 commit 97eb09d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/foreman/api/test_provisioningtemplate.py
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,7 @@ def test_positive_template_check_rex_snippet(
assert f'chown -R {rex_user}: ~{rex_user}' in rex_snippet
assert f'chown -R {rex_user}: ~{rex_user}/.ssh' in rex_snippet
assert (
f'echo "{rex_user} ALL = (root) NOPASSWD : ALL\nDefaults:{rex_user} !requiretty" > /etc/sudoers.d/{rex_user}'
f'echo "{rex_user} ALL = (root) NOPASSWD : ALL" > /etc/sudoers.d/{rex_user}\necho "Defaults:{rex_user} !requiretty" >> /etc/sudoers.d/{rex_user}'
in rex_snippet
)
assert ssh_key in rex_snippet
Expand Down

0 comments on commit 97eb09d

Please sign in to comment.