adds psl validation TXT record

This commit is contained in:
Akshay Nair
2021-05-20 21:34:08 +05:30
parent e6b353eb60
commit d7a4700f96
4 changed files with 15 additions and 2 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ let
nodejs-15_x
yarn
docker-compose
#dnsutils
dnsutils
#certbot
];
in
+11
View File
@@ -0,0 +1,11 @@
{
"description": "PSL validation record for is-a.dev",
"repo": "https://github.com/is-a-dev/is-a-dev.github.io",
"owner": {
"username": "phenax",
"email": "phenax5@gmail.com"
},
"record": {
"TXT": "https://github.com/publicsuffix/list/pull/1327"
}
}
+2 -1
View File
@@ -3,7 +3,8 @@ const { VALID_RECORD_TYPES, TTL, ENV } = require('../utils/constants');
const { domainService: dc } = require('../utils/domain-service');
const { getDomains: gd } = require('../utils/get-domain');
const getRecords = R.compose(R.toPairs, R.pick(VALID_RECORD_TYPES));
// Allow TXT records while publishing (for pcl validation)
const getRecords = R.compose(R.toPairs, R.pick(VALID_RECORD_TYPES.concat(['TXT'])));
const toHostList = R.chain(data => {
const rs = getRecords(data.record);
+1
View File
@@ -12,6 +12,7 @@ describe('Domains', () => {
it('should be valid', (done) => {
getDomains()
.then(R.reject(R.propEq('name', '_psl')))
.then(R.map(data => {
const { errors } = validateDomainData(data);
if (errors.length) {