Skip to content
Snippets Groups Projects
Commit ffb8b6b6 authored by mengxuan.zhao's avatar mengxuan.zhao
Browse files

Progress on VNF LCM

parent 86adc636
No related branches found
No related tags found
No related merge requests found
This diff is collapsed.
*** Settings ***
Suite setup Expect spec SOL003-VNFLifecycleManagement-API.yaml
Resource ../variables.txt
Library REST http://${VNFM_HOST}:${VNFM_PORT}
*** Test cases ***
Create a new vnfInstance
Log Create VNF instance by POST to /vnflcm/v1/vnf_instances
Set Headers {"Accept":"${ACCEPT}"}
Set Headers {"Content-Type": "application/json"}
Post /vnflcm/v1/vnf_instances {"vnfdId": "12345","vnfInstanceName": "Test-VnfInstance", "vnfInstanceDescription": "bla"}
Log Validate Status code
Integer response status 200
Get information about multiple VNF instances
[Tags] get
Log Query VNF The GET method queries information about multiple VNF instances.
Set Headers {"Accept":"${ACCEPT}"}
Set Headers {"Content-Type": "application/json"}
Set Headers {"Authorization": "${AUTHORIZATION_TOKEN}"}
Log Execute Query and validate against online spec
Get /vnflcm/v1/vnf_instances
Log Validate Status code
Integer response status 200
Log Execute Query and validate against online spec
GET ${apiRoot}/vnflcm/v1/vnf_instances?fields=wrong_field
Log Validate Status code
Integer response status 400
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment