Skip to content

Commit 653417d

Browse files
committed
test: Use asset collection policy for one test
1 parent 3ddb2b7 commit 653417d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/integration/Base.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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 ...' ,

0 commit comments

Comments
 (0)