mirror of
https://github.com/ansible-collections/ansible.posix.git
synced 2026-03-26 21:33:32 +00:00
Modify synchronize tests for '-u root' arg when become_user not supplied
This commit is contained in:
@@ -25,7 +25,8 @@ asserts:
|
||||
- "self.execute_called"
|
||||
- "self.final_module_args['_local_rsync_path'] == 'rsync'"
|
||||
# this is a crucial aspect of this scenario ...
|
||||
- "self.final_module_args['rsync_path'] == 'sudo rsync'"
|
||||
# note: become_user None -> root
|
||||
- "self.final_module_args['rsync_path'] == 'sudo -u root rsync'"
|
||||
- "self.final_module_args['src'] == '/tmp/deleteme'"
|
||||
- "self.final_module_args['dest'] == 'root@el6host:/tmp/deleteme'"
|
||||
- "self.task.become == True"
|
||||
|
||||
@@ -25,7 +25,8 @@ asserts:
|
||||
- "self.execute_called"
|
||||
- "self.final_module_args['_local_rsync_path'] == 'rsync'"
|
||||
# this is a crucial aspect of this scenario ...
|
||||
- "self.final_module_args['rsync_path'] == 'sudo rsync'"
|
||||
# note: become_user None -> root
|
||||
- "self.final_module_args['rsync_path'] == 'sudo -u root rsync'"
|
||||
- "self.final_module_args['src'] == '/tmp/deleteme'"
|
||||
- "self.final_module_args['dest'] == 'root@el6host:/tmp/deleteme'"
|
||||
- "self.task.become == None"
|
||||
|
||||
Reference in New Issue
Block a user