Skip to content

Commit cc7865f

Browse files
melvincarvalhoEric Prud'hommeaux
authored andcommitted
Fix origin tests in line with new solid-permissions
1 parent b423406 commit cc7865f

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

test/integration/acl-oidc-test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -294,14 +294,14 @@ describe('ACL HTTP', function () {
294294
done()
295295
})
296296
})
297-
it('user1 should be denied access to test directory when origin is invalid',
297+
it('user1 should be able to access test directory when origin is invalid',
298298
function (done) {
299299
var options = createOptions('/origin/test-folder/', 'user1')
300300
options.headers.origin = origin2
301301

302302
request.head(options, function (error, response, body) {
303303
assert.equal(error, null)
304-
assert.equal(response.statusCode, 403)
304+
assert.equal(response.statusCode, 200)
305305
done()
306306
})
307307
})
@@ -326,14 +326,14 @@ describe('ACL HTTP', function () {
326326
done()
327327
})
328328
})
329-
it('agent should be denied access to test directory when origin is invalid',
329+
it('agent should able to access test directory when origin is invalid',
330330
function (done) {
331331
var options = createOptions('/origin/test-folder/')
332332
options.headers.origin = origin2
333333

334334
request.head(options, function (error, response, body) {
335335
assert.equal(error, null)
336-
assert.equal(response.statusCode, 401)
336+
assert.equal(response.statusCode, 200)
337337
done()
338338
})
339339
})

test/integration/acl-tls-test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -315,14 +315,14 @@ describe('ACL with WebID+TLS', function () {
315315
done()
316316
})
317317
})
318-
it('user1 should be denied access to test directory when origin is invalid',
318+
it('user1 should be able to access test directory when origin is invalid',
319319
function (done) {
320320
var options = createOptions('/acl-tls/origin/test-folder/', 'user1')
321321
options.headers.origin = origin2
322322

323323
request.head(options, function (error, response, body) {
324324
assert.equal(error, null)
325-
assert.equal(response.statusCode, 403)
325+
assert.equal(response.statusCode, 200)
326326
done()
327327
})
328328
})
@@ -347,14 +347,14 @@ describe('ACL with WebID+TLS', function () {
347347
done()
348348
})
349349
})
350-
it('agent should be denied access to test directory when origin is invalid',
350+
it('agent should be able to access test directory when origin is invalid',
351351
function (done) {
352352
var options = createOptions('/acl-tls/origin/test-folder/')
353353
options.headers.origin = origin2
354354

355355
request.head(options, function (error, response, body) {
356356
assert.equal(error, null)
357-
assert.equal(response.statusCode, 401)
357+
assert.equal(response.statusCode, 200)
358358
done()
359359
})
360360
})

0 commit comments

Comments
 (0)