Commit graph

46 commits

Author SHA1 Message Date
661f2049b6 added support for storing files in S3 object storage 2020-11-28 02:51:35 +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
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
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
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
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
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
29e0e0cc9e make sure that at least one admin user is added to DB in release mode 2020-03-19 09:32:39 +01:00
Sonja Happ
d7de421365 remove AddTestData testing function (circular dependency not possible) 2020-03-13 17:35:55 +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
11a0c53b85 rename simulator to infrastructure component 2020-03-04 16:34:24 +01:00
Sonja Happ
9539c42e0b Add array of SignalIDs to widget data model 2020-02-19 10:26:34 +01:00
Sonja Happ
dd0b9fe572 change default selected model files in test data 2020-02-18 16:54:20 +01:00
Sonja Happ
fe5ceb8d61 Add file ID of selected simulation model file to simulationModel data model 2020-02-18 13:36:05 +01:00
Sonja Happ
690ac1c7f6 fix variable naming 2020-01-13 15:29:35 +01:00
Sonja Happ
57b119b23f Merge branch 'example-dashboard' of git.rwth-aachen.de:acs/public/villas/web-backend-go into example-dashboard 2020-01-07 10:12:55 +01:00
Laura Fuentes Grau
6ebd5d6b28 test 2020-01-07 09:26:05 +01:00
Sonja Happ
db3fb5354c fix database test for new test data widgets 2019-12-03 14:54:34 +01:00
Laura Fuentes Grau
5104227606 wip: added the needed testdata for widgets 2019-12-03 14:00:05 +01:00
Sonja Happ
92f22035c6 add GPL 3.0 license statement in all (not auto-generated) code files 2019-11-20 11:08:33 +01:00
Sonja Happ
9f56b66213 replace some fmt. calls with log. calls #17 2019-11-20 10:12:20 +01:00
Sonja Happ
6d4c84ec4e - InitDB returns error
- Check more errors in InitDB
- fix for healthz endpoint (error checking was wrong)
- remove dbinit parameter from config due to redundancy with mode parameter
2019-11-14 11:44:26 +01:00
Sonja Happ
7a64d4653a Some fixes with respect to config
- resolve some name overlappings
- InitConfig sets global config and returns error
- Add missing error handling
2019-11-14 10:38:51 +01:00
2c5400a0cc fix tests 2019-11-13 22:12:22 +01:00
d546f7bc91 fix tests 2019-11-13 21:22:17 +01:00
cbefdd2d07 add new config package 2019-11-13 20:31:06 +01:00
81b0110b68 use log package 2019-11-13 20:30:02 +01:00
Sonja Happ
e8b7508b13 Merge branch 'master' of git.rwth-aachen.de:acs/public/villas/villasweb-backend-go
# Conflicts:
#	database/database.go
2019-11-12 12:02:51 +01:00
Sonja Happ
9f29c8a5f2 local merge 2019-11-12 12:00:06 +01:00
2d16317bab ci: start rabbitmq service for tests 2019-11-11 18:20:41 +01:00
Sonja Happ
7963ce5e78 remove DB_TEST and use DB_NAME instead, InitDB function now has parameter to specify if DB is used for testing or not 2019-11-11 12:06:53 +01:00
e65ec2998d add missing vars 2019-11-09 12:33:28 +01:00
46d2cade8c database: allow configuration of user and password for pgsql connection 2019-11-09 12:27:48 +01:00
Sonja Happ
82dbfa8cad database: add test userC as Guest user to DB 2019-10-24 11:39:27 +02:00
Sonja Happ
14972262c0 add "Active" bool property to user model, required modifications in user and scenario packages 2019-09-17 17:00:07 +02:00
Sonja Happ
387c922059 Revision of (file) testing
- create a guest user and modify function that adds users to the DB for testing
- improve code coverage of file endpoint tests and remove some obsolete code from file package
- add more error info if role validation fails in all endpoints
- change response of GET files to only return the file data and nothing else
- fix some bugs in file endpoints that became visible by the tests
2019-09-11 12:30:01 +02:00
Sonja Happ
f3a7ed0e61 **Major revision of repository structure**
- rename common package to database
- move all code not related to database to new helper package
- add more test in database package to improve code coverage
- add a new (own) package for AMQP client
2019-09-10 16:28:57 +02:00