use of com.sequenceiq.sdx.api.model.SdxDefaultTemplateResponse in project cloudbreak by hortonworks.
the class SdxServiceTest method testGetDefaultTemplate.
@Test
void testGetDefaultTemplate() {
StackV4Request defaultTemplate = new StackV4Request();
when(cdpConfigService.getConfigForKey(any())).thenReturn(defaultTemplate);
SdxDefaultTemplateResponse response = underTest.getDefaultTemplate(LIGHT_DUTY, "7.2.14", "AWS");
assertEquals(defaultTemplate, response.getTemplate());
}
use of com.sequenceiq.sdx.api.model.SdxDefaultTemplateResponse in project cloudbreak by hortonworks.
the class SdxRecommendationServiceTest method testGetDefaultTemplate.
@Test
public void testGetDefaultTemplate() {
StackV4Request defaultTemplate = createStackRequest();
when(cdpConfigService.getConfigForKey(any())).thenReturn(defaultTemplate);
SdxDefaultTemplateResponse response = underTest.getDefaultTemplateResponse(LIGHT_DUTY, "7.2.14", "AWS");
assertEquals(defaultTemplate, response.getTemplate());
}
Aggregations