Search in sources :

Example 1 with SetRelationshipPropertyAsSecretOperation

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

the class SecretPropertiesStepDefinitions method iDefineThePropertyOfRelationshipFromTheNodeAsSecretWithASecretPathAndISaveTheTopology.

@When("^I define the property \"([^\"]*)\" of relationship \"([^\"]*)\" from the node \"([^\"]*)\" as secret with a secret path \"([^\"]*)\" and I save the topology$")
public void iDefineThePropertyOfRelationshipFromTheNodeAsSecretWithASecretPathAndISaveTheTopology(String propertyName, String relationshipName, String nodeName, String secretPath) throws Throwable {
    SetRelationshipPropertyAsSecretOperation operation = new SetRelationshipPropertyAsSecretOperation();
    operation.setNodeName(nodeName);
    operation.setRelationshipName(relationshipName);
    operation.setPropertyName(propertyName);
    operation.setSecretPath(secretPath);
    EditorStepDefinitions.do_i_execute_the_operation(operation);
    EditorStepDefinitions.do_i_save_the_topology();
}
Also used : SetRelationshipPropertyAsSecretOperation(org.alien4cloud.tosca.editor.operations.secrets.SetRelationshipPropertyAsSecretOperation) When(cucumber.api.java.en.When)

Aggregations

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