Skip to content

Commit

Permalink
Change nonhostname test to IDN test
Browse files Browse the repository at this point in the history
  • Loading branch information
jefferai committed Feb 9, 2018
1 parent ffba3a4 commit 873e321
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions builtin/logical/pki/backend_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1658,7 +1658,7 @@ func generateRoleSteps(t *testing.T, useCSRs bool) []logicaltest.TestStep {
SubSubdomain bool `structs:"foo.bar.example.com"`
SubSubdomainWildcard bool `structs:"*.bar.example.com"`
GlobDomain bool `structs:"fooexample.com"`
NonHostname bool `structs:"daɪˈɛrɨsɨs"`
IDN bool `structs:"daɪˈɛrɨsɨs"`
AnyHost bool `structs:"porkslap.beer"`
}

Expand Down Expand Up @@ -1872,10 +1872,10 @@ func generateRoleSteps(t *testing.T, useCSRs bool) []logicaltest.TestStep {
roleVals.AllowAnyName = true
roleVals.EnforceHostnames = true
commonNames.AnyHost = true
commonNames.IDN = true
addCnTests()

roleVals.EnforceHostnames = false
commonNames.NonHostname = true
addCnTests()

// Ensure that we end up with acceptable key sizes since they won't be
Expand Down
1 change: 0 additions & 1 deletion builtin/logical/pki/cert_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,6 @@ func validateNames(req *logical.Request, names []string, role *roleEntry) string
}
}

//panic(fmt.Sprintf("\nName is %s\nRole is\n%#v\n", name, role))
return name
}

Expand Down

0 comments on commit 873e321

Please sign in to comment.