Fixing sysadmin, settings and clients tests

This commit is contained in:
Johannes Zellner
2017-11-20 19:59:23 +01:00
parent a08ff89b78
commit 9c0af8b13e
3 changed files with 21 additions and 67 deletions
+4 -2
View File
@@ -1,6 +1,5 @@
'use strict';
/* jslint node:true */
/* global it:false */
/* global describe:false */
/* global before:false */
@@ -22,7 +21,7 @@ var async = require('async'),
var SERVER_URL = 'http://localhost:' + config.get('port');
var USERNAME = 'superadmin', PASSWORD = 'Foobar?1337', EMAIL ='silly@me.com';
var token = null; // authentication token
var token = null;
function cleanup(done) {
database._clear(function (error) {
@@ -35,6 +34,9 @@ function cleanup(done) {
describe('OAuth Clients API', function () {
describe('add', function () {
before(function (done) {
// we test caas here
config.set('provider', 'caas');
async.series([
server.start.bind(null),
database._clear.bind(null),