X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=cmd%2Fsafcm%2Fmain_sync_test.go;h=39784fa12ef270ab380ff3402112a55f5660cc50;hb=367edc1286a52d96fcfef6f98330148cad8a64e1;hp=8d702db218a3655318583864c47fd347c7eaabfe;hpb=825f928d824f728088606bcbf112d30d7a76f627;p=safcm%2Fsafcm.git diff --git a/cmd/safcm/main_sync_test.go b/cmd/safcm/main_sync_test.go index 8d702db..39784fa 100644 --- a/cmd/safcm/main_sync_test.go +++ b/cmd/safcm/main_sync_test.go @@ -85,6 +85,7 @@ func TestSyncSshEndToEnd(t *testing.T) { true, []string{"no-settings.example.org"}, `[info] [no-settings.example.org] remote helper upload in progress +[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"}, + `[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) { `[info] [no-settings.example.org] remote helper upload in progress [verbose] [no-settings.example.org] host groups: all no-settings.example.org [verbose] [no-settings.example.org] host group priorities (desc. order): no-settings.example.org +[info] [no-settings.example.org] no changes `, nil, }, @@ -112,6 +122,7 @@ func TestSyncSshEndToEnd(t *testing.T) { `[info] [no-settings.example.org] remote helper upload in progress [verbose] [no-settings.example.org] host groups: all no-settings.example.org [verbose] [no-settings.example.org] host group priorities (desc. order): no-settings.example.org +[info] [no-settings.example.org] no changes `, nil, },