use of com.sequenceiq.environment.api.v1.credential.model.request.EditCredentialRequest in project cloudbreak by hortonworks.
the class CredentialTestDto method modifyRequest.
public EditCredentialRequest modifyRequest() {
EditCredentialRequest editRequest = new EditCredentialRequest();
CredentialRequest request = getRequest();
editRequest.setName(request.getName());
editRequest.setAzure(request.getAzure());
editRequest.setAws(request.getAws());
editRequest.setGcp(request.getGcp());
editRequest.setMock(request.getMock());
editRequest.setYarn(request.getYarn());
editRequest.setCloudPlatform(request.getName());
editRequest.setDescription(request.getName());
editRequest.setCloudPlatform(getCloudPlatform().name());
return editRequest;
}
use of com.sequenceiq.environment.api.v1.credential.model.request.EditCredentialRequest in project cloudbreak by hortonworks.
the class CredentialAuthorizationIntegrationTest method getAwsEditCredentialRequest.
private EditCredentialRequest getAwsEditCredentialRequest(String name) {
EditCredentialRequest credentialRequest = new EditCredentialRequest();
credentialRequest.setAws(getAwsKeyBasedCredentialParameters());
credentialRequest.setCloudPlatform("AWS");
credentialRequest.setName(name);
return credentialRequest;
}
Aggregations