Commit graph

74 commits

Author SHA1 Message Date
Sonja Happ
b931cdb4f3 Add CreateParameterSchema parameter to IC data model and adapt extraction of start and create parameter schemas to new VILLAScontroller protocol #67 2021-06-01 11:57:36 +02:00
Sonja Happ
5e899d50d3 send ping to externally managed ICs on startup of backend and upon creation of new external IC to obtain full status update #66 2021-06-01 11:33:11 +02:00
Sonja Happ
ce0b57e57b add API query for villas-relay manager to async routine #65 2021-05-26 14:08:31 +02:00
Sonja Happ
1b3e4e907c query status of VILLASnode via VILLASnode API in parallel job #64 2021-05-21 13:08:24 +02:00
Sonja Happ
55fe91c5f4 fix in package name 2021-05-21 13:04:24 +02:00
Sonja Happ
6b2677ef63 fix syntax errors in tests 2021-04-29 13:28:01 +02:00
Sonja Happ
776e89eb90 fix updating bool values of data models (incl. scenario IsLocked parameter #63) 2021-04-14 10:07:35 +02:00
Sonja Happ
0a62c78132 transform "running" parameter of scenario into "IsLocked" parameter; only admins can change this parameter, all operations other than READ fail if scenario is locked - also for associated components #63 2021-03-25 15:40:51 +01:00
2f6f942749 fix IC tests in regard to ManagedBy statys field 2021-03-08 13:30:55 +01:00
c1896fe8e3 code cleanups 2021-03-08 13:29:38 +01:00
a90685a509 amqp: managed_by is a status field not a property 2021-03-08 13:29:16 +01:00
Sonja Happ
92b7f443bc AMQP: Do not run update for successfully deleted component 2021-03-08 11:44:47 +01:00
Sonja Happ
67fc6e94ce omit content checks on updating ICs, just take whatever the new IC contains 2021-03-08 10:44:59 +01:00
Sonja Happ
5930e389c1 fix IC testing (adding UUID) 2021-03-08 10:18:43 +01:00
Sonja Happ
2a88d903b9 rename IC startParameterScheme --> startParameterSchema 2021-03-08 09:40:22 +01:00
a67ebb5429 amqp: fix broken validation of AMQP status updates 2021-03-06 14:23:31 +01:00
Sonja Happ
807be66c55 fix IC testing 2021-02-26 14:59:59 +01:00
Sonja Happ
ba91fad2d7 change error to bad request for update external IC 2021-02-26 14:49:27 +01:00
Sonja Happ
071a5adb4a Merge branch 'external-authentication' into 'master'
External authentication

See merge request acs/public/villas/web-backend-go!25
2021-02-26 13:38:46 +00:00
Sonja Happ
efd24023bc Fix a but in add results endpoint, add model and result as optional action params 2021-02-23 11:39:04 +01:00
Sonja Happ
dc6bdc48d9 return bad request if delete or create action shall be sent to IC with category other than "manager" 2021-02-22 12:36:31 +01:00
Sonja Happ
af05acb969 IC POST and DELETE endpoints return a 400 bad request if they are called for externally managed ICs; Backend does not care about an action's parameters, it just sends the AMQP message #58 #59 2021-02-22 12:26:26 +01:00
Sonja Happ
41f8e75ba9 add fields for result URL and model URL in action message 2021-02-19 14:17:00 +01:00
Sonja Happ
18352aef8a Introduce manager field for IC; set header uuid to manager uuid for create and delete actions #56 2021-02-12 17:20:44 +01:00
e4d200e6fd remove basePath and basePath settings 2021-02-08 11:56:11 +01:00
f4c662940e Authentication: remove unused argument 2021-02-08 11:55:36 +01:00
d2c037a4e0 Merge branch 'amqp-no-periodic-ping' into 'master'
amqp: do not send periodical pings anymore

See merge request acs/public/villas/web-backend-go!29
2021-02-06 01:21:09 +00:00
121cb12487 amqp: do not send periodical pings anymore 2021-02-06 01:59:25 +01:00
59c924bcff update package name of response docs as changed upstream in swag 2021-02-05 22:44:45 +01:00
Sonja Happ
6a5379c9b5 backward compatibility of uptime data type (int vs. float) 2021-02-05 15:50:13 +01:00
Sonja Happ
02794468ba bugfix: enable uptime update 2021-02-04 15:11:24 +01:00
Sonja Happ
c5eace60f7 AMQP: improve message handling 2021-01-29 14:32:29 +01:00
Sonja Happ
16386cc30f syntax fix in ic test 2021-01-28 16:00:25 +01:00
Sonja Happ
3ffc835a8a AMQP: use separate send and recv channels 2021-01-28 15:49:59 +01:00
Sonja Happ
ae4436be6d fix IC and register tests 2021-01-28 12:23:00 +01:00
Sonja Happ
6a23b6d8c3 adapt AMQP status messages to new message structure; add field to IC data model for raw status message 2021-01-28 10:36:35 +01:00
Sonja Happ
d1cb79ffba WIP: scenario tests and IC tests independent of hard coded data #44 2021-01-26 17:20:35 +01:00
Sonja Happ
616a1c74dc WIP: adding test data via JSON file #44 2021-01-26 15:44:51 +01:00
Sonja Happ
d99b769159 use time zone in time format for IC updates 2021-01-25 14:41:08 +01:00
Sonja Happ
ca533f7d5a Merge branch 'jwt-config' into 'master'
Make JWT configurable

See merge request acs/public/villas/web-backend-go!24
2021-01-25 14:01:00 +01:00
Sonja Happ
71e69688a6 allow to set optional properties of IC to empty strings 2021-01-25 12:28:25 +01:00
2625e16fbe config: fix typo GolbalConfig -> GlobalConfig 2021-01-25 10:57:25 +01:00
Sonja Happ
44e919b5af AMQP: move logmessage for sending actions 2021-01-18 17:18:42 +01:00
Sonja Happ
cbd71b90bf add some more fogotten AMQP headers 2021-01-18 16:18:20 +01:00
Sonja Happ
8a5b276b45 AMQP: remove UUID from ICstatus, fake headers in IC testing 2021-01-18 16:04:37 +01:00
Sonja Happ
f4bcc49fbe AMQP: next try to make access to headers work 2021-01-18 15:47:58 +01:00
Sonja Happ
9e23523598 AMQP: try to make access to headers work 2021-01-18 15:41:01 +01:00
Sonja Happ
e0b8ccdddf AMQP: fix test IC 2021-01-18 15:05:36 +01:00
Sonja Happ
e8038aa63a AMQP: fix memory bug 2021-01-18 14:57:21 +01:00
Sonja Happ
034cb83e0f AMQP: read UUID in status update from header of AMQP message instead of payload 2021-01-18 14:46:41 +01:00