mail: 'my' location is available as mail location

move the reserve domains check to app location validation code
This commit is contained in:
Girish Ramakrishnan
2023-08-01 19:33:59 +05:30
parent 7d929aca54
commit ee836e6646
4 changed files with 28 additions and 14 deletions

View File

@@ -18,10 +18,6 @@ describe('DNS', function () {
after(cleanup);
describe('validateHostname', function () {
it('does not allow admin subdomain', function () {
expect(dns.validateHostname('my', domain)).to.be.an(Error);
});
it('cannot have >63 length subdomains', function () {
const s = Array(64).fill('s').join('');
expect(dns.validateHostname(s, domain)).to.be.an(Error);