Example #1
0
 @Test
 public void defaultGraphiteHostIsCorrect() {
   assertThat(config.getGraphiteHost(), is("localhost:80"));
 }
Example #2
0
 @Test
 public void defaultGraphitePathIsCorrect() {
   assertThat(config.getGraphitePath(), is(""));
 }
Example #3
0
 @Test
 public void defaultGraphiteUsernameIsCorrect() {
   assertThat(config.getGraphiteUsername(), is(""));
 }
Example #4
0
 @Test
 public void defaultGraphiteSchemeIsCorrect() {
   assertThat(config.getGraphiteScheme(), is("http"));
 }
Example #5
0
 @Test
 public void defaultSmtpPasswordIsCorrect() {
   assertThat(config.getSmtpPassword(), is(""));
 }
Example #6
0
 @Test
 public void defaultSmtpPortIsCorrect() {
   assertThat(config.getSmtpPort(), is(25));
 }
Example #7
0
 @Test
 public void defaultFlowdockEmojisIsCorrect() {
   assertThat(config.getFlowdockEmojis(), is(""));
 }
Example #8
0
 @Test
 public void defaultSmtpFromIsCorrect() {
   assertThat(config.getSmtpFrom(), is("alert@seyren"));
 }
Example #9
0
 @Test
 public void defaultHubotUrlIsCorrect() {
   assertThat(config.getHubotUrl(), is(""));
 }
Example #10
0
 @Test
 public void defaultFlowdockExternalUsernameIsCorrect() {
   assertThat(config.getFlowdockExternalUsername(), is("Seyren"));
 }
Example #11
0
 @Test
 public void defaultPagerDutyDomainIsCorrect() {
   assertThat(config.getPagerDutyDomain(), is(""));
 }
Example #12
0
 @Test
 public void defaultHipChatUsernameIsCorrect() {
   assertThat(config.getHipChatUsername(), is("Seyren Alert"));
 }
Example #13
0
 @Test
 public void defaultHipChatAuthTokenIsCorrect() {
   assertThat(config.getHipChatAuthToken(), is(""));
 }
Example #14
0
 @Test
 public void defaultGraphiteKeyStorePasswordIsCorrect() {
   assertThat(config.getGraphiteKeyStorePassword(), is(""));
 }
Example #15
0
 @Test
 public void defaultBaseUrlIsCorrect() {
   if (config.isBaseUrlSetToDefault()) {
     assertThat(config.getBaseUrl(), is("http://localhost:8080/seyren"));
   }
 }
Example #16
0
 @Test
 public void defaultGraphiteTrustStoreIsCorrect() {
   assertThat(config.getGraphiteTrustStore(), is(""));
 }
Example #17
0
 @Test
 public void defaultMongoUrlIsCorrect() {
   assertThat(config.getMongoUrl(), is("mongodb://localhost:27017/seyren"));
 }
Example #18
0
 @Test
 public void defaultSmtpUsernameIsCorrect() {
   assertThat(config.getSmtpUsername(), is(""));
 }
Example #19
0
 @Test
 public void defaultGraphiteUrlIsCorrect() {
   assertThat(config.getGraphiteUrl(), is("http://localhost:80"));
 }
Example #20
0
 @Test
 public void defaultSmtpHostIsCorrect() {
   assertThat(config.getSmtpHost(), is("localhost"));
 }
Example #21
0
 @Test
 public void defaultSmtpProtocolIsCorrect() {
   assertThat(config.getSmtpProtocol(), is("smtp"));
 }