feat: create standalone native fnOS repository
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
package nginx
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestHostCoveredByCert(t *testing.T) {
|
||||
domains := []string{"example.com", "*.example.com"}
|
||||
if !hostCoveredByCert("app.example.com", domains) {
|
||||
t.Fatal("expected wildcard to cover subdomain")
|
||||
}
|
||||
if hostCoveredByCert("s.muksi.com", domains) {
|
||||
t.Fatal("expected typo domain to be rejected")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user