]> ruderich.org/simon Gitweb - safcm/safcm.git/blobdiff - cmd/safcm/sync_sync_test.go
safcm: shorten error message on file conflict
[safcm/safcm.git] / cmd / safcm / sync_sync_test.go
index f0e7524e8186a6d803c6d8e5ac326e95f722a93e..e50a7284d1843f26138d693bce78af4df5bfd9b9 100644 (file)
@@ -267,7 +267,7 @@ func TestHostSyncReq(t *testing.T) {
                                "host1.example.org: <nil> 3 host groups: all dns host1.example.org",
                                "host1.example.org: <nil> 3 host group priorities (descending): host1.example.org",
                        },
-                       fmt.Errorf("groups dns and all both provide file \"/etc/resolv.conf\"\nUse 'group_priority' in config.yaml to declare preference"),
+                       fmt.Errorf("groups dns and all both provide \"/etc/resolv.conf\"\nUse 'group_priority' in config.yaml to declare preference"),
                },
                {
                        "conflict: file from detected group",
@@ -282,7 +282,7 @@ func TestHostSyncReq(t *testing.T) {
                                "host2.example.org: <nil> 3 host groups: all detected_other host2.example.org other",
                                "host2.example.org: <nil> 3 host group priorities (descending): host2.example.org",
                        },
-                       fmt.Errorf("groups other and all both provide file \"/etc/resolv.conf\"\nUse 'group_priority' in config.yaml to declare preference"),
+                       fmt.Errorf("groups other and all both provide \"/etc/resolv.conf\"\nUse 'group_priority' in config.yaml to declare preference"),
                },
 
                {
@@ -296,7 +296,7 @@ func TestHostSyncReq(t *testing.T) {
                                "host1.example.org: <nil> 3 host groups: all dns host1.example.org",
                                "host1.example.org: <nil> 3 host group priorities (descending): host1.example.org",
                        },
-                       fmt.Errorf("groups dns and all both provide file \"/etc\"\nUse 'group_priority' in config.yaml to declare preference"),
+                       fmt.Errorf("groups dns and all both provide \"/etc\"\nUse 'group_priority' in config.yaml to declare preference"),
                },
                {
                        "conflict: dir from detected group",
@@ -311,7 +311,7 @@ func TestHostSyncReq(t *testing.T) {
                                "host2.example.org: <nil> 3 host groups: all detected_other host2.example.org other",
                                "host2.example.org: <nil> 3 host group priorities (descending): host2.example.org",
                        },
-                       fmt.Errorf("groups other and all both provide file \"/etc\"\nUse 'group_priority' in config.yaml to declare preference"),
+                       fmt.Errorf("groups other and all both provide \"/etc\"\nUse 'group_priority' in config.yaml to declare preference"),
                },
 
                {