From: Simon Ruderich Date: Sat, 1 Nov 2025 07:40:21 +0000 (+0100) Subject: tests: end-to-end: improve test names X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=6ee1237847cb560f06c82e66c735b1873902b405;p=safcm%2Fsafcm.git tests: end-to-end: improve test names --- diff --git a/cmd/safcm/main_sync_test.go b/cmd/safcm/main_sync_test.go index 1adb5e1..d09baf8 100644 --- a/cmd/safcm/main_sync_test.go +++ b/cmd/safcm/main_sync_test.go @@ -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"},