Add double wildcard test

This commit is contained in:
Daniel Tomcej
2018-10-23 11:04:05 -05:00
committed by Traefiker Bot
parent c7df82e695
commit 82b2a102ed
3 changed files with 55 additions and 0 deletions

View File

@@ -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 {