128 Commits

Author SHA1 Message Date
Convly
c3a2c7024d PR review adjustments 2021-01-08 10:09:10 +01:00
Convly
2431149912 Lint fixes 2021-01-08 10:09:09 +01:00
Convly
2a483ba958 Cleanup
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2021-01-08 10:09:08 +01:00
Convly
44b213dc6d Fix memory leak (causing heap overflow)
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2021-01-08 10:09:06 +01:00
Convly
44659fc43e heap out of memory
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2021-01-08 09:52:22 +01:00
Convly
857a78e252 Add all missing e2e tests (draft)
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2021-01-08 09:52:22 +01:00
Convly
abda7e674a TestBuilder v1 + impl in packages/strapi
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2021-01-08 09:52:21 +01:00
Convly
5bf9375381 First impl (wip)
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2021-01-08 09:52:21 +01:00
Convly
375e967a80 Init rework, add example with supertest
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2021-01-08 09:52:20 +01:00
Alexandre Bodin
d34cc8d485 Remove unwanted console.log
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-11-10 12:50:29 +01:00
Alexandre Bodin
04c85dd218 Apply feedbacks
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-11-06 19:25:09 +01:00
Alexandre Bodin
08a603623b Cleanup tests
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-11-02 19:41:46 +01:00
Alexandre Bodin
07e7cfc0bd Make lint stricter and fix the errors
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-11-02 19:41:42 +01:00
Jean-Sébastien Herbaux
c4716d5668 [D&P] Return published content by default from get apis (#7657)
* Add _publicationState request param / Returns live by default for CT that have D&P activated

Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-09-22 17:39:46 +02:00
Pierre Noël
f7bd0886bb add options 'editable' and 'restrictRelationsTo' in CTB (#7768)
* add options 'editable' and 'restrictRelationsTo' in CTB

Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-09-22 17:39:46 +02:00
Pierre Noël
74a85c1127 Add migration d&p 2020-09-22 17:39:40 +02:00
Pierre Noël
38216554d5 Draft publish/remove some validators for drafts (#7537)
* remove required + minLength validator for drafts

Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-09-22 17:39:24 +02:00
Pierre Noël
e29c1b7de9 add published_at (#7374)
* add published_at

Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-09-22 17:39:18 +02:00
Alexandre BODIN
7394a35c51
Fix CE tests for travis (#7218)
* Fix CE tests for travis

Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>

* Start app in CE too

Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>

* Cleanup

Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-07-29 13:24:27 +02:00
Alexandre Bodin
cdc9bc2167 Allow multiple args in policies
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-07-08 11:48:43 +02:00
Alexandre Bodin
29fcf7c3cd Clean find relation list and tests
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-07-08 11:48:42 +02:00
Pierre Noël
25bea051e0 prevent delete user route to delete last superAdmin
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-07-08 11:10:11 +02:00
Convly
d69101427f Fix PR: Refactor user e2e tests, fix domain logic, add user::deleteOne route 2020-07-08 11:04:22 +02:00
Pierre Noël
e1209af1de refacto
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-07-08 10:56:57 +02:00
Pierre Noël
182ec648d5 add loading of ee files + add create role
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-07-08 10:56:55 +02:00
Alexandre Bodin
35d87bfdcd Cleanup
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-07-08 10:53:23 +02:00
Alexandre Bodin
7a056c2f45 Add admin registeration API
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-07-08 10:53:19 +02:00
Alexandre Bodin
07f716cee8 Cleanup code
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-07-08 10:24:48 +02:00
Alexandre Bodin
a4f294f1c4 Use passport standard error handling
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-07-08 10:24:38 +02:00
Andrey Hohutkin
94e031eba5
Fixes for Media Library upload (#5971)
* Fix formatFileInfo

Keep original file name including extension

* Fix file name for generated media

File name was not set for all generated media: thumbnail and resized pictures.

* Generate hash based on file name without extension

* cleanup PR

Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>

* Fix unit tests
Exclude temporarily unit test 'Replaces reserved and unsafe characters for URLs and files in hash' because it did not work properly ever.

* Remove path delimiter from filename because it is correct character for file path

* Fix e2e

* Continue fixes for e2e

* Fix createRequest content type

* Correct thumbnail name in e2e test

Co-authored-by: Alexandre BODIN <alexandrebodin@users.noreply.github.com>
Co-authored-by: Alexandre Bodin <bodin.alex@gmail.com>
Co-authored-by: Andrey Hohutkin <none@none>
2020-06-25 10:13:42 +02:00
Alexandre Bodin
5723af75c5 Fix issue with using local pakcage as dependency
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-02-11 16:24:06 +01:00
Alexandre Bodin
eec7d04b20 Fix policy tests after prefix renaming
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-02-11 10:06:17 +01:00
Alexandre Bodin
0c6d39297f Add graphql tests for single-types
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-02-10 21:38:37 +01:00
Alexandre Bodin
721ad15633 Init dz tests 2019-12-13 10:43:38 +01:00
Alexandre Bodin
ab51bbebe4 Fix tests 2019-11-14 16:37:57 +01:00
Alexandre Bodin
d405285fae Handle component update and delete with categories 2019-11-13 18:49:06 +01:00
Alexandre Bodin
b9122edf0d Rename groups to components 2019-11-13 18:49:02 +01:00
soupette
6b0acc7b8e Remove settings-manager 2019-10-02 17:27:22 +02:00
Alexandre Bodin
60d04d26eb Init group tests and fix some groups issues 2019-08-08 14:30:43 +02:00
Alexandre Bodin
93c7f63cd1 Add email tests 2019-08-08 14:30:43 +02:00
Alexandre Bodin
35d22e2c85 Init password tests and split in separate test files 2019-08-08 14:30:42 +02:00
Alexandre Bodin
c17a718f25 Handle date with iso format in input and output to simplify processing 2019-08-05 16:55:17 +02:00
Alexandre Bodin
c5e50665cd Add upload route in content-manager and remove formdata for data creation 2019-07-30 16:58:36 +02:00
Alexandre Bodin
8e8433662b rename wysiwyg type to richtext for future plans 2019-07-29 18:05:18 +02:00
Alexandre Bodin
1dea89ca8f Support type wysiwyg instead of appearance param 2019-07-23 13:36:06 +02:00
Alexandre Bodin
254e6b9c38 Use appName to name the test app package.json 2019-07-18 17:21:53 +02:00
Alexandre Bodin
574b24b5b4 Use generateNew directly and disable dep install 2019-07-18 16:33:18 +02:00
Alexandre Bodin
8c5ffc9a20 Fix naming 2019-07-09 09:25:22 +02:00
Alexandre Bodin
2060ce4ca1 Test manyWay relation 2019-07-09 09:18:07 +02:00
Alexandre Bodin
7dab357125 Cleanup and test Groups CRUD 2019-07-02 13:28:18 +02:00