Commit Graph

1537 Commits

Author SHA1 Message Date
Girish Ramakrishnan 408dd61408 Send and receive oauthProxy in REST routes
Part of #6
2016-09-06 23:32:42 -07:00
Girish Ramakrishnan e82152ac86 Fix failing tests
ec63c1c96e broke tests
2016-09-05 14:04:40 -07:00
Girish Ramakrishnan a5bb438af4 rename env var 2016-09-03 11:46:57 -07:00
Girish Ramakrishnan 59b53d347f display demo user credentials in demo cloudrons 2016-09-01 16:21:12 -07:00
Girish Ramakrishnan 61ef3f3efb disallow certain actions in demo mode
* Cannot change password
* Cannot delete user
* Cannot migrate domain or change plan

Fixes #20
2016-08-31 22:39:42 -07:00
Girish Ramakrishnan af82af5652 test: mail config get/set
Part of #16
2016-08-30 21:23:03 -07:00
Girish Ramakrishnan 5b52eeb573 add route to enable/disable mail
mail is disabled by default

Part of #16
2016-08-30 21:09:22 -07:00
Girish Ramakrishnan 6a4bda1f7e bump test container 2016-08-21 13:25:27 -07:00
Johannes Zellner ed734ef2ae fix tests, purchase api is gone 2016-08-04 16:22:50 +02:00
Johannes Zellner 1f1237e785 Setting the appstore config also deals with appstore registration
- First time it registers the cloudron
- Resetting the account will verify that the Cloudron belongs to this user
- If cloudronId is invalid/unknown we reregister
2016-08-01 15:10:47 +02:00
Johannes Zellner f60ff45cb6 Tokens are now valid for a week 2016-08-01 10:14:47 +02:00
Johannes Zellner 4fb3a42319 Return 202 when setting the cloudron name 2016-07-28 12:40:36 +02:00
Girish Ramakrishnan 0e9007e9ef fix debug 2016-07-27 20:11:45 -07:00
Johannes Zellner a8d04028f3 Fix typo 2016-07-27 11:20:15 +02:00
Johannes Zellner 41e1afaf68 Add settings/appstore routes 2016-07-27 11:20:15 +02:00
Johannes Zellner 0d5d54d2d8 Add xFrameOptions to apps and routes 2016-07-14 16:28:59 +02:00
Johannes Zellner 4b40084c7f Sorry this test needs even more time for me 2016-07-14 16:28:11 +02:00
Johannes Zellner 33c701ece7 Adjust migrate route tests to new api 2016-07-14 16:17:32 +02:00
Johannes Zellner 94ee636254 No need to again check the groups for admin
This is already in user.get() which is attached to req.user
2016-07-12 10:11:04 -07:00
Girish Ramakrishnan 2637b740ab fix cloudron.retire 2016-07-06 13:12:09 -05:00
Girish Ramakrishnan eaeaf92c1a handle BAD_FIELD 2016-07-04 23:32:44 -05:00
Girish Ramakrishnan dcc6108da1 pass req.body instead of options 2016-07-04 23:32:44 -05:00
Girish Ramakrishnan e5baee82e8 one of size, region, domain is allowed in migration route 2016-07-04 23:22:50 -05:00
Girish Ramakrishnan a5def529bb refactor migrate to take options 2016-07-02 16:03:21 -05:00
Girish Ramakrishnan 55e2043eca pass domain argument to cloudron.migrate 2016-07-02 11:23:52 -05:00
Johannes Zellner 4149a5908b Only trigger cloudron retire and print any errors, but always succeed 2016-06-30 15:05:18 +02:00
Girish Ramakrishnan dac9f29900 Add migrate route 2016-06-27 22:40:41 -05:00
Johannes Zellner 1bf869963b Only allow alphanumerics and dash in auth client names 2016-06-23 10:16:02 +02:00
Johannes Zellner cc3f21e213 Handle new upgrade error code in routes 2016-06-22 10:21:56 +02:00
Girish Ramakrishnan dfa4d093f7 test: ensure redis does not export the port 2016-06-20 22:59:47 -05:00
Girish Ramakrishnan 3c305a51ce make sure hostname is unset 2016-06-18 17:58:01 -05:00
Girish Ramakrishnan 7009b9f3ac implement clone 2016-06-17 17:45:14 -05:00
Girish Ramakrishnan fe62aba4d7 make appdb.add take a data object 2016-06-17 16:43:35 -05:00
Girish Ramakrishnan 584df9a6da fix redis query 2016-06-17 12:39:29 -05:00
Girish Ramakrishnan f31c43bbc3 fix EPIPE issue by using http instead of superagent 2016-06-17 11:12:20 -05:00
Girish Ramakrishnan 6c5a3997cb fix clientSecret.length test 2016-06-17 10:07:55 -05:00
Girish Ramakrishnan 91bc45bd4e not sure why this is required but it makes the test more stable 2016-06-16 15:09:46 -05:00
Girish Ramakrishnan a75b9c1428 remove debugs 2016-06-16 14:59:20 -05:00
Girish Ramakrishnan d837e9f679 make test more reliable 2016-06-16 14:50:49 -05:00
Girish Ramakrishnan 53cd45496b parse the response 2016-06-13 18:28:51 -07:00
Girish Ramakrishnan 1763c36a0b restore from the backup's config.json
To summarize what we are doing is that restore is simply getting old data and
old code. Config is not changed. If config is required, then it has to come
in the restore REST parameter. Otherwise, there is too much magic.

https://blog.smartserver.io/2016/06/13/app-restore/
2016-06-13 16:54:59 -07:00
Girish Ramakrishnan a2ec308155 pass the lastBackupId explicity as the backup to restore to 2016-06-13 10:13:54 -07:00
Girish Ramakrishnan b82610ba00 pass data argument to restore 2016-06-13 10:08:58 -07:00
Johannes Zellner 4e9dc75a37 Replace DatabaseError with ClientsError where applicable 2016-06-13 14:43:56 +02:00
Johannes Zellner 0eff8911ee Do not use DatabaseError in routes clients.js 2016-06-13 13:29:39 +02:00
Johannes Zellner 0160c12965 Allow to distinguish between built-in auth clients and external ones 2016-06-09 15:35:00 +02:00
Johannes Zellner d08397336d Add test for addon auth clients deletion 2016-06-09 15:12:30 +02:00
Johannes Zellner 880754877d Prevent the rest api to delete addon auth clients 2016-06-09 14:44:38 +02:00
Girish Ramakrishnan 40348a5132 Merge branch '0.15' 2016-06-08 11:56:24 -07:00
Johannes Zellner 194b9b35bd We now have 3 built-in api clients 2016-06-08 14:48:03 +02:00