From 3ce623ab28561f2250b8a568a6d19867cf6dc573 Mon Sep 17 00:00:00 2001 From: William Harrison <87287585+wdhdev@users.noreply.github.com> Date: Tue, 26 Nov 2024 18:05:00 +0800 Subject: [PATCH] feat(ci): allow proxied CNAMEs with other records --- tests/records.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/records.test.js b/tests/records.test.js index 90011493e..2970b629e 100644 --- a/tests/records.test.js +++ b/tests/records.test.js @@ -95,8 +95,8 @@ t("All files should have valid record types", (t) => { t.true(validRecordTypes.includes(key), `${file}: Invalid record type: ${key}`); }); - // CNAME records cannot be combined with any other record type - if (recordKeys.includes("CNAME")) { + // CNAME records cannot be combined with any other record type unless it is proxied + if (recordKeys.includes("CNAME") && !data.proxied) { t.is(recordKeys.length, Number(1), `${file}: CNAME records cannot be combined with other records`); }