File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -53,14 +53,14 @@ describe('A server setup', (): void => {
53
53
} ) ;
54
54
55
55
describe ( 'using ODRL authorization' , ( ) : void => {
56
- const privateResource = `http://localhost:${ cssPort } /alice/private /resource.txt` ;
56
+ const collectionResource = `http://localhost:${ cssPort } /alice/resource.txt` ;
57
57
let wwwAuthenticateHeader : string ;
58
58
let ticket : string ;
59
59
let tokenEndpoint : string ;
60
60
let jsonResponse : { access_token : string , token_type : string } ;
61
61
62
62
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 , {
64
64
method : 'PUT' ,
65
65
body : 'Some text ...' ,
66
66
} ) ;
@@ -122,7 +122,7 @@ describe('A server setup', (): void => {
122
122
} ) ;
123
123
124
124
it ( 'RS: provides access when receiving a valid token.' , async ( ) : Promise < void > => {
125
- const response = await fetch ( privateResource , {
125
+ const response = await fetch ( collectionResource , {
126
126
method : 'PUT' ,
127
127
headers : { 'Authorization' : `${ jsonResponse . token_type } ${ jsonResponse . access_token } ` } ,
128
128
body : 'Some text ...' ,
You can’t perform that action at this time.
0 commit comments