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
Johannes Zellner
4776a005a5
Remove redundant client TYPE_*s
2016-06-08 14:09:06 +02:00
Johannes Zellner
3c3de6205e
Add test case for blocking cid-webadmin deletion
2016-06-08 11:27:10 +02:00
Johannes Zellner
16444f775d
Prevent deletion of the built-in clients
2016-06-08 11:24:02 +02:00
Girish Ramakrishnan
62b586e8dd
fix require path
2016-06-07 20:57:39 -07:00
Girish Ramakrishnan
313d98ef70
add a route to check for updates quickly
2016-06-07 20:24:41 -07:00
Girish Ramakrishnan
064d950f87
add new tests for field validation
2016-06-07 16:00:02 -07:00
Johannes Zellner
691803f10b
Allow optional expiresAt to be set on token creation
2016-06-07 15:47:13 +02:00
Johannes Zellner
8e5af17e5d
Add route to delete a single token
2016-06-07 15:34:27 +02:00
Johannes Zellner
96eeb247a1
Add rest api to create a new token for a client
2016-06-07 14:29:37 +02:00
Johannes Zellner
c8b9ae542c
Simply return oauth clients instead of join with tokendb
2016-06-07 12:15:25 +02:00
Johannes Zellner
207e81345f
Log event for external login
2016-06-07 11:59:54 +02:00
Johannes Zellner
d880731351
Support ?all query param for oauth clients get route
2016-06-07 11:18:30 +02:00
Girish Ramakrishnan
1766da9174
update code path now takes appStoreId
2016-06-04 20:05:29 -07:00
Girish Ramakrishnan
dbdcf1ec27
pass data object to update
2016-06-04 19:12:36 -07:00
Girish Ramakrishnan
c916ea2589
fix style
2016-06-04 18:56:53 -07:00
Girish Ramakrishnan
5540b5f545
remove unused require
2016-06-04 18:55:31 -07:00