Search in sources :

Example 6 with DeployApplicationRequest

use of alien4cloud.rest.application.model.DeployApplicationRequest in project alien4cloud by alien4cloud.

the class ApplicationsDeploymentStepDefinitions method iDeployItWithTheFollowingCredentialsDefinedByTheSecretProviderPlugin.

@When("^I deploy it with the following credentials defined by the secret provider plugin \"([^\"]*)\"$")
public void iDeployItWithTheFollowingCredentialsDefinedByTheSecretProviderPlugin(String pluginName, DataTable table) throws Throwable {
    DeployApplicationRequest deployApplicationRequest = getDeploymentAppRequest(ApplicationStepDefinitions.CURRENT_APPLICATION.getName(), null);
    deployApplicationRequest.setSecretProviderCredentials(DataTableUtils.dataTableToMap(table));
    deployApplicationRequest.setSecretProviderPluginName(pluginName);
    String response = deploy(deployApplicationRequest);
    Context.getInstance().registerRestResponse(response);
}
Also used : DeployApplicationRequest(alien4cloud.rest.application.model.DeployApplicationRequest) When(cucumber.api.java.en.When)

Aggregations

DeployApplicationRequest (alien4cloud.rest.application.model.DeployApplicationRequest)6 When (cucumber.api.java.en.When)3 Application (alien4cloud.model.application.Application)2 Given (cucumber.api.java.en.Given)2 Map (java.util.Map)1