Commit graph

457 commits

Author SHA1 Message Date
Sonja Happ
5e33e08393 change WebRTC config format to the one of VILLASnode, add default values, update apispec #90 2022-04-20 16:45:33 +02:00
Sonja Happ
646ecfcc2a Merge branch 'master' into add-webrtc-config-params 2022-04-20 16:11:48 +02:00
Sonja Happ
e8470a8409 add webRTC ICE parameters to backend config and send parameters via config endpoint, update apispec #90 2022-04-14 11:39:14 +02:00
Sonja Happ
482beede04 OpenAPI spec: use swag version 1.8.1 to auto-generate, fix error in result file post endpoint doc #85, update API spec 2022-04-14 11:09:04 +02:00
Sonja Happ
48288360d5 Updating license statement in each file and updating year and contact info in README (closes #89) 2022-04-05 16:38:25 +02:00
Sonja Happ
ef20ef0594 improve tests of scenario deletion #86 2022-02-09 10:05:03 +01:00
Sonja Happ
c00cb406eb fix bugs in scenario deletion, improve testing of scenario deletion 2022-02-08 17:21:46 +01:00
Sonja Happ
5c41175890 scenario: add recursive deletion of associated sub-elements, tests required 2022-02-04 15:43:45 +01:00
Sonja Happ
f956809dc4 dashboard and component config: fix bugs and improve logging output in recursive deletion of associated elements 2022-02-04 15:39:01 +01:00
Sonja Happ
2fe124e703 file: include S3 key in delete log message 2022-02-04 15:36:41 +01:00
Sonja Happ
16b9341bd3 Merge branch 'fix-signal-indices' into 'master'
allow signal indices to start at 0 instead of 1

See merge request acs/public/villas/web-backend-go!45
2022-01-26 09:01:16 +01:00
Sonja Happ
377279bfe5 component configs can be added without ICID 2022-01-12 12:08:42 +01:00
Sonja Happ
5f8748dde4 change a comment in IC test 2022-01-10 15:25:06 +01:00
Sonja Happ
7864a24a54 Merge branch 'master' into delete-external-ics 2022-01-10 15:16:02 +01:00
Sonja Happ
99e8e2fd90 fix user test: connect to AMQP session in TestMain instead of individual tests 2022-01-10 15:02:14 +01:00
Sonja Happ
2297be98cf use time.Since instead of time.Now().Sub 2022-01-10 10:58:24 +01:00
Sonja Happ
b513b72f87 enable deletion of external stale ICs #84 2022-01-10 10:47:34 +01:00
Sonja Happ
f77b88e7e1 Merge branch 'allow-error-objects-in-amqp-status-update' into 'master'
Remove result and error fields from ICStatus

See merge request acs/public/villas/web-backend-go!42
2022-01-10 10:16:09 +01:00
Sonja Happ
a4947a53e9 allow signal indices to start at 0 instead of 1 2022-01-03 14:19:12 +01:00
Sonja Happ
07c99d13c8 make Name an optional parameter of new widget 2022-01-03 11:42:25 +01:00
Iris Marie Köster
4db2f91ea5 Fix duplication: synchronous duplication, proper duplication of widgets which use IDs, reuse duplicated IC (if alive) 2021-12-02 18:37:52 +01:00
irismarie
a0861989bd login despite failed duplication 2021-11-11 12:41:08 +01:00
Sonja Happ
0ed8e2b3b1 use presigned URL fix again for testing #76 2021-10-28 16:49:22 +02:00
Sonja Happ
49dc46e6f1 comment unused methods 2021-10-28 15:49:09 +02:00
Sonja Happ
5d3b5be920 undo content disposition header fix 2021-10-28 15:44:38 +02:00
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
315880fc67 The result and error fields of an IC status update received
via AMQP are not used in the backend.

The error field is now acutally an object, which possibly contains
additional details about the error condition.

Therefore I remove those fields and let the frontend handle them
solely via the rawstatusupdate field.
2021-10-22 14:19:31 +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