Fix route/ tests

This commit is contained in:
Girish Ramakrishnan
2017-11-27 15:30:55 -08:00
parent 437312811d
commit 68c26c1d12
20 changed files with 91 additions and 130 deletions

View File

@@ -30,7 +30,8 @@ var SERVER_URL = 'http://localhost:' + config.get('port');
var USERNAME = 'superadmin', PASSWORD = 'Foobar?1337', EMAIL ='silly@me.com';
function setup(done) {
// we test caas here
config._reset();
config.setFqdn('example-sysadmin-test.com');
config.set('provider', 'caas');
config.setVersion('1.2.3');
@@ -58,7 +59,7 @@ function setup(done) {
function addApp(callback) {
var manifest = { version: '0.0.1', manifestVersion: 1, dockerImage: 'foo', healthCheckPath: '/', httpPort: 3, title: 'ok', addons: { } };
appdb.add('appid', 'appStoreId', manifest, 'location', 'example.com', [ ] /* portBindings */, { }, callback);
appdb.add('appid', 'appStoreId', manifest, 'location', config.fqdn(), [ ] /* portBindings */, { }, callback);
},
function createSettings(callback) {