Skip to content
Snippets Groups Projects
Commit 269f805b authored by nimrod's avatar nimrod
Browse files

- Added test for git fetch as root.

parent a97c2df3
No related branches found
No related tags found
No related merge requests found
......@@ -7,3 +7,9 @@ def test_deploy_key(Command, Sudo):
with Sudo(user='nobody'):
assert Command(
'git --git-dir /tmp/ansible-role-deploy-key/.git pull').rc == 0
def test_deploy_key_root(Command, Sudo):
with Sudo():
assert Command(
'git --git-dir /tmp/ansible-role-deploy-key/.git pull').rc == 0
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment