gofmt ingress_test

This commit is contained in:
ideahitme 2017-03-02 15:26:17 +01:00
parent c14b4107f0
commit d9697c0463

View File

@ -43,7 +43,7 @@ func testEndpointsFromIngress(t *testing.T) {
hostnames: []string{"lb.com"}, hostnames: []string{"lb.com"},
}, },
expected: []endpoint.Endpoint{ expected: []endpoint.Endpoint{
endpoint.Endpoint{ {
DNSName: "foo.bar", DNSName: "foo.bar",
Target: "lb.com", Target: "lb.com",
}, },
@ -56,7 +56,7 @@ func testEndpointsFromIngress(t *testing.T) {
ips: []string{"8.8.8.8"}, ips: []string{"8.8.8.8"},
}, },
expected: []endpoint.Endpoint{ expected: []endpoint.Endpoint{
endpoint.Endpoint{ {
DNSName: "foo.bar", DNSName: "foo.bar",
Target: "8.8.8.8", Target: "8.8.8.8",
}, },
@ -70,19 +70,19 @@ func testEndpointsFromIngress(t *testing.T) {
hostnames: []string{"elb.com", "alb.com"}, hostnames: []string{"elb.com", "alb.com"},
}, },
expected: []endpoint.Endpoint{ expected: []endpoint.Endpoint{
endpoint.Endpoint{ {
DNSName: "foo.bar", DNSName: "foo.bar",
Target: "8.8.8.8", Target: "8.8.8.8",
}, },
endpoint.Endpoint{ {
DNSName: "foo.bar", DNSName: "foo.bar",
Target: "127.0.0.1", Target: "127.0.0.1",
}, },
endpoint.Endpoint{ {
DNSName: "foo.bar", DNSName: "foo.bar",
Target: "elb.com", Target: "elb.com",
}, },
endpoint.Endpoint{ {
DNSName: "foo.bar", DNSName: "foo.bar",
Target: "alb.com", Target: "alb.com",
}, },
@ -133,13 +133,13 @@ func testIngressEndpoints(t *testing.T) {
{ {
title: "two simple ingresses", title: "two simple ingresses",
ingressItems: []fakeIngress{ ingressItems: []fakeIngress{
fakeIngress{ {
name: "fake1", name: "fake1",
namespace: namespace, namespace: namespace,
dnsnames: []string{"example.org"}, dnsnames: []string{"example.org"},
ips: []string{"8.8.8.8"}, ips: []string{"8.8.8.8"},
}, },
fakeIngress{ {
name: "fake2", name: "fake2",
namespace: namespace, namespace: namespace,
dnsnames: []string{"new.org"}, dnsnames: []string{"new.org"},
@ -147,11 +147,11 @@ func testIngressEndpoints(t *testing.T) {
}, },
}, },
expected: []endpoint.Endpoint{ expected: []endpoint.Endpoint{
endpoint.Endpoint{ {
DNSName: "example.org", DNSName: "example.org",
Target: "8.8.8.8", Target: "8.8.8.8",
}, },
endpoint.Endpoint{ {
DNSName: "new.org", DNSName: "new.org",
Target: "lb.com", Target: "lb.com",
}, },