@@ -10,7 +10,7 @@ const localStorage = require('localstorage-memory')
1010const URL = require ( 'whatwg-url' ) . URL
1111global . URL = URL
1212global . URLSearchParams = require ( 'whatwg-url' ) . URLSearchParams
13- const { cleanDir } = require ( '../utils' )
13+ const { cleanDir, cp } = require ( '../utils' )
1414
1515const supertest = require ( 'supertest' )
1616const chai = require ( 'chai' )
@@ -68,14 +68,16 @@ describe('Authentication API (OIDC)', () => {
6868 } )
6969 }
7070
71- before ( ( ) => {
72- return Promise . all ( [
71+ before ( async ( ) => {
72+ await Promise . all ( [
7373 startServer ( alicePod , 7000 ) ,
7474 startServer ( bobPod , 7001 )
7575 ] ) . then ( ( ) => {
7676 alice = supertest ( aliceServerUri )
7777 bob = supertest ( bobServerUri )
7878 } )
79+ cp ( path . join ( 'accounts-scenario/alice' , '.acl-override' ) , path . join ( 'accounts-scenario/alice' , '.acl' ) )
80+ cp ( path . join ( 'accounts-scenario/bob' , '.acl-override' ) , path . join ( 'accounts-scenario/bob' , '.acl' ) )
7981 } )
8082
8183 after ( ( ) => {
@@ -147,7 +149,7 @@ describe('Authentication API (OIDC)', () => {
147149 describe ( 'without that cookie' , ( ) => {
148150 let response
149151 before ( done => {
150- alice . get ( '/' )
152+ alice . get ( '/private-for-alice.txt ' )
151153 . end ( ( err , res ) => {
152154 response = res
153155 done ( err )
@@ -197,7 +199,7 @@ describe('Authentication API (OIDC)', () => {
197199 let response
198200 before ( done => {
199201 var malcookie = cookie . replace ( / c o n n e c t \. s i d = ( \S + ) / , 'connect.sid=l33th4x0rzp0wn4g3;' )
200- alice . get ( '/' )
202+ alice . get ( '/private-for-alice.txt ' )
201203 . set ( 'Cookie' , malcookie )
202204 . end ( ( err , res ) => {
203205 response = res
@@ -267,7 +269,7 @@ describe('Authentication API (OIDC)', () => {
267269 describe ( 'without that cookie but with globally configured origin' , ( ) => {
268270 let response
269271 before ( done => {
270- alice . get ( '/' )
272+ alice . get ( '/private-for-alice.txt ' )
271273 . set ( 'Origin' , 'https://apps.solid.invalid' )
272274 . end ( ( err , res ) => {
273275 response = res
@@ -285,7 +287,7 @@ describe('Authentication API (OIDC)', () => {
285287 let response
286288 before ( done => {
287289 var malcookie = cookie . replace ( / c o n n e c t \. s i d = ( \S + ) / , 'connect.sid=l33th4x0rzp0wn4g3;' )
288- alice . get ( '/' )
290+ alice . get ( '/private-for-alice.txt ' )
289291 . set ( 'Cookie' , malcookie )
290292 . set ( 'Origin' , 'https://apps.solid.invalid' )
291293 . end ( ( err , res ) => {
0 commit comments