]> ruderich.org/simon Gitweb - safcm/safcm.git/blobdiff - cmd/safcm/main_sync_test.go
changes: display "no changes" when nothing was changed
[safcm/safcm.git] / cmd / safcm / main_sync_test.go
index 8d702db218a3655318583864c47fd347c7eaabfe..39784fa12ef270ab380ff3402112a55f5660cc50 100644 (file)
@@ -85,6 +85,7 @@ func TestSyncSshEndToEnd(t *testing.T) {
                        true,
                        []string{"no-settings.example.org"},
                        `<LOG>[info]    [no-settings.example.org] remote helper upload in progress
+<LOG>[info]    [no-settings.example.org] no changes
 `,
                        nil,
                },
@@ -92,6 +93,14 @@ func TestSyncSshEndToEnd(t *testing.T) {
                        "no settings (no helper upload)",
                        false,
                        []string{"no-settings.example.org"},
+                       `<LOG>[info]    [no-settings.example.org] no changes
+`,
+                       nil,
+               },
+               {
+                       "no settings (error)",
+                       true,
+                       []string{"-log", "error", "no-settings.example.org"},
                        ``,
                        nil,
                },
@@ -102,6 +111,7 @@ func TestSyncSshEndToEnd(t *testing.T) {
                        `<LOG>[info]    [no-settings.example.org] remote helper upload in progress
 <LOG>[verbose] [no-settings.example.org] host groups: all <DET> <DET> no-settings.example.org
 <LOG>[verbose] [no-settings.example.org] host group priorities (desc. order): no-settings.example.org
+<LOG>[info]    [no-settings.example.org] no changes
 `,
                        nil,
                },
@@ -112,6 +122,7 @@ func TestSyncSshEndToEnd(t *testing.T) {
                        `<LOG>[info]    [no-settings.example.org] remote helper upload in progress
 <LOG>[verbose] [no-settings.example.org] host groups: all <DET> <DET> no-settings.example.org
 <LOG>[verbose] [no-settings.example.org] host group priorities (desc. order): no-settings.example.org
+<LOG>[info]    [no-settings.example.org] no changes
 `,
                        nil,
                },