Search in sources :

Example 1 with SetNodeCapabilityPropertyAsSecretOperation

use of org.alien4cloud.tosca.editor.operations.secrets.SetNodeCapabilityPropertyAsSecretOperation in project alien4cloud by alien4cloud.

the class SecretPropertiesStepDefinitions method iDefineThePropertyOfCapabilityOfTheNodeAsSecretWithASecretPath.

@When("^I define the property \"([^\"]*)\" of capability \"([^\"]*)\" of the node \"([^\"]*)\" as secret with a secret path \"([^\"]*)\"$")
public void iDefineThePropertyOfCapabilityOfTheNodeAsSecretWithASecretPath(String propertyName, String capabilityName, String nodeName, String secretPath) throws Throwable {
    SetNodeCapabilityPropertyAsSecretOperation operation = new SetNodeCapabilityPropertyAsSecretOperation();
    operation.setNodeName(nodeName);
    operation.setPropertyName(propertyName);
    operation.setSecretPath(secretPath);
    operation.setCapabilityName(capabilityName);
    EditorStepDefinitions.do_i_execute_the_operation(operation);
}
Also used : SetNodeCapabilityPropertyAsSecretOperation(org.alien4cloud.tosca.editor.operations.secrets.SetNodeCapabilityPropertyAsSecretOperation) When(cucumber.api.java.en.When)

Aggregations

When (cucumber.api.java.en.When)1 SetNodeCapabilityPropertyAsSecretOperation (org.alien4cloud.tosca.editor.operations.secrets.SetNodeCapabilityPropertyAsSecretOperation)1