Package com.seyren.core.domain

Examples of com.seyren.core.domain.Check


        String seyrenUrl = clientDriver.getBaseUrl() + "/seyren";
       
        when(mockSeyrenConfig.getHubotUrl()).thenReturn(clientDriver.getBaseUrl() + "/hubot");
        when(mockSeyrenConfig.getBaseUrl()).thenReturn(seyrenUrl);
       
        Check check = new Check()
                .withEnabled(true)
                .withName("check-name")
                .withState(AlertType.ERROR);
       
        Subscription subscription = new Subscription()
View Full Code Here


        }
    }
   
    @Test
    public void triggerPagerDutyTest() {
        Check check = new Check()
                .withId("123")
                .withEnabled(true)
                .withName("test-check")
                .withState(AlertType.ERROR);
        Subscription subscription = new Subscription()
View Full Code Here

        assertThat(node, hasJsonPath("$.details.SEYREN_URL", containsString("/pagerduty")));
    }

    @Test
    public void resolutionPagerDutyTest() {
        Check check = new Check()
                .withId("123")
                .withEnabled(true)
                .withName("test-check")
                .withState(AlertType.OK);
        Subscription subscription = new Subscription()
View Full Code Here

        assertThat(notificationService.canHandle(SubscriptionType.HIPCHAT), is(true));
    }
   
    @Test
    public void basicHappyPathTest() throws Exception {
        Check check = new Check()
                .withEnabled(true)
                .withName("test-check")
                .withState(AlertType.ERROR);
        Subscription subscription = new Subscription()
                .withEnabled(true)
View Full Code Here

    }
   
    @Test
    public void subjectIsCorrect() {
       
        Check check = new Check()
                .withId("123")
                .withEnabled(true)
                .withName("test-check")
                .withState(AlertType.ERROR);
       
View Full Code Here

    }
   
    @Test
    public void bodyContainsRightSortsOfThings() {
       
        Check check = new Check()
                .withId("123")
                .withEnabled(true)
                .withName("test-check")
                .withDescription("Some great description")
                .withWarn(new BigDecimal("2.0"))
View Full Code Here

    }
   
    @Test
    public void descriptionIsNotIncludedIfEmpty() {
       
        Check check = new Check()
                .withId("123")
                .withEnabled(true)
                .withName("test-check")
                .withDescription("")
                .withWarn(new BigDecimal("2.0"))
View Full Code Here

    }
   
    @Test
    public void bodyDoesNotContainScientificNotationOfNumber() {
       
        Check check = new Check()
                .withId("123")
                .withEnabled(true)
                .withName("test-check")
                .withWarn(new BigDecimal("2.0"))
                .withError(new BigDecimal("3.0"))
View Full Code Here

   
    @Test
    public void basicFlowdockTest() {
        BigDecimal value = new BigDecimal("1.0");

        Check check = new Check()
                .withId("123")
                .withEnabled(true)
                .withName("test-check")
                .withState(AlertType.ERROR);
        Subscription subscription = new Subscription()
View Full Code Here

   
    @Test
    public void basicSlackTest() {
        BigDecimal value = new BigDecimal("1.0");

        Check check = new Check()
                .withId("123")
                .withEnabled(true)
                .withName("test-check")
                .withState(AlertType.ERROR);
        Subscription subscription = new Subscription()
View Full Code Here

TOP

Related Classes of com.seyren.core.domain.Check

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.