Commit graph

3439 commits

Author SHA1 Message Date
Philip Molares
19d88e7e8c PackageJson: Add --runInBand to test:e2e scripts
This ensures the e2e tests run in serially and never concurrently.

See https://jestjs.io/docs/cli#--runinband

Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-04-01 00:18:24 +02:00
Philip Molares
70e7318180 NotesE2EPrivate: Fix copy&paste error
Since large parts of this test were copied from the public api e2e test, somethings still used the public api e2e test files.

Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-04-01 00:18:24 +02:00
Philip Molares
dbbc73be02 MediaE2E: Fix typo in comments
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-04-01 00:18:24 +02:00
Philip Molares
a2e7616484 E2ETests: Use recursive for 'uploads/' deletion.
This ensures the folder is always deleted, even if there are still files (from previous broken tests) in it.

Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-04-01 00:18:24 +02:00
Philip Molares
5a3ddc28fc MediaE2E: Extract 'uploads' deletion
The deletion of upload was moved to beforeEach and afterEach block in the 'POST /media' > 'fails' tests.
The test if the folder was not created, because there was no file uploaded, now correctly expects the behaviour.

Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-04-01 00:18:21 +02:00
Philip Molares
d586b84d8b MediaE2E: Add app.close() to afterAll
This terminates the app after all test have finished.

Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-03-31 22:36:14 +02:00
Yannick Bungers
25bdbf647a
Merge pull request #1032 from hedgedoc/docs/authentication
Add dev docs about user profiles and authentication
2021-03-28 22:41:12 +02:00
David Mehren
f06563941b
Merge pull request #1076 from hedgedoc/renovate/develop-ts-loader-8.x
Update dependency ts-loader to v8.1.0 (develop)
2021-03-28 20:34:27 +02:00
David Mehren
7e742b590c
Merge pull request #1078 from hedgedoc/renovate/develop-mkdocs-material-7.x
Update dependency mkdocs-material to v7.0.7 (develop)
2021-03-28 20:34:21 +02:00
David Mehren
ef6407c767
Merge pull request #1072 from hedgedoc/renovate/develop-definitelytyped
Update dependency @types/node to v13.13.48 (develop)
2021-03-28 20:33:55 +02:00
David Mehren
843dfa95f0
Merge pull request #1071 from hedgedoc/renovate/develop-linters
Update dependency eslint to v7.23.0 (develop)
2021-03-28 20:33:47 +02:00
David Mehren
a4c0fca05b
Merge pull request #1067 from hedgedoc/renovate/develop-nestjs-packages
Update NestJS packages (develop)
2021-03-28 20:33:37 +02:00
Renovate Bot
13db168565
Update dependency mkdocs-material to v7.0.7
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-03-28 14:19:41 +00:00
Renovate Bot
b053533f10
Update dependency ts-loader to v8.1.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-03-28 11:20:57 +00:00
Renovate Bot
581d99d418
Update dependency @types/node to v13.13.48
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-03-27 01:14:20 +00:00
Renovate Bot
deac20d9ce
Update dependency eslint to v7.23.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-03-26 21:58:11 +00:00
Renovate Bot
4420f50f7f
Update NestJS packages
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-03-26 11:24:58 +00:00
Yannick Bungers
8387c9927e
Merge pull request #1057 from hedgedoc/privateApi/media 2021-03-25 22:41:03 +01:00
Philip Molares
d44af9dd5e PrivateE2EMedia: Add E2E test for private api /media routes
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-03-25 22:26:43 +01:00
Philip Molares
406c8d620a PrivateE2E: Add test fixtures for private api
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-03-25 22:26:43 +01:00
Philip Molares
ff7fbcaf0e PrivateAPI: Add media controller
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-03-25 22:26:41 +01:00
David Mehren
3bc0a46630
Merge pull request #1060 from hedgedoc/port/mediaE2ETests
PublicE2EMedia: Port the extra test from the private api
2021-03-25 22:08:35 +01:00
David Mehren
ef7a22e014
Merge pull request #1058 from hedgedoc/privateApi/notes 2021-03-25 22:08:23 +01:00
David Mehren
97525377c7
Add dev docs about user profiles and authentication
Closes #463
Closes #451
Signed-off-by: David Mehren <git@herrmehren.de>
2021-03-25 21:51:17 +01:00
David Mehren
de04c3ece0
Merge pull request #1062 from hedgedoc/renovate/develop-definitelytyped
Update dependency @types/jest to v26.0.22 (develop)
2021-03-25 21:39:20 +01:00
Philip Molares
8f2cc55e5b PrivateE2ENotes: Add E2E test for private api /notes routes
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-03-25 21:29:51 +01:00
Philip Molares
b60fa155dd PrivateAPI: Add notes controller
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-03-25 20:36:18 +01:00
Renovate Bot
52b0107c89
Update dependency @types/jest to v26.0.22
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-03-25 19:26:39 +00:00
David Mehren
7775b0a288
Merge pull request #1050 from hedgedoc/fix/devDocs
Docs: Fix dev doc 'documentation'
2021-03-25 20:25:48 +01:00
David Mehren
7cfc372f83
Merge pull request #1055 from hedgedoc/renovate/develop-nestjs-packages
Update NestJS packages to v7.6.15 (develop)
2021-03-25 20:24:46 +01:00
David Mehren
85cd0e4553
Merge pull request #1056 from hedgedoc/renovate/develop-linters
Update linters to v4.19.0 (develop)
2021-03-25 20:24:39 +01:00
Philip Molares
1249302321 PublicE2EMedia: Port the extra test from the private api
This ports the extra tests in the POST /media test from the private apis to the public apis E2E tests.
Also the whole test suit was renamed to 'Media'.

Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-03-25 20:12:22 +01:00
David Mehren
374f675353
Merge pull request #1059 from hedgedoc/fix/e2eUploads
PublicE2E: Remove uploaded files after test
2021-03-25 20:08:31 +01:00
Renovate Bot
7114aa3b9b
Update linters to v4.19.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-03-25 11:21:20 +00:00
Renovate Bot
e65b5f21e8
Update NestJS packages to v7.6.15
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-03-25 11:21:07 +00:00
David Mehren
8d904b70e7
Merge pull request #1054 from hedgedoc/renovate/develop-lock-file-maintenance
Lock file maintenance (develop)
2021-03-25 12:18:54 +01:00
Renovate Bot
951f726c3f
Lock file maintenance
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-03-24 21:58:48 +00:00
Philip Molares
69550a8243 PublicE2E: Remove uploaded files after test
This way the tests can run in any order as some of the media tests rely on an empty (or non-existing) uploads directory.
Also the me e2e test was renamed to the correct name.

Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-03-24 22:20:20 +01:00
David Mehren
6e03f876db
Merge pull request #1033 from hedgedoc/docs/delete_revisions 2021-03-24 22:15:27 +01:00
David Mehren
e66c3a9ceb
Merge pull request #980 from hedgedoc/privateApi/frontendConfig 2021-03-24 22:14:45 +01:00
Philip Molares
db9d42e7f3 Docs: Fix dev doc 'documentation'
Fix typos
Rewrite 'Deployment' paragraph. We currently don't and probably won't use Messor Structor.

Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-03-24 20:32:56 +01:00
Philip Molares
bd9235c5c9 DevDocs: Add explanations for new config modules
The new config modules `customization` and `external-services` are explained in the dev doc overview of all config modules now.

Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-03-21 20:08:13 +01:00
Philip Molares
dd7ca87337 PrivateApi: Add config controller
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-03-21 20:08:13 +01:00
Philip Molares
e471342497 FrontendConfig: Add new service
This service handles the config for the frontend.

Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-03-21 20:08:13 +01:00
Philip Molares
c4161cec98 Config: Add rendererOrigin and maxDocumentLength to AppConfig
These are used in the /config private API call.

Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-03-21 20:08:13 +01:00
Philip Molares
f63d37dbf7 Config: Add identifier to all multi auth provider to AuthConfig
These are used in the /config private API call and needed to distinguish with which of the multiple auth providers a login should occur.
This also fixes the types of the multiple auth provider arrays to something that works, as `[{}]` specifics exactly on object in an array.

Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-03-21 20:08:13 +01:00
Philip Molares
de82b72b62 Config: Create new config mocks for tests
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-03-21 20:08:09 +01:00
Philip Molares
e8339e0976 Config: Add two new Subconfigs
CustomizationConfig holds all possible customization configs.
ExternalConfig holds external services that may be configured.

Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-03-21 19:59:07 +01:00
Philip Molares
19318ae518 Config: Extend AppConfig mock
This is now more in line what you would get from the regular config code

Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-03-21 19:59:07 +01:00
Philip Molares
381718f0eb Config: Move config mocks in own folder
To clean up the config folder, all mocks are now in it's own folder.

Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-03-21 19:59:05 +01:00