Add double wildcard test
This commit is contained in:
parent
c7df82e695
commit
82b2a102ed
3 changed files with 55 additions and 0 deletions
|
@ -77,6 +77,13 @@ func TestGetBestCertificate(t *testing.T) {
|
|||
dynamicCert: "*.snitest.com",
|
||||
expectedCert: "*.snitest.com",
|
||||
},
|
||||
{
|
||||
desc: "Best Match with two wildcard certs",
|
||||
domainToCheck: "foo.www.snitest.com",
|
||||
staticCert: "*.www.snitest.com",
|
||||
dynamicCert: "*.snitest.com",
|
||||
expectedCert: "*.www.snitest.com",
|
||||
},
|
||||
}
|
||||
|
||||
for _, test := range testCases {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue