Uploaded image for project: 'Vnfsdk'
  1. Vnfsdk
  2. VNFSDK-715

Update PM_Dictionary validator to support CLI operation

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Medium Medium
    • Honolulu Release
    • None
    • None

      Goal:
      We need a mechanism, which allows us to test the pm_dictionary files in a stand-alone Linux system. This needs to cover pm_dictionary only, not a complete CSAR.
      The solution needs to accept large pm_dictionary files (e.g. 10 MB each).

      CoS:

      pm_dictionary_validator jar artifact is extended to offer CLI capabilities
      A "fat-jar" is built, it includes all necessary dependencies
      The "fat-jar" is marked with "-standalone" in the jar artifact name
      A fat-jar is self-released (artifact available permanently, with a give non-snapshot version)
      A new artifact is published in nexus along the existing jar artefact (lightweight jar)
      A new jar provides the JSON output in a response to stdOut
      A new jar provides the JSON output to a file by default (suffixing the input file by "-validation-results"), and changes the filetype to json.
      A stand-alone jar covers successful and error cases (e.g. file doesn`t exist, no access rights to the file, file corrupted, then all validation errors)
      Additional tests are written to cover the CLI functionality of the JAR
      A user-guide is written on how to use the stand-alone jar:
      Covers pre-requisites (minimum OS requirements, Java installed, any additional packages needed)
      Covers an information, which jar versions align with which ONAP releases (Guilin, Honolulu,...)
      Covers an information on how to download the jar form ONAP artifactory.
      Covers a few usage examples, successful and failure scenatios
      Covers as well a few examples of successful and failed validation outputs (stdOut listing/json files created).

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

              Created:
              Updated:
              Resolved: