Debian Codegraph @

providers/dns/acmedns/internal/http_storage_test.go

raw symbols SCIP
1 package internalscip-go gomod github.com/go-acme/lego/v4 . `github.com/go-acme/lego/v4/providers/dns/acmedns/internal`/
2
3 import (
4 "net/httpscip-go gomod github.com/golang/go/src go1.25.0 `net/http`/"
5 "net/http/httptestscip-go gomod github.com/golang/go/src go1.25.0 `net/http/httptest`/"
6 "testingscip-go gomod github.com/golang/go/src go1.25.0 testing/"
7
8 "github.com/go-acme/lego/v4/platform/tester/servermockscip-go gomod github.com/go-acme/lego/v4 . `github.com/go-acme/lego/v4/platform/tester/servermock`/"
9 "github.com/nrdcg/goacmednsscip-go gomod github.com/nrdcg/goacmedns v0.2.0 `github.com/nrdcg/goacmedns`/"
10 "github.com/stretchr/testify/assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/"
11 "github.com/stretchr/testify/requirescip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/require`/"
12 )
13
14 func mockBuilderscip-go gomod github.com/go-acme/lego/v4 . `github.com/go-acme/lego/v4/providers/dns/acmedns/internal`/mockBuilder().() *servermockscip-go gomod github.com/go-acme/lego/v4 . `github.com/go-acme/lego/v4/platform/tester/servermock`/.Builderscip-go gomod github.com/go-acme/lego/v4 . `github.com/go-acme/lego/v4/platform/tester/servermock`/Builder#[*HTTPStoragescip-go gomod github.com/go-acme/lego/v4 . `github.com/go-acme/lego/v4/providers/dns/acmedns/internal`/HTTPStorage#] {
15 return servermockscip-go gomod github.com/go-acme/lego/v4 . `github.com/go-acme/lego/v4/platform/tester/servermock`/.NewBuilderscip-go gomod github.com/go-acme/lego/v4 . `github.com/go-acme/lego/v4/platform/tester/servermock`/NewBuilder().[*HTTPStoragescip-go gomod github.com/go-acme/lego/v4 . `github.com/go-acme/lego/v4/providers/dns/acmedns/internal`/HTTPStorage#](
16 func(server *httptestscip-go gomod github.com/golang/go/src go1.25.0 `net/http/httptest`/.Serverscip-go gomod github.com/golang/go/src go1.25.0 `net/http/httptest`/Server#) (*HTTPStoragescip-go gomod github.com/go-acme/lego/v4 . `github.com/go-acme/lego/v4/providers/dns/acmedns/internal`/HTTPStorage#, error) {
17 storage, err := NewHTTPStoragescip-go gomod github.com/go-acme/lego/v4 . `github.com/go-acme/lego/v4/providers/dns/acmedns/internal`/NewHTTPStorage().(server.URLscip-go gomod github.com/golang/go/src go1.25.0 `net/http/httptest`/Server#URL.)
18 if err != nil {
19 return nil, err
20 }
21
22 storage.clientscip-go gomod github.com/go-acme/lego/v4 . `github.com/go-acme/lego/v4/providers/dns/acmedns/internal`/HTTPStorage#client. = server.Clientscip-go gomod github.com/golang/go/src go1.25.0 `net/http/httptest`/Server#Client().()
23
24 return storage, nil
25 },
26 servermockscip-go gomod github.com/go-acme/lego/v4 . `github.com/go-acme/lego/v4/platform/tester/servermock`/.CheckHeaderscip-go gomod github.com/go-acme/lego/v4 . `github.com/go-acme/lego/v4/platform/tester/servermock`/CheckHeader().().WithJSONHeadersscip-go gomod github.com/go-acme/lego/v4 . `github.com/go-acme/lego/v4/platform/tester/servermock`/HeaderLink#WithJSONHeaders().())
27 }
28
29 func TestHTTPStorage_Fetchscip-go gomod github.com/go-acme/lego/v4 . `github.com/go-acme/lego/v4/providers/dns/acmedns/internal`/TestHTTPStorage_Fetch().(t *testingscip-go gomod github.com/golang/go/src go1.25.0 testing/.Tscip-go gomod github.com/golang/go/src go1.25.0 testing/T#) {
30 storage := mockBuilderscip-go gomod github.com/go-acme/lego/v4 . `github.com/go-acme/lego/v4/providers/dns/acmedns/internal`/mockBuilder().().
31 Routescip-go gomod github.com/go-acme/lego/v4 . `github.com/go-acme/lego/v4/platform/tester/servermock`/Builder#Route().("GET /example.com", servermockscip-go gomod github.com/go-acme/lego/v4 . `github.com/go-acme/lego/v4/platform/tester/servermock`/.ResponseFromFixturescip-go gomod github.com/go-acme/lego/v4 . `github.com/go-acme/lego/v4/platform/tester/servermock`/ResponseFromFixture().("fetch.json")).
32 Buildscip-go gomod github.com/go-acme/lego/v4 . `github.com/go-acme/lego/v4/platform/tester/servermock`/Builder#Build().(t)
33
34 account, err := storage.Fetchscip-go gomod github.com/go-acme/lego/v4 . `github.com/go-acme/lego/v4/providers/dns/acmedns/internal`/HTTPStorage#Fetch().(t.Contextscip-go gomod github.com/golang/go/src go1.25.0 testing/common#Context().(), "example.com")
35 requirescip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/require`/.NoErrorscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/require`/NoError().(t, err)
36
37 expected := goacmednsscip-go gomod github.com/nrdcg/goacmedns v0.2.0 `github.com/nrdcg/goacmedns`/.Accountscip-go gomod github.com/nrdcg/goacmedns v0.2.0 `github.com/nrdcg/goacmedns`/Account#{
38 FullDomainscip-go gomod github.com/nrdcg/goacmedns v0.2.0 `github.com/nrdcg/goacmedns`/Account#FullDomain.: "foo.example.com",
39 SubDomainscip-go gomod github.com/nrdcg/goacmedns v0.2.0 `github.com/nrdcg/goacmedns`/Account#SubDomain.: "foo",
40 Usernamescip-go gomod github.com/nrdcg/goacmedns v0.2.0 `github.com/nrdcg/goacmedns`/Account#Username.: "user",
41 Passwordscip-go gomod github.com/nrdcg/goacmedns v0.2.0 `github.com/nrdcg/goacmedns`/Account#Password.: "secret",
42 ServerURLscip-go gomod github.com/nrdcg/goacmedns v0.2.0 `github.com/nrdcg/goacmedns`/Account#ServerURL.: "https://example.com",
43 }
44
45 assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/Equal().(t, expected, account)
46 }
47
48 func TestHTTPStorage_Fetch_errorscip-go gomod github.com/go-acme/lego/v4 . `github.com/go-acme/lego/v4/providers/dns/acmedns/internal`/TestHTTPStorage_Fetch_error().(t *testingscip-go gomod github.com/golang/go/src go1.25.0 testing/.Tscip-go gomod github.com/golang/go/src go1.25.0 testing/T#) {
49 storage := mockBuilderscip-go gomod github.com/go-acme/lego/v4 . `github.com/go-acme/lego/v4/providers/dns/acmedns/internal`/mockBuilder().().
50 Routescip-go gomod github.com/go-acme/lego/v4 . `github.com/go-acme/lego/v4/platform/tester/servermock`/Builder#Route().("GET /example.com",
51 servermockscip-go gomod github.com/go-acme/lego/v4 . `github.com/go-acme/lego/v4/platform/tester/servermock`/.ResponseFromFixturescip-go gomod github.com/go-acme/lego/v4 . `github.com/go-acme/lego/v4/platform/tester/servermock`/ResponseFromFixture().("error.json").
52 WithStatusCodescip-go gomod github.com/go-acme/lego/v4 . `github.com/go-acme/lego/v4/platform/tester/servermock`/ResponseFromFileHandler#WithStatusCode().(httpscip-go gomod github.com/golang/go/src go1.25.0 `net/http`/.StatusInternalServerErrorscip-go gomod github.com/golang/go/src go1.25.0 `net/http`/StatusInternalServerError.)).
53 Buildscip-go gomod github.com/go-acme/lego/v4 . `github.com/go-acme/lego/v4/platform/tester/servermock`/Builder#Build().(t)
54
55 _, err := storage.Fetchscip-go gomod github.com/go-acme/lego/v4 . `github.com/go-acme/lego/v4/providers/dns/acmedns/internal`/HTTPStorage#Fetch().(t.Contextscip-go gomod github.com/golang/go/src go1.25.0 testing/common#Context().(), "example.com")
56 requirescip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/require`/.Errorscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/require`/Error().(t, err)
57 }
58
59 func TestHTTPStorage_FetchAllscip-go gomod github.com/go-acme/lego/v4 . `github.com/go-acme/lego/v4/providers/dns/acmedns/internal`/TestHTTPStorage_FetchAll().(t *testingscip-go gomod github.com/golang/go/src go1.25.0 testing/.Tscip-go gomod github.com/golang/go/src go1.25.0 testing/T#) {
60 storage := mockBuilderscip-go gomod github.com/go-acme/lego/v4 . `github.com/go-acme/lego/v4/providers/dns/acmedns/internal`/mockBuilder().().
61 Routescip-go gomod github.com/go-acme/lego/v4 . `github.com/go-acme/lego/v4/platform/tester/servermock`/Builder#Route().("GET /", servermockscip-go gomod github.com/go-acme/lego/v4 . `github.com/go-acme/lego/v4/platform/tester/servermock`/.ResponseFromFixturescip-go gomod github.com/go-acme/lego/v4 . `github.com/go-acme/lego/v4/platform/tester/servermock`/ResponseFromFixture().("fetch_all.json")).
62 Buildscip-go gomod github.com/go-acme/lego/v4 . `github.com/go-acme/lego/v4/platform/tester/servermock`/Builder#Build().(t)
63
64 account, err := storage.FetchAllscip-go gomod github.com/go-acme/lego/v4 . `github.com/go-acme/lego/v4/providers/dns/acmedns/internal`/HTTPStorage#FetchAll().(t.Contextscip-go gomod github.com/golang/go/src go1.25.0 testing/common#Context().())
65 requirescip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/require`/.NoErrorscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/require`/NoError().(t, err)
66
67 expected := map[string]goacmednsscip-go gomod github.com/nrdcg/goacmedns v0.2.0 `github.com/nrdcg/goacmedns`/.Accountscip-go gomod github.com/nrdcg/goacmedns v0.2.0 `github.com/nrdcg/goacmedns`/Account#{
68 "a": {
69 FullDomainscip-go gomod github.com/nrdcg/goacmedns v0.2.0 `github.com/nrdcg/goacmedns`/Account#FullDomain.: "foo.example.com",
70 SubDomainscip-go gomod github.com/nrdcg/goacmedns v0.2.0 `github.com/nrdcg/goacmedns`/Account#SubDomain.: "foo",
71 Usernamescip-go gomod github.com/nrdcg/goacmedns v0.2.0 `github.com/nrdcg/goacmedns`/Account#Username.: "user",
72 Passwordscip-go gomod github.com/nrdcg/goacmedns v0.2.0 `github.com/nrdcg/goacmedns`/Account#Password.: "secret",
73 ServerURLscip-go gomod github.com/nrdcg/goacmedns v0.2.0 `github.com/nrdcg/goacmedns`/Account#ServerURL.: "https://example.com",
74 },
75 "b": {
76 FullDomainscip-go gomod github.com/nrdcg/goacmedns v0.2.0 `github.com/nrdcg/goacmedns`/Account#FullDomain.: "bar.example.com",
77 SubDomainscip-go gomod github.com/nrdcg/goacmedns v0.2.0 `github.com/nrdcg/goacmedns`/Account#SubDomain.: "bar",
78 Usernamescip-go gomod github.com/nrdcg/goacmedns v0.2.0 `github.com/nrdcg/goacmedns`/Account#Username.: "user",
79 Passwordscip-go gomod github.com/nrdcg/goacmedns v0.2.0 `github.com/nrdcg/goacmedns`/Account#Password.: "secret",
80 ServerURLscip-go gomod github.com/nrdcg/goacmedns v0.2.0 `github.com/nrdcg/goacmedns`/Account#ServerURL.: "https://example.com",
81 },
82 }
83
84 assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/Equal().(t, expected, account)
85 }
86
87 func TestHTTPStorage_FetchAll_errorscip-go gomod github.com/go-acme/lego/v4 . `github.com/go-acme/lego/v4/providers/dns/acmedns/internal`/TestHTTPStorage_FetchAll_error().(t *testingscip-go gomod github.com/golang/go/src go1.25.0 testing/.Tscip-go gomod github.com/golang/go/src go1.25.0 testing/T#) {
88 storage := mockBuilderscip-go gomod github.com/go-acme/lego/v4 . `github.com/go-acme/lego/v4/providers/dns/acmedns/internal`/mockBuilder().().
89 Routescip-go gomod github.com/go-acme/lego/v4 . `github.com/go-acme/lego/v4/platform/tester/servermock`/Builder#Route().("GET /",
90 servermockscip-go gomod github.com/go-acme/lego/v4 . `github.com/go-acme/lego/v4/platform/tester/servermock`/.ResponseFromFixturescip-go gomod github.com/go-acme/lego/v4 . `github.com/go-acme/lego/v4/platform/tester/servermock`/ResponseFromFixture().("error.json").
91 WithStatusCodescip-go gomod github.com/go-acme/lego/v4 . `github.com/go-acme/lego/v4/platform/tester/servermock`/ResponseFromFileHandler#WithStatusCode().(httpscip-go gomod github.com/golang/go/src go1.25.0 `net/http`/.StatusInternalServerErrorscip-go gomod github.com/golang/go/src go1.25.0 `net/http`/StatusInternalServerError.)).
92 Buildscip-go gomod github.com/go-acme/lego/v4 . `github.com/go-acme/lego/v4/platform/tester/servermock`/Builder#Build().(t)
93
94 _, err := storage.FetchAllscip-go gomod github.com/go-acme/lego/v4 . `github.com/go-acme/lego/v4/providers/dns/acmedns/internal`/HTTPStorage#FetchAll().(t.Contextscip-go gomod github.com/golang/go/src go1.25.0 testing/common#Context().())
95 requirescip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/require`/.Errorscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/require`/Error().(t, err)
96 }
97
98 func TestHTTPStorage_Putscip-go gomod github.com/go-acme/lego/v4 . `github.com/go-acme/lego/v4/providers/dns/acmedns/internal`/TestHTTPStorage_Put().(t *testingscip-go gomod github.com/golang/go/src go1.25.0 testing/.Tscip-go gomod github.com/golang/go/src go1.25.0 testing/T#) {
99 storage := mockBuilderscip-go gomod github.com/go-acme/lego/v4 . `github.com/go-acme/lego/v4/providers/dns/acmedns/internal`/mockBuilder().().
100 Routescip-go gomod github.com/go-acme/lego/v4 . `github.com/go-acme/lego/v4/platform/tester/servermock`/Builder#Route().("POST /example.com", nil,
101 servermockscip-go gomod github.com/go-acme/lego/v4 . `github.com/go-acme/lego/v4/platform/tester/servermock`/.CheckRequestJSONBodyFromFixturescip-go gomod github.com/go-acme/lego/v4 . `github.com/go-acme/lego/v4/platform/tester/servermock`/CheckRequestJSONBodyFromFixture().("fetch-request.json")).
102 Buildscip-go gomod github.com/go-acme/lego/v4 . `github.com/go-acme/lego/v4/platform/tester/servermock`/Builder#Build().(t)
103
104 account := goacmednsscip-go gomod github.com/nrdcg/goacmedns v0.2.0 `github.com/nrdcg/goacmedns`/.Accountscip-go gomod github.com/nrdcg/goacmedns v0.2.0 `github.com/nrdcg/goacmedns`/Account#{
105 FullDomainscip-go gomod github.com/nrdcg/goacmedns v0.2.0 `github.com/nrdcg/goacmedns`/Account#FullDomain.: "foo.example.com",
106 SubDomainscip-go gomod github.com/nrdcg/goacmedns v0.2.0 `github.com/nrdcg/goacmedns`/Account#SubDomain.: "foo",
107 Usernamescip-go gomod github.com/nrdcg/goacmedns v0.2.0 `github.com/nrdcg/goacmedns`/Account#Username.: "user",
108 Passwordscip-go gomod github.com/nrdcg/goacmedns v0.2.0 `github.com/nrdcg/goacmedns`/Account#Password.: "secret",
109 ServerURLscip-go gomod github.com/nrdcg/goacmedns v0.2.0 `github.com/nrdcg/goacmedns`/Account#ServerURL.: "https://example.com",
110 }
111
112 err := storage.Putscip-go gomod github.com/go-acme/lego/v4 . `github.com/go-acme/lego/v4/providers/dns/acmedns/internal`/HTTPStorage#Put().(t.Contextscip-go gomod github.com/golang/go/src go1.25.0 testing/common#Context().(), "example.com", account)
113 requirescip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/require`/.NoErrorscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/require`/NoError().(t, err)
114 }
115
116 func TestHTTPStorage_Put_errorscip-go gomod github.com/go-acme/lego/v4 . `github.com/go-acme/lego/v4/providers/dns/acmedns/internal`/TestHTTPStorage_Put_error().(t *testingscip-go gomod github.com/golang/go/src go1.25.0 testing/.Tscip-go gomod github.com/golang/go/src go1.25.0 testing/T#) {
117 storage := mockBuilderscip-go gomod github.com/go-acme/lego/v4 . `github.com/go-acme/lego/v4/providers/dns/acmedns/internal`/mockBuilder().().
118 Routescip-go gomod github.com/go-acme/lego/v4 . `github.com/go-acme/lego/v4/platform/tester/servermock`/Builder#Route().("POST /example.com",
119 servermockscip-go gomod github.com/go-acme/lego/v4 . `github.com/go-acme/lego/v4/platform/tester/servermock`/.ResponseFromFixturescip-go gomod github.com/go-acme/lego/v4 . `github.com/go-acme/lego/v4/platform/tester/servermock`/ResponseFromFixture().("error.json").
120 WithStatusCodescip-go gomod github.com/go-acme/lego/v4 . `github.com/go-acme/lego/v4/platform/tester/servermock`/ResponseFromFileHandler#WithStatusCode().(httpscip-go gomod github.com/golang/go/src go1.25.0 `net/http`/.StatusInternalServerErrorscip-go gomod github.com/golang/go/src go1.25.0 `net/http`/StatusInternalServerError.)).
121 Buildscip-go gomod github.com/go-acme/lego/v4 . `github.com/go-acme/lego/v4/platform/tester/servermock`/Builder#Build().(t)
122
123 account := goacmednsscip-go gomod github.com/nrdcg/goacmedns v0.2.0 `github.com/nrdcg/goacmedns`/.Accountscip-go gomod github.com/nrdcg/goacmedns v0.2.0 `github.com/nrdcg/goacmedns`/Account#{
124 FullDomainscip-go gomod github.com/nrdcg/goacmedns v0.2.0 `github.com/nrdcg/goacmedns`/Account#FullDomain.: "foo.example.com",
125 SubDomainscip-go gomod github.com/nrdcg/goacmedns v0.2.0 `github.com/nrdcg/goacmedns`/Account#SubDomain.: "foo",
126 Usernamescip-go gomod github.com/nrdcg/goacmedns v0.2.0 `github.com/nrdcg/goacmedns`/Account#Username.: "user",
127 Passwordscip-go gomod github.com/nrdcg/goacmedns v0.2.0 `github.com/nrdcg/goacmedns`/Account#Password.: "secret",
128 ServerURLscip-go gomod github.com/nrdcg/goacmedns v0.2.0 `github.com/nrdcg/goacmedns`/Account#ServerURL.: "https://example.com",
129 }
130
131 err := storage.Putscip-go gomod github.com/go-acme/lego/v4 . `github.com/go-acme/lego/v4/providers/dns/acmedns/internal`/HTTPStorage#Put().(t.Contextscip-go gomod github.com/golang/go/src go1.25.0 testing/common#Context().(), "example.com", account)
132 requirescip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/require`/.Errorscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/require`/Error().(t, err)
133 }
134
135 func TestHTTPStorage_Put_CNAME_createdscip-go gomod github.com/go-acme/lego/v4 . `github.com/go-acme/lego/v4/providers/dns/acmedns/internal`/TestHTTPStorage_Put_CNAME_created().(t *testingscip-go gomod github.com/golang/go/src go1.25.0 testing/.Tscip-go gomod github.com/golang/go/src go1.25.0 testing/T#) {
136 storage := mockBuilderscip-go gomod github.com/go-acme/lego/v4 . `github.com/go-acme/lego/v4/providers/dns/acmedns/internal`/mockBuilder().().
137 Routescip-go gomod github.com/go-acme/lego/v4 . `github.com/go-acme/lego/v4/platform/tester/servermock`/Builder#Route().("POST /example.com",
138 servermockscip-go gomod github.com/go-acme/lego/v4 . `github.com/go-acme/lego/v4/platform/tester/servermock`/.Noopscip-go gomod github.com/go-acme/lego/v4 . `github.com/go-acme/lego/v4/platform/tester/servermock`/Noop().().
139 WithStatusCodescip-go gomod github.com/go-acme/lego/v4 . `github.com/go-acme/lego/v4/platform/tester/servermock`/NoopHandler#WithStatusCode().(httpscip-go gomod github.com/golang/go/src go1.25.0 `net/http`/.StatusCreatedscip-go gomod github.com/golang/go/src go1.25.0 `net/http`/StatusCreated.),
140 servermockscip-go gomod github.com/go-acme/lego/v4 . `github.com/go-acme/lego/v4/platform/tester/servermock`/.CheckRequestJSONBodyFromFixturescip-go gomod github.com/go-acme/lego/v4 . `github.com/go-acme/lego/v4/platform/tester/servermock`/CheckRequestJSONBodyFromFixture().("fetch-request.json")).
141 Buildscip-go gomod github.com/go-acme/lego/v4 . `github.com/go-acme/lego/v4/platform/tester/servermock`/Builder#Build().(t)
142
143 account := goacmednsscip-go gomod github.com/nrdcg/goacmedns v0.2.0 `github.com/nrdcg/goacmedns`/.Accountscip-go gomod github.com/nrdcg/goacmedns v0.2.0 `github.com/nrdcg/goacmedns`/Account#{
144 FullDomainscip-go gomod github.com/nrdcg/goacmedns v0.2.0 `github.com/nrdcg/goacmedns`/Account#FullDomain.: "foo.example.com",
145 SubDomainscip-go gomod github.com/nrdcg/goacmedns v0.2.0 `github.com/nrdcg/goacmedns`/Account#SubDomain.: "foo",
146 Usernamescip-go gomod github.com/nrdcg/goacmedns v0.2.0 `github.com/nrdcg/goacmedns`/Account#Username.: "user",
147 Passwordscip-go gomod github.com/nrdcg/goacmedns v0.2.0 `github.com/nrdcg/goacmedns`/Account#Password.: "secret",
148 ServerURLscip-go gomod github.com/nrdcg/goacmedns v0.2.0 `github.com/nrdcg/goacmedns`/Account#ServerURL.: "https://example.com",
149 }
150
151 err := storage.Putscip-go gomod github.com/go-acme/lego/v4 . `github.com/go-acme/lego/v4/providers/dns/acmedns/internal`/HTTPStorage#Put().(t.Contextscip-go gomod github.com/golang/go/src go1.25.0 testing/common#Context().(), "example.com", account)
152 requirescip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/require`/.ErrorIsscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/require`/ErrorIs().(t, err, ErrCNAMEAlreadyCreatedscip-go gomod github.com/go-acme/lego/v4 . `github.com/go-acme/lego/v4/providers/dns/acmedns/internal`/ErrCNAMEAlreadyCreated.)
153 }