test: Add integration test for intermediate containers

This commit is contained in:
Joachim Van Herwegen
2022-06-16 09:41:39 +02:00
parent d5bcec704c
commit 47c54abe22
2 changed files with 37 additions and 2 deletions

View File

@@ -84,11 +84,14 @@ describe('A Solid server with IDP', (): void => {
acl:default <./>;
acl:mode acl:Read, acl:Write, acl:Control.
`;
await fetch(`${container}.acl`, {
const res = await fetch(`${container}.acl`, {
method: 'PUT',
headers: { 'content-type': 'text/turtle' },
body: aclTurtle,
});
if (res.status !== 201) {
throw new Error('Something went wrong initializing the test ACL');
}
});
afterAll(async(): Promise<void> => {