use of com.sequenceiq.cloudbreak.domain.CustomConfigurationProperty in project cloudbreak by hortonworks.
the class CustomConfigurationsValidatorTest method testValidateServiceNames.
@Test
void testValidateServiceNames() {
CustomConfigurationProperty invalidProperty = new CustomConfigurationProperty("property1", "value1", "role1", "invalidServiceName");
customConfigurations.setConfigurations(Set.of(invalidProperty));
assertThrows(CustomConfigurationsServiceTypeNotFoundException.class, () -> underTest.validateServiceNames(customConfigurations));
}
use of com.sequenceiq.cloudbreak.domain.CustomConfigurationProperty in project cloudbreak by hortonworks.
the class CustomConfigurationPropertyConverter method convertFromRequestJson.
public CustomConfigurationProperty convertFromRequestJson(CustomConfigurationPropertyParameters source) {
CustomConfigurationProperty customConfigurationProperty = new CustomConfigurationProperty();
customConfigurationProperty.setName(source.getName());
customConfigurationProperty.setSecretValue(source.getValue());
customConfigurationProperty.setRoleType(source.getRoleType());
customConfigurationProperty.setServiceType(source.getServiceType());
return customConfigurationProperty;
}
Aggregations