Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
878a2e1a
Commit
878a2e1a
authored
Sep 10, 2016
by
Zoltan Altfatter
Committed by
Stephane Nicoll
Dec 14, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Expose default RabbitMQ credentials in the metadata
See gh-6863
parent
1685a5d8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
RabbitProperties.java
...ngframework/boot/autoconfigure/amqp/RabbitProperties.java
+2
-2
RabbitPropertiesTests.java
...mework/boot/autoconfigure/amqp/RabbitPropertiesTests.java
+4
-4
No files found.
spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/amqp/RabbitProperties.java
View file @
878a2e1a
...
...
@@ -54,12 +54,12 @@ public class RabbitProperties {
/**
* Login user to authenticate to the broker.
*/
private
String
username
;
private
String
username
=
"guest"
;
/**
* Login to authenticate against the broker.
*/
private
String
password
;
private
String
password
=
"guest"
;
/**
* SSL configuration.
...
...
spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/amqp/RabbitPropertiesTests.java
View file @
878a2e1a
...
...
@@ -134,8 +134,8 @@ public class RabbitPropertiesTests {
}
@Test
public
void
usernameDefaultsTo
Null
()
{
assertThat
(
this
.
properties
.
getUsername
()).
is
Null
(
);
public
void
usernameDefaultsTo
Guest
()
{
assertThat
(
this
.
properties
.
getUsername
()).
is
EqualTo
(
"guest"
);
}
@Test
...
...
@@ -166,8 +166,8 @@ public class RabbitPropertiesTests {
}
@Test
public
void
passwordDefaultsTo
Null
()
{
assertThat
(
this
.
properties
.
getPassword
()).
is
Null
(
);
public
void
passwordDefaultsTo
Guest
()
{
assertThat
(
this
.
properties
.
getPassword
()).
is
EqualTo
(
"guest"
);
}
@Test
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment