Commit graph

80 commits

Author SHA1 Message Date
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
1b3e4e907c query status of VILLASnode via VILLASnode API in parallel job #64 2021-05-21 13:08:24 +02:00
Sonja Happ
e070fbdbd0 enable start without test data, improve error handling #44 2021-04-30 14:19:10 +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
c9a14bb767 use YAML for group scneario map 2021-04-29 09:24:12 +02: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
00989a7725 get rid of ConfigureBackend 2021-02-08 11:56:14 +01:00
e4d200e6fd remove basePath and basePath settings 2021-02-08 11:56:11 +01:00
cf32b04d35 remove gin-swagger 2021-02-05 22:43:20 +01:00
Sonja Happ
28434668bf further cleanups, make register test work again 2021-01-27 11:15:27 +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
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
bd00442940 allow specifying detai;s for initial admin user 2020-11-13 09:33:43 +01:00
Sonja Happ
defc3a87f7 Enable test mode to work with AMQP, adapt IC test data 2020-11-12 14:17:30 +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
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
c4d7fc9488 add APIkey-based authentication to swagger documentation 2020-09-25 16:16:46 +02:00
Sonja Happ
1de4d9c9c2 Code base refactoring: no functional changes, improving test coverage 2020-03-27 11:53:26 +01:00
Sonja Happ
eb10488c1f check if AMQP host is set before attempting to connect 2020-03-20 15:33:16 +01:00
Sonja Happ
d29a8f30f7 fix for amqp URL 2020-03-20 13:16:14 +01:00
Sonja Happ
4945d6ee85 use separate ENV variables for AMQP username and password 2020-03-20 13:14:31 +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
dbed662ad1 remove obsolete access to global config 2020-03-13 17:35:24 +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
7d05fa5f08 do not append port to baseHost 2019-11-21 11:56:26 +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
3524564a0f separate port and host configuration parameters (default values remain unchanged) 2019-11-19 15:35:21 +01:00
Sonja Happ
9deed119fd fixes for healthz and metrics endpoints
- no authentication
- swagger documentation update
2019-11-14 12:34: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
a868dccc10 Revolve name overlapping with docs package 2019-11-14 10:41:09 +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
a1f7ea9ed9 Merge branch 'master' into config-logging 2019-11-13 21:28:29 +01:00
d546f7bc91 fix tests 2019-11-13 21:22:17 +01:00
085627f4e7 config: added base.host and base.path settings 2019-11-13 20:52:27 +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
cbcf8abef7 healthz endpoint shoud reside at root path and be accessible by everybody (/api/v2 requires auth) 2019-11-13 18:10:28 +01:00
72be3b77bf added metrics route 2019-11-13 18:09:14 +01:00
34c39e26d9 swaggo: fix base url for API 2019-11-13 16:50:57 +01:00
Sonja Happ
32bff963d2 improves swaggo documentation
- remove blank lines
- add and improve links
2019-11-13 15:03:31 +01:00
Sonja Happ
4f62b52d9f register healthz endpoint, modify description for swaggo 2019-11-13 14:07:28 +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
2311d643c6 fix repo path 2019-11-09 11:40:56 +01:00
Sonja Happ
c0b8a6be80 revision of simulator package
- move amqp endpoint implementation to amqp package
- improve code coverage of simulator testing
- remove some unnecessary code from package implementation
2019-09-11 16:16:00 +02:00