Commit graph

4179 commits

Author SHA1 Message Date
Renovate Bot
d8b065df3f
chore(deps): update linters to v5.3.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-11-03 19:13:02 +00:00
David Mehren
c4c12fb171
Merge pull request #1801 from hedgedoc/renovate/develop-trivago-prettier-plugin-sort-imports-3.x 2021-11-03 20:11:04 +01:00
Renovate Bot
035895339a
chore(deps): update dependency @trivago/prettier-plugin-sort-imports to v3.1.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-11-03 13:38:01 +00:00
renovate[bot]
5dafe3890d
chore(deps): lock file maintenance (#1798)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-01 05:10:41 +00:00
renovate[bot]
d279829dbd
fix(deps): update dependency node-fetch to v2.6.6 (#1796)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-31 18:03:26 +00:00
renovate[bot]
832702da9b
chore(deps): update dependency mkdocs-material to v7.3.6 (#1792)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-30 14:11:19 +00:00
Yannick Bungers
cf991decc0
Merge pull request #1787 from hedgedoc/enhancement/e2e_login_registration 2021-10-29 22:12:30 +02:00
renovate[bot]
a8a6c38176
fix(deps): update dependency @nestjs/config to v1.0.3 (#1788)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-28 10:50:31 +00:00
David Mehren
ef2e90da20
Add E2E tests for login and registration
Signed-off-by: David Mehren <git@herrmehren.de>
2021-10-28 10:19:48 +02:00
David Mehren
5a16047f50
AuthController: Return 409 Conflict when user already exists
The previously used HTTP error 400 'Bad Request' is not really
applicable here, as the client did not send a malformed message.

Signed-off-by: David Mehren <git@herrmehren.de>
2021-10-28 10:18:05 +02:00
David Mehren
3560d82c44
TestSetup: Initialize full app and session middleware
Signed-off-by: David Mehren <git@herrmehren.de>
2021-10-28 10:18:05 +02:00
renovate[bot]
297710fd62
chore(deps): update dependency mkdocs-material to v7.3.5 (#1786)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-28 00:32:07 +00:00
David Mehren
c10e033dea
Merge pull request #1784 from hedgedoc/renovate/develop-trivago-prettier-plugin-sort-imports-3.x 2021-10-27 18:05:40 +02:00
David Mehren
17dc2692f0
Merge pull request #1775 from hedgedoc/renovate/develop-lock-file-maintenance 2021-10-27 18:02:06 +02:00
David Mehren
5f04f3556a
Update .prettierrc for sort-imports v3
Signed-off-by: David Mehren <git@herrmehren.de>
2021-10-27 17:58:09 +02:00
Renovate Bot
640114612e
chore(deps): lock file maintenance
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-10-27 15:55:09 +00:00
Renovate Bot
d70d5675d2
chore(deps): update dependency @trivago/prettier-plugin-sort-imports to v3
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-10-27 15:49:54 +00:00
David Mehren
18822d60a8
Merge pull request #1773 from hedgedoc/renovate/develop-linters 2021-10-27 17:46:22 +02:00
Renovate Bot
443c2e8a1b
chore(deps): update linters
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-10-27 15:41:46 +00:00
David Mehren
85528cc016
Merge pull request #1772 from hedgedoc/renovate/develop-ts-node-10.x 2021-10-27 17:39:51 +02:00
Renovate Bot
05d7ba2b50
chore(deps): update dependency ts-node to v10.4.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-10-26 02:27:04 +00:00
renovate[bot]
2105cf78db
chore(deps): update dependency @types/node to v14.17.32 (#1781)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-26 02:25:34 +00:00
renovate[bot]
2e86058c1d
chore(deps): update dependency @types/node to v14.17.31 (#1779)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-25 20:10:08 +00:00
renovate[bot]
ddcb689a59
chore(deps): update dependency @types/node to v14.17.30 (#1778)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-25 17:43:30 +00:00
renovate[bot]
33203268a9
fix(deps): update nestjs packages to v8.1.2 (#1777)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-25 17:33:51 +00:00
Yannick Bungers
a06ffdd8c6
Merge pull request #1741 from hedgedoc/enhancement/faster_tests 2021-10-24 18:49:43 +02:00
renovate[bot]
cdb2bfec6c
chore(deps): update dependency @types/node to v14.17.29 (#1771)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-22 21:27:11 +00:00
renovate[bot]
17b61a972c
fix(deps): update dependency @nestjs/swagger to v5.1.4 (#1770)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-22 11:08:12 +00:00
renovate[bot]
02e3a9ee58
chore(deps): update dependency @types/node to v14.17.28 (#1769)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-22 09:57:04 +00:00
David Mehren
691152579b
Update API routes in private API E2E tests
Signed-off-by: David Mehren <git@herrmehren.de>
2021-10-21 20:17:03 +02:00
David Mehren
c6cac58a67
Update API routes in public API E2E tests
Signed-off-by: David Mehren <git@herrmehren.de>
2021-10-21 20:17:03 +02:00
David Mehren
4428f3fb39
Separate private and public API in TestSetup
Including both PublicApiModule and PrivateApiModule in the test setup
lead to the API routes overwriting each other.
This adds a router to separate the APIs as they are in the normal app.

Signed-off-by: David Mehren <git@herrmehren.de>
2021-10-21 20:17:03 +02:00
David Mehren
0bb333ca69
Migrate private history API E2E test to global TestSetup
Signed-off-by: David Mehren <git@herrmehren.de>
2021-10-21 20:17:03 +02:00
David Mehren
209a9b93a6
Migrate private me API E2E test to global TestSetup
Signed-off-by: David Mehren <git@herrmehren.de>
2021-10-21 20:17:03 +02:00
David Mehren
ddaeb4fc66
Migrate private media API E2E test to global TestSetup
Signed-off-by: David Mehren <git@herrmehren.de>
2021-10-21 20:17:02 +02:00
David Mehren
9489fbaa79
Migrate private notes API E2E test to global TestSetup
Signed-off-by: David Mehren <git@herrmehren.de>
2021-10-21 19:52:41 +02:00
David Mehren
8a640f6be9
Migrate public alias API E2E test to global TestSetup
Signed-off-by: David Mehren <git@herrmehren.de>
2021-10-21 19:52:41 +02:00
David Mehren
cddd28f082
Migrate public me API E2E test to global TestSetup
Signed-off-by: David Mehren <git@herrmehren.de>
2021-10-21 19:52:38 +02:00
David Mehren
5b2b2e9a44
Migrate public media API E2E test to global TestSetup
Signed-off-by: David Mehren <git@herrmehren.de>
2021-10-21 19:51:57 +02:00
David Mehren
9539581219
Migrate public notes API E2E test to global TestSetup
Signed-off-by: David Mehren <git@herrmehren.de>
2021-10-21 19:51:57 +02:00
David Mehren
046607f1e5
Move common test preparations into TestSetup class
Signed-off-by: David Mehren <git@herrmehren.de>
2021-10-21 19:51:57 +02:00
David Mehren
ade58e3ca1
Move tsconfig.test.json to test directory
WebStorm does not support typescript.*.json files,
but always uses the nearest tsconfig.json.
Moving the test-specific tsconfig into the test folder allows WebStorm
to use the correct config for the E2E-tests and
stops it from showing unnecessary errors.

Signed-off-by: David Mehren <git@herrmehren.de>
2021-10-21 19:51:57 +02:00
David Mehren
1710b7c00a
Merge pull request #1751 from hedgedoc/fix/privateMediaAPIDoc 2021-10-21 19:40:47 +02:00
David Mehren
5c645b3242
Merge pull request #1760 from hedgedoc/renovate/develop-linters 2021-10-21 19:32:35 +02:00
David Mehren
eff51df526
Merge pull request #1759 from hedgedoc/renovate/develop-test-packages 2021-10-21 19:32:11 +02:00
David Mehren
afdcd8e4af
Merge pull request #1766 from hedgedoc/renovate/develop-ts-node-10.3.x 2021-10-21 19:31:33 +02:00
Renovate Bot
60ecf93551
chore(deps): update linters to v5.1.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-10-21 16:36:48 +00:00
Renovate Bot
8866d9cebe
chore(deps): update dependency jest to v27.3.1
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-10-21 16:36:24 +00:00
Renovate Bot
a85d61b48a
chore(deps): update dependency ts-node to v10.3.1
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-10-21 16:36:05 +00:00
renovate[bot]
06bd588360
fix(deps): update dependency @nestjs/swagger to v5.1.3 (#1765)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-21 16:34:40 +00:00