X-Git-Url: https://ruderich.org/simon/gitweb/?p=safcm%2Fsafcm.git;a=blobdiff_plain;f=cmd%2Fsafcm%2Fmain_sync_test.go;h=ad4acac9c823f2da1a68eb7a6d189b19dc233747;hp=8d702db218a3655318583864c47fd347c7eaabfe;hb=a583eff808817656f8ddb81ddfca3c1fd1f6c85f;hpb=825f928d824f728088606bcbf112d30d7a76f627 diff --git a/cmd/safcm/main_sync_test.go b/cmd/safcm/main_sync_test.go index 8d702db..ad4acac 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, }, @@ -101,7 +110,8 @@ func TestSyncSshEndToEnd(t *testing.T) { []string{"-log", "verbose", "no-settings.example.org"}, `[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 +[verbose] [no-settings.example.org] host group priorities (descending): no-settings.example.org +[info] [no-settings.example.org] no changes `, nil, }, @@ -111,7 +121,8 @@ func TestSyncSshEndToEnd(t *testing.T) { []string{"-log", "debug2", "no-settings.example.org"}, `[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 +[verbose] [no-settings.example.org] host group priorities (descending): no-settings.example.org +[info] [no-settings.example.org] no changes `, nil, },