merge maildb.js into mail.js
This commit is contained in:
@@ -34,8 +34,8 @@ exports = module.exports = {
|
||||
},
|
||||
|
||||
MOCK_API_SERVER_ORIGIN: 'http://localhost:6060',
|
||||
DASHBOARD_DOMAIN: 'test.example.com',
|
||||
DASHBOARD_FQDN: 'my.test.example.com',
|
||||
dashboardDomain: 'test.example.com',
|
||||
dashboardFqdn: 'my.test.example.com',
|
||||
|
||||
serverUrl: `http://localhost:${constants.PORT}`,
|
||||
};
|
||||
@@ -48,7 +48,17 @@ function setup(done) {
|
||||
database._clear.bind(null),
|
||||
|
||||
settings._setApiServerOrigin.bind(null, exports.MOCK_API_SERVER_ORIGIN),
|
||||
settings.setDashboardLocation.bind(null, exports.DASHBOARD_DOMAIN, exports.DASHBOARD_FQDN),
|
||||
|
||||
function setup(callback) {
|
||||
superagent.post(`${serverUrl}/api/v1/cloudron/setup`)
|
||||
.send({ dnsConfig: { provider: 'noop', domain: exports.dashboardDomain, config: {}, tlsConfig: { provider: 'fallback' } } })
|
||||
.end(function (error, result) {
|
||||
expect(result).to.be.ok();
|
||||
expect(result.statusCode).to.eql(200);
|
||||
|
||||
setTimeout(callback, 2000);
|
||||
});
|
||||
},
|
||||
|
||||
function createAdmin(callback) {
|
||||
superagent.post(`${serverUrl}/api/v1/cloudron/activate`)
|
||||
|
||||
Reference in New Issue
Block a user