remove reserved 'api' location

this is unused and we have no plans to use it.
This commit is contained in:
Girish Ramakrishnan
2019-06-09 18:16:14 -07:00
parent b26167481e
commit 88fa4cf188
3 changed files with 3 additions and 5 deletions

View File

@@ -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();
});
});