Commit b29e7343 authored by Martin Linkhorst's avatar Martin Linkhorst Committed by Yerken
Browse files

fix(source): validate that sources adhere to the interface (#80)

parent bbb2d00f
Showing with 6 additions and 0 deletions
+6 -0
......@@ -25,6 +25,9 @@ import (
"k8s.io/client-go/pkg/apis/extensions/v1beta1"
)
// Validates that IngressSource is a Source
var _ Source = &IngressSource{}
func TestIngress(t *testing.T) {
t.Run("endpointsFromIngress", testEndpointsFromIngress)
t.Run("Endpoints", testIngressEndpoints)
......
......@@ -26,6 +26,9 @@ import (
"github.com/kubernetes-incubator/external-dns/endpoint"
)
// Validates that ServiceSource is a Source
var _ Source = &ServiceSource{}
func TestService(t *testing.T) {
t.Run("Endpoints", testServiceEndpoints)
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment