acmedns_test.go 506 B

123456789101112131415161718192021222324252627
  1. package acmedns_test
  2. import (
  3. "fmt"
  4. "testing"
  5. "imuslab.com/zoraxy/mod/acme/acmedns"
  6. )
  7. // Test if the structure of ACME DNS config can be reflected from lego source code definations
  8. func TestACMEDNSConfigStructureReflector(t *testing.T) {
  9. providers := []string{
  10. "gandi",
  11. "cloudflare",
  12. "azure",
  13. }
  14. for _, provider := range providers {
  15. strcture, err := acmedns.GetProviderConfigStructure(provider)
  16. if err != nil {
  17. panic(err)
  18. }
  19. fmt.Println(strcture)
  20. }
  21. }