...
View file | ||||
---|---|---|---|---|
|
Test procedure for HEAT, need to modify for OOM.Steps:
1?. Set up SDNC VM?? sdnc_ansible_container???
...
:
- Prepare External Controller simulator ssh key file, put it under the contianer /opt/onap/ccsdk ????directory. You can download ssh key file ??from https://jira.onap.org/browse/CCSDK-464????????????????, and set permission to 0400.
- Replace /opt/onap/ccsdk/Playbooks????/Ansible_Inventory?????????, with the file of the same name under https://jira.onap.org/browse/CCSDK-464??????????. Open the file and change ansible_ssh_private_key_file=ssh_key_file ???to ansible_ssh_private_key_file=/opt/onap/ccsdk/ssh_key_file?
2?. Set up SDNC VM?? sdnc_controller_container??????. Open /opt/onap/sdnc/data/properties/lcm-dg.properties and make the following changes:
lcm.pnf.upgrade-pre-check.playbookname=ansible_huawei_precheck
lcm.pnf.upgrade-post-check.playbookname=ansible_huawei_postcheck
lcm.pnf.upgrade-software.playbookname=ansible_huawei_upgrade
3?. ??Login SDNC UI ??3?and do e2e tests of 3 LCM NB API??E2E???
...
- Login http://sdnc_ext_ip:8282sdnc_svc_port/apidoc/explorer/index.html ?, credential: admin/Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U??????wiki?. Refer wiki https://wiki.onap.org/display/DW/SDNC+Component ?
- ??LCM??Test LCM API, POST /operations/LCM:upgrade-pre-check, ???request?????with request body:
{
"input": {
"common-header": {
...
"ttl" : 60000
}
},
"action": "UpgradePreCheck",
...
"payload": "{\"pnf-flag\":\"true\", \"pnf-name\": \"5gDU0001\",\"pnfId\": \"5gDU0001\", \"ipaddress-v4-oam\": \"139.159.228.37\",\"oldSwVersion\": \"v1\", \"targetSwVersion\": \"v2\", \"ruleName\": \"r001\", \"Id\": \"10\", \"additionalData\":\"{}\"}"}}
- ??Test LCM ??API POST /operations/LCM:upgrade-software, ???request?????with request body:
{
"input": {
"common-header": {
...
"payload": "{\"pnf-flag\":\"true\", \"pnf-name\": \"5gDU0001\",\"pnfId\": \"5gDU0001\", \"ipaddress-v4-oam\": \"139.159.228.37\",\"oldSwVersion\": \"v1\", \"targetSwVersion\": \"v2\", \"Id\": \"10\", \"additionalData\":\"{}\"}"}}
- ??Test LCM ??API POST /operations/LCM:upgrade-post-check, ???request?????with request body:
{
"input": {
"common-header": {
...
"payload": "{\"pnf-flag\":\"true\", \"pnf-name\": \"5gDU0001\",\"pnfId\": \"5gDU0001\", \"ipaddress-v4-oam\": \"139.159.228.37\",\"oldSwVersion\": \"v1\", \"targetSwVersion\": \"v2\", \"ruleName\": \"r102\", \"Id\": \"10\", \"additionalData\":\"{}\"}"}}
???b/c/d Response??status code?400????????In the above 3 tests, if Response status code is 400, then it passes.