Skip to content

Commit 2c2bfe6

Browse files
committed
Test for acl-check#15 problem on server too
1 parent 8af45d3 commit 2c2bfe6

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

test/integration/acl-oidc-test.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,16 @@ describe('ACL with WebID+OIDC over HTTP', function () {
290290
done()
291291
})
292292
})
293+
it('user2 should be able to access public test directory with wrong origin', function (done) {
294+
var options = createOptions('/origin/test-folder/', 'user2')
295+
options.headers.origin = origin2
296+
297+
request.head(options, function (error, response, body) {
298+
assert.equal(error, null)
299+
assert.equal(response.statusCode, 200)
300+
done()
301+
})
302+
})
293303
it('user1 should be able to access to test directory when origin is valid',
294304
function (done) {
295305
var options = createOptions('/origin/test-folder/', 'user1')

0 commit comments

Comments
 (0)