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