tests: fix

This commit is contained in:
Fernandez Ludovic 2026-01-20 17:16:14 +01:00
commit 35744b56e3
3 changed files with 3 additions and 3 deletions

View file

@ -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
}

View file

@ -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)

View file

@ -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)