-
Sub-task
-
Resolution: Done
-
Medium
-
None
-
None
-
None
-
None
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"
- mentioned in
-
Page Loading...