Files
certman/server/acme_manager_test.go
Steven Tracey c01195643a
All checks were successful
Build (artifact) / build (push) Successful in 1m13s
Lets see if this works
2026-06-29 07:57:03 -04:00

16 lines
333 B
Go

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")
}
}