use of com.sequenceiq.environment.api.v1.environment.model.request.EnvironmentLoadBalancerUpdateRequest in project cloudbreak by hortonworks.
the class EnvironmentApiConverterTest method testInitLoadBalancerDto.
@Test
void testInitLoadBalancerDto() {
Set<String> subnetIds = Set.of("id1, id2");
EnvironmentLoadBalancerUpdateRequest request = new EnvironmentLoadBalancerUpdateRequest();
request.setPublicEndpointAccessGateway(PublicEndpointAccessGateway.ENABLED);
request.setSubnetIds(subnetIds);
EnvironmentLoadBalancerDto environmentLbDto = underTest.initLoadBalancerDto(request);
assertEquals(PublicEndpointAccessGateway.ENABLED, environmentLbDto.getEndpointAccessGateway());
assertEquals(subnetIds, environmentLbDto.getEndpointGatewaySubnetIds());
}
Aggregations