Search in sources :

Example 1 with UpdateDeploymentTopologyRequest

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

the class DeploymentTopologyStepDefinitions method iSetTheInputsPropertyAsASecretWithTheFollowingParameters.

@When("^I set the inputs property \"([^\"]*)\" as a secret with the following parameters$")
public void iSetTheInputsPropertyAsASecretWithTheFollowingParameters(String propertyName, Map<String, String> parameters) throws Throwable {
    FunctionPropertyValue functionPropertyValue = new FunctionPropertyValue();
    functionPropertyValue.setFunction(parameters.get("functionName"));
    functionPropertyValue.setParameters(Arrays.asList(parameters.get("secretPath")));
    UpdateDeploymentTopologyRequest request = new UpdateDeploymentTopologyRequest();
    request.setInputProperties(parseAndReplaceProperties(ImmutableMap.of(propertyName, functionPropertyValue)));
    executeUpdateDeploymentTopologyCall(request);
}
Also used : FunctionPropertyValue(org.alien4cloud.tosca.model.definitions.FunctionPropertyValue) UpdateDeploymentTopologyRequest(alien4cloud.rest.application.model.UpdateDeploymentTopologyRequest) When(cucumber.api.java.en.When)

Example 2 with UpdateDeploymentTopologyRequest

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

the class DeploymentTopologyStepDefinitions method I_set_the_following_inputs_properties.

@When("^I set the following inputs properties$")
public void I_set_the_following_inputs_properties(Map<String, Object> inputProperties) throws Throwable {
    UpdateDeploymentTopologyRequest request = new UpdateDeploymentTopologyRequest();
    request.setInputProperties(parseAndReplaceProperties(inputProperties));
    executeUpdateDeploymentTopologyCall(request);
}
Also used : UpdateDeploymentTopologyRequest(alien4cloud.rest.application.model.UpdateDeploymentTopologyRequest) When(cucumber.api.java.en.When)

Example 3 with UpdateDeploymentTopologyRequest

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

the class DeploymentTopologyStepDefinitions method I_set_the_following_orchestrator_properties.

@When("^I set the following orchestrator properties$")
public void I_set_the_following_orchestrator_properties(Map<String, String> orchestratorProperties) throws Throwable {
    UpdateDeploymentTopologyRequest request = new UpdateDeploymentTopologyRequest();
    request.setProviderDeploymentProperties(orchestratorProperties);
    executeUpdateDeploymentTopologyCall(request);
}
Also used : UpdateDeploymentTopologyRequest(alien4cloud.rest.application.model.UpdateDeploymentTopologyRequest) When(cucumber.api.java.en.When)

Aggregations

UpdateDeploymentTopologyRequest (alien4cloud.rest.application.model.UpdateDeploymentTopologyRequest)3 When (cucumber.api.java.en.When)3 FunctionPropertyValue (org.alien4cloud.tosca.model.definitions.FunctionPropertyValue)1