Commit Graph

871 Commits

Author SHA1 Message Date
Blade Barringer 8c95de0835 Move api tests to v2 namespace 2015-11-03 08:31:20 -06:00
Matteo Pagliazzi ed0e4c6d20 Reorganize files under /src, separate express app in two apps, one for api v1 and v2 and the other \
for the upcoming api v3

Reorganize files under /src, separate express app in two apps, one for api v1 and v2 and the other for the upcoming api v3

move api v2 routes in a separate folder, rename apiv1 file for better readability, remove auth routes for api v1

move api-v2 controllers in subdirectory

move unorganized files to /libs

fix gulp requires and separate server in old (api v1 and v2) and new (api v3) app

fix require paths

fix require paths

fix require paths

put api v1 back

Reorganize files under /src and separate express app in one for api v1 and v2 and the other for v3
2015-11-02 17:43:32 +01:00
Blade Barringer da06e0736a Adjust style of tests. 2015-10-31 21:37:44 -05:00
Blade Barringer f84a10ee4e Simplify delete user test 2015-10-31 21:37:17 -05:00
Jeremy Abbott 19128cf8f2 Fnished user in solo group tests
Also minor code cleanup in random files.
2015-10-31 16:19:50 -05:00
Blade Barringer 421b402948 Add helper to check the existence of a document 2015-10-31 10:55:28 -05:00
Blade Barringer 6a65711c2f Close db connections in helpers 2015-10-31 10:55:17 -05:00
Blade Barringer ad6fbef85c Move chat tests to new infrastructure 2015-10-30 14:47:14 -05:00
Blade Barringer 6f18470b65 Update readme 2015-10-30 09:04:19 -05:00
Blade Barringer aa111b3c1a Update tests to assert against translation strings 2015-10-30 09:01:57 -05:00
Matteo Pagliazzi 332df1d646 Merge pull request #6136 from HabitRPG/upgrade-stack
Upgrade stack
2015-10-29 19:28:51 +01:00
Blade Barringer dd09633d31 Merge branch 'locks-auto-equip' into develop 2015-10-29 12:25:18 -05:00
Blade Barringer 0c82d757c8 Move cs tests to js 2015-10-29 12:25:02 -05:00
Matteo Pagliazzi 37d83fdade mongoo 4 and new travis ci infrastructure 2015-10-29 16:35:02 +01:00
Blade Barringer ee55c44548 Add text assertion to test 2015-10-29 08:42:37 -05:00
Blade Barringer 6ff904bd5a Merge branch 'develop' into czan-develop 2015-10-29 08:40:03 -05:00
Blade Barringer 5cc790093e Move join party tests to new structure. 2015-10-29 07:41:49 -05:00
Blade Barringer 55fcf678c3 Move push notification to new infrastructure. 2015-10-28 21:36:04 -05:00
Blade Barringer ab1ac1f543 Remove unneeded test 2015-10-28 21:09:55 -05:00
Blade Barringer 265bb56db2 Move get user tests 2015-10-28 21:06:28 -05:00
Blade Barringer e98484d0ec Move anonymous route test to new structure. 2015-10-28 21:00:28 -05:00
Blade Barringer fd4fb836f0 Move task tests 2015-10-28 17:18:27 -05:00
Blade Barringer b70597e1d1 Merge pull request #6122 from crookedneighbor/batch_update_adjustment
Batch update adjustment
2015-10-27 21:35:19 -05:00
Blade Barringer 691ab86bd6 Add test for default user id 2015-10-27 19:40:11 -05:00
Blade Barringer a7c52e6086 Reinstate amplitude analytics 2015-10-27 19:37:57 -05:00
Blade Barringer 68689d1a05 Remove debug option from mocha opts 2015-10-27 12:25:39 -05:00
Blade Barringer 4886b50aa3 Add testing for batch update. Handle unknown operations better. 2015-10-27 08:13:30 -05:00
Carlo Zancanaro 4d6bd38648 Add GET routes for /user/tags and /user/tags/{id}
An operation that is useful for tools to be able to do is to list a
user's tags without having to pull down the entire user object (which is
likely significantly larger than the tags). This commit adds a route to
GET /user/tags, to get a list of the user's tags, as well as a GET
/user/tags/{id} to get the details of a particular tag.

This commit also includes tests for the two new routes.
2015-10-27 13:49:17 +11:00
Blade Barringer 09596c657b Remove only form test 2015-10-26 17:34:29 -05:00
Blade Barringer 2790008937 Adjust error message to not point to a readme file that does not exist. 2015-10-26 17:27:08 -05:00
Blade Barringer 13bca6b9a9 Prevent class from being changed via PUT /user 2015-10-26 17:25:51 -05:00
Blade Barringer c7b162271c Adjust context title. 2015-10-26 17:13:21 -05:00
Blade Barringer 13fa14270d Add additional check for stat change 2015-10-26 12:52:18 -05:00
Blade Barringer f8d08b4195 Merge branch 'jeremyabbott-userputtests' into userput 2015-10-26 12:25:17 -05:00
Blade Barringer 6a6922bb3f Add tests for protected paths 2015-10-26 12:24:02 -05:00
Jeremy Abbott e4269723e1 Creates initial PUT /user test
Adds missing semi-colon to DELETE-user.test.js
2015-10-26 10:54:37 -05:00
Blade Barringer 0eac953170 Adjust stying of put test 2015-10-26 08:04:30 -05:00
Blade Barringer cf7be0b7a3 Merge branch 'develop' into jeremyabbott-userputtests 2015-10-26 08:00:30 -05:00
Blade Barringer 04fbdaa107 Reinstate error code in resolve promise for api tests. 2015-10-26 07:53:51 -05:00
Jeremy Abbott eeb14075bb Creates initial PUT /user test 2015-10-25 22:58:10 -05:00
Jeremy Abbott 6b52a32265 Creates user-put file with stub test 2015-10-25 18:07:50 -05:00
Blade Barringer 01914523e1 Remove dependency on chai-shallow-deep-equal 2015-10-25 12:50:14 -05:00
Blade Barringer b72c37301c Update api tests readme 2015-10-25 11:34:45 -05:00
Blade Barringer 8e282738f5 Convert pending api tests to use promise syntax 2015-10-25 11:21:19 -05:00
Blade Barringer f06d3cdffe Convert remaining active api tests to use promises 2015-10-25 11:09:50 -05:00
Blade Barringer 12ce4b133d Update GET groups route test to use promises. 2015-10-25 10:57:42 -05:00
Blade Barringer 177c81da81 Use promise syntax for Get groups id route test. 2015-10-25 10:43:34 -05:00
Blade Barringer 5961e02f5f Use promise syntax in POST groups test. 2015-10-25 10:12:43 -05:00
Blade Barringer a5c0bae273 Update POST group id tests. 2015-10-25 09:40:36 -05:00
Blade Barringer f98c6b7192 Add chai-shallow-deep-equal plugin 2015-10-25 09:40:23 -05:00