]> ruderich.org/simon Gitweb - safcm/safcm.git/blobdiff - cmd/safcm/config/hosts_test.go
config: forbid duplicate host names
[safcm/safcm.git] / cmd / safcm / config / hosts_test.go
index ecbc37e45314b7453864eb9d9d1cac22a57b4a53..5d3c3342955ec494bacec29c6a622a01e0332044 100644 (file)
@@ -64,6 +64,11 @@ func TestLoadHosts(t *testing.T) {
                        nil,
                },
 
+               {
+                       "../testdata/host-invalid-duplicate",
+                       nil,
+                       fmt.Errorf("hosts.yaml: host \"host1.example.org\": host name already exists"),
+               },
                {
                        "../testdata/host-invalid-all",
                        nil,