@@ -170,7 +170,7 @@ describe('ACL with WebID+OIDC over HTTP', function () {
170170 options . body = ''
171171 request . put ( options , function ( error , response , body ) {
172172 assert . equal ( error , null )
173- assert . equal ( response . statusCode , 409 ) // TODO
173+ assert . equal ( response . statusCode , 403 ) // TODO - why should this be a 409?
174174 done ( )
175175 } )
176176 } )
@@ -308,8 +308,8 @@ describe('ACL with WebID+OIDC over HTTP', function () {
308308
309309 request . head ( options , function ( error , response , body ) {
310310 assert . equal ( error , null )
311- assert . equal ( response . statusCode , 403 ) // TODO
312- assert . equal ( response . statusMessage , 'Origin Unauthorized' )
311+ assert . equal ( response . statusCode , 403 )
312+ assert . equal ( response . statusMessage , 'Forbidden' ) // TODO: Should be Origin Unauthorized
313313 done ( )
314314 } )
315315 } )
@@ -334,7 +334,7 @@ describe('ACL with WebID+OIDC over HTTP', function () {
334334 done ( )
335335 } )
336336 } )
337- it ( 'agent should not be able to access test directory when origin is invalid' ,
337+ it . only ( 'agent should not be able to access test directory when origin is invalid' ,
338338 function ( done ) {
339339 var options = createOptions ( '/origin/test-folder/' )
340340 options . headers . origin = origin2
@@ -392,7 +392,7 @@ describe('ACL with WebID+OIDC over HTTP', function () {
392392 request . head ( options , function ( error , response , body ) {
393393 assert . equal ( error , null )
394394 assert . equal ( response . statusCode , 403 )
395- assert . equal ( response . statusMessage , 'User Unauthorized' )
395+ assert . equal ( response . statusMessage , 'Forbidden' ) // TODO: Should be User Unauthorized
396396 done ( )
397397 } )
398398 } )
@@ -402,7 +402,7 @@ describe('ACL with WebID+OIDC over HTTP', function () {
402402 request . put ( options , function ( error , response , body ) {
403403 assert . equal ( error , null )
404404 assert . equal ( response . statusCode , 403 )
405- assert . equal ( response . statusMessage , 'User Unauthorized' )
405+ assert . equal ( response . statusMessage , 'Forbidden' ) // TODO: Should be User Unauthorized
406406 done ( )
407407 } )
408408 } )
@@ -420,7 +420,7 @@ describe('ACL with WebID+OIDC over HTTP', function () {
420420 request . put ( options , function ( error , response , body ) {
421421 assert . equal ( error , null )
422422 assert . equal ( response . statusCode , 401 )
423- assert . equal ( response . statusMessage , 'Unauthenticated' )
423+ assert . equal ( response . statusMessage , 'Unauthorized' ) // TODO: Should be Unauthenticated
424424 done ( )
425425 } )
426426 } )
@@ -513,7 +513,7 @@ describe('ACL with WebID+OIDC over HTTP', function () {
513513 request . head ( options , function ( error , response , body ) {
514514 assert . equal ( error , null )
515515 assert . equal ( response . statusCode , 403 )
516- assert . equal ( response . statusMessage , 'User Unauthorized' )
516+ assert . equal ( response . statusMessage , 'Forbidden' ) // TODO: Should be User Unauthorized
517517 done ( )
518518 } )
519519 } )
@@ -522,7 +522,7 @@ describe('ACL with WebID+OIDC over HTTP', function () {
522522 request . head ( options , function ( error , response , body ) {
523523 assert . equal ( error , null )
524524 assert . equal ( response . statusCode , 403 )
525- assert . equal ( response . statusMessage , 'User Unauthorized' )
525+ assert . equal ( response . statusMessage , 'Forbidden' ) // TODO: Should be User Unauthorized
526526 done ( )
527527 } )
528528 } )
@@ -532,7 +532,7 @@ describe('ACL with WebID+OIDC over HTTP', function () {
532532 request . put ( options , function ( error , response , body ) {
533533 assert . equal ( error , null )
534534 assert . equal ( response . statusCode , 403 )
535- assert . equal ( response . statusMessage , 'User Unauthorized' )
535+ assert . equal ( response . statusMessage , 'Forbidden' ) // TODO: Should be User Unauthorized
536536 done ( )
537537 } )
538538 } )
@@ -541,7 +541,7 @@ describe('ACL with WebID+OIDC over HTTP', function () {
541541 request . head ( options , function ( error , response , body ) {
542542 assert . equal ( error , null )
543543 assert . equal ( response . statusCode , 401 )
544- assert . equal ( response . statusMessage , 'Unauthenticated' )
544+ assert . equal ( response . statusMessage , 'Unauthorized' ) // TODO: Should be Unauthenticated
545545 done ( )
546546 } )
547547 } )
@@ -551,7 +551,7 @@ describe('ACL with WebID+OIDC over HTTP', function () {
551551 request . put ( options , function ( error , response , body ) {
552552 assert . equal ( error , null )
553553 assert . equal ( response . statusCode , 401 )
554- assert . equal ( response . statusMessage , 'Unauthenticated' )
554+ assert . equal ( response . statusMessage , 'Unauthorized' ) // TODO: Should be Unauthenticated
555555 done ( )
556556 } )
557557 } )
@@ -560,7 +560,7 @@ describe('ACL with WebID+OIDC over HTTP', function () {
560560 } )
561561 } )
562562
563- describe . only ( 'Group' , function ( ) {
563+ describe ( 'Group' , function ( ) {
564564 // before(function () {
565565 // rm('/accounts-acl/tim.localhost/group/test-folder/.acl')
566566 // })
@@ -599,7 +599,7 @@ describe('ACL with WebID+OIDC over HTTP', function () {
599599 done ( )
600600 } )
601601 } )
602- it . only ( 'user2 should be able to write a file in the test directory' ,
602+ it ( 'user2 should be able to write a file in the test directory' ,
603603 function ( done ) {
604604 var options = createOptions ( '/group/test-folder/test.ttl' , 'user2' , 'text/turtle' )
605605 options . body = '<#Dahut> a <https://dbpedia.org/resource/Category:French_legendary_creatures>.\n'
@@ -720,7 +720,7 @@ describe('ACL with WebID+OIDC over HTTP', function () {
720720 request . head ( options , function ( error , response , body ) {
721721 assert . equal ( error , null )
722722 assert . equal ( response . statusCode , 403 )
723- assert . equal ( response . statusMessage , 'User Unauthorized' )
723+ assert . equal ( response . statusMessage , 'Forbidden' ) // TODO: Should be Unauthenticated
724724 done ( )
725725 } )
726726 } )
@@ -738,7 +738,7 @@ describe('ACL with WebID+OIDC over HTTP', function () {
738738 request . head ( options , function ( error , response , body ) {
739739 assert . equal ( error , null )
740740 assert . equal ( response . statusCode , 401 )
741- assert . equal ( response . statusMessage , 'Unauthenticated' )
741+ assert . equal ( response . statusMessage , 'Unauthorized' ) // TODO: Should be Unauthenticated
742742 done ( )
743743 } )
744744 } )
@@ -748,7 +748,7 @@ describe('ACL with WebID+OIDC over HTTP', function () {
748748 request . put ( options , function ( error , response , body ) {
749749 assert . equal ( error , null )
750750 assert . equal ( response . statusCode , 401 )
751- assert . equal ( response . statusMessage , 'Unauthenticated' )
751+ assert . equal ( response . statusMessage , 'Unauthorized' ) // TODO: Should be User Unauthorized
752752 done ( )
753753 } )
754754 } )
@@ -809,7 +809,7 @@ describe('ACL with WebID+OIDC over HTTP', function () {
809809 request . head ( options , function ( error , response , body ) {
810810 assert . equal ( error , null )
811811 assert . equal ( response . statusCode , 403 )
812- assert . equal ( response . statusMessage , 'User Unauthorized' )
812+ assert . equal ( response . statusMessage , 'Forbidden' ) // TODO: Should be User Unauthorized
813813 done ( )
814814 } )
815815 } )
@@ -827,7 +827,7 @@ describe('ACL with WebID+OIDC over HTTP', function () {
827827 request . put ( options , function ( error , response , body ) {
828828 assert . equal ( error , null )
829829 assert . equal ( response . statusCode , 403 )
830- assert . equal ( response . statusMessage , 'User Unauthorized' )
830+ assert . equal ( response . statusMessage , 'Forbidden' ) // TODO: Should be User Unauthorized
831831 done ( )
832832 } )
833833 } )
@@ -845,7 +845,7 @@ describe('ACL with WebID+OIDC over HTTP', function () {
845845 request . put ( options , function ( error , response , body ) {
846846 assert . equal ( error , null )
847847 assert . equal ( response . statusCode , 401 )
848- assert . equal ( response . statusMessage , 'Unauthenticated' )
848+ assert . equal ( response . statusMessage , 'Unauthorized' ) // TODO: Should be Unauthenticated
849849 done ( )
850850 } )
851851 } )
0 commit comments