Search in sources :

Example 1 with LocationResponse

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

the class CloudStorageLocationValidatorTest method setUp.

@BeforeEach
public void setUp() {
    LocationResponse locationResponse = LocationResponseBuilder.aLocationResponse().withName(ENV_REGION).build();
    when(environment.getLocation()).thenReturn(locationResponse);
    when(environment.getCloudPlatform()).thenReturn(CLOUD_PLATFORM);
    when(environment.getCredential()).thenReturn(new CredentialResponse());
    when(credentialToCloudCredentialConverter.convert(any(Credential.class))).thenReturn(CLOUD_CREDENTIAL);
}
Also used : CloudCredential(com.sequenceiq.cloudbreak.cloud.model.CloudCredential) Credential(com.sequenceiq.datalake.entity.Credential) CredentialResponse(com.sequenceiq.environment.api.v1.credential.model.response.CredentialResponse) LocationResponse(com.sequenceiq.environment.api.v1.environment.model.response.LocationResponse) BeforeEach(org.junit.jupiter.api.BeforeEach)

Aggregations

CloudCredential (com.sequenceiq.cloudbreak.cloud.model.CloudCredential)1 Credential (com.sequenceiq.datalake.entity.Credential)1 CredentialResponse (com.sequenceiq.environment.api.v1.credential.model.response.CredentialResponse)1 LocationResponse (com.sequenceiq.environment.api.v1.environment.model.response.LocationResponse)1 BeforeEach (org.junit.jupiter.api.BeforeEach)1