diff --git a/src/constants.js b/src/constants.js index b7a1864c8..ddc13e069 100644 --- a/src/constants.js +++ b/src/constants.js @@ -1,7 +1,6 @@ 'use strict'; exports = module.exports = { - API_LOCATION: 'api', // this is unused but reserved for future use (#403) SMTP_LOCATION: 'smtp', IMAP_LOCATION: 'imap', diff --git a/src/domains.js b/src/domains.js index 19d9a0855..d12bec05d 100644 --- a/src/domains.js +++ b/src/domains.js @@ -145,7 +145,6 @@ function validateHostname(location, domainObject) { const hostname = fqdn(location, domainObject); const RESERVED_LOCATIONS = [ - constants.API_LOCATION, constants.SMTP_LOCATION, constants.IMAP_LOCATION ]; diff --git a/src/routes/test/apps-test.js b/src/routes/test/apps-test.js index d5160b5da..ab7e477f1 100644 --- a/src/routes/test/apps-test.js +++ b/src/routes/test/apps-test.js @@ -381,13 +381,13 @@ describe('App API', function () { }); }); - it('app install fails - reserved api location', function (done) { + it('app install fails - reserved smtp location', function (done) { superagent.post(SERVER_URL + '/api/v1/apps/install') .query({ access_token: token }) - .send({ manifest: APP_MANIFEST, location: constants.API_LOCATION, accessRestriction: null, domain: DOMAIN_0.domain }) + .send({ manifest: APP_MANIFEST, location: constants.SMTP_LOCATION, accessRestriction: null, domain: DOMAIN_0.domain }) .end(function (err, res) { expect(res.statusCode).to.equal(400); - expect(res.body.message).to.contain(constants.API_LOCATION + ' is reserved'); + expect(res.body.message).to.contain(constants.SMTP_LOCATION + ' is reserved'); done(); }); });