mirror of
https://github.com/tiennm99/is-a-dev.git
synced 2026-10-18 10:14:59 +00:00
feat: acme challenge support
This commit is contained in:
1 parent
8201e4fc07
commit
188715a162
2 files changed
+3
No files matched your search
@@ -65,6 +65,7 @@ describe('validateDomainData', () => {
|
|||||||
{ ...defaultDomain, record: { A: '::1' } },
|
{ ...defaultDomain, record: { A: '::1' } },
|
||||||
{ ...defaultDomain, name: '_discord' },
|
{ ...defaultDomain, name: '_discord' },
|
||||||
{ ...defaultDomain, name: '_gitlab-pages-verification-code' },
|
{ ...defaultDomain, name: '_gitlab-pages-verification-code' },
|
||||||
|
{ ...defaultDomain, name: '_acme-challenge' },
|
||||||
];
|
];
|
||||||
|
|
||||||
const validCases = [
|
const validCases = [
|
||||||
@@ -96,6 +97,7 @@ describe('validateDomainData', () => {
|
|||||||
{ ...defaultDomain, record: { A: ['122.222.222.222'] } },
|
{ ...defaultDomain, record: { A: ['122.222.222.222'] } },
|
||||||
{ ...defaultDomain, name: '_discord.subdomain' },
|
{ ...defaultDomain, name: '_discord.subdomain' },
|
||||||
{ ...defaultDomain, name: '_gitlab-pages-verification-code.subdomain' },
|
{ ...defaultDomain, name: '_gitlab-pages-verification-code.subdomain' },
|
||||||
|
{ ...defaultDomain, name: '_acme-challenge.subdomain' },
|
||||||
];
|
];
|
||||||
|
|
||||||
it('should return false for invalid data', () => {
|
it('should return false for invalid data', () => {
|
||||||
|
|||||||
@@ -40,6 +40,7 @@ const extraSupportedNames = [
|
|||||||
testRegex(/^_github(-pages)?-challenge-[a-z0-9-_]+$/i), // Exception for github verification records
|
testRegex(/^_github(-pages)?-challenge-[a-z0-9-_]+$/i), // Exception for github verification records
|
||||||
R.equals('_discord'),
|
R.equals('_discord'),
|
||||||
R.equals('_gitlab-pages-verification-code'),
|
R.equals('_gitlab-pages-verification-code'),
|
||||||
|
R.equals('_acme-challenge'),
|
||||||
]
|
]
|
||||||
|
|
||||||
const validateDomainData = validate({
|
const validateDomainData = validate({
|
||||||
|
|||||||
Reference in new issue
Block a user