@@ -3,11 +3,10 @@ const parallel = require('run-parallel')
33const waterfall = require ( 'run-waterfall' )
44const path = require ( 'path' )
55const supertest = require ( 'supertest' )
6-
76// In this test we always assume that we are Alice
87
98function getBobFoo ( alice , bob , done ) {
10- bob . get ( '/' )
9+ bob . get ( '/foo ' )
1110 . expect ( 401 )
1211 . end ( done )
1312}
@@ -26,22 +25,32 @@ describe('OIDC flow', () => {
2625 let alice
2726 let bob
2827
29- const solid = Solid . createServer ( {
30- root : path . join ( __dirname , '/resources' ) ,
28+ const alicePod = Solid . createServer ( {
29+ root : path . join ( __dirname , '/resources/accounts-scenario/alice' ) ,
30+ sslKey : path . join ( __dirname , '/keys/key.pem' ) ,
31+ sslCert : path . join ( __dirname , '/keys/cert.pem' ) ,
32+ auth : 'oidc' ,
33+ dataBrowser : false ,
34+ fileBrowser : false
35+ } )
36+ const bobPod = Solid . createServer ( {
37+ root : path . join ( __dirname , '/resources/accounts-scenario/bob' ) ,
3138 sslKey : path . join ( __dirname , '/keys/key.pem' ) ,
3239 sslCert : path . join ( __dirname , '/keys/cert.pem' ) ,
33- webid : true
40+ auth : 'oidc' ,
41+ dataBrowser : false ,
42+ fileBrowser : false
3443 } )
3544
3645 before ( function ( done ) {
3746 parallel ( [
3847 ( cb ) => {
39- aliceServer = solid . listen ( 3456 , cb )
40- alice = supertest ( 'https://localhost:3456 ' )
48+ aliceServer = alicePod . listen ( 5000 , cb )
49+ alice = supertest ( 'https://localhost:5000 ' )
4150 } ,
4251 ( cb ) => {
43- bobServer = solid . listen ( 3457 , cb )
44- bob = supertest ( 'https://localhost:3457 ' )
52+ bobServer = bobPod . listen ( 5001 , cb )
53+ bob = supertest ( 'https://localhost:5001 ' )
4554 }
4655 ] , done )
4756 } )
0 commit comments