Commit graph

431 commits

Author SHA1 Message Date
Sonja Happ
344b2bbc7c Merge branch 'master' into refactor-amqp-session
# Conflicts:
#	database/database.go
#	routes/healthz/healthz_endpoint.go
#	start.go
2021-10-26 10:50:11 +02:00
Sonja Happ
96572c35b1 allow widget name to be empty string in update 2021-10-25 11:02:38 +02:00
irismarie
3e2f2ce8e8 complete duplication test, code fixes 2021-10-21 18:10:32 +02:00
Sonja Happ
ae3e0374f1 user test: set AMQP session in IC package to test scenario duplication (ping is sent from within IC package) 2021-10-21 14:03:48 +02:00
irismarie
780334592f add test for scenario duplication 2021-10-21 12:39:04 +02:00
irismarie
7a540db693 Merge branch 'refactor-amqp-session' of https://git.rwth-aachen.de/acs/public/villas/web-backend-go into refactor-amqp-session 2021-10-20 15:25:22 +02:00
irismarie
73033d566c [wip] add duplicate scenario test to merge rest of branch 2021-10-20 15:24:57 +02:00
8e5e9c2257 align name of kubernetes related backend options to naming scheme 2021-10-19 19:04:10 +02:00
66d6c3f944 s3: fix broken presigned urls when internal s3 endpoint was different from external 2021-10-19 17:40:01 +02:00
49fe2e6e1f fix healthz endpoint when AMQP is disabled 2021-10-19 17:38:03 +02:00
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
140973ab27 refactor database.DBAddAdminUser() to database.AddAdminUser() 2021-10-19 16:15:01 +02:00
Sonja Happ
481c7c6284 fix error handling of s3.bucket param request also in upload method 2021-10-19 15:56:50 +02:00
Sonja Happ
941687692e fix error handling of s3.bucket param request 2021-10-19 15:54:36 +02:00
786454a100 use proper error types instead of using strings.Contains() 2021-10-19 15:33:58 +02:00
7631e2a9b5 pass boolean clear argument to DBInit() 2021-10-19 14:40:45 +02:00
515ef2de15 fix CI tests 2021-10-19 14:18:23 +02:00
2a9b2d4026 fix linting errors found by staticcheck 2021-10-19 13:56:53 +02:00
Sonja Happ
71b103a7c1 improve error handling in case AMQP session is not available 2021-10-19 11:46:19 +02:00
Sonja Happ
9af822b801 fix header settings upon auth. failure, add amqp connection to user/ scenario duplication test 2021-10-19 11:36:04 +02:00
Sonja Happ
d6ab81a0f9 fix in health endpoint (error handling) and scenario duplication 2021-10-19 11:17:31 +02:00
Sonja Happ
e7679a79b7 fix more issues with circular dependencies and tests, fix bug in permissions 2021-10-19 11:04:39 +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
Sonja Happ
93d14300d8 Merge branch 'master' into refactor-amqp-session
Improve error handling of async go routine for duplication
2021-10-15 15:34:07 +02:00
irismarie
a78e70e78b Merge branch 'fix-scenario-duplication' of https://git.rwth-aachen.de/acs/public/villas/web-backend-go into fix-scenario-duplication 2021-10-15 13:04:03 +02:00
irismarie
1198fa08f0 remove test as it cannot be executed in test environment 2021-10-15 13:03:43 +02:00
Sonja Happ
da161b7c56 Merge branch 'fix-scenario-duplication' of git.rwth-aachen.de:acs/public/villas/web-backend-go into fix-scenario-duplication
 Conflicts:
	helper/amqp.go
	routes/user/authenticate_endpoint.go
2021-10-15 12:44:40 +02:00
irismarie
0219f26132 refactor code 2021-10-15 12:31:13 +02:00
irismarie
8b32fe8def fix ic duplication 2021-10-14 18:17:22 +02:00
Sonja Happ
b3404608d1 do not remove file data from s3 storage if DELETE is executed for file 2021-10-14 15:02:58 +02:00
irismarie
2932d89147 fix ic duplication 2021-10-14 14:27:16 +02:00
irismarie
c8650b97e2 duplicate files 2021-10-13 15:11:07 +02:00
irismarie
58b1d4e303 fix signal mapping in component config duplication 2021-09-17 20:44:26 +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
ee8625dfaf fix healthz test 2021-08-27 12:19:15 +02:00
Sonja Happ
13783dd2f5 fix test of config endpoint 2021-08-27 12:11:46 +02:00
Sonja Happ
50f891d8ae remove InputLength and OutputLength from ComponentConfig data model 2021-07-27 10:07:59 +02:00
Sonja Happ
d03937e34c add rancher URL and k8s cluster as config parameters, return them via config endpoint #73 2021-06-18 12:02:10 +02:00
Sonja Happ
b99ac9982c add fallback solution in case image config cannot be decoded #70 2021-06-02 09:13:11 +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
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
ce0b57e57b add API query for villas-relay manager to async routine #65 2021-05-26 14:08:31 +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
55fe91c5f4 fix in package name 2021-05-21 13:04:24 +02:00
Sonja Happ
17fa67ae52 Merge branch 'rework-demo-data-reading' into 'master'
Rework demo data reading

See merge request acs/public/villas/web-backend-go!33
2021-04-30 12:45:32 +00:00
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