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 { ...@@ -54,12 +54,12 @@ public class RabbitProperties {
/** /**
* Login user to authenticate to the broker. * Login user to authenticate to the broker.
*/ */
private String username; private String username = "guest";
/** /**
* Login to authenticate against the broker. * Login to authenticate against the broker.
*/ */
private String password; private String password = "guest";
/** /**
* SSL configuration. * SSL configuration.
......
...@@ -134,8 +134,8 @@ public class RabbitPropertiesTests { ...@@ -134,8 +134,8 @@ public class RabbitPropertiesTests {
} }
@Test @Test
public void usernameDefaultsToNull() { public void usernameDefaultsToGuest() {
assertThat(this.properties.getUsername()).isNull(); assertThat(this.properties.getUsername()).isEqualTo("guest");
} }
@Test @Test
...@@ -166,8 +166,8 @@ public class RabbitPropertiesTests { ...@@ -166,8 +166,8 @@ public class RabbitPropertiesTests {
} }
@Test @Test
public void passwordDefaultsToNull() { public void passwordDefaultsToGuest() {
assertThat(this.properties.getPassword()).isNull(); assertThat(this.properties.getPassword()).isEqualTo("guest");
} }
@Test @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