Uploaded image for project: 'Clamp'
  1. Clamp
  2. CLAMP-395

Operational policy payload is not right for Op policy legacy api

XMLWordPrintable

    • CLAMP-R4 Sprint 6

      The payload must be like that, the content variable is different than what we send:https://git.onap.org/policy/models/tree/models-examples/src/main/resources/policies/vCPE.policy.operational.input.json

      The url encoded string ("content") should not contain that yaml

      https://git.onap.org/policy/models/tree/models-examples/src/main/resources/policies/vDNS.policy.operational.input.tosca.yaml

       

      Additional fixes to do, some yaml fields must be changed:

      -

      "success": "",

      "failure": "",
      "failure_timeout": "",
      "failure_retries": "",
      "failure_exception": "",
      "failure_guard": ""

      Must be changed tothat when there is no policy referenced

      success: final_success
      failure: final_failure
      failure_timeout: final_failure_timeout
      failure_retries: final_failure_retries
      failure_exception: final_failure_exception
      failure_guard: final_failure_guard

       

      -

      value with "{" "}" can't be used in the yaml sent to policy

       

      -

      Integer can't be encapsulated in single quotes '' so that it must be removed for all fields except for the payload field

       

       

            sebdet sebdet
            sebdet sebdet
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: