Search in sources :

Example 6 with EnvironmentNetworkAwsParams

use of com.sequenceiq.environment.api.v1.environment.model.EnvironmentNetworkAwsParams in project cloudbreak by hortonworks.

the class NetworkV1ToNetworkV4ConverterTest method awsEnvironmentNetwork.

private DetailedEnvironmentResponse awsEnvironmentNetwork() {
    DetailedEnvironmentResponse der = new DetailedEnvironmentResponse();
    der.setCloudPlatform("AWS");
    EnvironmentNetworkResponse environmentNetworkResponse = new EnvironmentNetworkResponse();
    environmentNetworkResponse.setSubnetIds(SUBNET_IDS);
    environmentNetworkResponse.setPreferedSubnetId(SUBNET_ID);
    EnvironmentNetworkAwsParams environmentNetworkAwsParams = new EnvironmentNetworkAwsParams();
    environmentNetworkAwsParams.setVpcId(VPC_ID);
    environmentNetworkResponse.setAws(environmentNetworkAwsParams);
    der.setNetwork(environmentNetworkResponse);
    return der;
}
Also used : EnvironmentNetworkAwsParams(com.sequenceiq.environment.api.v1.environment.model.EnvironmentNetworkAwsParams) DetailedEnvironmentResponse(com.sequenceiq.environment.api.v1.environment.model.response.DetailedEnvironmentResponse) EnvironmentNetworkResponse(com.sequenceiq.environment.api.v1.environment.model.response.EnvironmentNetworkResponse)

Aggregations

EnvironmentNetworkAwsParams (com.sequenceiq.environment.api.v1.environment.model.EnvironmentNetworkAwsParams)6 EnvironmentNetworkResponse (com.sequenceiq.environment.api.v1.environment.model.response.EnvironmentNetworkResponse)3 DetailedEnvironmentResponse (com.sequenceiq.environment.api.v1.environment.model.response.DetailedEnvironmentResponse)2 CloudSubnet (com.sequenceiq.cloudbreak.cloud.model.CloudSubnet)1 CompactRegionResponse (com.sequenceiq.environment.api.v1.environment.model.response.CompactRegionResponse)1 EnvironmentAuthenticationResponse (com.sequenceiq.environment.api.v1.environment.model.response.EnvironmentAuthenticationResponse)1 Test (org.junit.jupiter.api.Test)1 ArgumentMatchers.anyString (org.mockito.ArgumentMatchers.anyString)1