1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-04-26 13:42:49 +00:00

Reformat everything.

This commit is contained in:
Felix Fontein 2025-11-01 12:08:41 +01:00
parent 3f2213791a
commit 340ff8586d
1008 changed files with 61301 additions and 58309 deletions

View file

@ -20,13 +20,13 @@ def test_pfexec_basic(mocker, parser, reset_cli_args):
default_cmd = "/bin/foo"
default_exe = "/bin/bash"
pfexec_exe = 'pfexec'
pfexec_flags = '-H -S -n'
pfexec_exe = "pfexec"
pfexec_flags = "-H -S -n"
success = 'BECOME-SUCCESS-.+?'
success = "BECOME-SUCCESS-.+?"
task = {
'become_method': 'community.general.pfexec',
"become_method": "community.general.pfexec",
}
var_options = {}
cmd = call_become_plugin(task, var_options, cmd=default_cmd, executable=default_exe)
@ -40,15 +40,15 @@ def test_pfexec(mocker, parser, reset_cli_args):
default_cmd = "/bin/foo"
default_exe = "/bin/bash"
pfexec_exe = 'pfexec'
pfexec_flags = ''
pfexec_exe = "pfexec"
pfexec_flags = ""
success = 'BECOME-SUCCESS-.+?'
success = "BECOME-SUCCESS-.+?"
task = {
'become_user': 'foo',
'become_method': 'community.general.pfexec',
'become_flags': pfexec_flags,
"become_user": "foo",
"become_method": "community.general.pfexec",
"become_flags": pfexec_flags,
}
var_options = {}
cmd = call_become_plugin(task, var_options, cmd=default_cmd, executable=default_exe)
@ -62,19 +62,19 @@ def test_pfexec_varoptions(mocker, parser, reset_cli_args):
default_cmd = "/bin/foo"
default_exe = "/bin/bash"
pfexec_exe = 'pfexec'
pfexec_flags = ''
pfexec_exe = "pfexec"
pfexec_flags = ""
success = 'BECOME-SUCCESS-.+?'
success = "BECOME-SUCCESS-.+?"
task = {
'become_user': 'foo',
'become_method': 'community.general.pfexec',
'become_flags': 'xxx',
"become_user": "foo",
"become_method": "community.general.pfexec",
"become_flags": "xxx",
}
var_options = {
'ansible_become_user': 'bar',
'ansible_become_flags': pfexec_flags,
"ansible_become_user": "bar",
"ansible_become_flags": pfexec_flags,
}
cmd = call_become_plugin(task, var_options, cmd=default_cmd, executable=default_exe)
print(cmd)