Commit Graph

44 Commits

Author SHA1 Message Date
Denis Barbaron
9b8738cdbb fix bug by completing the PR #650 (#824)
Signed-off-by: Denis barbaron <denis.barbaron@orange.com>
2025-01-20 17:53:57 +01:00
Denis Barbaron
872b0bcbd8 fix all vulnerabilities in the production code (#817)
Signed-off-by: Denis barbaron <denis.barbaron@orange.com>
2024-11-29 11:02:11 +01:00
Denis Barbaron
2f54e40206 Upgrading STF for security reasons (#813)
* Upgrading STF for security reasons

Signed-off-by: Denis barbaron <denis.barbaron@orange.com>

* update semaphore files

Signed-off-by: Denis barbaron <denis.barbaron@orange.com>

* upgrading STF for security reasons v2

Signed-off-by: Denis barbaron <denis.barbaron@orange.com>

* update yarn.lock file

Signed-off-by: Denis barbaron <denis.barbaron@orange.com>

---------

Signed-off-by: Denis barbaron <denis.barbaron@orange.com>
2024-11-22 11:41:20 +01:00
Denis Barbaron
489ba0427e Add maintenance banner on UI (#797)
* fix bug on email separator

Signed-off-by: Denis barbaron <denis.barbaron@orange.com>

* allow group name change

Signed-off-by: Denis barbaron <denis.barbaron@orange.com>

* add maintenance banner on UI

Signed-off-by: Denis barbaron <denis.barbaron@orange.com>

* removes unnecessary comments

Signed-off-by: Denis barbaron <denis.barbaron@orange.com>

---------

Signed-off-by: Denis barbaron <denis.barbaron@orange.com>
2024-07-19 10:33:52 +02:00
Denis Barbaron
cf56911e9f Allow group name change (#795)
* fix bug on email separator

Signed-off-by: Denis barbaron <denis.barbaron@orange.com>

* allow group name change

Signed-off-by: Denis barbaron <denis.barbaron@orange.com>

---------

Signed-off-by: Denis barbaron <denis.barbaron@orange.com>
2024-07-15 17:03:33 +02:00
Denis Barbaron
51b86a87ef fix bug on taking control of a device: set a lock for exclusive access (#650)
* fix bug on taking control of a device: set a lock for exclusive access

Signed-off-by: Denis barbaron <denis.barbaron@orange.com>

* update the locking function

Signed-off-by: Denis barbaron <denis.barbaron@orange.com>

---------

Signed-off-by: Denis barbaron <denis.barbaron@orange.com>
2023-04-03 20:05:49 +02:00
Denis Barbaron
9c0f2d4df8 fix spelling mistakes in API file (#630)
Signed-off-by: Denis barbaron <denis.barbaron@orange.com>

Signed-off-by: Denis barbaron <denis.barbaron@orange.com>
2023-01-16 16:58:36 +01:00
Karol Wrótniak
e60bcee3fc Revert "Fix adbkit API invocations (#524)" (#528)
This reverts commit 6f09708304.
2022-05-12 10:08:47 +02:00
Karol Wrótniak
6f09708304 Fix adbkit API invocations (#524)
Update Adbkit to 3.2.3
2022-05-05 18:43:22 +02:00
Denis Barbaron
6b2f434acb upgrade node to latest version v17.9.0 (#500)
* upgrade node to latest version v17.9.0

Signed-off-by: Denis Barbaron <denis.barbaron@orange.com>

* remove useless comments in karma configuration file

Signed-off-by: Denis Barbaron <denis.barbaron@orange.com>
2022-04-12 17:03:43 +02:00
Jussi Vatjus-Anttila
3370f679bc add rest API for update Device note (#222)
* add rest API for update Device note

Signed-off-by: Jussi Vatjus-Anttila <jussiva@gmail.com>

* improve failure message

Signed-off-by: Jussi Vatjus-Anttila <jussiva@gmail.com>

Co-authored-by: Karol Wrótniak <karol.wrotniak@droidsonroids.pl>
2021-04-06 11:21:38 +02:00
Karol Wrótniak
86bc95e72a Add namespace to npm dependencies (#28) 2020-07-05 12:31:15 +02:00
Denis Barbaron
4aa72e7ee3 Update description of Group API in swagger file
Using API, Group dates have to be provided in UTC conforming to RFC 3339 section 5.6
2020-02-14 11:35:56 +01:00
Denis barbaron
91d828dfdb merge from master: fixing conflicts 2019-08-27 15:04:33 +02:00
Denis barbaron
7f5dc4c152 add groups feature 2019-06-12 10:29:07 +02:00
Vishal Banthia
707482fa3b Update generated swagger.json 2017-07-31 17:25:42 +09:00
kris
9f3f0b9692 cleaned up per vbanthia's comments. fixed docs to align with implementation 2017-06-14 21:38:09 -05:00
kris
eb069bbdf3 updating generated JSON 2017-05-31 09:11:35 -05:00
kris
378edc7d92 allowing default content type for POST/DELETEs
fixes https://github.com/openstf/stf/issues/594
2017-05-31 09:08:09 -05:00
Vishal Banthia
445cfcf0bc Merge pull request #481 from openstf/add-automation-label
Use automation label in device list for devices accessed using API
2016-11-25 03:59:20 +05:30
Marc Bachmann
bac74538c9 chore(package): update uuid to version 3.0.0 2016-11-23 03:21:32 +01:00
Vishal Banthia
a62a6094e4 Use automation state for devices used by api 2016-11-23 06:45:36 +05:30
Vishal Banthia
b60cb6ef6a Fix eslint errors 2016-07-22 19:40:27 +05:30
Vishal Banthia
484e56be12 Use capital letter in Bearer as per rfc spec 2016-07-22 19:34:22 +05:30
Vishal Banthia
87fcf19406 refactor security handler 2016-07-22 19:34:22 +05:30
Vishal Banthia
fa9ee605f3 update generated json 2016-07-22 19:34:22 +05:30
Vishal Banthia
a6266931ad Modify APIs from Aysnc -> Sync using timeout 2016-07-22 19:34:22 +05:30
Vishal Banthia
723094347c add generated swagger json file for swagger ui 2016-07-22 19:34:22 +05:30
Vishal Banthia
9de5ba5fae refactoring swagger 2016-07-22 19:34:22 +05:30
Vishal Banthia
26ad95a36e add comment for going against REST 2016-07-22 19:34:22 +05:30
Vishal Banthia
25cee263b2 Fix express warning for deprecated res.json(stat) message 2016-07-22 19:34:22 +05:30
Vishal Banthia
96494247bb add remoteConnect endpoint for device 2016-07-22 19:34:22 +05:30
Vishal Banthia
c9a9d3cb06 User path parameter for Delete /user/devices/:device endpoint 2016-07-22 19:34:22 +05:30
Vishal Banthia
bca180d284 refactor reserve and release endpoints in HTTP POST and DELETE methods 2016-07-22 19:34:22 +05:30
Vishal Banthia
dccacea43f add new device-reserve and device-release endpoints 2016-07-22 19:34:22 +05:30
Vishal Banthia
536e469e6f remove unnecessary options from api unit. Improve error messages... etc etc 2016-07-22 19:34:22 +05:30
Vishal Banthia
221bc78e49 use security handler instead of express middleware for access token validation. 2016-07-22 19:34:22 +05:30
Vishal Banthia
f10ae51b53 add swagger.json endpoint 2016-07-22 19:34:22 +05:30
Vishal Banthia
0ec03aa2c0 move accessTokens endpoint from app unit to api unit 2016-07-22 19:34:22 +05:30
Vishal Banthia
5729095acb move group endpoint from app unit to api unit 2016-07-22 19:34:22 +05:30
Vishal Banthia
d6f37681ce move devices endpoint from app unit to api unit 2016-07-22 19:34:22 +05:30
Vishal Banthia
0e8b308b6c change /app/api/v1/user -> /api/v1/me 2016-07-22 19:34:22 +05:30
Vishal Banthia
e0a45391ab Add auth middleware in api unit. Now only authorized user can access api unit 2016-07-22 19:34:22 +05:30
Vishal Banthia
41f306a7f0 Add basic api unit. This unit will be responsible for providing all stf restful apis. 2016-07-22 19:34:22 +05:30