Commit Graph

658 Commits

Author SHA1 Message Date
Vishal Banthia
cc8c6e4062 Modify APIs from Aysnc -> Sync using timeout 2016-01-04 12:58:22 +09:00
Vishal Banthia
eb0fb8f8c2 typo 2016-01-04 12:58:22 +09:00
Vishal Banthia
5e3d7b9e10 remove unnecessary requirements from app unit 2016-01-04 12:58:22 +09:00
Vishal Banthia
feb0b7e53e add generated swagger json file for swagger ui 2016-01-04 12:58:22 +09:00
Vishal Banthia
d8a60404fe refactoring swagger 2016-01-04 12:58:22 +09:00
Vishal Banthia
a8e89ff737 add comment for going against REST 2016-01-04 12:58:22 +09:00
Vishal Banthia
34c5a1ad38 Fix express warning for deprecated res.json(stat) message 2016-01-04 12:58:22 +09:00
Vishal Banthia
daa00d8fd0 add remoteConnect endpoint for device 2016-01-04 12:58:22 +09:00
Vishal Banthia
94d7c77154 add remoteDebugUrl into database so that it is accessible from api 2016-01-04 12:58:22 +09:00
Vishal Banthia
0cc1a0d4bd User path parameter for Delete /user/devices/:device endpoint 2016-01-04 12:58:22 +09:00
Vishal Banthia
8b1eb8dddf refactor reserve and release endpoints in HTTP POST and DELETE methods 2016-01-04 12:58:22 +09:00
Vishal Banthia
14672a89b3 add new device-reserve and device-release endpoints 2016-01-04 12:58:21 +09:00
Vishal Banthia
38e4860e52 remove unnecessary options from api unit. Improve error messages... etc etc 2016-01-04 12:58:21 +09:00
Vishal Banthia
d33aa54bce use security handler instead of express middleware for access token validation. 2016-01-04 12:58:21 +09:00
Vishal Banthia
8343ddabdb add swagger.json endpoint 2016-01-04 12:58:21 +09:00
Vishal Banthia
a33120aacf move accessTokens endpoint from app unit to api unit 2016-01-04 12:58:21 +09:00
Vishal Banthia
168d06096d move group endpoint from app unit to api unit 2016-01-04 12:58:21 +09:00
Vishal Banthia
dbeebec141 move devices endpoint from app unit to api unit 2016-01-04 12:58:21 +09:00
Vishal Banthia
cebca90371 change /app/api/v1/user -> /api/v1/me 2016-01-04 12:58:21 +09:00
Vishal Banthia
dc67bc1bb2 Add auth middleware in api unit. Now only authorized user can access api unit 2016-01-04 12:58:21 +09:00
Vishal Banthia
e3c70bb025 Add basic api unit. This unit will be responsible for providing all stf restful apis. 2016-01-04 12:58:21 +09:00
Vishal Banthia
6d99bace91 improve token-id format to make it more secure 2015-12-03 21:37:19 +09:00
Vishal Banthia
8a342daef9 remove default expiry in jwt token 2015-12-03 02:08:26 +09:00
Vishal Banthia
9cb231391a Create seperate database table for AccessTokens to hide jwt token and tokenId from user 2015-11-26 03:09:58 +09:00
Vishal Banthia
62413b3780 allow user to create an access token to access stf api from user settings tab. 2015-11-26 02:40:34 +09:00
Vishal Banthia
466890777d Allow to update device notes column from STF UI. https://github.com/openstf/stf/issues/124 2015-11-13 21:16:59 +09:00
Simo Kinnunen
467ed01903 Make ESLint happy and use the existing style where possible. 2015-11-06 02:31:28 +09:00
tchibana
44f65a2c0c Merge branch 'master' of https://github.com/openstf/stf into s3insteadoftmp 2015-10-22 00:25:12 +09:00
tchibana
e4cb21b1e1 fix review comments 2015-10-22 00:22:35 +09:00
Simo Kinnunen
66fbadbd5d Wait for indexes to be ready before we let migrate finish. Should fix 2015-10-22 00:10:26 +09:00
tchibana
49dcc7126d fixed review comments. 2015-10-21 23:45:20 +09:00
tchibana
d6c0caeb66 fixed cli.js as review comment. 2015-10-21 23:10:09 +09:00
Simo Kinnunen
8e8f2d17b7 Make ZMQ keepalive options optional, since they're breaking things on
some systems. You should now use the ZMQ_TCP_KEEPALIVE=1 and
ZMQ_TCP_KEEPALIVE_IDLE=<value> environment variables to set them.
2015-10-21 20:13:45 +09:00
Simo Kinnunen
396cfbad7f Allocated ports were not being released properly due to fork() now consuming the ports. Additionally fixes port pool grouping. Fixes #138. 2015-10-21 16:58:41 +09:00
tchibana
bbbd8f688c Merge branch 'master' of https://github.com/openstf/stf into s3insteadoftmp 2015-10-20 01:34:05 +09:00
hogehoge-banana
8462290d34 fix file expiration logic and some bugs. 2015-10-20 00:55:33 +09:00
Simo Kinnunen
0942ecea7a Fix stf local not accepting multiple serials. Fixes #91. 2015-10-14 01:56:30 +09:00
Simo Kinnunen
b248e96dc2 Output a warning instead of crashing if ZMQ library is too old to
support TCP keepalive options. Fixes #109.
2015-10-14 01:40:30 +09:00
Gunther Brunner
342890e884 Start fixing npm test warnings. 2015-10-13 21:21:32 +09:00
Simo Kinnunen
3b89196cc3 Fix VNC endianness check. 2015-10-13 19:25:56 +09:00
Simo Kinnunen
638322fd47 Fix VNC auth DB index. 2015-10-13 15:31:26 +09:00
Simo Kinnunen
d55ce41214 No need for VNC "fingerprint" anymore. 2015-10-13 04:05:07 +09:00
Simo Kinnunen
5216eac5ce Remove unused VNC authentication utilities. 2015-10-13 04:05:07 +09:00
Simo Kinnunen
5b5520b705 VNC authentication works, although there is no UI for adding passwords
yet. Direct database manipulation is required for now.
2015-10-13 04:05:07 +09:00
Simo Kinnunen
a902c66131 Fix misc eslint errors. 2015-10-13 04:05:07 +09:00
Simo Kinnunen
86824ea1e2 Merge pull request #104 from vbanthia/Issue-100_Add_socketopt_to_keep_tcp_connection_alive
Set TCP_KEEPALIVE socket option to all sockets to fix #100
2015-10-10 16:03:37 +09:00
Vishal Banthia
6c741cbf4b Set TCP_KEEPALIVE socket option to fix tcp_connection problem in
some network. Issue-100
2015-10-09 16:32:02 +09:00
Gunther Brunner
b95ec55e3e Update dependencies. Fix npm 3 flattened paths for our webpack middleware. 2015-10-09 16:31:59 +09:00
Simo Kinnunen
ae449a631a Merge branch 'vnc' 2015-09-28 15:01:43 +09:00
Simo Kinnunen
dc0a6f4d96 Support Android M Developer Preview 3. 2015-09-28 03:21:06 +09:00