File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -53,14 +53,14 @@ describe('A server setup', (): void => {
5353 } ) ;
5454
5555 describe ( 'using ODRL authorization' , ( ) : void => {
56- const privateResource = `http://localhost:${ cssPort } /alice/private /resource.txt` ;
56+ const collectionResource = `http://localhost:${ cssPort } /alice/resource.txt` ;
5757 let wwwAuthenticateHeader : string ;
5858 let ticket : string ;
5959 let tokenEndpoint : string ;
6060 let jsonResponse : { access_token : string , token_type : string } ;
6161
6262 it ( 'RS: sends a WWW-Authenticate response when access is private.' , async ( ) : Promise < void > => {
63- const noTokenResponse = await fetch ( privateResource , {
63+ const noTokenResponse = await fetch ( collectionResource , {
6464 method : 'PUT' ,
6565 body : 'Some text ...' ,
6666 } ) ;
@@ -122,7 +122,7 @@ describe('A server setup', (): void => {
122122 } ) ;
123123
124124 it ( 'RS: provides access when receiving a valid token.' , async ( ) : Promise < void > => {
125- const response = await fetch ( privateResource , {
125+ const response = await fetch ( collectionResource , {
126126 method : 'PUT' ,
127127 headers : { 'Authorization' : `${ jsonResponse . token_type } ${ jsonResponse . access_token } ` } ,
128128 body : 'Some text ...' ,
You can’t perform that action at this time.
0 commit comments