Search in sources :

Example 1 with ParcelInfoResponse

use of com.sequenceiq.cloudbreak.api.endpoint.v4.stacks.response.image.ParcelInfoResponse in project cloudbreak by hortonworks.

the class ComponentVersionProviderTest method testGetComponentVersions.

@Test
void testGetComponentVersions() {
    ImageComponentVersions componentVersions = underTest.getComponentVersions(createPackageVersions(), CENTOS_7, OS_PATCH_LEVEL);
    List<ParcelInfoResponse> parcelInfoResponseList = componentVersions.getParcelInfoResponseList();
    assertEquals(4, parcelInfoResponseList.size());
    assertIterableEquals(createParcelInfoList(), parcelInfoResponseList);
    assertEquals(CENTOS_7, componentVersions.getOs());
    assertEquals(OS_PATCH_LEVEL, componentVersions.getOsPatchLevel());
    assertEquals("7.2.10", componentVersions.getCdp());
    assertEquals("7.4.2", componentVersions.getCm());
    assertEquals("16151091", componentVersions.getCdpGBN());
    assertEquals("15633910", componentVersions.getCmGBN());
}
Also used : ImageComponentVersions(com.sequenceiq.cloudbreak.api.endpoint.v4.stacks.response.image.ImageComponentVersions) ParcelInfoResponse(com.sequenceiq.cloudbreak.api.endpoint.v4.stacks.response.image.ParcelInfoResponse) Test(org.junit.jupiter.api.Test)

Example 2 with ParcelInfoResponse

use of com.sequenceiq.cloudbreak.api.endpoint.v4.stacks.response.image.ParcelInfoResponse in project cloudbreak by hortonworks.

the class ComponentVersionProviderTest method createParcelInfoList.

private ArrayList<ParcelInfoResponse> createParcelInfoList() {
    ArrayList<ParcelInfoResponse> parcelInfoResponses = new ArrayList<>();
    parcelInfoResponses.add(new ParcelInfoResponse("Spark 3", "3.1.7280.2-11", "13959573"));
    parcelInfoResponses.add(new ParcelInfoResponse("Cloudera Flow Management", "2.2.1.0-56", "13885769"));
    parcelInfoResponses.add(new ParcelInfoResponse("Profiler Scheduler + Manager", "2.0.10.0-118", "13995067"));
    parcelInfoResponses.add(new ParcelInfoResponse("Cloudera Streaming Analytics with Apache Flink", "1.3.0.1-3", "14951294"));
    return parcelInfoResponses;
}
Also used : ArrayList(java.util.ArrayList) ParcelInfoResponse(com.sequenceiq.cloudbreak.api.endpoint.v4.stacks.response.image.ParcelInfoResponse)

Aggregations

ParcelInfoResponse (com.sequenceiq.cloudbreak.api.endpoint.v4.stacks.response.image.ParcelInfoResponse)2 ImageComponentVersions (com.sequenceiq.cloudbreak.api.endpoint.v4.stacks.response.image.ImageComponentVersions)1 ArrayList (java.util.ArrayList)1 Test (org.junit.jupiter.api.Test)1