diff --git a/domains/7amada.json b/domains/7amada.json new file mode 100644 index 0000000000..4b5d3846e2 --- /dev/null +++ b/domains/7amada.json @@ -0,0 +1,9 @@ +{ + "owner": { + "username": "00xHoudini", + "email": "youssefhamada16@gmail.com" + }, + "records": { + "CNAME": "protfolio-zeta-sage-35.vercel.app" + } +} diff --git a/domains/_github-pages-challenge-gemaaaaaa.cyrillus.json b/domains/_github-pages-challenge-gemaaaaaa.cyrillus.json new file mode 100644 index 0000000000..2fba02df39 --- /dev/null +++ b/domains/_github-pages-challenge-gemaaaaaa.cyrillus.json @@ -0,0 +1,9 @@ +{ + "owner": { + "username": "gemaaaaaa", + "email": "9k6hju079@mozmail.com" + }, + "records": { + "TXT": "6d3bb6d11a1965dacc974aaefe54e5" + } +} diff --git a/domains/_vercel.7amada.json b/domains/_vercel.7amada.json new file mode 100644 index 0000000000..df91f17f62 --- /dev/null +++ b/domains/_vercel.7amada.json @@ -0,0 +1,9 @@ +{ + "owner": { + "username": "00xHoudini", + "email": "youssefhamada16@gmail.com" + }, + "records": { + "TXT": "vc-domain-verify=7amada.is-a.dev,855d5956080866713d48" + } +} diff --git a/domains/_vercel.ahmadhassan.json b/domains/_vercel.ahmadhassan.json deleted file mode 100644 index 95c423b5e3..0000000000 --- a/domains/_vercel.ahmadhassan.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "owner": { - "username": "ahmad9059", - "email": "ahmadhassan9059@gmail.com" - }, - "records": { - "TXT": "vc-domain-verify-ahmadhassan.is-a.dev,a4d39f00ccf974cccd0e" - } -} diff --git a/domains/_vercel.bharathav.json b/domains/_vercel.bharathav.json deleted file mode 100644 index 46a827d844..0000000000 --- a/domains/_vercel.bharathav.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "owner": { - "username": "AVBharath10", - "email": "avbharath1221@gmail.com" - }, - "records": { - "TXT": [ - "vc-domain-verify-bharathav.is-a.dev,4d40c2ac67021482e173" - ] - } -} diff --git a/domains/_vercel.kelvinoj.json b/domains/_vercel.kelvinoj.json deleted file mode 100644 index 30e092e214..0000000000 --- a/domains/_vercel.kelvinoj.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "owner": { - "username": "kelvinojedaepn", - "email": "kelvin.ojeda.071@outlook.com" - }, - "records": { - "TXT": [ - "vc-domain-verify:kelvinoj.is-a.dev,19bf00c0f781d8ea2a9d" - ] - } -} diff --git a/domains/_vercel.mdwisu.json b/domains/_vercel.mdwisu.json deleted file mode 100644 index 388b219c91..0000000000 --- a/domains/_vercel.mdwisu.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "owner": { - "username": "mdwisu", - "email": "dwisusanto784@gmail.com" - }, - "records": { - "TXT": "_vercel=vc-domain-verify=mdwisu.is-a.dev,bf198376796ed111ef61" - } -} diff --git a/domains/cyrillus.json b/domains/cyrillus.json new file mode 100644 index 0000000000..02865b6a17 --- /dev/null +++ b/domains/cyrillus.json @@ -0,0 +1,9 @@ +{ + "owner": { + "username": "gemaaaaaa", + "email": "9k6hju079@mozmail.com" + }, + "records": { + "CNAME": "gemaaaaaa.github.io" + } +} diff --git a/domains/fahadnaeem.json b/domains/fahadnaeem.json index acfaac3f85..76a25c941c 100644 --- a/domains/fahadnaeem.json +++ b/domains/fahadnaeem.json @@ -4,16 +4,6 @@ "email": "fahadnaeem424@gmail.com" }, "records": { - "A": [ - "129.213.59.48" - ], - "MX": [ - "mx1.improvmx.com", - "mx2.improvmx.com" - ], - "TXT": [ - "v=spf1 include:spf.improvmx.com ~all", - "google-site-verification=EeCD2oH1nUCH_y3ZI-1qiGVn0xsPMzNSvcuzZNTCboI" - ] + "NS": ["cora.ns.cloudflare.com", "memphis.ns.cloudflare.com"] } } diff --git a/domains/nomuraya.json b/domains/nomuraya.json new file mode 100644 index 0000000000..e1ec1302f5 --- /dev/null +++ b/domains/nomuraya.json @@ -0,0 +1,9 @@ +{ + "owner": { + "username": "shimajima-eiji", + "email": "nomuraya.contact@gmail.com" + }, + "records": { + "CNAME": "nomuraya-games.pages.dev" + } +} diff --git a/tests/records.test.js b/tests/records.test.js index c668f1dc30..113f1c505d 100644 --- a/tests/records.test.js +++ b/tests/records.test.js @@ -296,15 +296,23 @@ function validateRecordValues(t, data, file) { t("All files should have valid records", (t) => { files.forEach((file) => { + const data = getDomainData(file); + const recordKeys = Object.keys(data.records); + if (file.startsWith("_vercel")) { t.true( /^_vercel\.[^.]+\.json$/.test(file), `${file}: Files starting with '_vercel' must have format '_vercel..json'` ); - } - const data = getDomainData(file); - const recordKeys = Object.keys(data.records); + const txtRecords = data.records.TXT; + const txtList = Array.isArray(txtRecords) ? txtRecords : [txtRecords]; + + t.true( + txtList.length > 0 && txtList.every((record) => typeof record === "string" && record.startsWith("vc-domain-verify=")), + `${file}: Vercel verification files must contain at least one TXT record and all TXT records must start with 'vc-domain-verify='` + ); + } recordKeys.forEach((key) => { t.true(validateRecordType(key), `${file}: Invalid record type: ${key}`);