Disclaimer: We are using the HPA & Cloud Agnostic Intent - R3 Test Plan as reference. The postman given here are only for reference. Please make necessary edits according to the test plan.
...
If Multicloud team has data for creating the Cloud-region and doesn't have the HPA, then please update the existing data with the flavors with HPA.
- Import the postman collection collection committed to the repository: https://gerrit.onap.org/r/gitweb?p=aai%2Ftest-config.git;hb=refs%2Fchanges%2F88%2F86588%2F1;f=testsuite%2Fdatacollections%2FOOF-HPA-Cloud-Agnostic-Intent-CASABLANCA.postman_collection.json (original version attached to wiki: CASABLANCA_AAI_postman.json )
- To add/remove HPA Capabilities edit the flavors section in the body of PUT Cloud-Region{x}
- Once all the necessary Use postman to add the complex and cloud regions in the order specified below
- Use the GET requests to verify the data.
...
Note: For testing purposes, policies go hand in hand with the available HPA capabilities. This means for a matching homing solution to be identified, we have to inject policies that is a subset of available HPA capabilities.
Create Policy model
Using the policy GUI upload all the policy models in the portalLogin to Policy GUI by using the pap port https://${k8s_node_ip}:30219/onap/login.htm credentials are demo/demo
Wiki reference for Policy GUI - /wiki/spaces/DW/pages/16279393. The models in this wiki might not be the latest. Please refer below for the OOF Policy models.
Create Policy model
Using the policy GUI upload all the policy models in the portal using either Method 1 or Method 2.
Method 1 (Import CSV)
Shortcurt to upload model - Not tested
- Select Policy→Dictionary from left panel
- Click on the
button and use the OOFPolicyDictionary_For_Import.csv to import models.Status colour Blue title Import Dictionary's
Method 2 (Manual upload)
Manual Method to Upload models by creating dictionary as per the below screen shots.
OOF Policy models including HPA available here OOF Policy Tosca Models
- Select Policy→Dictionary from left panel
- Select MicroService Policy from Policy Type Dictionary drop down
- Select MicroService Models from Select Dictionary drop down
- Click on the
button.Status colour Green title Create - Creating menu is self explanatory, please give same version for all the models imported together.
Create and Push Policy
Login to the OOF any pod (We OSDF) - and use the pdp servicename and port using the curl commands below.
...