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
+3 -3
View File
@@ -29,7 +29,7 @@ describe('SimpleAuth API', function () {
manifest: { version: '0.1.0' },
location: 'test0',
portBindings: {},
accessRestriction: 'user-foobar,user-someone',
accessRestriction: { users: [ 'foobar', 'someone'] },
oauthProxy: true
};
@@ -39,7 +39,7 @@ describe('SimpleAuth API', function () {
manifest: { version: '0.1.0' },
location: 'test1',
portBindings: {},
accessRestriction: 'user-foobar,user-' + USERNAME + ',user-someone',
accessRestriction: { users: [ 'foobar', USERNAME, 'someone' ] },
oauthProxy: true
};
@@ -49,7 +49,7 @@ describe('SimpleAuth API', function () {
manifest: { version: '0.1.0' },
location: 'test2',
portBindings: {},
accessRestriction: '',
accessRestriction: null,
oauthProxy: true
};