Search in sources :

Example 1 with SdxDefaultTemplateResponse

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());
}
Also used : SdxDefaultTemplateResponse(com.sequenceiq.sdx.api.model.SdxDefaultTemplateResponse) StackV4Request(com.sequenceiq.cloudbreak.api.endpoint.v4.stacks.request.StackV4Request) ParameterizedTest(org.junit.jupiter.params.ParameterizedTest) Test(org.junit.jupiter.api.Test)

Example 2 with SdxDefaultTemplateResponse

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());
}
Also used : SdxDefaultTemplateResponse(com.sequenceiq.sdx.api.model.SdxDefaultTemplateResponse) StackV4Request(com.sequenceiq.cloudbreak.api.endpoint.v4.stacks.request.StackV4Request) Test(org.junit.jupiter.api.Test)

Aggregations

StackV4Request (com.sequenceiq.cloudbreak.api.endpoint.v4.stacks.request.StackV4Request)2 SdxDefaultTemplateResponse (com.sequenceiq.sdx.api.model.SdxDefaultTemplateResponse)2 Test (org.junit.jupiter.api.Test)2 ParameterizedTest (org.junit.jupiter.params.ParameterizedTest)1