Fixup the unit tests for accessRestriction format change

This commit is contained in:
Johannes Zellner
2015-10-16 15:35:14 +02:00
parent 373db25077
commit b5cfdcf875
9 changed files with 61 additions and 62 deletions

View File

@@ -154,7 +154,7 @@ describe('OAuth2', function () {
manifest: { version: '0.1.0' },
location: 'test',
portBindings: {},
accessRestriction: '',
accessRestriction: null,
oauthProxy: true
};
@@ -164,7 +164,7 @@ describe('OAuth2', function () {
manifest: { version: '0.1.0' },
location: 'test1',
portBindings: {},
accessRestriction: 'user-foobar',
accessRestriction: { users: [ 'foobar' ] },
oauthProxy: true
};
@@ -174,7 +174,7 @@ describe('OAuth2', function () {
manifest: { version: '0.1.0' },
location: 'test2',
portBindings: {},
accessRestriction: 'user-' + USER_0.id,
accessRestriction: { users: [ USER_0.id ] },
oauthProxy: true
};
@@ -296,7 +296,7 @@ describe('OAuth2', function () {
// update the global objects to reflect the new user id
USER_0.id = userObject.id;
APP_2.accessRestriction = 'user-foobar,user-' + userObject.id;
APP_2.accessRestriction = { users: [ 'foobar', userObject.id ] };
appdb.update(APP_2.id, APP_2, callback);
});