Set up test properly

This commit is contained in:
Mariano Cano 2022-09-22 11:07:28 -07:00
parent 0214e015a0
commit b94c0d09be

View File

@ -258,7 +258,7 @@ func TestEngine_ValidateCertificate(t *testing.T) {
URIs: []*url.URL{{Scheme: "https", Host: "uuid.example.com", Path: "/dc4c76b5-5262-4551-a881-48094a604d63"}},
}}, false},
{"ok with constraints", fields{
hasNameConstraints: false,
hasNameConstraints: true,
permittedDNSDomains: []string{"example.com"},
permittedIPRanges: []*net.IPNet{
{IP: net.ParseIP("127.0.0.1").To4(), Mask: net.IPMask{255, 255, 255, 255}},