Add API to add and update the group roles

This commit is contained in:
Girish Ramakrishnan
2018-06-14 22:42:40 -07:00
parent a77d45f5de
commit 02d5d2f808
8 changed files with 134 additions and 4 deletions

View File

@@ -1566,6 +1566,17 @@ 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 () {