Skip to content

Commit

Permalink
Remove test because of the refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
aledbf committed Apr 11, 2017
1 parent 1907888 commit 8f3f513
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions controllers/nginx/pkg/template/configmap_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import (
"github.com/kylelemons/godebug/pretty"

"k8s.io/ingress/controllers/nginx/pkg/config"
"k8s.io/ingress/core/pkg/net/dns"
)

func TestFilterErrors(t *testing.T) {
Expand Down Expand Up @@ -54,26 +53,18 @@ func TestMergeConfigMapToStruct(t *testing.T) {
def.UseProxyProtocol = true
def.GzipTypes = "text/html"

h, err := dns.GetSystemNameServers()
if err != nil {
t.Errorf("unexpected error: %v", err)
}
def.Resolver = h

to := ReadConfig(conf)
if diff := pretty.Compare(to, def); diff != "" {
t.Errorf("unexpected diff: (-got +want)\n%s", diff)
}

def = config.NewDefault()
def.Resolver = h
to = ReadConfig(map[string]string{})
if diff := pretty.Compare(to, def); diff != "" {
t.Errorf("unexpected diff: (-got +want)\n%s", diff)
}

def = config.NewDefault()
def.Resolver = h
def.WhitelistSourceRange = []string{"1.1.1.1/32"}
to = ReadConfig(map[string]string{
"whitelist-source-range": "1.1.1.1/32",
Expand Down

0 comments on commit 8f3f513

Please sign in to comment.