Skip to content

Instantly share code, notes, and snippets.

@jeswr
Created November 4, 2022 05:18
Show Gist options
  • Select an option

  • Save jeswr/bd8675d9c5a89d1b8a29e4fd650cec8f to your computer and use it in GitHub Desktop.

Select an option

Save jeswr/bd8675d9c5a89d1b8a29e4fd650cec8f to your computer and use it in GitHub Desktop.
Summary of all failing tests
FAIL test/integration/Quota.test.ts (35.599 s)
● A quota server › with pod quota enabled › should return a 413 when the quota is exceeded during write.
ENOENT: no such file or directory, mkdir '/home/jeswr/CommunitySolidServer/test/tmp/quota-temp'
● A quota server › with pod quota enabled › should return a 413 when the quota is exceeded during write.
TypeError: Cannot read properties of undefined (reading 'size')
93 | beforeAll(async(): Promise<void> => {
94 | // Calculate the allowed quota depending on file system used
> 95 | const size = folderSizeTest.size + 4000;
| ^
96 |
97 | const instances = await instantiateFromConfig(
98 | 'urn:solid-server:test:Instances',
at test/integration/Quota.test.ts:95:35
● A quota server › with pod quota enabled › should allow writing in a pod that is not full yet.
ENOENT: no such file or directory, mkdir '/home/jeswr/CommunitySolidServer/test/tmp/quota-temp'
● A quota server › with pod quota enabled › should allow writing in a pod that is not full yet.
TypeError: Cannot read properties of undefined (reading 'size')
93 | beforeAll(async(): Promise<void> => {
94 | // Calculate the allowed quota depending on file system used
> 95 | const size = folderSizeTest.size + 4000;
| ^
96 |
97 | const instances = await instantiateFromConfig(
98 | 'urn:solid-server:test:Instances',
at test/integration/Quota.test.ts:95:35
● A quota server › with pod quota enabled › should block PUT requests to different pods if their quota is exceeded.
ENOENT: no such file or directory, mkdir '/home/jeswr/CommunitySolidServer/test/tmp/quota-temp'
● A quota server › with pod quota enabled › should block PUT requests to different pods if their quota is exceeded.
TypeError: Cannot read properties of undefined (reading 'size')
93 | beforeAll(async(): Promise<void> => {
94 | // Calculate the allowed quota depending on file system used
> 95 | const size = folderSizeTest.size + 4000;
| ^
96 |
97 | const instances = await instantiateFromConfig(
98 | 'urn:solid-server:test:Instances',
at test/integration/Quota.test.ts:95:35
● A quota server › with pod quota enabled › should not generate metadata files (the only possible entry content-length is removed after quota validation).
ENOENT: no such file or directory, mkdir '/home/jeswr/CommunitySolidServer/test/tmp/quota-temp'
● A quota server › with pod quota enabled › should not generate metadata files (the only possible entry content-length is removed after quota validation).
TypeError: Cannot read properties of undefined (reading 'size')
93 | beforeAll(async(): Promise<void> => {
94 | // Calculate the allowed quota depending on file system used
> 95 | const size = folderSizeTest.size + 4000;
| ^
96 |
97 | const instances = await instantiateFromConfig(
98 | 'urn:solid-server:test:Instances',
at test/integration/Quota.test.ts:95:35
● A quota server › with global quota enabled › should return 413 when global quota is exceeded.
ENOENT: no such file or directory, mkdir '/home/jeswr/CommunitySolidServer/test/tmp/quota-temp'
● A quota server › with global quota enabled › should return 413 when global quota is exceeded.
TypeError: Cannot read properties of undefined (reading 'size')
179 | beforeAll(async(): Promise<void> => {
180 | // Calculate the allowed quota depending on file system used
> 181 | const size = (folderSizeTest.size * 3) + 4000;
| ^
182 |
183 | const instances = await instantiateFromConfig(
184 | 'urn:solid-server:test:Instances',
at test/integration/Quota.test.ts:181:36
● A quota server › with global quota enabled › should return 413 when trying to write to any pod when global quota is exceeded.
ENOENT: no such file or directory, mkdir '/home/jeswr/CommunitySolidServer/test/tmp/quota-temp'
● A quota server › with global quota enabled › should return 413 when trying to write to any pod when global quota is exceeded.
TypeError: Cannot read properties of undefined (reading 'size')
179 | beforeAll(async(): Promise<void> => {
180 | // Calculate the allowed quota depending on file system used
> 181 | const size = (folderSizeTest.size * 3) + 4000;
| ^
182 |
183 | const instances = await instantiateFromConfig(
184 | 'urn:solid-server:test:Instances',
at test/integration/Quota.test.ts:181:36
● A quota server › with global quota enabled › should not generate metadata files (the only possible entry content-length is removed after quota validation).
ENOENT: no such file or directory, mkdir '/home/jeswr/CommunitySolidServer/test/tmp/quota-temp'
● A quota server › with global quota enabled › should not generate metadata files (the only possible entry content-length is removed after quota validation).
TypeError: Cannot read properties of undefined (reading 'size')
179 | beforeAll(async(): Promise<void> => {
180 | // Calculate the allowed quota depending on file system used
> 181 | const size = (folderSizeTest.size * 3) + 4000;
| ^
182 |
183 | const instances = await instantiateFromConfig(
184 | 'urn:solid-server:test:Instances',
at test/integration/Quota.test.ts:181:36
● Test suite failed to run
TypeError: Cannot read properties of undefined (reading 'stop')
113 |
114 | afterAll(async(): Promise<void> => {
> 115 | await app.stop();
| ^
116 | await removeFolder(rootFilePath);
117 | });
118 |
at test/integration/Quota.test.ts:115:17
● Test suite failed to run
TypeError: Cannot read properties of undefined (reading 'stop')
199 |
200 | afterAll(async(): Promise<void> => {
> 201 | await app.stop();
| ^
202 | await removeFolder(rootFilePath);
203 | });
204 |
at test/integration/Quota.test.ts:201:17
Test Suites: 1 failed, 3 skipped, 278 passed, 279 of 282 total
Tests: 7 failed, 23 skipped, 2305 passed, 2335 total
Snapshots: 0 total
Time: 164.082 s
Ran all test suites.
(base) jeswr@debian:~/CommunitySolidServer$ node --version
v18.1.0
(base) jeswr@debian:~/CommunitySolidServer$ npm --version
8.8.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment