Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Plural
platform
external-dns
Commits
b29e7343
Commit
b29e7343
authored
8 years ago
by
Martin Linkhorst
Committed by
Yerken
8 years ago
Browse files
Options
Download
Email Patches
Plain Diff
fix(source): validate that sources adhere to the interface (#80)
parent
bbb2d00f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
source/ingress_test.go
+3
-0
source/ingress_test.go
source/service_test.go
+3
-0
source/service_test.go
with
6 additions
and
0 deletions
+6
-0
source/ingress_test.go
+
3
-
0
View file @
b29e7343
...
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
source/service_test.go
+
3
-
0
View file @
b29e7343
...
...
@@ -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
)
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment