Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
DBRepo
Manage
Activity
Members
Labels
Plan
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FAIR Data Austria DB Repository
DBRepo
Commits
ba8fcd60
Verified
Commit
ba8fcd60
authored
5 months ago
by
Martin Weise
Browse files
Options
Downloads
Patches
Plain Diff
Bean
Signed-off-by:
Martin Weise
<
martin.weise@tuwien.ac.at
>
parent
0dcb2aec
No related branches found
No related tags found
2 merge requests
!422
Fixed a library issue where the value could not be empty
,
!421
Fixed a library issue where the value could not be empty
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
dbrepo-metadata-service/rest-service/src/test/java/at/ac/tuwien/ifs/dbrepo/config/RabbitConfig.java
+0
-17
0 additions, 17 deletions
...est/java/at/ac/tuwien/ifs/dbrepo/config/RabbitConfig.java
with
0 additions
and
17 deletions
dbrepo-metadata-service/rest-service/src/test/java/at/ac/tuwien/ifs/dbrepo/config/RabbitConfig.java
+
0
−
17
View file @
ba8fcd60
...
...
@@ -4,14 +4,7 @@ import at.ac.tuwien.ifs.dbrepo.core.test.BaseTest;
import
lombok.Getter
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.context.annotation.Primary
;
import
org.springframework.http.client.support.BasicAuthenticationInterceptor
;
import
org.springframework.web.client.RestTemplate
;
import
org.springframework.web.util.DefaultUriBuilderFactory
;
import
java.io.IOException
;
@Getter
@Slf4j
...
...
@@ -30,14 +23,4 @@ public class RabbitConfig extends BaseTest {
@Value
(
"${dbrepo.endpoints.brokerService}"
)
private
String
brokerEndpoint
;
@Bean
@Primary
public
RestTemplate
brokerRestTemplate
()
{
final
RestTemplate
restTemplate
=
new
RestTemplate
();
restTemplate
.
setUriTemplateHandler
(
new
DefaultUriBuilderFactory
(
brokerEndpoint
));
restTemplate
.
getInterceptors
()
.
add
(
new
BasicAuthenticationInterceptor
(
USER_1_USERNAME
,
USER_1_PASSWORD
));
return
restTemplate
;
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment