Revert role support

This commit is contained in:
Girish Ramakrishnan
2018-07-26 10:20:19 -07:00
parent 477abf53f3
commit b4d5def56d
16 changed files with 46 additions and 275 deletions

View File

@@ -1465,7 +1465,7 @@ describe('database', function () {
async.series([
database.initialize,
database._clear,
groupdb.add.bind(null, constants.ADMIN_GROUP_ID, constants.ADMIN_GROUP_NAME, [ /* roles */]),
groupdb.add.bind(null, constants.ADMIN_GROUP_ID, constants.ADMIN_GROUP_NAME),
userdb.add.bind(null, USER_0.id, USER_0),
userdb.add.bind(null, USER_1.id, USER_1),
userdb.add.bind(null, USER_2.id, USER_2)
@@ -1475,7 +1475,7 @@ describe('database', function () {
var GROUP_ID_1 = 'foundersid';
it('can create a group', function (done) {
groupdb.add(GROUP_ID_1, 'founders', [ /* roles */ ], function (error) {
groupdb.add(GROUP_ID_1, 'founders', function (error) {
expect(error).to.be(null);
done();
});
@@ -1579,17 +1579,6 @@ describe('database', function () {
done();
});
});
it('can update roles of the group', function (done) {
groupdb.update(GROUP_ID_1, { roles: [ 'manage_app' ] }, function (error) {
expect(error).to.be(null);
groupdb.get(GROUP_ID_1, function (error, result) {
expect(result.roles).to.eql([ 'manage_app' ]);
done();
});
});
});
});
describe('importFromFile', function () {