use of com.synopsys.integration.alert.test.common.channel.GlobalConfigurationValidatorAsserter in project hub-alert by blackducksoftware.
the class JiraServerGlobalConfigurationFieldModelValidatorTest method invalidUrl.
@Test
public void invalidUrl() {
GlobalConfigurationValidatorAsserter globalConfigurationValidatorAsserter = createGlobalConfigurationValidatorAsserter();
globalConfigurationValidatorAsserter.assertInvalidValue(JiraServerDescriptor.KEY_SERVER_URL, "not_a_url");
}
use of com.synopsys.integration.alert.test.common.channel.GlobalConfigurationValidatorAsserter in project hub-alert by blackducksoftware.
the class BlackDuckGlobalConfigurationFieldModelValidatorTest method apiKeyTooShort.
@Test
public void apiKeyTooShort() {
BlackDuckGlobalConfigurationFieldModelValidator blackDuckGlobalConfigurationValidator = new BlackDuckGlobalConfigurationFieldModelValidator(createDefaultConfigurationAccessor());
GlobalConfigurationValidatorAsserter globalConfigurationValidatorAsserter = new GlobalConfigurationValidatorAsserter(new BlackDuckProviderKey().getUniversalKey(), blackDuckGlobalConfigurationValidator, createDefaultKeyToValues());
globalConfigurationValidatorAsserter.assertInvalidValue(BlackDuckDescriptor.KEY_BLACKDUCK_API_KEY, "too short");
}
use of com.synopsys.integration.alert.test.common.channel.GlobalConfigurationValidatorAsserter in project hub-alert by blackducksoftware.
the class AzureBoardsGlobalConfigurationFieldModelValidatorTest method missingClientKey.
@Test
public void missingClientKey() {
GlobalConfigurationValidatorAsserter validatorAsserter = createValidatorAsserter();
validatorAsserter.assertMissingValue(AzureBoardsDescriptor.KEY_CLIENT_ID);
}
use of com.synopsys.integration.alert.test.common.channel.GlobalConfigurationValidatorAsserter in project hub-alert by blackducksoftware.
the class SettingsGlobalConfigurationFieldModelValidatorTest method verifyValidConfig.
/*
* encryption password: required, minimum encryption length
* encryption salt: required, minimum encryption length
*
* proxy host: needs proxy port
* proxy port: needs proxy host, is a number
*
* proxy username: needs proxy host, needs proxy password
* proxy password: needs proxy host, needs proxy username
*/
@Test
public void verifyValidConfig() {
GlobalConfigurationValidatorAsserter validatorAsserter = createValidatorAsserter();
validatorAsserter.assertValid();
}
use of com.synopsys.integration.alert.test.common.channel.GlobalConfigurationValidatorAsserter in project hub-alert by blackducksoftware.
the class SettingsGlobalConfigurationFieldModelValidatorTest method passwordTooShort.
@Test
public void passwordTooShort() {
GlobalConfigurationValidatorAsserter validatorAsserter = createValidatorAsserter();
validatorAsserter.assertInvalidValue(SettingsDescriptor.KEY_ENCRYPTION_PWD, "short");
}
Aggregations