Lets see if this works
All checks were successful
Build (artifact) / build (push) Successful in 1m13s
All checks were successful
Build (artifact) / build (push) Successful in 1m13s
This commit is contained in:
15
server/acme_manager_test.go
Normal file
15
server/acme_manager_test.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package server
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"slices"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestBuildDomainList(t *testing.T) {
|
||||
domains := buildDomainList("example.com", []string{"*", "dev"})
|
||||
fmt.Printf("domains: %v\n", domains)
|
||||
if slices.Compare(domains, []string{"example.com", "*.example.com", "dev.example.com"}) != 0 {
|
||||
t.Errorf("domains not equal")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user