@@ -606,15 +606,15 @@ describe('ACL HTTP', function () {
606606 done ( )
607607 } )
608608 } )
609- it ( 'user2 should be able to modify test file ' , function ( done ) {
609+ it ( 'user2 (with append permission) cannot use PUT to append ' , function ( done ) {
610610 var options = createOptions ( '/acl/append-acl/abc.ttl' , 'user2' )
611611 options . headers = {
612612 'content-type' : 'text/turtle'
613613 }
614614 options . body = '<d> <e> <f> .\n'
615615 request . put ( options , function ( error , response , body ) {
616616 assert . equal ( error , null )
617- assert . equal ( response . statusCode , 201 )
617+ assert . equal ( response . statusCode , 403 )
618618 done ( )
619619 } )
620620 } )
@@ -626,15 +626,15 @@ describe('ACL HTTP', function () {
626626 done ( )
627627 } )
628628 } )
629- it ( 'agent should be able to modify test file ' , function ( done ) {
629+ it ( 'agent (with append permissions) should not PUT ' , function ( done ) {
630630 var options = createOptions ( '/acl/append-acl/abc.ttl' )
631631 options . headers = {
632632 'content-type' : 'text/turtle'
633633 }
634634 options . body = '<g> <h> <i> .\n'
635635 request . put ( options , function ( error , response , body ) {
636636 assert . equal ( error , null )
637- assert . equal ( response . statusCode , 201 )
637+ assert . equal ( response . statusCode , 401 )
638638 done ( )
639639 } )
640640 } )
0 commit comments