Search in sources :

Example 6 with SupportService

use of io.elastest.etm.model.SupportService in project elastest-torm by elastest.

the class EsmServiceItTest method provisionServiceTest.

@Test
@Disabled
public void provisionServiceTest() {
    assertThat(esmService).isNotNull();
    assertThat(esmService.getRegisteredServices()).isNotEmpty();
    SupportService nginx = null;
    for (SupportService s : esmService.getRegisteredServices()) {
        if (s.getName().equals("nginx-service")) {
            nginx = s;
            break;
        }
    }
    assertThat(nginx).isNotNull();
    esmService.provisionTJobExecServiceInstanceSync(nginx.getId(), null);
}
Also used : SupportService(io.elastest.etm.model.SupportService) Test(org.junit.jupiter.api.Test) SpringBootTest(org.springframework.boot.test.context.SpringBootTest) Disabled(org.junit.jupiter.api.Disabled)

Aggregations

SupportService (io.elastest.etm.model.SupportService)6 ArrayList (java.util.ArrayList)2 JsonNode (com.fasterxml.jackson.databind.JsonNode)1 ExternalTJob (io.elastest.etm.model.external.ExternalTJob)1 ExternalTJobExecution (io.elastest.etm.model.external.ExternalTJobExecution)1 Date (java.util.Date)1 Disabled (org.junit.jupiter.api.Disabled)1 Test (org.junit.jupiter.api.Test)1 SpringBootTest (org.springframework.boot.test.context.SpringBootTest)1