@@ -283,7 +283,7 @@ describe('ACL with WebID+TLS', function () {
283283 ' <http://www.w3.org/ns/auth/acl#mode> <http://www.w3.org/ns/auth/acl#Read>, <http://www.w3.org/ns/auth/acl#Write>, <http://www.w3.org/ns/auth/acl#Control> .\n' +
284284 '<#Public> a <http://www.w3.org/ns/auth/acl#Authorization>;\n' +
285285 ' <http://www.w3.org/ns/auth/acl#accessTo> <./>;\n' +
286- ' <http://www.w3.org/ns/auth/acl#agentClass> <http://xmlns.com/foaf/0.1/Agent >;\n' +
286+ ' <http://www.w3.org/ns/auth/acl#agentClass> <http://www.w3.org/ns/auth/acl#AuthenticatedAgent >;\n' +
287287 ' <http://www.w3.org/ns/auth/acl#origin> <' + origin1 + '>;\n' +
288288 ' <http://www.w3.org/ns/auth/acl#mode> <http://www.w3.org/ns/auth/acl#Read> .\n'
289289 request . put ( options , function ( error , response , body ) {
@@ -326,13 +326,13 @@ describe('ACL with WebID+TLS', function () {
326326 done ( )
327327 } )
328328 } )
329- it ( 'agent should be able to access test directory' , function ( done ) {
329+ it ( 'agent not should be able to access test directory' , function ( done ) {
330330 var options = createOptions ( '/acl-tls/origin/test-folder/' )
331331 options . headers . origin = origin1
332332
333333 request . head ( options , function ( error , response , body ) {
334334 assert . equal ( error , null )
335- assert . equal ( response . statusCode , 200 )
335+ assert . equal ( response . statusCode , 403 )
336336 done ( )
337337 } )
338338 } )
@@ -384,7 +384,7 @@ describe('ACL with WebID+TLS', function () {
384384 ' <http://www.w3.org/ns/auth/acl#mode> <http://www.w3.org/ns/auth/acl#Read>, <http://www.w3.org/ns/auth/acl#Write>, <http://www.w3.org/ns/auth/acl#Control> .\n' +
385385 '<#Public> a <http://www.w3.org/ns/auth/acl#Authorization>;\n' +
386386 ' <http://www.w3.org/ns/auth/acl#accessTo> <./>;\n' +
387- ' <http://www.w3.org/ns/auth/acl#agentClass> <http://xmlns.com/foaf/0.1/Agent >;\n' +
387+ ' <http://www.w3.org/ns/auth/acl#agentClass> <http://www.w3.org/ns/auth/acl#AuthenticatedAgent >;\n' +
388388 ' <http://www.w3.org/ns/auth/acl#origin> <' + origin1 + '>;\n' +
389389 ' <http://www.w3.org/ns/auth/acl#mode> <http://www.w3.org/ns/auth/acl#Read> .\n'
390390 request . put ( options , function ( error , response , body ) {
@@ -427,13 +427,13 @@ describe('ACL with WebID+TLS', function () {
427427 done ( )
428428 } )
429429 } )
430- it ( 'agent should be able to access test directory' , function ( done ) {
430+ it ( 'agent should not be able to access test directory for logged in users ' , function ( done ) {
431431 var options = createOptions ( '/acl-tls/origin/test-folder/' )
432432 options . headers . origin = origin1
433433
434434 request . head ( options , function ( error , response , body ) {
435435 assert . equal ( error , null )
436- assert . equal ( response . statusCode , 200 )
436+ assert . equal ( response . statusCode , 403 )
437437 done ( )
438438 } )
439439 } )
0 commit comments