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