forked from TrueCloudLab/certificates
Set up test properly
This commit is contained in:
parent
0214e015a0
commit
b94c0d09be
1 changed files with 1 additions and 1 deletions
|
@ -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"}},
|
URIs: []*url.URL{{Scheme: "https", Host: "uuid.example.com", Path: "/dc4c76b5-5262-4551-a881-48094a604d63"}},
|
||||||
}}, false},
|
}}, false},
|
||||||
{"ok with constraints", fields{
|
{"ok with constraints", fields{
|
||||||
hasNameConstraints: false,
|
hasNameConstraints: true,
|
||||||
permittedDNSDomains: []string{"example.com"},
|
permittedDNSDomains: []string{"example.com"},
|
||||||
permittedIPRanges: []*net.IPNet{
|
permittedIPRanges: []*net.IPNet{
|
||||||
{IP: net.ParseIP("127.0.0.1").To4(), Mask: net.IPMask{255, 255, 255, 255}},
|
{IP: net.ParseIP("127.0.0.1").To4(), Mask: net.IPMask{255, 255, 255, 255}},
|
||||||
|
|
Loading…
Reference in a new issue