Uploaded image for project: 'Configuration Persistence Service'
  1. Configuration Persistence Service
  2. CPS-1985

Modify cmHandle registration for alternateId

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Medium Medium
    • New Delhi Release
    • None
    • None

      Spike

       

      During registration an object called RestInputCmHandle contains all the information to register new entities in the database.

      The object should be extended at the top level with the new optional property (only for the create operation).

      Modify  docs/openapi/components.yaml RestInputCmHandle to accomodate alternateId (optional)

      Modify org/onap/cps/ncmp/api/models/NcmpServiceCmHandle.java class (add new field alternateId)

      Extend org.onap.cps.ncmp.api.impl.yangmodels.YangModelCmHandle#toYangModelCmHandle method to accept the new String parameter.

      the generated RestInputCmHandle has the new field (unit test for the mapper)
      NcmpServiceCmHandle should have the new field (unit test)
      Validate toYangModelCmHandle output

      A/C:

      1. RTD is updated: Verify the modified yaml file (contains the new attribute)
      2. AlternateId can bee seen using DB viewer

        Out of scope:

      • other operations (delete/update/upgrade)
      • modifying Yang model (CPS-1989)

            leventecsanyi Levente Csanyi
            leventecsanyi Levente Csanyi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: