Log, add query for nock

This commit is contained in:
Fang-Pen Lin
2025-11-21 19:05:39 -08:00
parent 435ef4c5dc
commit f2cc6588c3
2 changed files with 4 additions and 3 deletions

View File

@@ -319,6 +319,7 @@ Feature: External CA
"scope": "https://api.dnsmadeeasy.com:443",
"method": "GET",
"path": "/V2.0/dns/managed/MOCK_ZONE_ID/records",
"query": {"type": "TXT", "recordName": "_acme-challenge"},
"status": 200,
"response": {
"totalRecords": 1,

View File

@@ -19,7 +19,7 @@ export const dnsMadeEasyInsertTxtRecord = async (
credentials: { apiKey, secretKey }
} = connection;
logger.info({ hostedZoneId, domain }, "Inserting TXT record for DNS Made Easy");
logger.info({ hostedZoneId, domain, value }, "Inserting TXT record for DNS Made Easy");
try {
await request.post(
getDNSMadeEasyUrl(`/V2.0/dns/managed/${encodeURIComponent(hostedZoneId)}/records`),
@@ -66,7 +66,7 @@ export const dnsMadeEasyDeleteTxtRecord = async (
credentials: { apiKey, secretKey }
} = connection;
logger.info({ zoneId: hostedZoneId, domain }, "Deleting TXT record for DNS Made Easy");
logger.info({ hostedZoneId, domain, value }, "Deleting TXT record for DNS Made Easy");
try {
const dnsRecords = await listDNSMadeEasyRecords(connection, { zoneId: hostedZoneId, type: "TXT", name: domain });
@@ -90,7 +90,7 @@ export const dnsMadeEasyDeleteTxtRecord = async (
}
}
if (!foundRecord) {
logger.warn({ zoneId: hostedZoneId, domain, value }, "Record to delete not found");
logger.warn({ hostedZoneId, domain, value }, "Record to delete not found");
}
} catch (error) {
if (axios.isAxiosError(error)) {