]> ruderich.org/simon Gitweb - safcm/safcm.git/commitdiff
tests: end-to-end: improve test names
authorSimon Ruderich <simon@ruderich.org>
Sat, 1 Nov 2025 07:40:21 +0000 (08:40 +0100)
committerSimon Ruderich <simon@ruderich.org>
Sat, 1 Nov 2025 07:40:21 +0000 (08:40 +0100)
cmd/safcm/main_sync_test.go

index 1adb5e1ca1a9fe9e10c75e0d0d332a350dbc662e..d09baf878ca92494082df48c3ebbb6c98da73083 100644 (file)
@@ -108,7 +108,7 @@ func TestSyncSshEndToEnd(t *testing.T) {
                        nil,
                },
                {
-                       "no settings (error)",
+                       "no settings (-log error)",
                        false,
                        true,
                        []string{"-log", "error", "no-settings.example.org"},
@@ -116,7 +116,7 @@ func TestSyncSshEndToEnd(t *testing.T) {
                        nil,
                },
                {
-                       "no settings (verbose)",
+                       "no settings (-log verbose)",
                        false,
                        true,
                        []string{"-log", "verbose", "no-settings.example.org"},
@@ -128,7 +128,7 @@ func TestSyncSshEndToEnd(t *testing.T) {
                        nil,
                },
                {
-                       "no settings (debug2)",
+                       "no settings (-log debug2)",
                        false,
                        true,
                        []string{"-log", "debug2", "no-settings.example.org"},
@@ -154,7 +154,7 @@ func TestSyncSshEndToEnd(t *testing.T) {
                        nil,
                },
                {
-                       "no changes (dry-run, debug2)",
+                       "no changes (dry-run -log debug2)",
                        false,
                        true,
                        []string{"-n", "-log", "debug2", "no-changes.example.org"},
@@ -179,7 +179,7 @@ func TestSyncSshEndToEnd(t *testing.T) {
                        nil,
                },
                {
-                       "no changes (debug2)",
+                       "no changes (-log debug2)",
                        skipUnlessCiRun,
                        true,
                        []string{"-log", "debug2", "no-changes.example.org"},
@@ -208,7 +208,7 @@ will execute 2 command(s): (dry-run)
                        nil,
                },
                {
-                       "no effect commands (dry-run)",
+                       "no effect commands (dry-run -log debug2)",
                        false,
                        true,
                        []string{"-n", "-log", "debug2", "no-effect-commands.example.org"},
@@ -237,7 +237,7 @@ executed 2 command(s):
                        nil,
                },
                {
-                       "no effect commands (debug2)",
+                       "no effect commands (-log debug2)",
                        false,
                        true,
                        []string{"-log", "debug2", "no-effect-commands.example.org"},
@@ -271,7 +271,7 @@ will execute 2 command(s): (dry-run)
                        nil,
                },
                {
-                       "no effect commands failing (dry-run)",
+                       "no effect commands failing (dry-run -log debug2)",
                        false,
                        true,
                        []string{"-n", "-log", "debug2", "no-effect-commands-failing.example.org"},
@@ -302,7 +302,7 @@ executed 2 command(s):
                        fmt.Errorf("exit status 1"),
                },
                {
-                       "no effect commands failing (debug2)",
+                       "no effect commands failing (-log debug2)",
                        false,
                        true,
                        []string{"-log", "debug2", "no-effect-commands-failing.example.org"},