Uploaded image for project: 'Service Design and Creation'
  1. Service Design and Creation
  2. SDC-4385

Provide input name when declaring service property as input

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Medium Medium
    • London Release
    • None
    • SDC
    • None

      When a property of a service or property of an instance in a service, is declared as an input (by selecting the property in the Property Assignment view of a service, and clicking the 'Declare Input' button) the user shall be asked to provide a name for the input to be created.

      The provided name shall be used in the backend when creating the input instead of generating a name based on the property name.

      Note the existing functionality provided by the backend endpoint must not change, i.e. if the endpoint is invoked as today, the same functionality of generating an input name shall apply. 

       

      Verify:

      • The UI shows the given name in the input tab on the properties assignment page
      • The UI shows the correct "get_input" value with the correct input name on the property that the input was declared from
      • The generated tosca contains an input definition on the topology template with the given name
      • For an input created from a service property:, the generated tosca contains a property -> input mapping in the substitution mapping withe correct property and input names
      • For an input created from a property of an instance in a service, the generated tosca contains the correct input name in the get_input function in the property assignment in the node template
      • Existing functionality maintained when call to backend is same as today

            krupanagabhushan krupanagabhushan
            krupanagabhushan krupanagabhushan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: