use of com.synopsys.integration.alert.test.common.channel.GlobalConfigurationValidatorAsserter in project hub-alert by blackducksoftware.
the class SchedulingConfigurationValidatorTest method verifyValidConfiguration.
/*
* daily processing hour: required, valid list option
* purge data frequency: required, valid list option
*/
@Test
public void verifyValidConfiguration() {
GlobalConfigurationValidatorAsserter validatorAsserter = createValidatorAsserter();
validatorAsserter.assertValid();
}
use of com.synopsys.integration.alert.test.common.channel.GlobalConfigurationValidatorAsserter in project hub-alert by blackducksoftware.
the class SchedulingConfigurationValidatorTest method missingDailyProcessing.
@Test
public void missingDailyProcessing() {
GlobalConfigurationValidatorAsserter validatorAsserter = createValidatorAsserter();
validatorAsserter.assertMissingValue(SchedulingDescriptor.KEY_DAILY_PROCESSOR_HOUR_OF_DAY);
}
use of com.synopsys.integration.alert.test.common.channel.GlobalConfigurationValidatorAsserter in project hub-alert by blackducksoftware.
the class SchedulingConfigurationValidatorTest method missingPurgeFrequency.
@Test
public void missingPurgeFrequency() {
GlobalConfigurationValidatorAsserter validatorAsserter = createValidatorAsserter();
validatorAsserter.assertMissingValue(SchedulingDescriptor.KEY_PURGE_DATA_FREQUENCY_DAYS);
}
use of com.synopsys.integration.alert.test.common.channel.GlobalConfigurationValidatorAsserter in project hub-alert by blackducksoftware.
the class EmailGlobalConfigurationFieldModelValidatorTest method verifyValidConfig.
/*
* Email host: Required
* Email from: Required
*
* Email user: Required if email auth is true
* Email password: Required if email auth is true
*/
@Test
public void verifyValidConfig() {
GlobalConfigurationValidatorAsserter globalConfigurationValidatorAsserter = new GlobalConfigurationValidatorAsserter(new EmailChannelKey().getUniversalKey(), new EmailGlobalConfigurationFieldModelValidator(), createDefaultKeyToValues());
globalConfigurationValidatorAsserter.assertValid();
}
use of com.synopsys.integration.alert.test.common.channel.GlobalConfigurationValidatorAsserter in project hub-alert by blackducksoftware.
the class JiraCloudGlobalConfigurationFieldModelValidatorTest method invalidUrl.
@Test
public void invalidUrl() {
GlobalConfigurationValidatorAsserter globalConfigurationValidatorAsserter = createGlobalConfigurationValidatorAsserter();
globalConfigurationValidatorAsserter.assertInvalidValue(JiraCloudDescriptor.KEY_JIRA_URL, "not_a_url");
}
Aggregations