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
56f05e97f7
Merge branch 'k8s-option-names' into 'master'
...
Align name of kubernetes related backend options to naming scheme
See merge request acs/public/villas/web-backend-go!41
2021-10-19 19:20:03 +02:00
8e5e9c2257
align name of kubernetes related backend options to naming scheme
2021-10-19 19:04:10 +02:00
b3ba58647c
Merge branch 'fix-s3-presigned-urls' into 'master'
...
Fix s3 presigned urls
Closes #76
See merge request acs/public/villas/web-backend-go!40
2021-10-19 18:01:43 +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
a3b99dbd04
Merge branch 'update-default-admin-user' into 'master'
...
Update default admin user
See merge request acs/public/villas/web-backend-go!39
2021-10-19 17:37:13 +02:00
e32336490c
allow update of admin user via CLI args
2021-10-19 16:32:56 +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
2932e92438
refactor amqp variables
2021-10-19 16:15:01 +02:00
Sonja Happ
9873ba9f3b
Merge branch 'fix-go-staticcheck' into 'master'
...
Fix go staticcheck
See merge request acs/public/villas/web-backend-go!38
2021-10-19 16:12:49 +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
3dcb67fdd0
update gitignore
2021-10-19 15:34:45 +02:00
786454a100
use proper error types instead of using strings.Contains()
2021-10-19 15:33:58 +02:00
9e45f39e31
simplify database test
2021-10-19 14:45:45 +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
da0929411b
add staticcheck to CI
2021-10-19 13:57:05 +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
Sonja Happ
07c3fc9144
Merge branch 'fix-scenario-duplication' into 'master'
...
Fix scenario duplication issues
See merge request acs/public/villas/web-backend-go!35
2021-10-15 14:10:40 +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
9916ac4ad3
Merge remote-tracking branch 'origin/fix-scenario-duplication' into fix-scenario-duplication
2021-10-15 12:49:01 +02:00
Sonja Happ
071155b119
remove unsed import
2021-10-15 12:47:26 +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
02302e3a48
Revert "comment test stage"
...
This reverts commit 57f1ad90ae
.
2021-10-15 12:44:02 +02:00
irismarie
0219f26132
refactor code
2021-10-15 12:31:13 +02:00
Sonja Happ
ed2baa2776
disable auto-delete of amqp exchange
2021-10-15 11:18:35 +02:00
Sonja Happ
a3819161fe
make amqp exchange durable
2021-10-15 10:58:05 +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
4b492eac7e
Merge branch 'amqp-limit-queues' into 'master'
...
amqp: limit queue size and message TTL as well as make queue exclusive
See merge request acs/public/villas/web-backend-go!36
2021-10-14 12:03:02 +02:00
irismarie
57f1ad90ae
comment test stage
2021-10-13 15:25:32 +02:00
irismarie
c8650b97e2
duplicate files
2021-10-13 15:11:07 +02:00
44e57a5f6f
ci: upgrade postgres service to 12.0
2021-10-05 18:54:00 +02:00
7c139ae974
amqp: limit queue size and message TTL as well as make queue exclusive
2021-10-05 18:42:15 +02:00