Expose default RabbitMQ credentials in the metadata

See gh-6863
This commit is contained in:
Zoltan Altfatter 2016-09-10 17:40:48 +02:00 committed by Stephane Nicoll
parent 1685a5d8db
commit 878a2e1a49
2 changed files with 6 additions and 6 deletions

View File

@ -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.

View File

@ -134,8 +134,8 @@ public class RabbitPropertiesTests {
}
@Test
public void usernameDefaultsToNull() {
assertThat(this.properties.getUsername()).isNull();
public void usernameDefaultsToGuest() {
assertThat(this.properties.getUsername()).isEqualTo("guest");
}
@Test
@ -166,8 +166,8 @@ public class RabbitPropertiesTests {
}
@Test
public void passwordDefaultsToNull() {
assertThat(this.properties.getPassword()).isNull();
public void passwordDefaultsToGuest() {
assertThat(this.properties.getPassword()).isEqualTo("guest");
}
@Test