Commit graph

42 commits

Author SHA1 Message Date
Sonja Happ
482b7a5a2c Merge branch 'master' into refactor-amqp-session
# Conflicts:
#	helper/amqp.go
#	helper/test_utilities.go
#	routes/component-configuration/config_methods.go
#	routes/file/file_test.go
#	routes/infrastructure-component/ic_amqpmethods.go
#	routes/infrastructure-component/ic_apiquery.go
#	routes/infrastructure-component/ic_test.go
#	routes/register_test.go
#	routes/result/result_methods.go
#	routes/result/result_test.go
#	routes/scenario/scenario_middleware.go
#	routes/scenario/scenario_test.go
#	routes/signal/signal_test.go
#	routes/user/user_validators.go
2021-10-19 16:31:38 +02:00
7631e2a9b5 pass boolean clear argument to DBInit() 2021-10-19 14:40:45 +02:00
2a9b2d4026 fix linting errors found by staticcheck 2021-10-19 13:56:53 +02:00
Sonja Happ
302b1cc470 move functions to duplicate scenarios into respective packages, resolve circular dependency problems (move permissions checking to database package), improve error handling of async DuplicateScenarioForUser function 2021-10-18 17:20:28 +02:00
irismarie
1198fa08f0 remove test as it cannot be executed in test environment 2021-10-15 13:03:43 +02:00
Sonja Happ
7b30b46b27 Add feature for duplicating scenario on external login 2021-09-17 20:32:36 +02:00
Sonja Happ
2dada33562 started refactoring the AMPQ session, WIP #74 2021-08-27 17:20:51 +02:00
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
6b2677ef63 fix syntax errors in tests 2021-04-29 13:28:01 +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
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
Sonja Happ
807be66c55 fix IC testing 2021-02-26 14:59:59 +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
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
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
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
ae4436be6d fix IC and register tests 2021-01-28 12:23:00 +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
2625e16fbe config: fix typo GolbalConfig -> GlobalConfig 2021-01-25 10:57:25 +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
e0b8ccdddf AMQP: fix test IC 2021-01-18 15:05:36 +01:00
Sonja Happ
392cb2fbff remove obsolete line in IC test 2020-11-03 15:35:42 +01:00
Sonja Happ
cc51913163 Add more test for AMQP functions, improve code structure 2020-11-03 15:30:24 +01:00
Sonja Happ
2e64946869 Work on testing for AMQP 2020-11-02 16:55:22 +01:00
Sonja Happ
cf8775b39d connect to AMQP broker in IC tests 2020-10-21 17:27:45 +02:00
Sonja Happ
4922d8c4ce Add field ManagedExternally to IC data model 2020-10-20 16:20:04 +02:00
Sonja Happ
adabfc8e9c Transform Properties into StartParameterScheme 2020-10-20 15:27:36 +02:00
Sonja Happ
1f0455d901 Parameter cleanup in IC model 2020-10-20 12:57:38 +02:00
Sonja Happ
aea28c712e add APIHost parameter to IC data model #35 2020-06-26 10:02:57 +02:00
Sonja Happ
1de4d9c9c2 Code base refactoring: no functional changes, improving test coverage 2020-03-27 11:53:26 +01:00
Sonja Happ
4a58143a6e modify model of infrastructure component; add name, type, and category as top level parameters; fix testing of packages accordingly 2020-03-20 12:21:02 +01:00
Sonja Happ
70b2ded851 modularize main function, use DBpool instead of local DB in database package and all testing functions 2020-03-19 10:50:18 +01:00
Sonja Happ
ef1dede70c renaming: simulation model = component configuration 2020-03-06 15:14:29 +01:00
Sonja Happ
6dbf54d47c fix IC testing 2020-03-04 16:53:57 +01:00
Sonja Happ
11a0c53b85 rename simulator to infrastructure component 2020-03-04 16:34:24 +01:00
Renamed from routes/simulator/simulator_test.go (Browse further)