+`,
+ nil,
+ },
+
+ // NOTE: We use -n on regular runs to prevent changing
+ // anything important on the host when running as root!
+
+ {
+ "no changes (dry-run)",
+ false,
+ true,
+ []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
+`,
+ nil,
+ },
+ {
+ "no changes (dry-run, debug2)",
+ false,
+ true,
+ []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 group priorities (descending): no-changes.example.org
+<LOG>[debug] [no-changes.example.org] sync remote: files: "/" (no-changes.example.org): unchanged
+<LOG>[debug] [no-changes.example.org] sync remote: files: "/etc" (no-changes.example.org): unchanged
+<LOG>[debug] [no-changes.example.org] sync remote: files: "/tmp" (no-changes.example.org): unchanged
+<LOG>[info] [no-changes.example.org] no changes
+`,
+ nil,
+ },
+
+ {
+ "no changes",
+ skipUnlessCiRun,
+ true,
+ []string{"no-changes.example.org"},
+ `<LOG>[info] [no-changes.example.org] remote helper upload in progress
+<LOG>[info] [no-changes.example.org] no changes
+`,
+ nil,
+ },
+ {
+ "no changes (debug2)",
+ skipUnlessCiRun,
+ true,
+ []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 group priorities (descending): no-changes.example.org
+<LOG>[debug] [no-changes.example.org] sync remote: files: "/" (no-changes.example.org): unchanged
+<LOG>[debug] [no-changes.example.org] sync remote: files: "/etc" (no-changes.example.org): unchanged
+<LOG>[debug] [no-changes.example.org] sync remote: files: "/tmp" (no-changes.example.org): unchanged
+<LOG>[info] [no-changes.example.org] no changes