Add rolesJson to groups table

This will contain the roles ('role definition') of a group of
users. We will internally map these to our API scopes.
This commit is contained in:
Girish Ramakrishnan
2018-06-14 21:12:52 -07:00
parent 5e09f3dcb2
commit a77d45f5de
15 changed files with 135 additions and 36 deletions

View File

@@ -58,7 +58,7 @@ function cleanupUsers(done) {
}
function createOwner(done) {
groups.create('admin', function () { // ignore error since it might already exist
groups.addOwnerGroup(function () { // ignore error since it might already exist
users.createOwner(USERNAME, PASSWORD, EMAIL, DISPLAY_NAME, AUDIT_SOURCE, function (error, result) {
expect(error).to.not.be.ok();
expect(result).to.be.ok();
@@ -647,7 +647,7 @@ describe('User', function () {
createOwner(function (error) {
expect(error).to.not.be.ok();
groups.create(NON_ADMIN_GROUP, function (error, result) {
groups.create(NON_ADMIN_GROUP, [ /* roles */ ], function (error, result) {
expect(error).to.be(null);
groupObject = result;