Modify synchronize tests for '-u root' arg when become_user not supplied

This commit is contained in:
Scott Mcdermott 2021-05-12 00:34:48 -07:00
parent 6b41ce1a9d
commit 0e6f8ab976
2 changed files with 4 additions and 2 deletions

View file

@ -25,7 +25,8 @@ asserts:
- "self.execute_called" - "self.execute_called"
- "self.final_module_args['_local_rsync_path'] == 'rsync'" - "self.final_module_args['_local_rsync_path'] == 'rsync'"
# this is a crucial aspect of this scenario ... # 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['src'] == '/tmp/deleteme'"
- "self.final_module_args['dest'] == 'root@el6host:/tmp/deleteme'" - "self.final_module_args['dest'] == 'root@el6host:/tmp/deleteme'"
- "self.task.become == True" - "self.task.become == True"

View file

@ -25,7 +25,8 @@ asserts:
- "self.execute_called" - "self.execute_called"
- "self.final_module_args['_local_rsync_path'] == 'rsync'" - "self.final_module_args['_local_rsync_path'] == 'rsync'"
# this is a crucial aspect of this scenario ... # 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['src'] == '/tmp/deleteme'"
- "self.final_module_args['dest'] == 'root@el6host:/tmp/deleteme'" - "self.final_module_args['dest'] == 'root@el6host:/tmp/deleteme'"
- "self.task.become == None" - "self.task.become == None"