Commit graph

885 commits

Author SHA1 Message Date
Sonja Happ
e070fbdbd0 enable start without test data, improve error handling #44 2021-04-30 14:19:10 +02:00
Sonja Happ
3b213dbe32 use User database model to append association to scenario-user table 2021-04-30 12:47:44 +02:00
43a5a5dcd3 more debugging for group scenario mapping 2021-04-30 07:49:23 +02:00
Sonja Happ
ea49019ccb fixes after merge 2021-04-29 16:43:32 +02:00
Sonja Happ
d57d1e9b0b Merge branch 'master' of git.rwth-aachen.de:acs/public/villas/web-backend-go
 Conflicts:
	routes/user/authenticate_endpoint.go
2021-04-29 16:42:56 +02:00
Sonja Happ
f07d8e1089 remove references and pointers in authenticate functions 2021-04-29 16:41:06 +02:00
956e00756f fixes for group scenario mapping 2021-04-29 15:17:24 +02:00
Sonja Happ
3098b773b6 fix for healthz test 2021-04-29 14:32:59 +02:00
Sonja Happ
1fcb799ebc fix another mistake in a test 2021-04-29 14:23:25 +02:00
Sonja Happ
6b2677ef63 fix syntax errors in tests 2021-04-29 13:28:01 +02:00
Sonja Happ
b1c08f16b0 WIP: rework the demo data reading via config parameter(s) 2021-04-29 12:45:55 +02:00
e8673fad31 fix name of login url 2021-04-29 11:08:20 +02:00
Sonja Happ
d6a58a4cc0 complete switch to yaml files for groups/scenario mapping #61 2021-04-29 10:13:38 +02:00
c9a14bb767 use YAML for group scneario map 2021-04-29 09:24:12 +02:00
Sonja Happ
174ed2dd2e check if groups file exists 2021-04-22 14:56:02 +02:00
Sonja Happ
34e6e61dc2 Merge branch 'map-external-groups-to-scenarios' into 'master'
Add static map to add users to scenarios based on their groups

Closes #61

See merge request acs/public/villas/web-backend-go!31
2021-04-22 09:28:34 +00:00
Sonja Happ
f252c164b1 read groups file in main function instead of InitConfig to avoid problems with tests 2021-04-21 14:33:14 +02:00
Sonja Happ
ad44f8d1eb read static scenario/group mapping from JSON file #61 2021-04-21 14:16:23 +02:00
Sonja Happ
e1654941a1 Merge branch 'master' into map-external-groups-to-scenarios 2021-04-21 13:51:21 +02:00
Sonja Happ
aa9d01f230 Merge branch 'scenario-is-locked' into 'master'
Introduce IsLocked Parameter for Scenario (instead of Running parameter)

See merge request acs/public/villas/web-backend-go!30
2021-04-21 09:20:19 +00:00
Sonja Happ
2c79523a50 fix access checking for scenarios 2021-04-20 17:10:29 +02:00
Sonja Happ
56742cd908 fix usage of GORM 2021-04-19 17:00:25 +02:00
7049ba6eaa add static map to add users to scenarios based on their groups 2021-04-15 17:32:55 +02:00
Sonja Happ
edb361f150 Fix in file test 2021-04-14 12:23:45 +02:00
Sonja Happ
f3d6353f86 add user role Download; limit access check to scenario in file middleware #52 2021-04-14 11:11:28 +02:00
Sonja Happ
75aa4a023f CI: disable cache and artifacts 2021-04-14 10:18:34 +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
cabb3ed7f7 extend testing for updating scenarios in locked state 2021-03-25 15:46:59 +01: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
e11278cce3 fix typo when checking if auth external is enabled in authenticated endpoint 2021-02-26 14:14:23 +01: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
0f0e8872b9 change second test data IC to not managed externally 2021-02-22 12:40:53 +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
cea6149b39 fix update of input and output length upon adding signals 2021-02-18 14:16:07 +01:00
Sonja Happ
6c8b55469f fix a bug with update of input and output length 2021-02-18 13:29:55 +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
Sonja Happ
f8101977b6 fix typo when referring to external auth enabled config variable 2021-02-12 14:36:10 +01:00