]> ruderich.org/simon Gitweb - safcm/safcm.git/blobdiff - cmd/safcm/main_sync_test.go
sync: remove duplicate "priority" from group priority log message
[safcm/safcm.git] / cmd / safcm / main_sync_test.go
index 8d702db218a3655318583864c47fd347c7eaabfe..ad4acac9c823f2da1a68eb7a6d189b19dc233747 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,
                },
@@ -101,7 +110,8 @@ func TestSyncSshEndToEnd(t *testing.T) {
                        []string{"-log", "verbose", "no-settings.example.org"},
                        `<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>[verbose] [no-settings.example.org] host group priorities (descending): no-settings.example.org
+<LOG>[info]    [no-settings.example.org] no changes
 `,
                        nil,
                },
@@ -111,7 +121,8 @@ func TestSyncSshEndToEnd(t *testing.T) {
                        []string{"-log", "debug2", "no-settings.example.org"},
                        `<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>[verbose] [no-settings.example.org] host group priorities (descending): no-settings.example.org
+<LOG>[info]    [no-settings.example.org] no changes
 `,
                        nil,
                },