Skip to content
12 changes: 6 additions & 6 deletions test/surface/create.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ describe('Create', () => {
testAllowed('Write', 'Write');
testAllowed('Append', 'Write');

it(`is disallowed without Write on c/r`, async () => {
it(`is allowed with Append on c/r`, async () => {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

agree

Copy link
Copy Markdown
Contributor

@edwardsph edwardsph Dec 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The name to the test artifact below should be changed to match the test purpose to avoid future confusion:

const testing = `disallowed-default`;

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK I commit my changes to testing

const testing = `test-disallowed-default`;
const containerUrl = makeContainerUrl(testFolderUrl, using, testing);
// This will do mkdir-p:
Expand Down Expand Up @@ -350,7 +350,7 @@ describe('Create', () => {
"<#patch> a solid:InsertDeletePatch;\n" +
" solid:inserts { <#hello> <#linked> <#world> .}.\n",
});
expect(result.status).toEqual(403);
expect(result.status).toEqual(200);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

agree

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other OK responses should be allowed too.

});

it(`is disallowed without Write or Append on c/`, async () => {
Expand Down Expand Up @@ -554,7 +554,7 @@ describe('Create', () => {
testAllowed('Write', 'Write');
testAllowed('Append', 'Write');

it(`is disallowed without Write on c/r`, async () => {
it(`is allowed with Append on c/r`, async () => {
const testing = `disallowed-default`;
const containerUrl = makeContainerUrl(testFolderUrl, using, testing);
// This will do mkdir-p:
Expand Down Expand Up @@ -589,10 +589,10 @@ describe('Create', () => {
"<#patch> a solid:InsertDeletePatch;\n" +
" solid:inserts { <#hello> <#linked> <#world> .}.\n",
});
expect(result.status).toEqual(403);
expect(result.status).toEqual(200);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if I agree. This test is about required permissions on c/, right?

});

it(`is disallowed without Write or Append on c/`, async () => {
it(`is allowed with Append on c/`, async () => {
const testing = `disallowed-default`;
const containerUrl = makeContainerUrl(testFolderUrl, using, testing);
// This will do mkdir-p:
Expand Down Expand Up @@ -627,7 +627,7 @@ describe('Create', () => {
"<#patch> a solid:InsertDeletePatch;\n" +
" solid:inserts { <#hello> <#linked> <#world> .}.\n",
});
expect(result.status).toEqual(403);
expect(result.status).toEqual(200);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if I agree. This test is about required permissions on c/, right?

Copy link
Copy Markdown
Member Author

@bourgeoa bourgeoa Dec 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@michielbdejong I should have added this link as a clarification on WAC Append solid/web-access-control-spec#122

});
});
});