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());
}
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;
}
Aggregations