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);
}
Aggregations