Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 10 Next »



Test Cases Definitions


Test ID

Test

Name

Test

Description

Expected

Results

T001upgrade-pre-check API

Use APPC LCM API to POST /operations/LCM:upgrade-pre-check with the following request body:

{
    "input": {
      "common-header": {
      "timestamp": "2018-10-10T09:40:04.244Z",
      "api-ver": "2.00",
      "originator-id": "664be3d2-6c12-4f4b-a3e7-c349acced203",
      "request-id":"664be3d2-6c12-4f4b-a3e7-c349acced203",
      "sub-request-id": "1",
      "flags": {
                    "force" : "TRUE",
                    "ttl" : 60000
             }
      },
      "action": "UpgradePreCheck",
      "action-identifiers": {
        "vnf-id":"5gDU0001"
      },
      "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\":\"{}\"}"}}
Response status 400
T002upgrade-software API

Use APPC LCM API to POST /operations/LCM:upgrade-software with the following request body:

{
    "input": {
      "common-header": {
      "timestamp": "2018-10-10T09:40:04.244Z",
      "api-ver": "2.00",
      "originator-id": "664be3d2-6c12-4f4b-a3e7-c349acced203",
      "request-id":"664be3d2-6c12-4f4b-a3e7-c349acced203",
      "sub-request-id": "3",
      "flags": {
                    "force" : "TRUE",
                    "ttl" : 60000
       }
      },
      "action": "UpgradeSoftware",
      "action-identifiers": {
        "vnf-id":"5gDU0001"
      },
      "payload": "{\"pnf-flag\":\"true\", \"pnf-name\": \"5gDU0001\",\"pnfId\": \"5gDU0001\", \"ipaddress-v4-oam\": \"139.159.228.37\",\"oldSwVersion\": \"v1\", \"targetSwVersion\": \"v2\", \"Id\": \"10\", \"additionalData\":\"{}\"}"}}


Response status 400
T003upgrade-post-check API

Use APPC LCM API to POST /operations/LCM:upgrade-software with the following request body:

{
    "input": {
      "common-header": {
      "timestamp": "2018-10-10T09:40:04.244Z",
      "api-ver": "2.00",
      "originator-id": "664be3d2-6c12-4f4b-a3e7-c349acced203",
      "request-id":"664be3d2-6c12-4f4b-a3e7-c349acced203",\
      "sub-request-id": "2",
      "flags": {
                    "force" : "TRUE",
                    "ttl" : 60000
       }
      },
      "action": "UpgradePostCheck",
      "action-identifiers": {
        "vnf-id":"5gDU0001"
      },
      "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\":\"{}\"}"}}
Response status 400


Test Case Recording

Test Setup

1.  Set up  SDNC 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 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 and do e2e tests of 3 LCM NB APIs

Test Status

Note: In integration lab testing, used the Rancher node as external controller simulator and ONAP onap_dev as the private key.

Test ID

Test Name

Test ResultPass/Fail
T001upgrade-pre-check APIReceived response code 400

COMPLETED

T002upgrade-software APIReceived response code 400

COMPLETED

T003upgrade-post-check APIReceived response code 400

COMPLETED






  • No labels