mirror of
https://github.com/ansible-collections/ansible.posix.git
synced 2026-01-11 15:15:26 +01:00
Modify synchronize tests for '-u root' arg when become_user not supplied
This commit is contained in:
parent
6b41ce1a9d
commit
0e6f8ab976
2 changed files with 4 additions and 2 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in a new issue