mirror of
https://github.com/go-acme/lego
synced 2026-03-14 14:35:48 +01:00
tests: fix
This commit is contained in:
parent
d3cb1f33dd
commit
35744b56e3
3 changed files with 3 additions and 3 deletions
|
|
@ -136,7 +136,7 @@ func (d *DNSProvider) Present(domain, token, keyAuth string) error {
|
|||
for z := range dns01.DomainsSeq(info.EffectiveFQDN) {
|
||||
_, errG := d.client.GetDNSSettings(ctx, z, "")
|
||||
if errG != nil {
|
||||
log.Infof("allinkl: get DNS settings zone[%s] %v", z, errG)
|
||||
log.Infof("allinkl: get DNS settings zone[%q] %v", z, errG)
|
||||
continue
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -224,7 +224,7 @@ func TestDNSProvider_Present(t *testing.T) {
|
|||
case "get_dns_settings":
|
||||
params := kReq.RequestParams.(map[string]any)
|
||||
|
||||
if params["zone_host"] == "_acme-challenge.example.com" {
|
||||
if params["zone_host"] == "_acme-challenge.example.com." {
|
||||
servermock.ResponseFromInternal("get_dns_settings_not_found.xml").ServeHTTP(rw, req)
|
||||
} else {
|
||||
servermock.ResponseFromInternal("get_dns_settings.xml").ServeHTTP(rw, req)
|
||||
|
|
|
|||
|
|
@ -129,7 +129,7 @@ func (c *Client) newRequest(ctx context.Context, action string, requestParams an
|
|||
return req, nil
|
||||
}
|
||||
|
||||
func (c *Client) doRequest(ctx context.Context, action string, requestParams any, result any) error {
|
||||
func (c *Client) doRequest(ctx context.Context, action string, requestParams, result any) error {
|
||||
return wait.Retry(ctx,
|
||||
func() error {
|
||||
req, err := c.newRequest(ctx, action, requestParams)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue