Commit 878a2e1a authored by Zoltan Altfatter's avatar Zoltan Altfatter Committed by Stephane Nicoll

Expose default RabbitMQ credentials in the metadata

See gh-6863
parent 1685a5d8
......@@ -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.
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment