Commit graph

276 commits

Author SHA1 Message Date
Sonja Happ
77d02ec7a7 Delete signals, dashboards, widgets and component configs + associated elements from DB upon DELETE (no safe-delete anymore) 2020-11-20 13:49:32 +01:00
Sonja Happ
70a483546d fix scenario test, createdAt and updatedAt are now contained in API responses 2020-11-20 09:38:55 +01:00
Sonja Happ
d9175d9432 fix a typo in result endpoint registration 2020-11-19 17:29:51 +01:00
Sonja Happ
89311af146 WIP: initial version of result data model, endpoints, methods, validators, middleware #38 2020-11-19 17:23:24 +01:00
Sonja Happ
b55bb761b5 Dimensions of an image file are stored in File data model, values default to 0 if file is not an image; closes #45 2020-11-16 15:52:36 +01:00
Sonja Happ
d5ce60c71f Merge branch 'extend-amqp'
# Conflicts:
#	amqp/amqpclient.go
#	routes/register.go
#	routes/register_test.go
#	start.go
2020-11-16 13:20:13 +01:00
51dfcbed21 fix routes register test 2020-11-13 10:48:55 +01:00
bd00442940 allow specifying detai;s for initial admin user 2020-11-13 09:33:43 +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
d0c6cca76c Adapt layout of AMQP update to VILLAScontroller protocol, add uptime in IC creation and updates via AMQP; need to check data type of uptime #31 2020-10-30 15:16:53 +01:00
Sonja Happ
e2bebbc676 Do not create ICs with state gone, add some logging info for AMQP-related actions #31 #41 2020-10-30 14:49:56 +01:00
Sonja Happ
fb757b1172 Add test ICB (ManagedExternally=true) only if AMQP is active, test mode working again if AMQP broker is not available 2020-10-30 14:28:46 +01:00
Sonja Happ
9543f041d3 connect to AMQP broker in register endpoint tests 2020-10-26 16:58:20 +01:00
Sonja Happ
03341dbe42 check if state field exists before processing a message 2020-10-26 12:03:02 +01:00
Sonja Happ
cf8775b39d connect to AMQP broker in IC tests 2020-10-21 17:27:45 +02:00
Sonja Happ
b07cd23a70 continue integration of new AMQP functionality #31 #41 #42 2020-10-21 17:16:15 +02:00
Sonja Happ
f9cef090d4 merge amqp module into infrastructure-component module to avoid circular deps, add TODOs in IC endpoints 2020-10-20 16:51:07 +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
c1c28e7e19 Re-activate AMQP related parts of healthz test 2020-10-12 12:26:57 +02:00
Sonja Happ
2e6b980d3d remove some parts in healthz test 2020-10-09 11:37:48 +02:00
Sonja Happ
f90aa70a58 add exit to health test 2020-10-09 11:32:31 +02:00
Sonja Happ
91bd51cba1 AMQP: Set update time, improve creation and update of ICs via AMQP 2020-10-09 09:41:03 +02:00
Sonja Happ
95159f54ec AMQP: Create unknown ICs that are received via AMQP automatically 2020-10-08 16:39:57 +02:00
Sonja Happ
b89a835ddf enable deletion of scenarios from DB 2020-09-28 12:00:03 +02:00
Sonja Happ
5df16ec00b change name and type of file upon update 2020-09-28 11:42:45 +02:00
Sonja Happ
c4d7fc9488 add APIkey-based authentication to swagger documentation 2020-09-25 16:16:46 +02:00
Sonja Happ
f4cb42b719 make host an optional parameter of IC, closes #40 ;fix issues with update date of ICs 2020-07-15 12:32:18 +02:00
Sonja Happ
81c870528d change selectedFileID parameter of component config to array of file ids (fileIDs) #37 2020-07-06 15:31:51 +02:00
Sonja Happ
93bdd15e68 add scalingFactor parameter to Signal data model #33 2020-06-26 10:17:21 +02:00
Sonja Happ
aea28c712e add APIHost parameter to IC data model #35 2020-06-26 10:02:57 +02:00
Sonja Happ
1fa7444c66 Add height parameter to dashboard data model #36 2020-06-26 09:44:25 +02:00
Sonja Happ
ae7b88177d Component Config: selected file ID is signed integer instead of uint (follow up for validators) 2020-05-29 12:53:49 +02:00
Sonja Happ
e6b42ba63c Component Config: selected file ID is signed integer instead of uint (no file selected = -1) 2020-05-29 12:52:25 +02:00
Sonja Happ
8b60430d84 Change of data model: associate files with scenario instead of widgets and component configuration #34 2020-05-26 11:27:00 +02:00
Sonja Happ
0e54b7ba33 simplify download function for files 2020-05-12 12:21:37 +02:00
Sonja Happ
cb43c25c27 add fitting number of input and output signals for signal generator in test data 2020-03-30 14:28:51 +02:00
Sonja Happ
1de4d9c9c2 Code base refactoring: no functional changes, improving test coverage 2020-03-27 11:53:26 +01:00
Sonja Happ
a37608c6e4 more fixes for healthz testing 2020-03-20 13:34:48 +01:00
Sonja Happ
4fa309238f fixes for healthz endpoint and testing 2020-03-20 13:25:44 +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
d2c94d1886 - models: remove imageHeight and imageWidth from File model (is customProperty of image widget)
- test data: add test data in test mode via API instead of GORM
- fix typos and update API documentation
2020-03-13 17:16:12 +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
bff9efa063 WIP: start renaming of simulaton model to component configuration in IC endpoints 2020-03-04 16:41:18 +01:00
Sonja Happ
11a0c53b85 rename simulator to infrastructure component 2020-03-04 16:34:24 +01:00