From 92106a2a52396f1c7fd7d4cf2aeea7e81dcc8af5 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Thu, 13 Oct 2016 15:08:52 -0700 Subject: [PATCH] Fix failing simple auth test --- src/routes/test/simpleauth-test.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/routes/test/simpleauth-test.js b/src/routes/test/simpleauth-test.js index e1349a2bb..e047cd604 100644 --- a/src/routes/test/simpleauth-test.js +++ b/src/routes/test/simpleauth-test.js @@ -1,4 +1,3 @@ -/* jslint node:true */ /* global it:false */ /* global describe:false */ /* global before:false */ @@ -16,7 +15,9 @@ var appdb = require('../../appdb.js'), superagent = require('superagent'), server = require('../../server.js'), simpleauth = require('../../simpleauth.js'), - nock = require('nock'); + nock = require('nock'), + settings = require('../../settings.js'), + settingsdb = require('../../settingsdb.js'); describe('SimpleAuth API', function () { var SERVER_URL = 'http://localhost:' + config.get('port'); @@ -163,7 +164,8 @@ describe('SimpleAuth API', function () { appdb.add.bind(null, APP_0.id, APP_0.appStoreId, APP_0.manifest, APP_0.location, APP_0.portBindings, APP_0), appdb.add.bind(null, APP_1.id, APP_1.appStoreId, APP_1.manifest, APP_1.location, APP_1.portBindings, APP_1), appdb.add.bind(null, APP_2.id, APP_2.appStoreId, APP_2.manifest, APP_2.location, APP_2.portBindings, APP_2), - appdb.add.bind(null, APP_3.id, APP_3.appStoreId, APP_3.manifest, APP_3.location, APP_3.portBindings, APP_3) + appdb.add.bind(null, APP_3.id, APP_3.appStoreId, APP_3.manifest, APP_3.location, APP_3.portBindings, APP_3), + settingsdb.set.bind(null, settings.BACKUP_CONFIG_KEY, JSON.stringify({ provider: 'caas', token: 'BACKUP_TOKEN', bucket: 'Bucket', prefix: 'Prefix' })) ], done); });