{
"no changes (dry-run)",
false,
- true,
+ false,
[]string{"-n", "no-changes.example.org"},
- `<LOG>[info] [no-changes.example.org] remote helper upload in progress
-<LOG>[info] [no-changes.example.org] no changes
+ `<LOG>[info] [no-changes.example.org] no changes
`,
nil,
},
{
"no changes (dry-run -log debug2)",
false,
- true,
+ false,
[]string{"-n", "-log", "debug2", "no-changes.example.org"},
- `<LOG>[info] [no-changes.example.org] remote helper upload in progress
-<LOG>[verbose] [no-changes.example.org] host groups: all <DET> <DET> no-changes.example.org
+ `<LOG>[verbose] [no-changes.example.org] host groups: all <DET> <DET> no-changes.example.org
<LOG>[verbose] [no-changes.example.org] host group priorities (descending): no-changes.example.org
<LOG>[debug] [no-changes.example.org] files: "/" (no-changes.example.org): unchanged
<LOG>[debug] [no-changes.example.org] files: "/etc" (no-changes.example.org): unchanged
{
"no changes",
skipUnlessHarmless,
- true,
+ false,
[]string{"no-changes.example.org"},
- `<LOG>[info] [no-changes.example.org] remote helper upload in progress
-<LOG>[info] [no-changes.example.org] no changes
+ `<LOG>[info] [no-changes.example.org] no changes
`,
nil,
},
{
"no changes (-log debug2)",
skipUnlessHarmless,
- true,
+ false,
[]string{"-log", "debug2", "no-changes.example.org"},
- `<LOG>[info] [no-changes.example.org] remote helper upload in progress
-<LOG>[verbose] [no-changes.example.org] host groups: all <DET> <DET> no-changes.example.org
+ `<LOG>[verbose] [no-changes.example.org] host groups: all <DET> <DET> no-changes.example.org
<LOG>[verbose] [no-changes.example.org] host group priorities (descending): no-changes.example.org
<LOG>[debug] [no-changes.example.org] files: "/" (no-changes.example.org): unchanged
<LOG>[debug] [no-changes.example.org] files: "/etc" (no-changes.example.org): unchanged
{
"no effect commands (dry-run)",
false,
- true,
+ false,
[]string{"-n", "no-effect-commands.example.org"},
- `<LOG>[info] [no-effect-commands.example.org] remote helper upload in progress
-<LOG>[info] [no-effect-commands.example.org]
+ `<LOG>[info] [no-effect-commands.example.org]
will execute 2 command(s): (dry-run)
"echo this is a command"
"true"
{
"no effect commands (dry-run -log debug2)",
false,
- true,
+ false,
[]string{"-n", "-log", "debug2", "no-effect-commands.example.org"},
- `<LOG>[info] [no-effect-commands.example.org] remote helper upload in progress
-<LOG>[verbose] [no-effect-commands.example.org] host groups: all <DET> <DET> no-effect-commands.example.org
+ `<LOG>[verbose] [no-effect-commands.example.org] host groups: all <DET> <DET> no-effect-commands.example.org
<LOG>[verbose] [no-effect-commands.example.org] host group priorities (descending): no-effect-commands.example.org
<LOG>[info] [no-effect-commands.example.org]
will execute 2 command(s): (dry-run)
{
"no effect commands",
false,
- true,
+ false,
[]string{"no-effect-commands.example.org"},
- `<LOG>[info] [no-effect-commands.example.org] remote helper upload in progress
-<LOG>[info] [no-effect-commands.example.org]
+ `<LOG>[info] [no-effect-commands.example.org]
executed 2 command(s):
"echo this is a command":
> this is a command
{
"no effect commands (-log debug2)",
false,
- true,
+ false,
[]string{"-log", "debug2", "no-effect-commands.example.org"},
- `<LOG>[info] [no-effect-commands.example.org] remote helper upload in progress
-<LOG>[verbose] [no-effect-commands.example.org] host groups: all <DET> <DET> no-effect-commands.example.org
+ `<LOG>[verbose] [no-effect-commands.example.org] host groups: all <DET> <DET> no-effect-commands.example.org
<LOG>[verbose] [no-effect-commands.example.org] host group priorities (descending): no-effect-commands.example.org
<LOG>[verbose] [no-effect-commands.example.org] commands: running "/bin/sh" "-c" "echo this is a command" (no-effect-commands.example.org)
<LOG>[debug2] [no-effect-commands.example.org] commands: command output:
{
"no effect commands failing (dry-run)",
false,
- true,
+ false,
[]string{"-n", "no-effect-commands-failing.example.org"},
- `<LOG>[info] [no-effect-commands-failing.example.org] remote helper upload in progress
-<LOG>[info] [no-effect-commands-failing.example.org]
+ `<LOG>[info] [no-effect-commands-failing.example.org]
will execute 2 command(s): (dry-run)
"echo this is a command"
"echo failing; false"
{
"no effect commands failing (dry-run -log debug2)",
false,
- true,
+ false,
[]string{"-n", "-log", "debug2", "no-effect-commands-failing.example.org"},
- `<LOG>[info] [no-effect-commands-failing.example.org] remote helper upload in progress
-<LOG>[verbose] [no-effect-commands-failing.example.org] host groups: all <DET> <DET> no-effect-commands-failing.example.org
+ `<LOG>[verbose] [no-effect-commands-failing.example.org] host groups: all <DET> <DET> no-effect-commands-failing.example.org
<LOG>[verbose] [no-effect-commands-failing.example.org] host group priorities (descending): no-effect-commands-failing.example.org
<LOG>[info] [no-effect-commands-failing.example.org]
will execute 2 command(s): (dry-run)
{
"no effect commands failing",
false,
- true,
+ false,
[]string{"no-effect-commands-failing.example.org"},
- `<LOG>[info] [no-effect-commands-failing.example.org] remote helper upload in progress
-<LOG>[info] [no-effect-commands-failing.example.org]
+ `<LOG>[info] [no-effect-commands-failing.example.org]
executed 2 command(s):
"echo this is a command":
> this is a command
{
"no effect commands failing (-log debug2)",
false,
- true,
+ false,
[]string{"-log", "debug2", "no-effect-commands-failing.example.org"},
- `<LOG>[info] [no-effect-commands-failing.example.org] remote helper upload in progress
-<LOG>[verbose] [no-effect-commands-failing.example.org] host groups: all <DET> <DET> no-effect-commands-failing.example.org
+ `<LOG>[verbose] [no-effect-commands-failing.example.org] host groups: all <DET> <DET> no-effect-commands-failing.example.org
<LOG>[verbose] [no-effect-commands-failing.example.org] host group priorities (descending): no-effect-commands-failing.example.org
<LOG>[verbose] [no-effect-commands-failing.example.org] commands: running "/bin/sh" "-c" "echo this is a command" (no-effect-commands-failing.example.org)
<LOG>[debug2] [no-effect-commands-failing.example.org] commands: command output: