@@ -10,7 +10,7 @@ const localStorage = require('localstorage-memory')
10
10
const URL = require ( 'whatwg-url' ) . URL
11
11
global . URL = URL
12
12
global . URLSearchParams = require ( 'whatwg-url' ) . URLSearchParams
13
- const { cleanDir } = require ( '../utils' )
13
+ const { cleanDir, cp } = require ( '../utils' )
14
14
15
15
const supertest = require ( 'supertest' )
16
16
const chai = require ( 'chai' )
@@ -68,14 +68,16 @@ describe('Authentication API (OIDC)', () => {
68
68
} )
69
69
}
70
70
71
- before ( ( ) => {
72
- return Promise . all ( [
71
+ before ( async ( ) => {
72
+ await Promise . all ( [
73
73
startServer ( alicePod , 7000 ) ,
74
74
startServer ( bobPod , 7001 )
75
75
] ) . then ( ( ) => {
76
76
alice = supertest ( aliceServerUri )
77
77
bob = supertest ( bobServerUri )
78
78
} )
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' ) )
79
81
} )
80
82
81
83
after ( ( ) => {
@@ -147,7 +149,7 @@ describe('Authentication API (OIDC)', () => {
147
149
describe ( 'without that cookie' , ( ) => {
148
150
let response
149
151
before ( done => {
150
- alice . get ( '/' )
152
+ alice . get ( '/private-for-alice.txt ' )
151
153
. end ( ( err , res ) => {
152
154
response = res
153
155
done ( err )
@@ -197,7 +199,7 @@ describe('Authentication API (OIDC)', () => {
197
199
let response
198
200
before ( done => {
199
201
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 ' )
201
203
. set ( 'Cookie' , malcookie )
202
204
. end ( ( err , res ) => {
203
205
response = res
@@ -267,7 +269,7 @@ describe('Authentication API (OIDC)', () => {
267
269
describe ( 'without that cookie but with globally configured origin' , ( ) => {
268
270
let response
269
271
before ( done => {
270
- alice . get ( '/' )
272
+ alice . get ( '/private-for-alice.txt ' )
271
273
. set ( 'Origin' , 'https://apps.solid.invalid' )
272
274
. end ( ( err , res ) => {
273
275
response = res
@@ -285,7 +287,7 @@ describe('Authentication API (OIDC)', () => {
285
287
let response
286
288
before ( done => {
287
289
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 ' )
289
291
. set ( 'Cookie' , malcookie )
290
292
. set ( 'Origin' , 'https://apps.solid.invalid' )
291
293
. end ( ( err , res ) => {
0 commit comments