Uploaded image for project: 'Policy Framework'
  1. Policy Framework
  2. POLICY-1630 Dublin Release Tasks
  3. POLICY-1685

Change the integration testsuite to call new apis for vFW testing

    XMLWordPrintable

Details

    • Sub-task
    • Status: Closed
    • Medium
    • Resolution: Done
    • None
    • None
    • None
    • None

    Description

      The integration team's testsuite must be updated to call the new API's for Control Loop testing:

      The following robot files should be updated/modified etc:

       

      robot/assets/templates/policy/

      │   │   │   │   ├── FirewallPolicy_delete.template

      │   │   │   │   ├── FirewallPolicy_push.template

      │   │   │   │   ├── FirewallPolicy_update.template

      │   │   │   │   ├── closedloop_configpolicy.template

      │   │   │   │   ├── closedloop_createpolicy.template

      │   │   │   │   ├── closedloop_deletepolicy.template

      │   │   │   │   ├── closedloop_getconfigpolicy.template

      │   │   │   │   ├── closedloop_opspolicy.template

      │   │   │   │   └── closedloop_pushpolicy.template

       

      1) Create vFirewall MONITORING policy - see attached vFIrewall.policy.monitoring.....

      curl --user 'healthcheck:zb!XztG34' -X POST "http://{api_ip}:{port}/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/1.0.0/policies" -H "Accept: application/json" -H "Content-Type: application/json" -d @vFirewall.policy.monitoring.input.tosca.json

       

      2) Delete vFirewall MONITORING policy

      curl --user 'healthcheck:zb!XztG34' -X POST "http://{api_ip}:{port}/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/1.0.0/policies/onap.vfirewall.tca/versions/1.0.0" -H "Accept: application/json" -H "Content-Type: application/json"

       

      3) Create vFirewall OPERATIONAL policy - see attached vFirewall.policy.operational....

      curl --user 'healthcheck:zb!XztG34' -X POST "http://{api_ip}:{port}/policy/api/v1/policytypes/onap.policies.controlloop.Operational/versions/1.0.0/policies" -H "Accept: application/json" -H "Content-Type: application/json" -d @vFirewall.policy.operational.input.json

       

      4) Delete vFirewall OPERATIONAL policy

      curl --user 'healthcheck:zb!XztG34' -X POST "http://{api_ip}:{port}/policy/api/v1/policytypes/onap.policies.controlloop.Operational/versions/1.0.0/policies/operational.modifyconfig/versions/1" -H "Accept: application/json" -H "Content-Type: application/json"

       

      5) Push vFirewall Policies to PDP group

      curl --user 'healthcheck:zb!XztG34' -X POST "http://{pap_ip}:{port}/policy/pap/v1/pdps/policies" -H 'Content-Type: application/json' -H 'Accept: application/json' -d @vFirewall.push.json

       

      6) Undeploy vFirewall MONITORING policy

      curl --user 'healthcheck:zb!XztG34' -X DELETE "http://{pap_ip}:{port}/policy/pap/v1/pdps/policies/onap.vfirewall.tca/versions/1.0.0"

       

      7) Undeploy vFirewall OPERATIONAL policy

      curl --user 'healthcheck:zb!XztG34' -X DELETE "http://{pap_ip}:{port}/policy/pap/v1/pdps/policies/operational.modifyconfig/versions/1.0.0"

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              bdfreeman1421 Brian Freeman
              pdragosh Pamela Dragosh
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: