Commit Graph

128 Commits

Author SHA1 Message Date
Shane Kilkelly 78f87c0ecf Add acceptance test for the project-list and project-entities endpoints 2018-05-23 15:02:45 +01:00
Shane Kilkelly 691eec48ba Merge branch 'master' into sk-linked-files-from-project 2018-05-22 15:39:09 +01:00
Shane Kilkelly e34131ed45 Add acceptance test for project linked files 2018-05-22 15:01:51 +01:00
James Allen 701a803da7 Fix ProjectInvite tests since the user no longer had the features 2018-05-22 10:19:47 +01:00
James Allen 50bd60dd51 Split FeaturesUpdater out of SubscriptionUpdater 2018-05-22 10:05:08 +01:00
James Allen 0830c473ad Update unit tests and refactor to make more testable 2018-05-22 10:05:08 +01:00
James Allen b1f378208d Properly merge subscriptions from different places 2018-05-22 10:05:08 +01:00
Michael Mazour 3922b8b916 Add project export acceptance tests
- Add acceptance tests
- Add `MockV1Api` helper
- Add flush endpoint to `MockProjectHistoryApi` helper
2018-05-16 14:58:34 +01:00
Brian Gough e414100c41 add support for unique lock values 2018-05-04 13:22:33 +01:00
James Allen 37f009c3cd Remove blank test causing race condition 2018-04-17 10:00:06 +01:00
James Allen 9e525702c1 Merge branch 'master' into ja-restore-files 2018-04-16 16:14:31 +01:00
Alberto Fernández Capel 1b8f4bff2f Ensure dump folder exists before running LinkedFiles tests
The folder is also created in another test, so it will work the second
time the tests are executed, but it fails the first time.
2018-04-12 10:29:24 -05:00
Brian Gough 882b555433 create new file on replace 2018-04-09 12:05:08 +01:00
James Allen 2c0bd94fa7 Use mkdirp when restoring a file if the folder doesn't exist 2018-04-06 15:20:51 +01:00
James Allen 1e8439a2c6 Fix restore of docs from old deleted docs 2018-04-06 10:30:13 +01:00
James Allen 3832850be6 Implement restore end point with acceptance tests 2018-04-06 10:30:13 +01:00
James Allen beee86f1ce First pass at restore end point 2018-04-06 10:30:13 +01:00
James Allen a99f55891f Use external proxy 2018-03-05 10:37:53 +00:00
James Allen 01d84bd983 Handle error cases when downloading URL 2018-03-05 10:37:00 +00:00
James Allen 85f25b810c First pass at URL based linked files 2018-03-05 10:37:00 +00:00
Brian Gough e6020e2e9b update acceptance tests to include project structure version
this tests the version sent to the docupdater
2018-03-01 12:32:09 +00:00
Brian Gough 389f2d64ef prepare tests for versioning 2018-03-01 12:32:09 +00:00
Brian Gough 792c0135a0 update acceptance tests helper to include version 2018-03-01 12:32:09 +00:00
Brian Gough f7e70e8228 add acceptance tests 2018-03-01 12:32:09 +00:00
Alasdair Smith f11f208772 Revert "Revert "Upgrade to mocha 5.0.1"" 2018-02-27 15:03:21 +00:00
Alasdair Smith 315587605c Revert "Upgrade to mocha 5.0.1" 2018-02-27 12:25:42 +00:00
Alasdair Smith 19cec9451d Switch to using scoped variable instead of variables on context
Changes to mocha mean that a new context is passed to each describe block
instead of it persisting between them.

This means that this test cannot be parallelised, however this was the case
beforehand (subsequent tests are dependent on earlier tests).
2018-02-26 15:31:41 +00:00
Alasdair Smith 3217a3fbf0 Fix mocha complaining about returning Promise-like object 2018-02-26 15:31:34 +00:00
Hayden Faulds d924dbd1ed improve metrics 2018-02-20 13:58:09 +00:00
Hayden Faulds e50c3837bc add extra metrics around locking 2018-02-19 12:15:02 +00:00
Hayden Faulds 23c7ab0529 add locking tests 2018-02-16 16:57:12 +00:00
Hayden Faulds dd582d1b2e type-check ProjectGetter.getProject and getProjectWithoutLock arguments 2018-02-16 14:44:21 +00:00
Hayden Faulds 458bbc7cfd refactor ProjectEntityHandler
- moves project locking into ProjectEntityHandler
- splits ProjectEntityHandler into ProjectEntityHandler,
  ProjectEntityUpdateHandler and ProjectEntityMongoUpdateHandler
- adds upsertDoc/upsertFile and upsertDocWithPath/upsertFileWithPath to
  EditorController and ProjectEntiyUpdateHandler
2018-02-12 13:33:59 +00:00
Brian Gough 5e52ade1ff Merge pull request #286 from sharelatex/bg-prevent-duplicate-filenames
prevent duplicate filenames
2018-01-31 11:50:45 +00:00
Brian Gough 21c1ea6687 remove comment in test 2018-01-31 10:26:06 +00:00
Brian Gough 2f52e6c4b4 remove comments 2018-01-29 10:38:25 +00:00
Brian Gough cd2688a740 added tests for rename/move 2018-01-26 17:00:33 +00:00
Brian Gough 69bed6dbb2 fix MockFileStoreApi to record uploaded files 2018-01-25 17:09:31 +00:00
Brian Gough 68ac597a93 initial acceptance tests 2018-01-25 17:09:31 +00:00
James Allen 626f652c77 Update User acceptance test helper to expose methods for modules 2018-01-24 16:56:31 +00:00
James Allen d79d6b4ede Fix call of UpdateMerger.deleteUpdate in TpdsController.deleteProjectContents 2018-01-22 16:25:11 +00:00
James Allen 339b7ec14f Merge branch 'ja-allow-importing-without-history' 2017-12-19 15:06:17 +00:00
James Allen 5463b608ad Add add{File|Doc}WithoutUpdatingHistory methods to allow importing OL projects with existing history 2017-12-19 13:59:06 +00:00
Hayden Faulds 938caed4f7 set userId when deleting entities via the tpds 2017-12-18 15:15:36 +00:00
Hayden Faulds ca15fdb6eb pass userId to EditorHttpController.deleteEntity 2017-12-18 15:15:36 +00:00
Hayden Faulds 99a52d48c8 acceptance test versioning entity deletions 2017-12-18 15:15:36 +00:00
Hayden Faulds 81c061c6a7 acceptance test moving entities 2017-12-18 15:15:36 +00:00
Hayden Faulds 77eac423c7 add tpds project structure acceptance tests 2017-12-04 09:42:09 +00:00
Hayden Faulds 3466db0aae add acceptance tests 2017-12-04 09:42:09 +00:00
Hayden Faulds 28bcf83d87 better error when project creation fails 2017-12-04 09:25:22 +00:00