Uploaded image for project: 'Application Controller'
  1. Application Controller
  2. APPC-1205

Cdt reference data does not send when data is manually entered

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Highest Highest
    • Casablanca Release
    • Casablanca Release
    • None
    • None

      When data is manually entered into the cdt gui, the request sent to appc is missing data that is present when a reference file is uploaded to the cdt gui. Specifically, the reference_data is empty when data is manually entered.

      This is causing artifacts created by manual data entry to not save in appc.

      Example below is for an ansible healthcheck:

      This is the data that comes in over rest when a reference file is added to cdt:
      {"userID": "csituser","vnf-type" : "csit","action" : "AllAction","artifact-name" : "reference_AllAction_csit_0.0.1V.json","artifact-type" : "APPC-CONFIG","artifact-version" : "0.1","artifact-contents" :" {\"reference_data\":[{\"action\":\"HealthCheck\",\"action-level\":\"vnf\",\"scope\":

      {\"vnf-type\":\"csit\",\"vnfc-type-list\":[\"testvnftype\"],\"vnfc-type\":\"\"}

      ,\"template\":\"Y\",\"vm\":[],\"device-protocol\":\"ANSIBLE\",\"user-name\":\"\",\"port-number\":\"\",\"artifact-list\":[

      {\"artifact-name\":\"template_HealthCheck_csit_0.0.1V.json\",\"artifact-type\":\"config_template\"}

      ,

      {\"artifact-name\":\"pd_HealthCheck_csit_0.0.1V.yaml\",\"artifact-type\":\"parameter_definitions\"}

      ,

      {\"artifact-name\":\"param_HealthCheck_csit_0.0.1V.json\",\"artifact-type\":\"param_values\"}

      ],\"scopeType\":\"vnf-type\"},{\"action\":\"AllAction\",\"action-level\":\"vnf\",\"scope\":

      {\"vnf-type\":\"csit\",\"vnfc-type-list\":[\"testvnftype\"],\"vnfc-type\":\"\"}

      ,\"artifact-list\":[

      {\"artifact-name\":\"reference_AllAction_csit_0.0.1V.json\",\"artifact-type\":\"reference_template\"}

      ]}]}"}

      This is the data that comes in over rest when data is manually entered into cdt:
      {"userID": "csituser","vnf-type" : "csit023020302","action" : "AllAction","artifact-name" : "reference_AllAction_csit023020302_0.0.1V.json","artifact-type" : "APPC-CONFIG","artifact-version" : "0.1","artifact-contents" :"

      {\"reference_data\":[]}

      "}

      The manual entry steps that produce the above output:
      1. Create new vnf type
      2. Enter a vnf type name
      3. Click next
      4. Choose "HealthCheck" as action
      5. Choose "ANSIBLE" as protocol
      6. Click "save all to appc"

            takamune_cho takamune_cho
            pb071 pb071
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: